svelte 3.43.1 → 3.44.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 +20 -0
- package/README.md +1 -1
- package/compiler.js +69 -47
- package/compiler.js.map +1 -1
- package/compiler.mjs +69 -47
- package/compiler.mjs.map +1 -1
- package/internal/index.js +1 -1
- package/internal/index.mjs +1 -1
- package/package.json +17 -4
- package/types/compiler/compile/utils/check_enable_sourcemap.d.ts +2 -0
- package/types/compiler/interfaces.d.ts +5 -0
- package/types/compiler/preprocess/types.d.ts +3 -3
- package/types/compiler/utils/patterns.d.ts +2 -0
- package/types/runtime/transition/index.d.ts +4 -2
package/internal/index.js
CHANGED
|
@@ -1898,7 +1898,7 @@ class SvelteComponent {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
function dispatch_dev(type, detail) {
|
|
1901
|
-
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.
|
|
1901
|
+
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.44.2' }, detail), true));
|
|
1902
1902
|
}
|
|
1903
1903
|
function append_dev(target, node) {
|
|
1904
1904
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
package/internal/index.mjs
CHANGED
|
@@ -1896,7 +1896,7 @@ class SvelteComponent {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
1898
1898
|
function dispatch_dev(type, detail) {
|
|
1899
|
-
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.
|
|
1899
|
+
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.44.2' }, detail), true));
|
|
1900
1900
|
}
|
|
1901
1901
|
function append_dev(target, node) {
|
|
1902
1902
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.2",
|
|
4
4
|
"description": "Cybernetically enhanced web apps",
|
|
5
5
|
"module": "index.mjs",
|
|
6
6
|
"main": "index",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
24
|
".": {
|
|
25
|
+
"types": "./types/runtime/index.d.ts",
|
|
26
|
+
"browser": {
|
|
27
|
+
"import": "./index.mjs",
|
|
28
|
+
"require": "./index.js"
|
|
29
|
+
},
|
|
25
30
|
"node": {
|
|
26
31
|
"import": "./ssr.mjs",
|
|
27
32
|
"require": "./ssr.js"
|
|
@@ -30,22 +35,27 @@
|
|
|
30
35
|
"require": "./index.js"
|
|
31
36
|
},
|
|
32
37
|
"./compiler": {
|
|
38
|
+
"types": "./types/compiler/index.d.ts",
|
|
33
39
|
"import": "./compiler.mjs",
|
|
34
40
|
"require": "./compiler.js"
|
|
35
41
|
},
|
|
36
42
|
"./animate": {
|
|
43
|
+
"types": "./types/runtime/animate/index.d.ts",
|
|
37
44
|
"import": "./animate/index.mjs",
|
|
38
45
|
"require": "./animate/index.js"
|
|
39
46
|
},
|
|
40
47
|
"./easing": {
|
|
48
|
+
"types": "./types/runtime/easing/index.d.ts",
|
|
41
49
|
"import": "./easing/index.mjs",
|
|
42
50
|
"require": "./easing/index.js"
|
|
43
51
|
},
|
|
44
52
|
"./internal": {
|
|
53
|
+
"types": "./types/runtime/internal/index.d.ts",
|
|
45
54
|
"import": "./internal/index.mjs",
|
|
46
55
|
"require": "./internal/index.js"
|
|
47
56
|
},
|
|
48
57
|
"./motion": {
|
|
58
|
+
"types": "./types/runtime/motion/index.d.ts",
|
|
49
59
|
"import": "./motion/index.mjs",
|
|
50
60
|
"require": "./motion/index.js"
|
|
51
61
|
},
|
|
@@ -53,14 +63,17 @@
|
|
|
53
63
|
"require": "./register.js"
|
|
54
64
|
},
|
|
55
65
|
"./store": {
|
|
66
|
+
"types": "./types/runtime/store/index.d.ts",
|
|
56
67
|
"import": "./store/index.mjs",
|
|
57
68
|
"require": "./store/index.js"
|
|
58
69
|
},
|
|
59
70
|
"./transition": {
|
|
71
|
+
"types": "./types/runtime/transition/index.d.ts",
|
|
60
72
|
"import": "./transition/index.mjs",
|
|
61
73
|
"require": "./transition/index.js"
|
|
62
74
|
},
|
|
63
75
|
"./ssr": {
|
|
76
|
+
"types": "./types/runtime/index.d.ts",
|
|
64
77
|
"import": "./ssr.mjs",
|
|
65
78
|
"require": "./ssr.js"
|
|
66
79
|
}
|
|
@@ -111,7 +124,7 @@
|
|
|
111
124
|
"@rollup/plugin-sucrase": "^3.1.0",
|
|
112
125
|
"@rollup/plugin-typescript": "^2.0.1",
|
|
113
126
|
"@rollup/plugin-virtual": "^2.0.0",
|
|
114
|
-
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.
|
|
127
|
+
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.8.0",
|
|
115
128
|
"@types/mocha": "^7.0.0",
|
|
116
129
|
"@types/node": "^8.10.53",
|
|
117
130
|
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
@@ -119,7 +132,7 @@
|
|
|
119
132
|
"acorn": "^8.4.1",
|
|
120
133
|
"agadoo": "^1.1.0",
|
|
121
134
|
"c8": "^5.0.1",
|
|
122
|
-
"code-red": "^0.2.
|
|
135
|
+
"code-red": "^0.2.3",
|
|
123
136
|
"codecov": "^3.5.0",
|
|
124
137
|
"css-tree": "^1.1.2",
|
|
125
138
|
"eslint": "^7.32.0",
|
|
@@ -133,7 +146,7 @@
|
|
|
133
146
|
"magic-string": "^0.25.3",
|
|
134
147
|
"mocha": "^7.0.0",
|
|
135
148
|
"periscopic": "^3.0.4",
|
|
136
|
-
"puppeteer": "^2.
|
|
149
|
+
"puppeteer": "^2.0.0",
|
|
137
150
|
"rollup": "^1.27.14",
|
|
138
151
|
"source-map": "^0.7.3",
|
|
139
152
|
"source-map-support": "^0.5.13",
|
|
@@ -101,6 +101,10 @@ export interface Warning {
|
|
|
101
101
|
toString: () => string;
|
|
102
102
|
}
|
|
103
103
|
export declare type ModuleFormat = 'esm' | 'cjs';
|
|
104
|
+
export declare type EnableSourcemap = boolean | {
|
|
105
|
+
js: boolean;
|
|
106
|
+
css: boolean;
|
|
107
|
+
};
|
|
104
108
|
export declare type CssHashGetter = (args: {
|
|
105
109
|
name: string;
|
|
106
110
|
filename: string | undefined;
|
|
@@ -115,6 +119,7 @@ export interface CompileOptions {
|
|
|
115
119
|
errorMode?: 'throw' | 'warn';
|
|
116
120
|
varsReport?: 'full' | 'strict' | false;
|
|
117
121
|
sourcemap?: object | string;
|
|
122
|
+
enableSourcemap?: EnableSourcemap;
|
|
118
123
|
outputFilename?: string;
|
|
119
124
|
cssOutputFilename?: string;
|
|
120
125
|
sveltePath?: string;
|
|
@@ -6,8 +6,8 @@ export interface Processed {
|
|
|
6
6
|
}
|
|
7
7
|
export declare type MarkupPreprocessor = (options: {
|
|
8
8
|
content: string;
|
|
9
|
-
filename
|
|
10
|
-
}) => Processed | Promise<Processed>;
|
|
9
|
+
filename?: string;
|
|
10
|
+
}) => Processed | void | Promise<Processed | void>;
|
|
11
11
|
export declare type Preprocessor = (options: {
|
|
12
12
|
/**
|
|
13
13
|
* The script/style tag content
|
|
@@ -19,7 +19,7 @@ export declare type Preprocessor = (options: {
|
|
|
19
19
|
*/
|
|
20
20
|
markup: string;
|
|
21
21
|
filename?: string;
|
|
22
|
-
}) => Processed | Promise<Processed>;
|
|
22
|
+
}) => Processed | void | Promise<Processed | void>;
|
|
23
23
|
export interface PreprocessorGroup {
|
|
24
24
|
markup?: MarkupPreprocessor;
|
|
25
25
|
style?: Preprocessor;
|
|
@@ -59,6 +59,8 @@ export interface CrossfadeParams {
|
|
|
59
59
|
}
|
|
60
60
|
export declare function crossfade({ fallback, ...defaults }: CrossfadeParams & {
|
|
61
61
|
fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
|
|
62
|
-
}): (
|
|
62
|
+
}): [(node: Element, params: CrossfadeParams & {
|
|
63
63
|
key: any;
|
|
64
|
-
}) => () => TransitionConfig
|
|
64
|
+
}) => () => TransitionConfig, (node: Element, params: CrossfadeParams & {
|
|
65
|
+
key: any;
|
|
66
|
+
}) => () => TransitionConfig];
|