@swc/core 1.2.176 → 1.2.179

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.
@@ -0,0 +1,62 @@
1
+ # Bundler cache files
2
+ .cache/
3
+
4
+ # Generated
5
+ CHANGELOG.md
6
+ target/
7
+ node_modules/
8
+
9
+ # Space sensitive
10
+ crates/jsdoc/tests/
11
+ crates/swc/tests/errors/
12
+ crates/swc/tests/projects/
13
+ crates/swc/tests/serde/
14
+ crates/swc_css_codegen/tests/
15
+ crates/swc_css_lints/tests/
16
+ crates/swc_css_minifier/tests/
17
+ crates/swc_css_parser/tests/
18
+ crates/swc_css_prefixer/tests/
19
+ crates/swc_ecma_codegen/tests/
20
+ crates/swc_ecma_lints/tests/
21
+ crates/swc_ecma_parser/tests/
22
+ crates/swc_estree_compat/tests/
23
+ crates/swc_html_codegen/tests/
24
+ crates/swc_html_minifier/tests/
25
+ crates/swc_html_parser/tests/
26
+ crates/swc_webpack_ast/tests/
27
+
28
+ # Generated by testing system
29
+ output/
30
+ output.js
31
+ output.full.js
32
+ output.mjs
33
+ index.g.js
34
+ output.json
35
+ output.ts
36
+ output.css
37
+ output.min.css
38
+ output.html
39
+ output.min.html
40
+
41
+ # Generated
42
+ crates/swc_ecma_preset_env/data
43
+ crates/swc_ecma_preset_env/**/*.json
44
+ crates/swc/tests/tsc-references
45
+ scripts/npm
46
+
47
+ # Downloaded
48
+ benches/
49
+
50
+ # TODO: Enable formatting
51
+ helpers/
52
+ packages/swc-helpers
53
+ node-swc/__tests__
54
+ node-swc/src
55
+ node-swc/tests
56
+ crates/swc/tests/srcmap/
57
+ crates/swc/tests/stacktrace/
58
+
59
+
60
+ # git submodules
61
+ crates/swc_ecma_parser/tests/test262-parser
62
+ crates/swc_html_parser/tests/html5lib-tests
@@ -0,0 +1 @@
1
+ {}
package/CHANGELOG.md CHANGED
@@ -5,6 +5,162 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/minifier)** Distinguish `raw` and `cooked` while joining template literals (#4559) ([f9b6016](https://github.com/swc-project/swc/commit/f9b6016d4b990032505c0dbb5b5bf82949c7d74d))
9
+
10
+
11
+ - **(es/minifier)** Fix handling of template literals (#4563) ([920d9a7](https://github.com/swc-project/swc/commit/920d9a76784b6e2ac9ccbfd826f2253410bf2be5))
12
+
13
+
14
+ - **(html/parser)** Fix for noah's ark clause (#4558) ([7ef6372](https://github.com/swc-project/swc/commit/7ef637263e57b9c995de1a847606f878991054fd))
15
+
16
+
17
+ - **(html/parser)** Fix adoption agency algorithm (#4552) ([d6e4885](https://github.com/swc-project/swc/commit/d6e48850b65ada6dae4da75347c6669161cb036a))
18
+
19
+ ### Documentation
20
+
21
+
22
+
23
+ - **(es/resolver)** Add docs for top-level mark (#4560) ([13cc228](https://github.com/swc-project/swc/commit/13cc2282627f852d5b114332a83816de2a47742b))
24
+
25
+ ### Features
26
+
27
+
28
+
29
+ - **(es/minifier)** Drop vars using sequential inliner (#4547) ([c5b4ef4](https://github.com/swc-project/swc/commit/c5b4ef4377874d8659d5b4e6c4099e1eac6c40f1))
30
+
31
+
32
+ - **(es/minifier)** Remove duplicate control flow in nested blocks (#4569) ([b3b6fd4](https://github.com/swc-project/swc/commit/b3b6fd448c35fc25cd99d210c684e90c68da0b04))
33
+
34
+ ### Refactor
35
+
36
+
37
+
38
+ - **(plugin)** Align deps (#4568) ([846a319](https://github.com/swc-project/swc/commit/846a31919eba58b7b14788ccc26b0ff23e488044))
39
+
40
+ ## [1.2.178] - 2022-05-07
41
+
42
+ ### Bug Fixes
43
+
44
+
45
+
46
+ - **(es/compat)** Memorize computed props in logical assignment (#4525) ([2e74787](https://github.com/swc-project/swc/commit/2e7478787040645ef9cd162ef18e948c112c93d8))
47
+
48
+
49
+ - **(es/minifier)** Respect `keepClassNames` for class expressions (#4536) ([3d5d234](https://github.com/swc-project/swc/commit/3d5d234047bb7e3f76189fa586030014c7c29f46))
50
+
51
+
52
+ - **(es/minifier)** Skip getter/setter when collapsing vars (#4557) ([5d3a01a](https://github.com/swc-project/swc/commit/5d3a01ad352fcea33db46de3b144950944b18b62))
53
+
54
+
55
+ - **(es/modules)** Preserve extensions (#4524) ([f3b262e](https://github.com/swc-project/swc/commit/f3b262e340cdd5aaa5ce4008936e3ba696f3dc06))
56
+
57
+
58
+ - **(es/parser)** Revert #4067 (#4540) ([2831059](https://github.com/swc-project/swc/commit/28310596a6c2c62cab3e5124c9b68439e152ba18))
59
+
60
+
61
+ - **(es/parser)** Revert #4287 (#4542) ([e2fde1a](https://github.com/swc-project/swc/commit/e2fde1a9a7ea702439666fdee6b2a378e70d9a7e))
62
+
63
+
64
+ - **(html/lexer)** Fix lexing of numeric characters (#4544) ([6980381](https://github.com/swc-project/swc/commit/698038107de8f7ec9ee2b2981b4137d47182a022))
65
+
66
+
67
+ - **(html/parser)** Fix a bug related to parsing foreign elements (#4527) ([2f6f8fa](https://github.com/swc-project/swc/commit/2f6f8fa717c4a969221958bc2c70a3f68590d93b))
68
+
69
+
70
+ - **(html/parser)** Fix parsing of cdata in foreign context (#4531) ([5dc9376](https://github.com/swc-project/swc/commit/5dc9376a4ba4d449d1c3f2755a6aca6a77919f6f))
71
+
72
+
73
+ - **(html/parser)** Fix a bug with optional `li` (#4526) ([6310eab](https://github.com/swc-project/swc/commit/6310eab96652bbe747eaf1b467894b2dbacfab98))
74
+
75
+
76
+ - **(html/parser)** Fix parsing of comments in `textarea` (#4530) ([79090e1](https://github.com/swc-project/swc/commit/79090e1b2abce3dc396f25a5851637c675b6c87e))
77
+
78
+
79
+ - **(html/parser)** Fix parsing of `nobr` (#4535) ([e6042a5](https://github.com/swc-project/swc/commit/e6042a5e692c785bb12058f1eb63e728f3191cef))
80
+
81
+
82
+ - **(html/parser)** Fix parsing of cdata (#4537) ([07cf28a](https://github.com/swc-project/swc/commit/07cf28a168c0e4619c3293ece180922d5e9a632d))
83
+
84
+
85
+ - **(html/parser)** Fix parsing of newline in `textarea` (#4543) ([dd40e7b](https://github.com/swc-project/swc/commit/dd40e7bf69b355f00b68819785365603bc7634a2))
86
+
87
+
88
+ - **(html/parser)** Fix support for document mode (#4539) ([e11ee88](https://github.com/swc-project/swc/commit/e11ee88ea09ef1a67e2a2e063e91ce1df40ca8fb))
89
+
90
+ ### Features
91
+
92
+
93
+
94
+ - **(plugin)** Make plugin source map api use `SourceMapper` (#4541) ([10f903d](https://github.com/swc-project/swc/commit/10f903dd3952286f84c0957d96b9c43236938de5))
95
+
96
+ ### Miscellaneous Tasks
97
+
98
+
99
+
100
+ - **(repo)** Configure `prettier` (#4523) ([a6d404a](https://github.com/swc-project/swc/commit/a6d404a8c28ab82f15d9f7fbd849e27713a49872))
101
+
102
+ ### Refactor
103
+
104
+
105
+
106
+ - **(html/parser)** Cleanup (#4545) ([446172f](https://github.com/swc-project/swc/commit/446172f14575b56d36ef72175c16fa05f374736c))
107
+
108
+ ### Testing
109
+
110
+
111
+
112
+ - **(es/minifier)** Categorize more tests (#4538) ([3d3e3bb](https://github.com/swc-project/swc/commit/3d3e3bb1d27ba4a75464c925d8fe03f703902e49))
113
+
114
+
115
+ - **(es/minifier)** Ignore difference of parens (#4546) ([b0efd00](https://github.com/swc-project/swc/commit/b0efd00f38edb7ecb87c53590821d908316cfcba))
116
+
117
+
118
+ - **(html/parser)** Add integration tests from html5lib-test (#4517) ([a4a815b](https://github.com/swc-project/swc/commit/a4a815b28815b1c875c73f0a153fb219558e26ce))
119
+
120
+ ### Build
121
+
122
+
123
+
124
+ - **(plugin)** Update `swc_plugin_proxy` (#4551) ([b5a2033](https://github.com/swc-project/swc/commit/b5a203399455304f3be7941b751e8a9847b0bb97))
125
+
126
+ ## [1.2.177] - 2022-05-04
127
+
128
+ ### Bug Fixes
129
+
130
+
131
+
132
+ - **(html/parser)** Fix a bug of unwrapping element without parent (#4505) ([597c0c6](https://github.com/swc-project/swc/commit/597c0c672a9111b1a0b6e7219edb577866252343))
133
+
134
+
135
+ - **(node)** Fix tls allocation issue (#4514) ([3d5c0fa](https://github.com/swc-project/swc/commit/3d5c0fa966f96c7e463c5de8819c4c8eea65f3aa))
136
+
137
+ ### Features
138
+
139
+
140
+
141
+ - **(es/parser)** Reject accessors named `constructor` (#4520) ([0e0ded1](https://github.com/swc-project/swc/commit/0e0ded121cbf0e43bc061030c8933d4079a898b2))
142
+
143
+
144
+ - **(plugin)** Expose `Pos` (#4516) ([c0432e4](https://github.com/swc-project/swc/commit/c0432e46df1fa15d8819859211913796e59d9192))
145
+
146
+ ### Miscellaneous Tasks
147
+
148
+
149
+
150
+ - **(repo)** Fix lints (#4519) ([33f58fa](https://github.com/swc-project/swc/commit/33f58faa0bb4f87ee13e38a704ca929efc21430b))
151
+
152
+ ### Testing
153
+
154
+
155
+
156
+ - **(html/parser)** Add tests (#4507) ([202a6e4](https://github.com/swc-project/swc/commit/202a6e4a0100e5ddc3a3c920b447aca803fffbae))
157
+
158
+ ## [1.2.176] - 2022-05-04
159
+
160
+ ### Bug Fixes
161
+
162
+
163
+
8
164
  - **(es/compat)** Revert a wrong patch about private properties ([97e0e27](https://github.com/swc-project/swc/commit/97e0e271d57ae2c2f6a4d8a09032885ca9a27be9))
9
165
 
10
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.176",
3
+ "version": "1.2.179",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -70,6 +70,18 @@
70
70
  ],
71
71
  "*.rs": [
72
72
  "rustfmt --"
73
+ ],
74
+ "*.js": [
75
+ "prettier --write"
76
+ ],
77
+ "*.ts": [
78
+ "prettier --write"
79
+ ],
80
+ "*.jsx": [
81
+ "prettier --write"
82
+ ],
83
+ "*.tsx": [
84
+ "prettier --write"
73
85
  ]
74
86
  },
75
87
  "devDependencies": {
@@ -82,7 +94,7 @@
82
94
  "@babel/preset-react": "^7.13.13",
83
95
  "@babel/preset-typescript": "^7.13.0",
84
96
  "@babel/types": "^7.14.0",
85
- "@napi-rs/cli": "^2.4.5",
97
+ "@napi-rs/cli": "^2.7.0",
86
98
  "@swc/helpers": "^0.3.8",
87
99
  "@taplo/cli": "^0.3.2",
88
100
  "@types/jest": "^26.0.23",
@@ -104,6 +116,7 @@
104
116
  "lodash": "^4.17.21",
105
117
  "mocha": "^9.1.3",
106
118
  "npm-run-all": "^4.1.5",
119
+ "prettier": "^2.6.2",
107
120
  "progress": "^2.0.3",
108
121
  "prop-types": "^15.7.2",
109
122
  "react": "^17.0.2",
@@ -121,18 +134,18 @@
121
134
  "url": "https://opencollective.com/swc"
122
135
  },
123
136
  "optionalDependencies": {
124
- "@swc/core-win32-x64-msvc": "1.2.176",
125
- "@swc/core-darwin-x64": "1.2.176",
126
- "@swc/core-linux-x64-gnu": "1.2.176",
127
- "@swc/core-linux-x64-musl": "1.2.176",
128
- "@swc/core-freebsd-x64": "1.2.176",
129
- "@swc/core-win32-ia32-msvc": "1.2.176",
130
- "@swc/core-linux-arm64-gnu": "1.2.176",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.176",
132
- "@swc/core-darwin-arm64": "1.2.176",
133
- "@swc/core-android-arm64": "1.2.176",
134
- "@swc/core-linux-arm64-musl": "1.2.176",
135
- "@swc/core-win32-arm64-msvc": "1.2.176",
136
- "@swc/core-android-arm-eabi": "1.2.176"
137
+ "@swc/core-win32-x64-msvc": "1.2.179",
138
+ "@swc/core-darwin-x64": "1.2.179",
139
+ "@swc/core-linux-x64-gnu": "1.2.179",
140
+ "@swc/core-linux-x64-musl": "1.2.179",
141
+ "@swc/core-freebsd-x64": "1.2.179",
142
+ "@swc/core-win32-ia32-msvc": "1.2.179",
143
+ "@swc/core-linux-arm64-gnu": "1.2.179",
144
+ "@swc/core-linux-arm-gnueabihf": "1.2.179",
145
+ "@swc/core-darwin-arm64": "1.2.179",
146
+ "@swc/core-android-arm64": "1.2.179",
147
+ "@swc/core-linux-arm64-musl": "1.2.179",
148
+ "@swc/core-win32-arm64-msvc": "1.2.179",
149
+ "@swc/core-android-arm-eabi": "1.2.179"
137
150
  }
138
151
  }
package/run_swcx.js CHANGED
File without changes