svelte 3.56.0 → 3.58.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/compiler.js +875 -4529
  3. package/compiler.js.map +1 -1
  4. package/compiler.mjs +875 -4529
  5. package/compiler.mjs.map +1 -1
  6. package/elements/index.d.ts +7 -2
  7. package/internal/index.js +60 -14
  8. package/internal/index.mjs +53 -15
  9. package/package.json +1 -1
  10. package/store/index.js +7 -3
  11. package/store/index.mjs +7 -3
  12. package/transition/index.js +5 -2
  13. package/transition/index.mjs +6 -3
  14. package/types/compiler/compile/nodes/Document.d.ts +13 -0
  15. package/types/compiler/compile/nodes/interfaces.d.ts +2 -1
  16. package/types/compiler/compile/nodes/shared/Context.d.ts +12 -4
  17. package/types/compiler/compile/nodes/shared/map_children.d.ts +2 -1
  18. package/types/compiler/compile/render_dom/Renderer.d.ts +2 -2
  19. package/types/compiler/compile/render_dom/wrappers/Comment.d.ts +11 -0
  20. package/types/compiler/compile/render_dom/wrappers/Document.d.ts +13 -0
  21. package/types/compiler/compile/render_dom/wrappers/Element/index.d.ts +2 -0
  22. package/types/compiler/compile/render_dom/wrappers/MustacheTag.d.ts +1 -1
  23. package/types/compiler/compile/render_dom/wrappers/shared/Wrapper.d.ts +1 -1
  24. package/types/compiler/compile/utils/a11y.d.ts +10 -0
  25. package/types/compiler/compile/utils/contenteditable.d.ts +23 -0
  26. package/types/compiler/interfaces.d.ts +1 -2
  27. package/types/compiler/parse/read/css-tree-cq/css_tree_parse.d.ts +1 -0
  28. package/types/compiler/parse/read/css-tree-cq/node/comparison.d.ts +10 -0
  29. package/types/compiler/parse/read/css-tree-cq/node/container_feature.d.ts +12 -0
  30. package/types/compiler/parse/read/css-tree-cq/node/container_feature_range.d.ts +11 -0
  31. package/types/compiler/parse/read/css-tree-cq/node/container_feature_style.d.ts +12 -0
  32. package/types/compiler/parse/read/css-tree-cq/node/container_query.d.ts +12 -0
  33. package/types/compiler/parse/read/css-tree-cq/node/query_css_function.d.ts +12 -0
  34. package/types/runtime/internal/dev.d.ts +4 -2
  35. package/types/runtime/internal/dom.d.ts +7 -3
  36. package/types/runtime/internal/utils.d.ts +2 -0
  37. package/types/runtime/transition/index.d.ts +3 -3
  38. package/types/shared/boolean_attributes.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Svelte changelog
2
2
 
3
+ ## 3.58.0
4
+
5
+ * Add `bind:innerText` for `contenteditable` elements ([#3311](https://github.com/sveltejs/svelte/issues/3311))
6
+ * Add support for CSS `@container` queries ([#6969](https://github.com/sveltejs/svelte/issues/6969))
7
+ * Respect `preserveComments` in DOM output ([#7182](https://github.com/sveltejs/svelte/pull/7182))
8
+ * Allow use of `document` for `target` in typings ([#7554](https://github.com/sveltejs/svelte/pull/7554))
9
+ * Add `a11y-interactive-supports-focus` warning ([#8392](https://github.com/sveltejs/svelte/pull/8392))
10
+ * Fix equality check when updating dynamic text ([#5931](https://github.com/sveltejs/svelte/issues/5931))
11
+ * Relax `a11y-no-noninteractive-element-to-interactive-role` warning ([#8402](https://github.com/sveltejs/svelte/pull/8402))
12
+ * Properly handle microdata attributes ([#8413](https://github.com/sveltejs/svelte/issues/8413))
13
+ * Prevent name collision when using computed destructuring variables ([#8417](https://github.com/sveltejs/svelte/issues/8417))
14
+ * Fix escaping `<textarea value={...}>` values in SSR ([#8429](https://github.com/sveltejs/svelte/issues/8429))
15
+
16
+ ## 3.57.0
17
+
18
+ * Add `<svelte:document>` ([#3310](https://github.com/sveltejs/svelte/issues/3310))
19
+ * Add a11y `no-noninteractive-element-to-interactive-role` ([#8167](https://github.com/sveltejs/svelte/pull/8167))
20
+ * Stop intro transition from triggering incorrectly ([#6152](https://github.com/sveltejs/svelte/issues/6152), [#6812](https://github.com/sveltejs/svelte/issues/6812))
21
+ * Support computed and literal properties when destructuring objects in the template ([#6609](https://github.com/sveltejs/svelte/issues/6609))
22
+ * Give `style:` directive precedence over `style=` attribute ([#7475](https://github.com/sveltejs/svelte/issues/7475))
23
+ * Select `<option>` with `selected` attribute when initial state is `undefined` ([#8361](https://github.com/sveltejs/svelte/issues/8361))
24
+ * Prevent derived store callbacks after store is unsubscribed from ([#8364](https://github.com/sveltejs/svelte/issues/8364))
25
+ * Account for `bind:group` members being spread across multiple control flow blocks ([#8372](https://github.com/sveltejs/svelte/issues/8372))
26
+ * Revert buggy reactive statement optimization ([#8374](https://github.com/sveltejs/svelte/issues/8374))
27
+ * Support CSS units in the `fly` and `blur` transitions ([#7623](https://github.com/sveltejs/svelte/pull/7623))
28
+
3
29
  ## 3.56.0
4
30
 
5
31
  * Add `|stopImmediatePropagation` event modifier ([#5085](https://github.com/sveltejs/svelte/issues/5085))