svelte 3.30.0 → 3.31.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.
- package/CHANGELOG.md +27 -0
- package/LICENSE +1 -1
- package/compiler.js +349 -146
- package/compiler.js.map +1 -1
- package/compiler.mjs +349 -146
- package/compiler.mjs.map +1 -1
- package/index.js +12 -0
- package/index.mjs +1 -1
- package/internal/index.js +48 -4
- package/internal/index.mjs +48 -5
- package/package.json +8 -8
- package/transition/index.js +10 -10
- package/transition/index.mjs +10 -10
- package/types/compiler/compile/nodes/Action.d.ts +4 -1
- package/types/compiler/compile/nodes/Animation.d.ts +4 -1
- package/types/compiler/compile/nodes/Attribute.d.ts +2 -1
- package/types/compiler/compile/nodes/AwaitBlock.d.ts +1 -1
- package/types/compiler/compile/nodes/Binding.d.ts +5 -1
- package/types/compiler/compile/nodes/Body.d.ts +4 -1
- package/types/compiler/compile/nodes/Class.d.ts +4 -1
- package/types/compiler/compile/nodes/Comment.d.ts +4 -1
- package/types/compiler/compile/nodes/DebugTag.d.ts +5 -1
- package/types/compiler/compile/nodes/EachBlock.d.ts +3 -1
- package/types/compiler/compile/nodes/Element.d.ts +1 -1
- package/types/compiler/compile/nodes/ElseBlock.d.ts +4 -1
- package/types/compiler/compile/nodes/EventHandler.d.ts +4 -2
- package/types/compiler/compile/nodes/Fragment.d.ts +2 -1
- package/types/compiler/compile/nodes/Head.d.ts +4 -1
- package/types/compiler/compile/nodes/IfBlock.d.ts +5 -1
- package/types/compiler/compile/nodes/InlineComponent.d.ts +2 -1
- package/types/compiler/compile/nodes/KeyBlock.d.ts +5 -1
- package/types/compiler/compile/nodes/Let.d.ts +3 -1
- package/types/compiler/compile/nodes/PendingBlock.d.ts +5 -1
- package/types/compiler/compile/nodes/Slot.d.ts +2 -1
- package/types/compiler/compile/nodes/Text.d.ts +2 -1
- package/types/compiler/compile/nodes/Title.d.ts +3 -1
- package/types/compiler/compile/nodes/Transition.d.ts +4 -1
- package/types/compiler/compile/nodes/Window.d.ts +4 -1
- package/types/compiler/compile/nodes/shared/Expression.d.ts +2 -2
- package/types/compiler/compile/nodes/shared/Node.d.ts +2 -1
- package/types/compiler/compile/nodes/shared/is_contextual.d.ts +3 -0
- package/types/compiler/compile/render_dom/Block.d.ts +1 -0
- package/types/compiler/compile/render_dom/Renderer.d.ts +1 -0
- package/types/compiler/compile/render_dom/invalidate.d.ts +1 -0
- package/types/compiler/compile/render_dom/wrappers/EachBlock.d.ts +2 -2
- package/types/compiler/compile/utils/get_slot_data.d.ts +1 -1
- package/types/compiler/utils/string_with_sourcemap.d.ts +1 -1
- package/types/runtime/index.d.ts +1 -1
- package/types/runtime/internal/Component.d.ts +7 -4
- package/types/runtime/internal/dev.d.ts +63 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Svelte changelog
|
|
2
2
|
|
|
3
|
+
## 3.31.2
|
|
4
|
+
|
|
5
|
+
* Rework SSR store handling to subscribe and unsubscribe as in DOM mode ([#3375](https://github.com/sveltejs/svelte/issues/3375), [#3582](https://github.com/sveltejs/svelte/issues/3582), [#3636](https://github.com/sveltejs/svelte/issues/3636))
|
|
6
|
+
* Fix error when removing elements that are already transitioning out ([#5789](https://github.com/sveltejs/svelte/issues/5789), [#5808](https://github.com/sveltejs/svelte/issues/5808))
|
|
7
|
+
* Fix duplicate content race condition with `{#await}` blocks and out transitions ([#5815](https://github.com/sveltejs/svelte/issues/5815))
|
|
8
|
+
* Deconflict variable names used for contextual actions ([#5839](https://github.com/sveltejs/svelte/issues/5839))
|
|
9
|
+
|
|
10
|
+
## 3.31.1
|
|
11
|
+
|
|
12
|
+
* Fix scrolling of element with resize listener by making the `<iframe>` have `z-index: -1` ([#5448](https://github.com/sveltejs/svelte/issues/5448))
|
|
13
|
+
* Fix location of automatically declared reactive variables ([#5749](https://github.com/sveltejs/svelte/issues/5749))
|
|
14
|
+
* Warn when using `className` or `htmlFor` attributes ([#5777](https://github.com/sveltejs/svelte/issues/5777))
|
|
15
|
+
* Fix checkbox `bind:group` in keyed `{#each}` where the array can be reordered ([#5779](https://github.com/sveltejs/svelte/issues/5779))
|
|
16
|
+
* Fix checkbox `bind:group` in nested `{#each}` contexts ([#5811](https://github.com/sveltejs/svelte/issues/5811))
|
|
17
|
+
* Add graphics roles as known ARIA roles ([#5822](https://github.com/sveltejs/svelte/pull/5822))
|
|
18
|
+
* Fix local transitions if a parent has a cancelled outro transition ([#5829](https://github.com/sveltejs/svelte/issues/5829))
|
|
19
|
+
* Support `use:obj.some.deep.function` as actions ([#5844](https://github.com/sveltejs/svelte/issues/5844))
|
|
20
|
+
|
|
21
|
+
## 3.31.0
|
|
22
|
+
|
|
23
|
+
* Use a separate `SvelteComponentTyped` interface for typed components ([#5738](https://github.com/sveltejs/svelte/pull/5738))
|
|
24
|
+
|
|
25
|
+
## 3.30.1
|
|
26
|
+
|
|
27
|
+
* Support consuming decoded sourcemaps as created by the `source-map` library's `SourceMapGenerator` ([#5722](https://github.com/sveltejs/svelte/issues/5722))
|
|
28
|
+
* Actually export `hasContext` ([#5726](https://github.com/sveltejs/svelte/issues/5726))
|
|
29
|
+
|
|
3
30
|
## 3.30.0
|
|
4
31
|
|
|
5
32
|
* Add a typed `SvelteComponent` interface ([#5431](https://github.com/sveltejs/svelte/pull/5431))
|
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-21 [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
|
|