svelte 3.45.0 → 3.46.3

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 (30) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/compiler.js +20015 -19621
  3. package/compiler.js.map +1 -1
  4. package/compiler.mjs +19396 -19002
  5. package/compiler.mjs.map +1 -1
  6. package/internal/index.js +75 -20
  7. package/internal/index.mjs +74 -21
  8. package/package.json +1 -1
  9. package/types/compiler/compile/Component.d.ts +2 -2
  10. package/types/compiler/compile/nodes/CatchBlock.d.ts +2 -0
  11. package/types/compiler/compile/nodes/EachBlock.d.ts +2 -0
  12. package/types/compiler/compile/nodes/Element.d.ts +2 -0
  13. package/types/compiler/compile/nodes/SlotTemplate.d.ts +2 -0
  14. package/types/compiler/compile/nodes/Style.d.ts +12 -0
  15. package/types/compiler/compile/nodes/StyleDirective.d.ts +12 -0
  16. package/types/compiler/compile/nodes/ThenBlock.d.ts +2 -0
  17. package/types/compiler/compile/nodes/interfaces.d.ts +4 -2
  18. package/types/compiler/compile/nodes/shared/Expression.d.ts +1 -1
  19. package/types/compiler/compile/nodes/shared/TemplateScope.d.ts +3 -1
  20. package/types/compiler/compile/nodes/shared/map_children.d.ts +2 -1
  21. package/types/compiler/compile/render_dom/Renderer.d.ts +1 -1
  22. package/types/compiler/compile/render_dom/wrappers/AwaitBlock.d.ts +2 -1
  23. package/types/compiler/compile/render_dom/wrappers/Element/index.d.ts +1 -0
  24. package/types/compiler/compile/render_dom/wrappers/SlotTemplate.d.ts +4 -11
  25. package/types/compiler/compile/render_ssr/handlers/SlotTemplate.d.ts +1 -3
  26. package/types/compiler/compile/utils/nodes_to_template_literal.d.ts +7 -0
  27. package/types/compiler/interfaces.d.ts +18 -6
  28. package/types/runtime/animate/index.d.ts +1 -2
  29. package/types/runtime/internal/dom.d.ts +1 -1
  30. package/types/runtime/internal/ssr.d.ts +3 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Svelte changelog
2
2
 
3
+ ## 3.46.3
4
+
5
+ * Ignore whitespace in `{#each}` blocks when containing elements with `animate:` ([#5477](https://github.com/sveltejs/svelte/pull/5477))
6
+ * Throw compiler error when variable in `context="instance"` collides with import in `context="module"` ([#7090](https://github.com/sveltejs/svelte/issues/7090))
7
+ * Fix compiler crash when `{@const}` contains arrow functions ([#7134](https://github.com/sveltejs/svelte/issues/7134))
8
+
9
+ ## 3.46.2
10
+
11
+ * Export `FlipParams` interface from `svelte/animate` ([#7103](https://github.com/sveltejs/svelte/issues/7103))
12
+ * Fix `style:` directive reactivity inside `{#each}` block ([#7136](https://github.com/sveltejs/svelte/issues/7136))
13
+
14
+ ## 3.46.1
15
+
16
+ * Handle `style:kebab-case` directives ([#7122](https://github.com/sveltejs/svelte/issues/7122))
17
+ * Improve AST produced for `style:` directives ([#7127](https://github.com/sveltejs/svelte/pull/7127))
18
+
19
+ ## 3.46.0
20
+
21
+ * Implement `{@const}` tag ([RFC #33](https://github.com/sveltejs/rfcs/pull/33), [#6413](https://github.com/sveltejs/svelte/pull/6413))
22
+ * Implement `style:` directive ([RFC #42](https://github.com/sveltejs/rfcs/pull/42), [#5923](https://github.com/sveltejs/svelte/pull/5923))
23
+ * Fix style manager conflicts when using multiple Svelte instances ([#7026](https://github.com/sveltejs/svelte/issues/7026))
24
+ * Fix hydration when using `{@html}` ([#7115](https://github.com/sveltejs/svelte/issues/7115))
25
+
3
26
  ## 3.45.0
4
27
 
5
28
  * Fix non-boolean attribute rendering in SSR to render truthy values as-is ([#6121](https://github.com/sveltejs/svelte/issues/6121))