@swc/core 1.2.177 → 1.2.178

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,92 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/compat)** Memorize computed props in logical assignment (#4525) ([2e74787](https://github.com/swc-project/swc/commit/2e7478787040645ef9cd162ef18e948c112c93d8))
9
+
10
+
11
+ - **(es/minifier)** Respect `keepClassNames` for class expressions (#4536) ([3d5d234](https://github.com/swc-project/swc/commit/3d5d234047bb7e3f76189fa586030014c7c29f46))
12
+
13
+
14
+ - **(es/minifier)** Skip getter/setter when collapsing vars (#4557) ([5d3a01a](https://github.com/swc-project/swc/commit/5d3a01ad352fcea33db46de3b144950944b18b62))
15
+
16
+
17
+ - **(es/modules)** Preserve extensions (#4524) ([f3b262e](https://github.com/swc-project/swc/commit/f3b262e340cdd5aaa5ce4008936e3ba696f3dc06))
18
+
19
+
20
+ - **(es/parser)** Revert #4067 (#4540) ([2831059](https://github.com/swc-project/swc/commit/28310596a6c2c62cab3e5124c9b68439e152ba18))
21
+
22
+
23
+ - **(es/parser)** Revert #4287 (#4542) ([e2fde1a](https://github.com/swc-project/swc/commit/e2fde1a9a7ea702439666fdee6b2a378e70d9a7e))
24
+
25
+
26
+ - **(html/lexer)** Fix lexing of numeric characters (#4544) ([6980381](https://github.com/swc-project/swc/commit/698038107de8f7ec9ee2b2981b4137d47182a022))
27
+
28
+
29
+ - **(html/parser)** Fix a bug related to parsing foreign elements (#4527) ([2f6f8fa](https://github.com/swc-project/swc/commit/2f6f8fa717c4a969221958bc2c70a3f68590d93b))
30
+
31
+
32
+ - **(html/parser)** Fix parsing of cdata in foreign context (#4531) ([5dc9376](https://github.com/swc-project/swc/commit/5dc9376a4ba4d449d1c3f2755a6aca6a77919f6f))
33
+
34
+
35
+ - **(html/parser)** Fix a bug with optional `li` (#4526) ([6310eab](https://github.com/swc-project/swc/commit/6310eab96652bbe747eaf1b467894b2dbacfab98))
36
+
37
+
38
+ - **(html/parser)** Fix parsing of comments in `textarea` (#4530) ([79090e1](https://github.com/swc-project/swc/commit/79090e1b2abce3dc396f25a5851637c675b6c87e))
39
+
40
+
41
+ - **(html/parser)** Fix parsing of `nobr` (#4535) ([e6042a5](https://github.com/swc-project/swc/commit/e6042a5e692c785bb12058f1eb63e728f3191cef))
42
+
43
+
44
+ - **(html/parser)** Fix parsing of cdata (#4537) ([07cf28a](https://github.com/swc-project/swc/commit/07cf28a168c0e4619c3293ece180922d5e9a632d))
45
+
46
+
47
+ - **(html/parser)** Fix parsing of newline in `textarea` (#4543) ([dd40e7b](https://github.com/swc-project/swc/commit/dd40e7bf69b355f00b68819785365603bc7634a2))
48
+
49
+
50
+ - **(html/parser)** Fix support for document mode (#4539) ([e11ee88](https://github.com/swc-project/swc/commit/e11ee88ea09ef1a67e2a2e063e91ce1df40ca8fb))
51
+
52
+ ### Features
53
+
54
+
55
+
56
+ - **(plugin)** Make plugin source map api use `SourceMapper` (#4541) ([10f903d](https://github.com/swc-project/swc/commit/10f903dd3952286f84c0957d96b9c43236938de5))
57
+
58
+ ### Miscellaneous Tasks
59
+
60
+
61
+
62
+ - **(repo)** Configure `prettier` (#4523) ([a6d404a](https://github.com/swc-project/swc/commit/a6d404a8c28ab82f15d9f7fbd849e27713a49872))
63
+
64
+ ### Refactor
65
+
66
+
67
+
68
+ - **(html/parser)** Cleanup (#4545) ([446172f](https://github.com/swc-project/swc/commit/446172f14575b56d36ef72175c16fa05f374736c))
69
+
70
+ ### Testing
71
+
72
+
73
+
74
+ - **(es/minifier)** Categorize more tests (#4538) ([3d3e3bb](https://github.com/swc-project/swc/commit/3d3e3bb1d27ba4a75464c925d8fe03f703902e49))
75
+
76
+
77
+ - **(es/minifier)** Ignore difference of parens (#4546) ([b0efd00](https://github.com/swc-project/swc/commit/b0efd00f38edb7ecb87c53590821d908316cfcba))
78
+
79
+
80
+ - **(html/parser)** Add integration tests from html5lib-test (#4517) ([a4a815b](https://github.com/swc-project/swc/commit/a4a815b28815b1c875c73f0a153fb219558e26ce))
81
+
82
+ ### Build
83
+
84
+
85
+
86
+ - **(plugin)** Update `swc_plugin_proxy` (#4551) ([b5a2033](https://github.com/swc-project/swc/commit/b5a203399455304f3be7941b751e8a9847b0bb97))
87
+
88
+ ## [1.2.177] - 2022-05-04
89
+
90
+ ### Bug Fixes
91
+
92
+
93
+
8
94
  - **(html/parser)** Fix a bug of unwrapping element without parent (#4505) ([597c0c6](https://github.com/swc-project/swc/commit/597c0c672a9111b1a0b6e7219edb577866252343))
9
95
 
10
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.177",
3
+ "version": "1.2.178",
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": {
@@ -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.177",
125
- "@swc/core-darwin-x64": "1.2.177",
126
- "@swc/core-linux-x64-gnu": "1.2.177",
127
- "@swc/core-linux-x64-musl": "1.2.177",
128
- "@swc/core-freebsd-x64": "1.2.177",
129
- "@swc/core-win32-ia32-msvc": "1.2.177",
130
- "@swc/core-linux-arm64-gnu": "1.2.177",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.177",
132
- "@swc/core-darwin-arm64": "1.2.177",
133
- "@swc/core-android-arm64": "1.2.177",
134
- "@swc/core-linux-arm64-musl": "1.2.177",
135
- "@swc/core-win32-arm64-msvc": "1.2.177",
136
- "@swc/core-android-arm-eabi": "1.2.177"
137
+ "@swc/core-win32-x64-msvc": "1.2.178",
138
+ "@swc/core-darwin-x64": "1.2.178",
139
+ "@swc/core-linux-x64-gnu": "1.2.178",
140
+ "@swc/core-linux-x64-musl": "1.2.178",
141
+ "@swc/core-freebsd-x64": "1.2.178",
142
+ "@swc/core-win32-ia32-msvc": "1.2.178",
143
+ "@swc/core-linux-arm64-gnu": "1.2.178",
144
+ "@swc/core-linux-arm-gnueabihf": "1.2.178",
145
+ "@swc/core-darwin-arm64": "1.2.178",
146
+ "@swc/core-android-arm64": "1.2.178",
147
+ "@swc/core-linux-arm64-musl": "1.2.178",
148
+ "@swc/core-win32-arm64-msvc": "1.2.178",
149
+ "@swc/core-android-arm-eabi": "1.2.178"
137
150
  }
138
151
  }