svelte 3.55.0 → 3.56.0
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/CHANGELOG.md +55 -1
- package/LICENSE.md +1 -1
- package/compiler.js +4466 -3629
- package/compiler.js.map +1 -1
- package/compiler.mjs +4465 -3628
- package/compiler.mjs.map +1 -1
- package/elements/index.d.ts +13 -3
- package/internal/index.js +126 -22
- package/internal/index.mjs +122 -23
- package/package.json +19 -19
- package/store/index.js +12 -1
- package/store/index.mjs +12 -2
- package/transition/index.js +27 -22
- package/transition/index.mjs +27 -22
- package/types/compiler/compile/Component.d.ts +2 -2
- package/types/compiler/compile/css/Selector.d.ts +1 -0
- package/types/compiler/compile/nodes/Attribute.d.ts +1 -1
- package/types/compiler/compile/nodes/Element.d.ts +1 -0
- package/types/compiler/compile/render_dom/Block.d.ts +3 -1
- package/types/compiler/compile/render_dom/Renderer.d.ts +9 -7
- package/types/compiler/compile/render_dom/wrappers/Element/Attribute.d.ts +9 -4
- package/types/compiler/compile/render_dom/wrappers/Element/Binding.d.ts +2 -0
- package/types/compiler/compile/render_dom/wrappers/Element/index.d.ts +56 -52
- package/types/compiler/compile/render_dom/wrappers/shared/Tag.d.ts +1 -1
- package/types/compiler/compile/render_dom/wrappers/shared/get_slot_definition.d.ts +52 -52
- package/types/compiler/compile/utils/a11y.d.ts +5 -5
- package/types/compiler/compile/utils/collapse_template_literal.d.ts +5 -0
- package/types/compiler/compile/utils/get_slot_data.d.ts +1 -1
- package/types/compiler/compile/utils/replace_object.d.ts +1 -1
- package/types/compiler/interfaces.d.ts +1 -0
- package/types/compiler/parse/index.d.ts +8 -0
- package/types/compiler/parse/utils/entities.d.ts +2125 -1925
- package/types/compiler/parse/utils/html.d.ts +1 -1
- package/types/compiler/utils/extract_svelte_ignore.d.ts +2 -0
- package/types/runtime/internal/Component.d.ts +1 -1
- package/types/runtime/internal/dev.d.ts +1 -1
- package/types/runtime/internal/dom.d.ts +12 -1
- package/types/runtime/internal/scheduler.d.ts +4 -0
- package/types/runtime/store/index.d.ts +6 -0
- package/types/runtime/transition/index.d.ts +2 -1
- package/types/shared/boolean_attributes.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Svelte changelog
|
|
2
2
|
|
|
3
|
+
## 3.56.0
|
|
4
|
+
|
|
5
|
+
* Add `|stopImmediatePropagation` event modifier ([#5085](https://github.com/sveltejs/svelte/issues/5085))
|
|
6
|
+
* Add `axis` parameter to `slide` transition ([#6182](https://github.com/sveltejs/svelte/issues/6182))
|
|
7
|
+
* Add `readonly` utility to convert `writable` store to readonly ([#6518](https://github.com/sveltejs/svelte/pull/6518))
|
|
8
|
+
* Add `readyState` binding for media elements ([#6666](https://github.com/sveltejs/svelte/issues/6666))
|
|
9
|
+
* Generate valid automatic component names when the filename contains only special characters ([#7143](https://github.com/sveltejs/svelte/issues/7143))
|
|
10
|
+
* Add `naturalWidth` and `naturalHeight` bindings ([#7771](https://github.com/sveltejs/svelte/issues/7771))
|
|
11
|
+
* Support `<!-- svelte-ignore ... -->` on components ([#8082](https://github.com/sveltejs/svelte/issues/8082))
|
|
12
|
+
* Add a11y warnings:
|
|
13
|
+
* `aria-activedescendant-has-tabindex`: checks that elements with `aria-activedescendant` have a `tabindex` ([#8172](https://github.com/sveltejs/svelte/pull/8172))
|
|
14
|
+
* `role-supports-aria-props`: checks that the (implicit) element role supports the given aria attributes ([#8195](https://github.com/sveltejs/svelte/pull/8195))
|
|
15
|
+
* Add `data-sveltekit-replacestate` and `data-sveltekit-keepfocus` attribute typings ([#8281](https://github.com/sveltejs/svelte/issues/8281))
|
|
16
|
+
* Compute node dimensions immediately before crossfading ([#4111](https://github.com/sveltejs/svelte/issues/4111))
|
|
17
|
+
* Fix potential infinite invalidate loop with `<svelte:component>` ([#4129](https://github.com/sveltejs/svelte/issues/4129))
|
|
18
|
+
* Ensure `bind:offsetHeight` updates initially ([#4233](https://github.com/sveltejs/svelte/issues/4233))
|
|
19
|
+
* Don't set selected options if value is unbound or not passed ([#5644](https://github.com/sveltejs/svelte/issues/5644))
|
|
20
|
+
* Validate component `:global()` selectors ([#6272](https://github.com/sveltejs/svelte/issues/6272))
|
|
21
|
+
* Improve warnings:
|
|
22
|
+
* Make `noreferrer` warning less zealous ([#6289](https://github.com/sveltejs/svelte/issues/6289))
|
|
23
|
+
* Omit a11y warnings on `<video aria-hidden="true">` ([#7874](https://github.com/sveltejs/svelte/issues/7874))
|
|
24
|
+
* Omit a11y warnings on `<svelte:element>` ([#7939](https://github.com/sveltejs/svelte/issues/7939))
|
|
25
|
+
* Detect unused empty attribute CSS selectors ([#8042](https://github.com/sveltejs/svelte/issues/8042))
|
|
26
|
+
* Omit "no child content" warning on elements with `aria-label` ([#8296](https://github.com/sveltejs/svelte/issues/8296))
|
|
27
|
+
* Check value equality for `<input type="search">` and `<input type="url">` ([#7027](https://github.com/sveltejs/svelte/issues/7027))
|
|
28
|
+
* Do not select a disabled `<option>` by default when the initial bound value is undefined ([#7041](https://github.com/sveltejs/svelte/issues/7041))
|
|
29
|
+
* Handle `{@html}` tags inside `<template>` tags ([#7364](https://github.com/sveltejs/svelte/pull/7364))
|
|
30
|
+
* Ensure `afterUpdate` is not called after `onDestroy` ([#7476](https://github.com/sveltejs/svelte/issues/7476))
|
|
31
|
+
* Improve handling of `inert` attribute ([#7500](https://github.com/sveltejs/svelte/issues/7500))
|
|
32
|
+
* Reduce use of template literals in SSR output for better performance ([#7539](https://github.com/sveltejs/svelte/pull/7539))
|
|
33
|
+
* Ensure `<input>` value persists when swapping elements with spread attributes in an `{#each}` block ([#7578](https://github.com/sveltejs/svelte/issues/7578))
|
|
34
|
+
* Simplify generated code for reactive statements if dependencies are all static ([#7942](https://github.com/sveltejs/svelte/pull/7942))
|
|
35
|
+
* Fix race condition on `<svelte:element>` with transitions ([#7948](https://github.com/sveltejs/svelte/issues/7948))
|
|
36
|
+
* Allow assigning to a property of a `const` when destructuring ([#7964](https://github.com/sveltejs/svelte/issues/7964))
|
|
37
|
+
* Match browser behavior for decoding malformed HTML entities ([#8026](https://github.com/sveltejs/svelte/issues/8026))
|
|
38
|
+
* Ensure `trusted-types` CSP compatibility for Web Components ([#8134](https://github.com/sveltejs/svelte/issues/8134))
|
|
39
|
+
* Optimise `<svelte:element>` output code for static tag and static attribute ([#8161](https://github.com/sveltejs/svelte/pull/8161))
|
|
40
|
+
* Don't throw when calling unsubscribing from a store twice ([#8186](https://github.com/sveltejs/svelte/pull/8186))
|
|
41
|
+
* Clear inputs when `bind:group` value is set to `undefined` ([#8214](https://github.com/sveltejs/svelte/issues/8214))
|
|
42
|
+
* Fix handling of nested arrays with keyed `{#each}` containing a non-keyed `{#each}` ([#8282](https://github.com/sveltejs/svelte/issues/8282))
|
|
43
|
+
|
|
44
|
+
## 3.55.1
|
|
45
|
+
|
|
46
|
+
* Fix `draw` transition with delay showing a dot at the beginning of the path ([#6816](https://github.com/sveltejs/svelte/issues/6816))
|
|
47
|
+
* Fix infinity runtime call stack when propagating bindings ([#7032](https://github.com/sveltejs/svelte/issues/7032))
|
|
48
|
+
* Fix static `<svelte:element>` optimization in production mode ([#7937](https://github.com/sveltejs/svelte/issues/7937))
|
|
49
|
+
* Fix `svelte-ignore` comment breaking named slot ([#8075](https://github.com/sveltejs/svelte/issues/8075))
|
|
50
|
+
* Revert change to prevent running init binding unnecessarily ([#8103](https://github.com/sveltejs/svelte/issues/8103))
|
|
51
|
+
* Fix adding duplicate event listeners with `<svelte:element on:event>` ([#8129](https://github.com/sveltejs/svelte/issues/8129))
|
|
52
|
+
* Improve detection of promises that are also functions ([#8162](https://github.com/sveltejs/svelte/pull/8162))
|
|
53
|
+
* Avoid mutating spread component props during SSR ([#8171](https://github.com/sveltejs/svelte/issues/8171))
|
|
54
|
+
* Add missing typing for global `part` attribute ([#8181](https://github.com/sveltejs/svelte/issues/8181))
|
|
55
|
+
* Add missing `submitter` property to `on:submit` event type
|
|
56
|
+
|
|
3
57
|
## 3.55.0
|
|
4
58
|
|
|
5
59
|
* Add `svelte/elements` for HTML/Svelte typings ([#7649](https://github.com/sveltejs/svelte/pull/7649))
|
|
@@ -1025,7 +1079,7 @@ Also:
|
|
|
1025
1079
|
|
|
1026
1080
|
## 3.5.1
|
|
1027
1081
|
|
|
1028
|
-
* Accommodate webpack
|
|
1082
|
+
* Accommodate webpack idiosyncrasies
|
|
1029
1083
|
|
|
1030
1084
|
## 3.5.0
|
|
1031
1085
|
|
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-23 [these people](https://github.com/sveltejs/svelte/graphs/contributors)
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|