@swc/core 1.2.136 → 1.2.137
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 +101 -0
- package/package.json +17 -15
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,107 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(css)** Fix parsing of `@page` at-rule (#3356) ([4853821](https://github.com/swc-project/swc/commit/4853821d004f366c89c1b9122786e26ff923df05))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(css/ast)** Fix type definitions for `@document` at-rule (#3468) ([df08e4c](https://github.com/swc-project/swc/commit/df08e4cfd7ed76fcfd00cc8245b13cc328513938))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(css/parser)** Report errors of at-rules (#3461) ([e732250](https://github.com/swc-project/swc/commit/e732250cdf74c47faf5321b650a9cea6bd1ab4d4))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/compat)** Handle private fields in nested classes (#3431) ([01500a5](https://github.com/swc-project/swc/commit/01500a54e04b88d08edff09f218166c862763657))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/compat)** Handle initializer hole in array patterns (#3442) ([3bb2a6c](https://github.com/swc-project/swc/commit/3bb2a6ccca4e78412f80aea4fe6c22d04d345a00))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/compat)** Fix legacy decorator pass (#3459) ([4f5e87b](https://github.com/swc-project/swc/commit/4f5e87b66b42a5672e00edcfa22234f1cde79580))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/fixer)** Handle more expressions in the super class position (#3452) ([032f397](https://github.com/swc-project/swc/commit/032f397b52415378ede985be35713a3482093958))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/minifier)** Fix `codemirror` (#3462) ([5812c3c](https://github.com/swc-project/swc/commit/5812c3c10fc224fbb33a17302491c5f7c2bd0a0b))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/minifier)** Fix `mapbox` (#3463) ([0371c41](https://github.com/swc-project/swc/commit/0371c41b7cb9d505705a956b84b8e4dbe626a17c))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/modules)** Allow using a dynamic import with an expression from another import (#3450) ([745604b](https://github.com/swc-project/swc/commit/745604b26d9151732d2572307dbeb22b2d10ca66))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/parser)** Fix parsing of decorators (#3449) ([5a806c5](https://github.com/swc-project/swc/commit/5a806c5b817c63b7c4f7730b538831b1cea62711))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(es/resolver)** Fix handling of for statements (#3446) ([2af5096](https://github.com/swc-project/swc/commit/2af5096e83229df1e5ccfe62659360c0392ef0ba))
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/ast)** Improve types related to `url` tokens (#3444) ([49564d9](https://github.com/swc-project/swc/commit/49564d9b5d627b38b2faa63b55076cb55ba8d1a7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(css/codegen)** Implement minification of hex colors (#3453) ([eeedd71](https://github.com/swc-project/swc/commit/eeedd71705dc9b94363ec4e002ec647a3addba2d))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(css/codegen)** Implement minification of identifiers (#3466) ([81850c2](https://github.com/swc-project/swc/commit/81850c2b30693061428569c9a6ebd4a3f07d7683))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(css/codegen)** Improve minification for page rules (#3467) ([0ca036a](https://github.com/swc-project/swc/commit/0ca036a962042727e362b91748aa10547c87fc63))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(css/lexer)** Implement error recovery for functions (#3445) ([f1410fc](https://github.com/swc-project/swc/commit/f1410fc09b4838fa8113c9b2041f58d7d752c519))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/lints)** Implement `prefer-regex-literals` (#3399) ([8166275](https://github.com/swc-project/swc/commit/81662751666b5d49458ab8dad15f3c73e89ef2f6))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(es/lints)** Implement linter for quotes of string literals (#3443) ([5d6143a](https://github.com/swc-project/swc/commit/5d6143a53c03d0caefc76ea54d6975126984d84d))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(es/parser)** Add an option to allow `super` outside of class methods (#3427) ([cc185f0](https://github.com/swc-project/swc/commit/cc185f01cb249634d144830db702a281674f48da))
|
|
69
|
+
|
|
70
|
+
### Miscellaneous Tasks
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/lints)** Fix CI ([b06a5ab](https://github.com/swc-project/swc/commit/b06a5abe5868c3652fe89927acd3a56ea437b113))
|
|
75
|
+
|
|
76
|
+
### Refactor
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(css/ast)** Refactor types related to `@keyframes` at-rule (#3441) ([5c1b021](https://github.com/swc-project/swc/commit/5c1b02182df9ee2f59b8b83f58b5d0b1ae04af35))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- **(css/ast)** Change AST for `!important` (#3440) ([38879de](https://github.com/swc-project/swc/commit/38879de8deec6a45882252104fdcbb33cc3116a9))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **(css/ast)** Refactor types related to selectors (#3460) ([cd87d96](https://github.com/swc-project/swc/commit/cd87d965f35155748ec0e3b22deae3d8a5ebdb5b))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(css/ast)** Remove unused types (#3465) ([69660fd](https://github.com/swc-project/swc/commit/69660fd161e0cce5eca7b7f5d436d4bb67dea64f))
|
|
90
|
+
|
|
91
|
+
### Testing
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(css/parser)** Add more tests for the selector parser (#3455) ([479b509](https://github.com/swc-project/swc/commit/479b50984513296439af2814f990eb88486b82d5))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- **(es)** Update tsc test suite (#3448) ([8b7c38c](https://github.com/swc-project/swc/commit/8b7c38c80ceeb8fc41ad4c60eb427dab9c06ba6e))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **(es/parser)** Fix crlf (#3451) ([397a96a](https://github.com/swc-project/swc/commit/397a96a1cf4a0d540db6e766890ed874f7818a65))
|
|
102
|
+
|
|
103
|
+
## [1.2.136] - 2022-02-03
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
8
109
|
- **(css)** Allow empty `@media` at-rule (#3404) ([75a14f9](https://github.com/swc-project/swc/commit/75a14f98b7370226115ee24eec6eb8c802bd4837))
|
|
9
110
|
|
|
10
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.137",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -47,21 +47,23 @@
|
|
|
47
47
|
"registry": "https://registry.npmjs.org/",
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"dependencies": {
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"ts-node": "^10.4.0"
|
|
52
|
+
},
|
|
51
53
|
"optionalDependencies": {
|
|
52
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
53
|
-
"@swc/core-darwin-x64": "1.2.
|
|
54
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
55
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
56
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
57
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
58
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
59
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
60
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
61
|
-
"@swc/core-android-arm64": "1.2.
|
|
62
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
63
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
64
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
54
|
+
"@swc/core-win32-x64-msvc": "1.2.137",
|
|
55
|
+
"@swc/core-darwin-x64": "1.2.137",
|
|
56
|
+
"@swc/core-linux-x64-gnu": "1.2.137",
|
|
57
|
+
"@swc/core-linux-x64-musl": "1.2.137",
|
|
58
|
+
"@swc/core-freebsd-x64": "1.2.137",
|
|
59
|
+
"@swc/core-win32-ia32-msvc": "1.2.137",
|
|
60
|
+
"@swc/core-linux-arm64-gnu": "1.2.137",
|
|
61
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.137",
|
|
62
|
+
"@swc/core-darwin-arm64": "1.2.137",
|
|
63
|
+
"@swc/core-android-arm64": "1.2.137",
|
|
64
|
+
"@swc/core-linux-arm64-musl": "1.2.137",
|
|
65
|
+
"@swc/core-win32-arm64-msvc": "1.2.137",
|
|
66
|
+
"@swc/core-android-arm-eabi": "1.2.137"
|
|
65
67
|
},
|
|
66
68
|
"types": "./index.d.ts",
|
|
67
69
|
"scripts": {
|