svelte 3.46.3 → 3.46.4
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 +9 -0
- package/compiler.js +219 -247
- package/compiler.js.map +1 -1
- package/compiler.mjs +219 -247
- package/compiler.mjs.map +1 -1
- package/internal/index.js +1 -1
- package/internal/index.mjs +1 -1
- package/package.json +2 -8
- package/types/compiler/compile/nodes/Text.d.ts +2 -0
- package/types/compiler/interfaces.d.ts +3 -3
- package/types/compiler/utils/push_array.d.ts +8 -0
package/internal/index.js
CHANGED
|
@@ -1969,7 +1969,7 @@ class SvelteComponent {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
1971
|
function dispatch_dev(type, detail) {
|
|
1972
|
-
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.46.
|
|
1972
|
+
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.46.4' }, detail), true));
|
|
1973
1973
|
}
|
|
1974
1974
|
function append_dev(target, node) {
|
|
1975
1975
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
package/internal/index.mjs
CHANGED
|
@@ -1967,7 +1967,7 @@ class SvelteComponent {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
1969
|
function dispatch_dev(type, detail) {
|
|
1970
|
-
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.46.
|
|
1970
|
+
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.46.4' }, detail), true));
|
|
1971
1971
|
}
|
|
1972
1972
|
function append_dev(target, node) {
|
|
1973
1973
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte",
|
|
3
|
-
"version": "3.46.
|
|
3
|
+
"version": "3.46.4",
|
|
4
4
|
"description": "Cybernetically enhanced web apps",
|
|
5
5
|
"module": "index.mjs",
|
|
6
6
|
"main": "index",
|
|
@@ -86,10 +86,6 @@
|
|
|
86
86
|
"test": "mocha --exit",
|
|
87
87
|
"test:unit": "mocha --require sucrase/register --recursive src/**/__test__.ts --exit",
|
|
88
88
|
"quicktest": "mocha",
|
|
89
|
-
"precoverage": "c8 mocha",
|
|
90
|
-
"coverage": "c8 report --reporter=text-lcov > coverage.lcov && c8 report --reporter=html",
|
|
91
|
-
"codecov": "codecov",
|
|
92
|
-
"precodecov": "npm run coverage",
|
|
93
89
|
"build": "rollup -c && npm run tsd",
|
|
94
90
|
"prepare": "npm run build",
|
|
95
91
|
"dev": "rollup -cw",
|
|
@@ -131,9 +127,7 @@
|
|
|
131
127
|
"@typescript-eslint/parser": "^4.31.2",
|
|
132
128
|
"acorn": "^8.4.1",
|
|
133
129
|
"agadoo": "^1.1.0",
|
|
134
|
-
"
|
|
135
|
-
"code-red": "^0.2.4",
|
|
136
|
-
"codecov": "^3.5.0",
|
|
130
|
+
"code-red": "^0.2.5",
|
|
137
131
|
"css-tree": "^1.1.2",
|
|
138
132
|
"eslint": "^7.32.0",
|
|
139
133
|
"eslint-plugin-import": "^2.24.2",
|
|
@@ -91,9 +91,9 @@ export interface Style extends BaseNode {
|
|
|
91
91
|
}
|
|
92
92
|
export interface Ast {
|
|
93
93
|
html: TemplateNode;
|
|
94
|
-
css
|
|
95
|
-
instance
|
|
96
|
-
module
|
|
94
|
+
css?: Style;
|
|
95
|
+
instance?: Script;
|
|
96
|
+
module?: Script;
|
|
97
97
|
}
|
|
98
98
|
export interface Warning {
|
|
99
99
|
start?: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pushes all `items` into `array` using `push`, therefore mutating the array.
|
|
3
|
+
* We do this for memory and perf reasons, and because `array.push(...items)` would
|
|
4
|
+
* run into a "max call stack size exceeded" error with too many items (~65k).
|
|
5
|
+
* @param array
|
|
6
|
+
* @param items
|
|
7
|
+
*/
|
|
8
|
+
export declare function push_array<T>(array: T[], items: T[]): void;
|