svelte 4.2.9 → 4.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compiler.cjs CHANGED
@@ -43596,7 +43596,7 @@ function is_used_as_reference(node, parent) {
43596
43596
  * https://svelte.dev/docs/svelte-compiler#svelte-version
43597
43597
  * @type {string}
43598
43598
  */
43599
- const VERSION = '4.2.9';
43599
+ const VERSION = '4.2.10';
43600
43600
 
43601
43601
  const regex_leading_directory_separator = /^[/\\]/;
43602
43602
  const regex_starts_with_term_export = /^Export/;
package/elements.d.ts CHANGED
@@ -179,6 +179,7 @@ export interface DOMAttributes<T extends EventTarget> {
179
179
 
180
180
  // UI Events
181
181
  'on:scroll'?: UIEventHandler<T> | undefined | null;
182
+ 'on:scrollend'?: UIEventHandler<T> | undefined | null;
182
183
  'on:resize'?: UIEventHandler<T> | undefined | null;
183
184
 
184
185
  // Wheel Events
@@ -761,6 +762,7 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
761
762
  alt?: string | undefined | null;
762
763
  crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined | null;
763
764
  decoding?: 'async' | 'auto' | 'sync' | undefined | null;
765
+ fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
764
766
  height?: number | string | undefined | null;
765
767
  ismap?: boolean | undefined | null;
766
768
  loading?: 'eager' | 'lazy' | undefined | null;
@@ -880,6 +882,7 @@ export interface HTMLLinkAttributes extends HTMLAttributes<HTMLLinkElement> {
880
882
  sizes?: string | undefined | null;
881
883
  type?: string | undefined | null;
882
884
  charset?: string | undefined | null;
885
+ fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
883
886
  }
884
887
 
885
888
  export interface HTMLMapAttributes extends HTMLAttributes<HTMLMapElement> {
@@ -1014,6 +1017,7 @@ export interface HTMLScriptAttributes extends HTMLAttributes<HTMLScriptElement>
1014
1017
  charset?: string | undefined | null;
1015
1018
  crossorigin?: string | undefined | null;
1016
1019
  defer?: boolean | undefined | null;
1020
+ fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
1017
1021
  integrity?: string | undefined | null;
1018
1022
  nomodule?: boolean | undefined | null;
1019
1023
  nonce?: string | undefined | null;
@@ -1402,7 +1406,15 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
1402
1406
  'stroke-dasharray'?: string | number | undefined | null;
1403
1407
  'stroke-dashoffset'?: string | number | undefined | null;
1404
1408
  'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit' | undefined | null;
1405
- 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit' | undefined | null;
1409
+ 'stroke-linejoin'?:
1410
+ | 'arcs'
1411
+ | 'miter-clip'
1412
+ | 'miter'
1413
+ | 'round'
1414
+ | 'bevel'
1415
+ | 'inherit'
1416
+ | undefined
1417
+ | null;
1406
1418
  'stroke-miterlimit'?: string | undefined | null;
1407
1419
  'stroke-opacity'?: number | string | undefined | null;
1408
1420
  'stroke-width'?: number | string | undefined | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte",
3
- "version": "4.2.9",
3
+ "version": "4.2.10",
4
4
  "description": "Cybernetically enhanced web apps",
5
5
  "type": "module",
6
6
  "module": "src/runtime/index.js",
@@ -345,7 +345,7 @@ export interface CompileOptions {
345
345
  */
346
346
  preserveWhitespace?: boolean;
347
347
  /**
348
- * If `true`, exposes the Svelte major version on the global `window` object in the browser.
348
+ * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
349
349
  *
350
350
  * @default true
351
351
  */
@@ -0,0 +1,4 @@
1
+ declare module 'acorn' {
2
+ export function isIdentifierStart(code: number, astral: boolean): boolean;
3
+ export function isIdentifierChar(code: number, astral: boolean): boolean;
4
+ }
@@ -32,7 +32,7 @@ export function beforeUpdate(fn) {
32
32
  *
33
33
  * If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
34
34
  *
35
- * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
35
+ * `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
36
36
  *
37
37
  * https://svelte.dev/docs/svelte#onmount
38
38
  * @template T
@@ -71,7 +71,7 @@ export function onDestroy(fn) {
71
71
  }
72
72
 
73
73
  /**
74
- * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).
74
+ * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
75
75
  * Event dispatchers are functions that can take two arguments: `name` and `detail`.
76
76
  *
77
77
  * Component events created with `createEventDispatcher` create a
@@ -179,7 +179,7 @@ export function draw(node, { delay = 0, speed, duration, easing = cubicInOut } =
179
179
  }
180
180
 
181
181
  /**
182
- * The `crossfade` function creates a pair of [transitions](/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.
182
+ * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.
183
183
  *
184
184
  * https://svelte.dev/docs/svelte-transition#crossfade
185
185
  * @param {import('./public').CrossfadeParams & {
@@ -6,5 +6,5 @@
6
6
  * https://svelte.dev/docs/svelte-compiler#svelte-version
7
7
  * @type {string}
8
8
  */
9
- export const VERSION = '4.2.9';
9
+ export const VERSION = '4.2.10';
10
10
  export const PUBLIC_VERSION = '4';
package/types/index.d.ts CHANGED
@@ -189,7 +189,7 @@ declare module 'svelte' {
189
189
  *
190
190
  * If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
191
191
  *
192
- * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
192
+ * `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api).
193
193
  *
194
194
  * https://svelte.dev/docs/svelte#onmount
195
195
  * */
@@ -212,7 +212,7 @@ declare module 'svelte' {
212
212
  * */
213
213
  export function onDestroy(fn: () => any): void;
214
214
  /**
215
- * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).
215
+ * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
216
216
  * Event dispatchers are functions that can take two arguments: `name` and `detail`.
217
217
  *
218
218
  * Component events created with `createEventDispatcher` create a
@@ -602,7 +602,7 @@ declare module 'svelte/compiler' {
602
602
  */
603
603
  preserveWhitespace?: boolean;
604
604
  /**
605
- * If `true`, exposes the Svelte major version on the global `window` object in the browser.
605
+ * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
606
606
  *
607
607
  * @default true
608
608
  */
@@ -1211,7 +1211,7 @@ declare module 'svelte/types/compiler/interfaces' {
1211
1211
  */
1212
1212
  preserveWhitespace?: boolean;
1213
1213
  /**
1214
- * If `true`, exposes the Svelte major version on the global `window` object in the browser.
1214
+ * If `true`, exposes the Svelte major version in the browser by adding it to a `Set` stored in the global `window.__svelte.v`.
1215
1215
  *
1216
1216
  * @default true
1217
1217
  */
@@ -1789,7 +1789,7 @@ declare module 'svelte/transition' {
1789
1789
  getTotalLength(): number;
1790
1790
  }, { delay, speed, duration, easing }?: DrawParams | undefined): TransitionConfig;
1791
1791
  /**
1792
- * The `crossfade` function creates a pair of [transitions](/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.
1792
+ * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used.
1793
1793
  *
1794
1794
  * https://svelte.dev/docs/svelte-transition#crossfade
1795
1795
  * */