svelte 3.44.3 → 3.46.2

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 (33) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/LICENSE.md +1 -1
  3. package/compiler.js +19372 -18850
  4. package/compiler.js.map +1 -1
  5. package/compiler.mjs +20039 -19517
  6. package/compiler.mjs.map +1 -1
  7. package/internal/index.js +76 -21
  8. package/internal/index.mjs +75 -22
  9. package/package.json +4 -4
  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/Context.d.ts +10 -1
  19. package/types/compiler/compile/nodes/shared/Expression.d.ts +1 -1
  20. package/types/compiler/compile/nodes/shared/TemplateScope.d.ts +3 -1
  21. package/types/compiler/compile/nodes/shared/map_children.d.ts +2 -1
  22. package/types/compiler/compile/render_dom/Renderer.d.ts +1 -1
  23. package/types/compiler/compile/render_dom/wrappers/AwaitBlock.d.ts +2 -1
  24. package/types/compiler/compile/render_dom/wrappers/Element/Binding.d.ts +1 -0
  25. package/types/compiler/compile/render_dom/wrappers/Element/index.d.ts +1 -0
  26. package/types/compiler/compile/render_dom/wrappers/SlotTemplate.d.ts +4 -11
  27. package/types/compiler/compile/render_ssr/handlers/SlotTemplate.d.ts +1 -3
  28. package/types/compiler/compile/utils/nodes_to_template_literal.d.ts +7 -0
  29. package/types/compiler/interfaces.d.ts +18 -6
  30. package/types/compiler/utils/namespaces.d.ts +1 -1
  31. package/types/runtime/animate/index.d.ts +1 -2
  32. package/types/runtime/internal/dom.d.ts +1 -1
  33. package/types/runtime/internal/ssr.d.ts +3 -1
package/CHANGELOG.md CHANGED
@@ -1,9 +1,35 @@
1
1
  # Svelte changelog
2
2
 
3
+ ## 3.46.2
4
+
5
+ * Export `FlipParams` interface from `svelte/animate` ([#7103](https://github.com/sveltejs/svelte/issues/7103))
6
+ * Fix `style:` directive reactivity inside `{#each}` block ([#7136](https://github.com/sveltejs/svelte/issues/7136))
7
+
8
+ ## 3.46.1
9
+
10
+ * Handle `style:kebab-case` directives ([#7122](https://github.com/sveltejs/svelte/issues/7122))
11
+ * Improve AST produced for `style:` directives ([#7127](https://github.com/sveltejs/svelte/pull/7127))
12
+
13
+ ## 3.46.0
14
+
15
+ * Implement `{@const}` tag ([RFC #33](https://github.com/sveltejs/rfcs/pull/33), [#6413](https://github.com/sveltejs/svelte/pull/6413))
16
+ * Implement `style:` directive ([RFC #42](https://github.com/sveltejs/rfcs/pull/42), [#5923](https://github.com/sveltejs/svelte/pull/5923))
17
+ * Fix style manager conflicts when using multiple Svelte instances ([#7026](https://github.com/sveltejs/svelte/issues/7026))
18
+ * Fix hydration when using `{@html}` ([#7115](https://github.com/sveltejs/svelte/issues/7115))
19
+
20
+ ## 3.45.0
21
+
22
+ * Fix non-boolean attribute rendering in SSR to render truthy values as-is ([#6121](https://github.com/sveltejs/svelte/issues/6121))
23
+ * Fix binding to a member expression also invalidating the member property ([#6921](https://github.com/sveltejs/svelte/issues/6921))
24
+ * Fix default values in `{#each}`/etc. destructurings not being considered references for the purposes of compiler warnings ([#6964](https://github.com/sveltejs/svelte/issues/6964))
25
+ * Fix `{:else if}` value incorrectly being cached ([#7043](https://github.com/sveltejs/svelte/pull/7043))
26
+ * Add `a11y-no-redundant-roles` warning ([#7067](https://github.com/sveltejs/svelte/pull/7067))
27
+ * Fix code generation error with arrow functions whose bodies are object destructuring assignments ([#7087](https://github.com/sveltejs/svelte/issues/7087))
28
+
3
29
  ## 3.44.3
4
30
 
5
31
  * Fix `bind:this` binding inside `onMount` for manually instantiated component ([#6760](https://github.com/sveltejs/svelte/issues/6760))
6
- * Prevent cursor jumps for other `type="text"`-like `<input>`s ([#6914](https://github.com/sveltejs/svelte/issues/6914))
32
+ * Prevent cursor jumps with one-way binding for other `type="text"`-like `<input>`s ([#6941](https://github.com/sveltejs/svelte/pull/6941))
7
33
  * Exclude `async` loops from `loopGuardTimeout` ([#6945](https://github.com/sveltejs/svelte/issues/6945))
8
34
 
9
35
  ## 3.44.2
package/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-21 [these people](https://github.com/sveltejs/svelte/graphs/contributors)
1
+ Copyright (c) 2016-22 [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