@swc/core 1.2.206 → 1.2.207
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 +38 -0
- package/package.json +14 -14
- package/types.d.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,38 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/compat)** Handle classes with accessors and a method with the same name (#5039) ([25bd520](https://github.com/swc-project/swc/commit/25bd5206205d76c1ff93e67b67b3aeca551113d6))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/modules)** Handle module references in binding idents (#5055) ([e13364f](https://github.com/swc-project/swc/commit/e13364f976e0c10f879fa0f9678c617a713d052d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(node-swc/types)** Add `nodenext` config type (#5044) ([7d4e6be](https://github.com/swc-project/swc/commit/7d4e6bef96242d6506fb0f51c7002f7bbc84af94))
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/lints)** Report an error for reassignment to import binding (#5033) ([376c4e1](https://github.com/swc-project/swc/commit/376c4e11af5aa8c0e5bc5900f6168893644473b7))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/minifier)** Handle pure annotations on member expressions (#5050) ([a15bb48](https://github.com/swc-project/swc/commit/a15bb485241b2a5fb2ecbbd56558dcb5915b8ff4))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/modules)** Optimize a dynamic import with a literal path (#5049) ([2cc229e](https://github.com/swc-project/swc/commit/2cc229e6fb1d0b439e1fe7661be481494f57efa9))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(html/minifier)** Allow compressing additional attributes (#5036) ([55e0ea3](https://github.com/swc-project/swc/commit/55e0ea32940ff34de73e7eb4b8c999b58d798272))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(html/minifier)** Add `normalize_attributes` for disabling normalization (#5045) ([0836d29](https://github.com/swc-project/swc/commit/0836d29913e51846a3361837442c18e2011bec71))
|
|
33
|
+
|
|
34
|
+
## [1.2.206] - 2022-06-27
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
8
40
|
- **(es/compat)** Fix name conflict of `Array` (#5034) ([04fc1cb](https://github.com/swc-project/swc/commit/04fc1cb429b274e72bb2a939f4aaa102c158121a))
|
|
9
41
|
|
|
10
42
|
|
|
@@ -22,6 +54,12 @@
|
|
|
22
54
|
|
|
23
55
|
- **(html/minifier)** Improve smart mode (#5004) ([9202ff9](https://github.com/swc-project/swc/commit/9202ff9700cbea5714a65746d7375fa41f8bb140))
|
|
24
56
|
|
|
57
|
+
### Refactor
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- **(es/module)** Implement new module transformer (#4758) ([fa68cbd](https://github.com/swc-project/swc/commit/fa68cbd74ad2b36c0f1aaec563320114d5603cae))
|
|
62
|
+
|
|
25
63
|
## [1.2.205] - 2022-06-24
|
|
26
64
|
|
|
27
65
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.207",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -135,18 +135,18 @@
|
|
|
135
135
|
"url": "https://opencollective.com/swc"
|
|
136
136
|
},
|
|
137
137
|
"optionalDependencies": {
|
|
138
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
139
|
-
"@swc/core-darwin-x64": "1.2.
|
|
140
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
141
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
142
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
143
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
144
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
145
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
146
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
147
|
-
"@swc/core-android-arm64": "1.2.
|
|
148
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
149
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
150
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
138
|
+
"@swc/core-win32-x64-msvc": "1.2.207",
|
|
139
|
+
"@swc/core-darwin-x64": "1.2.207",
|
|
140
|
+
"@swc/core-linux-x64-gnu": "1.2.207",
|
|
141
|
+
"@swc/core-linux-x64-musl": "1.2.207",
|
|
142
|
+
"@swc/core-freebsd-x64": "1.2.207",
|
|
143
|
+
"@swc/core-win32-ia32-msvc": "1.2.207",
|
|
144
|
+
"@swc/core-linux-arm64-gnu": "1.2.207",
|
|
145
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.207",
|
|
146
|
+
"@swc/core-darwin-arm64": "1.2.207",
|
|
147
|
+
"@swc/core-android-arm64": "1.2.207",
|
|
148
|
+
"@swc/core-linux-arm64-musl": "1.2.207",
|
|
149
|
+
"@swc/core-win32-arm64-msvc": "1.2.207",
|
|
150
|
+
"@swc/core-android-arm-eabi": "1.2.207"
|
|
151
151
|
}
|
|
152
152
|
}
|
package/types.d.ts
CHANGED
|
@@ -666,7 +666,7 @@ export interface GlobalPassOption {
|
|
|
666
666
|
*/
|
|
667
667
|
envs?: string[];
|
|
668
668
|
}
|
|
669
|
-
export declare type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig;
|
|
669
|
+
export declare type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig;
|
|
670
670
|
export interface BaseModuleConfig {
|
|
671
671
|
/**
|
|
672
672
|
* By default, when using exports with babel a non-enumerable `__esModule`
|
|
@@ -739,6 +739,9 @@ export interface BaseModuleConfig {
|
|
|
739
739
|
export interface Es6Config extends BaseModuleConfig {
|
|
740
740
|
type: "es6";
|
|
741
741
|
}
|
|
742
|
+
export interface NodeNextConfig extends BaseModuleConfig {
|
|
743
|
+
type: "nodenext";
|
|
744
|
+
}
|
|
742
745
|
export interface CommonJsConfig extends BaseModuleConfig {
|
|
743
746
|
type: "commonjs";
|
|
744
747
|
}
|