@swc/core 1.2.185 → 1.2.188

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +141 -0
  2. package/package.json +15 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,147 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/codegen)** Exclude synthesized files from sourcemap (#4714) ([03dd9de](https://github.com/swc-project/swc/commit/03dd9de1c34ef8af66b78b03e7264e623ea81e8b))
9
+
10
+
11
+ - **(es/codegen)** Fix numeric literals (#4731) ([f1baff4](https://github.com/swc-project/swc/commit/f1baff4114bfdb7ccc0c80266445d79a4b0104eb))
12
+
13
+
14
+ - **(es/minifier)** Consider more side effects while inlining (#4715) ([1358f45](https://github.com/swc-project/swc/commit/1358f452e757210f9a203a28a1806c404cbf2fd7))
15
+
16
+
17
+ - **(html/parser)** Fix handling of unclosed `td`/`th` (#4719) ([2c2e6bb](https://github.com/swc-project/swc/commit/2c2e6bb65b0d3144774761fca3e8f81f988f143d))
18
+
19
+ ### Features
20
+
21
+
22
+
23
+ - **(es/minifier)** Implement more skipping rules for `sequences` (#4716) ([dc67911](https://github.com/swc-project/swc/commit/dc67911f61cb6e0f4c2e37ed0d32ed3f62cb0501))
24
+
25
+
26
+ - **(html/parser)** Report an error for a legacy doctype (#4717) ([5d0e8fb](https://github.com/swc-project/swc/commit/5d0e8fbda41d012c8fb258bdc0c61402ba9f8a7e))
27
+
28
+ ## [1.2.187] - 2022-05-20
29
+
30
+ ### Bug Fixes
31
+
32
+
33
+
34
+ - **(common)** Don't use reserved byte position (#4690) ([606f7c9](https://github.com/swc-project/swc/commit/606f7c967e908b4d70d37edbb76c11a7ea985336))
35
+
36
+
37
+ - **(es/ast)** Fix `EqIgnoreSpan` of `Ident` (#4689) ([07356a5](https://github.com/swc-project/swc/commit/07356a5bba29572c99b53a1db79314a252faf663))
38
+
39
+
40
+ - **(es/codegen)** Don't add a newline after an arrow body (#4711) ([72fbf69](https://github.com/swc-project/swc/commit/72fbf692a49f1612e2c04548c8c82279eeb3ad35))
41
+
42
+
43
+ - **(es/compat)** Fix `break` in for await loop (#4705) ([100c0b5](https://github.com/swc-project/swc/commit/100c0b58c9e5074a32e9dbc4f5dd7a88388bd8be))
44
+
45
+
46
+ - **(es/config)** Auto-detect `tsx` (#4696) ([ad309f4](https://github.com/swc-project/swc/commit/ad309f4050dfb3483ed56108cc11f4865dca3f89))
47
+
48
+
49
+ - **(es/config)** Add `jsc.output.charset` (#4708) ([bf5ba28](https://github.com/swc-project/swc/commit/bf5ba284715bc86904c47c2dc2e3575ff5fe09be))
50
+
51
+
52
+ - **(es/minifier)** Don't hoist functions with `dead_code` (#4695) ([183e884](https://github.com/swc-project/swc/commit/183e884cbfa775868f91fbea8604b63352b583a6))
53
+
54
+
55
+ - **(es/minifier)** Don't create keys with negative number (#4698) ([809a626](https://github.com/swc-project/swc/commit/809a626a990eb4edb1cf71b87c3de31a60fa1a86))
56
+
57
+
58
+ - **(es/minifier)** Fix analysis of assignment patterns (#4712) ([73dfa95](https://github.com/swc-project/swc/commit/73dfa95e5a0c24f61ed9b912a08c4ccde120890f))
59
+
60
+
61
+ - **(es/modules)** Fix reassignment of exported vars (#4688) ([7ce572b](https://github.com/swc-project/swc/commit/7ce572b497d6b19231af8414616d412ac6c42264))
62
+
63
+
64
+ - **(es/react)** Fix span of error messages (#4704) ([5f45a3d](https://github.com/swc-project/swc/commit/5f45a3d49649516d7c918b7039ebf04995db300a))
65
+
66
+
67
+ - **(html/parser)** Fix span of attributes (#4681) ([637ef7f](https://github.com/swc-project/swc/commit/637ef7f49f0b3b7bbb06860371e6f8b2518759c2))
68
+
69
+
70
+ - **(html/parser)** Fix bugs (#4707) ([0b39e1b](https://github.com/swc-project/swc/commit/0b39e1b3fcf08e36b1d758a5842c625cd54b331d))
71
+
72
+ ### Features
73
+
74
+
75
+
76
+ - **(es/minifier)** Improve `if_return` (#4694) ([274648e](https://github.com/swc-project/swc/commit/274648ec2664297043f5acb5cba659ace724fc59))
77
+
78
+
79
+ - **(html/minifier)** Compress characters in `head` (#4682) ([cac8cee](https://github.com/swc-project/swc/commit/cac8cee62abab7dba28d2014d50e9bfdd71e03cc))
80
+
81
+ ### Performance
82
+
83
+
84
+
85
+ - **(es/minifier)** Make minifier more parallel (#4699) ([9a27b5f](https://github.com/swc-project/swc/commit/9a27b5f275e2116ceacfd10e15ab4a92f6bb25fc))
86
+
87
+ ### Testing
88
+
89
+
90
+
91
+ - **(es)** Add a test for a fixed issue (#4693) ([b93af7b](https://github.com/swc-project/swc/commit/b93af7ba61509f79b32008c3d8df3e5b82f4c40e))
92
+
93
+
94
+ - **(es/minifier)** Categorize more tests (#4709) ([6f565fb](https://github.com/swc-project/swc/commit/6f565fbb3aeb9df3b364a50c57a7a44a08a76305))
95
+
96
+ ## [1.2.186] - 2022-05-17
97
+
98
+ ### Bug Fixes
99
+
100
+
101
+
102
+ - **(es/minifier)** Consider fallthrough while merging swtich cases (#4672) ([3bb4b74](https://github.com/swc-project/swc/commit/3bb4b74d945b7b9bd107114c2df5eeef13874aba))
103
+
104
+ ### Features
105
+
106
+
107
+
108
+ - **(dbg-swc)** Make reducer parallel (#4676) ([ba6688a](https://github.com/swc-project/swc/commit/ba6688a783eb626cdc9da5d1d8babb018fdfb9bb))
109
+
110
+
111
+ - **(es)** Add check for `BytePos::DUMMY` (#4675) ([da49f81](https://github.com/swc-project/swc/commit/da49f810db791ef28291f535c46f7396fec29809))
112
+
113
+
114
+ - **(es/minifier)** Enable `computed_props` by default (#4678) ([04d66db](https://github.com/swc-project/swc/commit/04d66dbc8b8179300e69164bb9257e87cb887a03))
115
+
116
+
117
+ - **(es/minifier)** Enable `conditionals` by default (#4687) ([c01476d](https://github.com/swc-project/swc/commit/c01476d9ae0a617489099237fa08b90018693eb5))
118
+
119
+
120
+ - **(html/minifier)** Compress more json content (#4684) ([3aac28e](https://github.com/swc-project/swc/commit/3aac28e9df0de3c543e6677882eee1ec51fef6a9))
121
+
122
+ ### Miscellaneous Tasks
123
+ - **general**: Add stale workflow ([890a5ae](https://github.com/swc-project/swc/commit/890a5ae0e6c876157873427a0bea555c47677e55))
124
+
125
+ ### Performance
126
+
127
+
128
+
129
+ - **(common)** Improve performance of `StringInput` (#4680) ([fe1e62a](https://github.com/swc-project/swc/commit/fe1e62a5e7a4a0037ba8d158879fb68bf9c14520))
130
+
131
+
132
+ - **(html)** Setup benchmarks (#4685) ([b56f3b7](https://github.com/swc-project/swc/commit/b56f3b7f00e10a45ddaab1c0a774645fe8121389))
133
+
134
+ ### Testing
135
+
136
+
137
+
138
+ - **(es/minifier)** Add size tests using `dbg-swc` (#4664) ([36ff4f7](https://github.com/swc-project/swc/commit/36ff4f735f43bbea5a943866b7083fe51633d9df))
139
+
140
+
141
+ - **(html/parser)** Add tests for broken html/svg (#4683) ([1d9ee0a](https://github.com/swc-project/swc/commit/1d9ee0a1002a7667add5ac39df16d7584b70d233))
142
+
143
+ ## [1.2.185] - 2022-05-15
144
+
145
+ ### Bug Fixes
146
+
147
+
148
+
8
149
  - **(es/modules)** Fix handling of `import.meta.url` (#4670) ([49c40af](https://github.com/swc-project/swc/commit/49c40afb7e092655578ee4d991ddf1f3fd20ff6a))
9
150
 
10
151
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.185",
3
+ "version": "1.2.188",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -112,6 +112,7 @@
112
112
  "expect": "^27.4.2",
113
113
  "husky": "^7.0.2",
114
114
  "jest": "^27.0.1",
115
+ "js-beautify": "^1.14.3",
115
116
  "lint-staged": "^12.3.6",
116
117
  "lodash": "^4.17.21",
117
118
  "mocha": "^9.1.3",
@@ -134,18 +135,18 @@
134
135
  "url": "https://opencollective.com/swc"
135
136
  },
136
137
  "optionalDependencies": {
137
- "@swc/core-win32-x64-msvc": "1.2.185",
138
- "@swc/core-darwin-x64": "1.2.185",
139
- "@swc/core-linux-x64-gnu": "1.2.185",
140
- "@swc/core-linux-x64-musl": "1.2.185",
141
- "@swc/core-freebsd-x64": "1.2.185",
142
- "@swc/core-win32-ia32-msvc": "1.2.185",
143
- "@swc/core-linux-arm64-gnu": "1.2.185",
144
- "@swc/core-linux-arm-gnueabihf": "1.2.185",
145
- "@swc/core-darwin-arm64": "1.2.185",
146
- "@swc/core-android-arm64": "1.2.185",
147
- "@swc/core-linux-arm64-musl": "1.2.185",
148
- "@swc/core-win32-arm64-msvc": "1.2.185",
149
- "@swc/core-android-arm-eabi": "1.2.185"
138
+ "@swc/core-win32-x64-msvc": "1.2.188",
139
+ "@swc/core-darwin-x64": "1.2.188",
140
+ "@swc/core-linux-x64-gnu": "1.2.188",
141
+ "@swc/core-linux-x64-musl": "1.2.188",
142
+ "@swc/core-freebsd-x64": "1.2.188",
143
+ "@swc/core-win32-ia32-msvc": "1.2.188",
144
+ "@swc/core-linux-arm64-gnu": "1.2.188",
145
+ "@swc/core-linux-arm-gnueabihf": "1.2.188",
146
+ "@swc/core-darwin-arm64": "1.2.188",
147
+ "@swc/core-android-arm64": "1.2.188",
148
+ "@swc/core-linux-arm64-musl": "1.2.188",
149
+ "@swc/core-win32-arm64-msvc": "1.2.188",
150
+ "@swc/core-android-arm-eabi": "1.2.188"
150
151
  }
151
152
  }