@swc/core 1.4.1 → 1.4.2-nightly-20240216.1
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 +29 -26
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/helpers)** Add `addInitializer` to field decorators ([#8619](https://github.com/swc-project/swc/issues/8619)) ([cd38ef3](https://github.com/swc-project/swc/commit/cd38ef39d6a3b3f1e31d5144e2e8c11bd9144239))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/react)** Validate pragma before parsing ([#8637](https://github.com/swc-project/swc/issues/8637)) ([5f1cf01](https://github.com/swc-project/swc/commit/5f1cf018237d12f786fc6deee48cae5d7d3d77de))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Remove unused parameters of arrow functions ([#8636](https://github.com/swc-project/swc/issues/8636)) ([8cd4813](https://github.com/swc-project/swc/commit/8cd481306755fb8cd2436dabceb06ea7cbccbb78))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(swc_core)** Expose ES linter ([#8635](https://github.com/swc-project/swc/issues/8635)) ([762959c](https://github.com/swc-project/swc/commit/762959c72d08994c2ad7c4f43405e591cc6af6eb))
|
|
21
|
+
|
|
22
|
+
### Testing
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/parser)** Add a test for `<<` ([#8634](https://github.com/swc-project/swc/issues/8634)) ([2c63b31](https://github.com/swc-project/swc/commit/2c63b3114382940e5fa96ddd32ed823a78657ec7))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/transforms)** Add a test for `reserved_words` pass ([#8638](https://github.com/swc-project/swc/issues/8638)) ([a0b77e0](https://github.com/swc-project/swc/commit/a0b77e06645f27a2ffb9f0635b2fa4c8db2fe105))
|
|
30
|
+
|
|
31
|
+
## [1.4.1] - 2024-02-13
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
8
37
|
- **(binding/types)** Update typings for `options.envs` to match implementation ([#8620](https://github.com/swc-project/swc/issues/8620)) ([2a115cf](https://github.com/swc-project/swc/commit/2a115cff716b3ac9216d03a4c88649fedff73850))
|
|
9
38
|
|
|
10
39
|
|
|
@@ -1420,41 +1449,15 @@
|
|
|
1420
1449
|
|
|
1421
1450
|
|
|
1422
1451
|
|
|
1423
|
-
- **(css/modules)** Preserve attr selectors used with `:global` ([#7670](https://github.com/swc-project/swc/issues/7670)) ([11b4679](https://github.com/swc-project/swc/commit/11b4679231bdfa8662fdcb1dade4dc1146f8e11d))
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
- **(es/minifier)** Only cast global `Infinity`/`undefined`/`NaN` ([#7684](https://github.com/swc-project/swc/issues/7684)) ([241c04a](https://github.com/swc-project/swc/commit/241c04ab4a2e7e7f34563fdc8a355f82c6ba03e8))
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
- **(es/minifier)** Drop line comments starting with `!` ([#7689](https://github.com/swc-project/swc/issues/7689)) ([951138c](https://github.com/swc-project/swc/commit/951138cd13339ca7b5cb5305203e466fcd4a0b0e))
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
1452
|
- **(es/minifier)** Abort seq inliner using visitor ([#7699](https://github.com/swc-project/swc/issues/7699)) ([a26dbce](https://github.com/swc-project/swc/commit/a26dbce9817c8f39c7d5857bb258298da274c6f3))
|
|
1433
1453
|
|
|
1434
1454
|
|
|
1435
1455
|
- **(es/typescript)** Fix handling of optional chaining ([#7660](https://github.com/swc-project/swc/issues/7660)) ([c017874](https://github.com/swc-project/swc/commit/c01787408522202f3c717c0ecfa8e00aedef9142))
|
|
1436
1456
|
|
|
1437
|
-
### Features
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
- **(css/parser)** Support `@starting-style` ([#7677](https://github.com/swc-project/swc/issues/7677)) ([cfb7b51](https://github.com/swc-project/swc/commit/cfb7b511eebe068b3c57f4540b90cb59c922d7e9))
|
|
1442
|
-
|
|
1443
1457
|
### Refactor
|
|
1444
1458
|
|
|
1445
1459
|
|
|
1446
1460
|
|
|
1447
|
-
- **(es/minifier)** Respect `toplevel` and `module` options ([#7671](https://github.com/swc-project/swc/issues/7671)) ([9893bd2](https://github.com/swc-project/swc/commit/9893bd2d43de60978dd28c44c8e4032170b11987))
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
1461
|
- **(es/minifier)** Respect top-level when invoking IIFE ([#7690](https://github.com/swc-project/swc/issues/7690)) ([bf72362](https://github.com/swc-project/swc/commit/bf723625b02204c4d2e9228d53ac53c9d41221a1))
|
|
1451
1462
|
|
|
1452
|
-
## [1.3.70] - 2023-07-18
|
|
1453
|
-
|
|
1454
|
-
### Bug Fixes
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
- **(es/minifier)** Do not reuse identifier used for import bindings ([#7639](https://github.com/swc-project/swc/issues/7639)) ([a65be14](https://github.com/swc-project/swc/commit/a65be14a00f41e9b0b4439c31b49febeefd1f845))
|
|
1459
|
-
|
|
1460
1463
|
<!-- generated by git-cliff -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.4.1",
|
|
3
|
+
"version": "1.4.2-nightly-20240216.1",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -173,15 +173,15 @@
|
|
|
173
173
|
"@swc/types": "^0.1.5"
|
|
174
174
|
},
|
|
175
175
|
"optionalDependencies": {
|
|
176
|
-
"@swc/core-darwin-x64": "1.4.1",
|
|
177
|
-
"@swc/core-win32-x64-msvc": "1.4.1",
|
|
178
|
-
"@swc/core-linux-x64-gnu": "1.4.1",
|
|
179
|
-
"@swc/core-linux-x64-musl": "1.4.1",
|
|
180
|
-
"@swc/core-win32-ia32-msvc": "1.4.1",
|
|
181
|
-
"@swc/core-linux-arm-gnueabihf": "1.4.1",
|
|
182
|
-
"@swc/core-linux-arm64-gnu": "1.4.1",
|
|
183
|
-
"@swc/core-darwin-arm64": "1.4.1",
|
|
184
|
-
"@swc/core-linux-arm64-musl": "1.4.1",
|
|
185
|
-
"@swc/core-win32-arm64-msvc": "1.4.1"
|
|
176
|
+
"@swc/core-darwin-x64": "1.4.2-nightly-20240216.1",
|
|
177
|
+
"@swc/core-win32-x64-msvc": "1.4.2-nightly-20240216.1",
|
|
178
|
+
"@swc/core-linux-x64-gnu": "1.4.2-nightly-20240216.1",
|
|
179
|
+
"@swc/core-linux-x64-musl": "1.4.2-nightly-20240216.1",
|
|
180
|
+
"@swc/core-win32-ia32-msvc": "1.4.2-nightly-20240216.1",
|
|
181
|
+
"@swc/core-linux-arm-gnueabihf": "1.4.2-nightly-20240216.1",
|
|
182
|
+
"@swc/core-linux-arm64-gnu": "1.4.2-nightly-20240216.1",
|
|
183
|
+
"@swc/core-darwin-arm64": "1.4.2-nightly-20240216.1",
|
|
184
|
+
"@swc/core-linux-arm64-musl": "1.4.2-nightly-20240216.1",
|
|
185
|
+
"@swc/core-win32-arm64-msvc": "1.4.2-nightly-20240216.1"
|
|
186
186
|
}
|
|
187
187
|
}
|