chore: don't count the feature-detected `getOrInsert` towards the browser support floor

elliott/warp-core
Elliott Johnson 10 hours ago
parent c96b1e68cd
commit cfa3dd09c8
No known key found for this signature in database

@ -1,3 +1,7 @@
<!-- generated in ../../../../../packages/svelte/scripts/generate-browser-support.ts. do not edit -->
_No features currently require browser versions newer than the runtime floor._
| Feature | Chrome/Edge | Firefox | Safari |
| - | - | - | - |
| [`$state.snapshot`](/docs/svelte/$state#$state.snapshot) | 98 | 94 | 15.4 |
| [`bind:devicePixelContentBoxSize`](/docs/svelte/bind#Dimensions) | <span style="color: var(--sk-fg-4)">—</span> | 93 | not supported |
| [`flip` from `svelte/animate`](/docs/svelte/svelte-animate#flip) | <span style="color: var(--sk-fg-4)">—</span> | 126 | <span style="color: var(--sk-fg-4)">—</span> |

@ -2,12 +2,14 @@
| Browser | Minimum version |
| - | - |
| Chrome/Edge | 148 |
| Firefox | 151 |
| Safari | 26.5 |
| Opera | 132 |
| Android WebView | 148 |
| Chrome/Edge | 87 |
| Firefox | 83 |
| Safari | 14 |
| Opera | 73 |
| Opera (Android) | 62 |
| Samsung Internet | 14.0 |
| Android WebView | 87 |
| Internet Explorer | not supported |
> [!NOTE] This equates to a <a href="https://web-platform-dx.github.io/baseline/">Baseline</a> target of 2026.
> [!NOTE] This equates to a <a href="https://web-platform-dx.github.io/baseline/">Baseline</a> target of 2020.

@ -124,11 +124,12 @@ const pkg = JSON.parse(fs.readFileSync(path.join(pkg_dir, 'package.json'), 'utf-
* every Safari for over a decade).
* - Svelte feature-detects the API at runtime with `?.` and degrades
* gracefully when it's unavailable. Example: `trusted-types` in
* `src/internal/client/dom/reconciler.js`.
* `src/internal/client/dom/reconciler.js`, or `getorinsert` in
* `src/internal/shared/utils.js`.
*
* These are exempt from the staleness check.
*/
const SAFE_TO_IGNORE = new Set(['devicepixelratio', 'trusted-types']);
const SAFE_TO_IGNORE = new Set(['devicepixelratio', 'trusted-types', 'getorinsert']);
/**
* Suppressions for features that DO live in the runtime but are reached

Loading…
Cancel
Save