@swc/core 1.3.49 → 1.3.51

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 +106 -0
  2. package/package.json +12 -13
package/CHANGELOG.md CHANGED
@@ -1,6 +1,112 @@
1
1
  # Changelog
2
2
  ## [unreleased]
3
3
 
4
+ ### Bug Fixes
5
+
6
+
7
+
8
+ - **(es)** Allow extra comments after `sourceMappingURL` (#7262) ([219a738](https://github.com/swc-project/swc/commit/219a738a752e44bcbf5681f2f77766f5581439c3))
9
+
10
+
11
+ - **(es/helpers)** Do not duplicate property names (#7266) ([30a4e52](https://github.com/swc-project/swc/commit/30a4e52f74e9c2e6f919f41930f79b4a0c3eab76))
12
+
13
+
14
+ - **(es/loader)** Fix browser overwrites not applying correctly (#7243) ([beefdd4](https://github.com/swc-project/swc/commit/beefdd459c1bdd96bcd5c83f8dc2e4c4c1be695d))
15
+
16
+
17
+ - **(es/minifier)** Use UTF16 length for `str.length` (#7275) ([4c06a56](https://github.com/swc-project/swc/commit/4c06a56e52184796280d9c19975f5317f3050cc9))
18
+
19
+
20
+ - **(es/renamer)** Ensure that param and function body are in same scope (#7271) ([93a264c](https://github.com/swc-project/swc/commit/93a264c9a4c8329eddbf02c02c979d5dee3f02b5))
21
+
22
+ ### Features
23
+
24
+
25
+
26
+ - **(es/modules)** Use function instead of arrow function unconditionally (#7273) ([5d3313a](https://github.com/swc-project/swc/commit/5d3313aa7e696a5c4c28e513062b8ba92bd40e5f))
27
+
28
+ ### Miscellaneous Tasks
29
+
30
+
31
+
32
+ - **(ci)** Fix crev action (#7272) ([578960d](https://github.com/swc-project/swc/commit/578960d32186f7d5fdf2dc99599aa49a01c5d7a3))
33
+
34
+ ### Refactor
35
+
36
+
37
+
38
+ - **(es/parser)** Remove `::` token as it's not used (#7268) ([635bf81](https://github.com/swc-project/swc/commit/635bf8116bb002d5d737f0e9dfbf5efd3a433e7d))
39
+
40
+ ### Build
41
+
42
+
43
+
44
+ - **(cargo)** Update `bitflags` to v2 (#7270) ([c4cce12](https://github.com/swc-project/swc/commit/c4cce127587e304b938c43059992ff0ed6bd2821))
45
+
46
+ ## [1.3.50] - 2023-04-13
47
+
48
+ ### Bug Fixes
49
+
50
+
51
+
52
+ - **(es)** Fix a crash related to an empty source map (#7229) ([c665918](https://github.com/swc-project/swc/commit/c6659183a616725b61733e584bbb6e540b9cbbde))
53
+
54
+
55
+ - **(es/codegen)** Respect `ascii_only` for identifiers (#7247) ([e35097f](https://github.com/swc-project/swc/commit/e35097fd8c036dfab9fcf923f01db562b003720b))
56
+
57
+
58
+ - **(es/compat)** Handle export function in `reserved_word` (#7251) ([2e947e7](https://github.com/swc-project/swc/commit/2e947e7aeb1fd2989a10fb49a2ffa2ea35bc9941))
59
+
60
+
61
+ - **(es/minifier)** Fix handling of optional chaining when `hoist_props` is enabled (#7246) ([a44fea1](https://github.com/swc-project/swc/commit/a44fea1ec8f19a822d84c744b9e39c122026fd9d))
62
+
63
+
64
+ - **(es/parser)** Use a hard error for missing r-paren in an if stmt (#7223) ([b1c40a4](https://github.com/swc-project/swc/commit/b1c40a411f01792f9b9f4bc9d5f08782fc6d6a1c))
65
+
66
+
67
+ - **(es/parser)** Reset ctx for cond while parsing a stmt (#7232) ([01db30f](https://github.com/swc-project/swc/commit/01db30f91ec91d5dffe4c2ac1934965cc9c73cf8))
68
+
69
+
70
+ - **(es/parser)** Parse `const` type parameters in arrow function expressions (#7242) ([6614886](https://github.com/swc-project/swc/commit/66148861926a8e70cb75ff20cb2f0ff171c2e630))
71
+
72
+ ### Features
73
+
74
+
75
+
76
+ - **(es)** Provide more information when loading of input source map failed (#7249) ([f0e3b1d](https://github.com/swc-project/swc/commit/f0e3b1d09a69c3eb3035e2dbc00d537576b48a08))
77
+
78
+
79
+ - **(es)** Use `minify.format.ascii_only` if `output.charset` is not specified (#7258) ([1fe5c3a](https://github.com/swc-project/swc/commit/1fe5c3a803daf247709ac51f8c637ba7e56181bc))
80
+
81
+
82
+ - **(es/minifier)** Support `PURE` comment of seq exprs (#7245) ([559d120](https://github.com/swc-project/swc/commit/559d1202bc9a25c06eae01c6e033a44bb31aab62))
83
+
84
+
85
+ - **(plugin)** Enable validation (#7250) ([efad714](https://github.com/swc-project/swc/commit/efad714983459393639f4b026da7793807c1b401))
86
+
87
+ ### Refactor
88
+
89
+
90
+
91
+ - **(plugin)** Remove `bytecheck` flag (#7256) ([6bd58cb](https://github.com/swc-project/swc/commit/6bd58cbcfdef99604470a106853628e1cdb36cda))
92
+
93
+
94
+ - **(plugin/runner)** Fix clippy warnings (#7244) ([70b86db](https://github.com/swc-project/swc/commit/70b86dbe371fafc2dffde0573bc091860aa529b3))
95
+
96
+ ### Testing
97
+
98
+
99
+
100
+ - **(es/plugin)** Enable E2E test again (#7236) ([695ce06](https://github.com/swc-project/swc/commit/695ce060e95ccdda50334468dc669da2df76c026))
101
+
102
+ ### Build
103
+
104
+
105
+
106
+ - **(plugin)** Update `rkyv` (#7257) ([ff3decc](https://github.com/swc-project/swc/commit/ff3decc7dbf7965085261b16efa1a7b251aec696))
107
+
108
+ ## [1.3.49] - 2023-04-10
109
+
4
110
  ### Features
5
111
 
6
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.49",
3
+ "version": "1.3.51",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -56,7 +56,6 @@
56
56
  "build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
57
57
  "build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
58
58
  "build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
59
- "build:bytecheck": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings --features swc_v1,plugin_bytecheck -p binding_core_node --cargo-flags=--no-default-features --release",
60
59
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
61
60
  "version": "napi version -p scripts/npm"
62
61
  },
@@ -94,7 +93,7 @@
94
93
  "@napi-rs/cli": "^2.14.1",
95
94
  "@swc/core": "=1.2.220",
96
95
  "@swc/helpers": "^0.5.0",
97
- "@swc/plugin-jest": "1.5.56",
96
+ "@swc/plugin-jest": "1.5.59",
98
97
  "@taplo/cli": "^0.3.2",
99
98
  "@types/jest": "^28.1.4",
100
99
  "@types/node": "^14.14.41",
@@ -146,16 +145,16 @@
146
145
  "url": "https://opencollective.com/swc"
147
146
  },
148
147
  "optionalDependencies": {
149
- "@swc/core-win32-x64-msvc": "1.3.49",
150
- "@swc/core-darwin-x64": "1.3.49",
151
- "@swc/core-linux-x64-gnu": "1.3.49",
152
- "@swc/core-linux-x64-musl": "1.3.49",
153
- "@swc/core-win32-ia32-msvc": "1.3.49",
154
- "@swc/core-linux-arm64-gnu": "1.3.49",
155
- "@swc/core-linux-arm-gnueabihf": "1.3.49",
156
- "@swc/core-darwin-arm64": "1.3.49",
157
- "@swc/core-linux-arm64-musl": "1.3.49",
158
- "@swc/core-win32-arm64-msvc": "1.3.49"
148
+ "@swc/core-win32-x64-msvc": "1.3.51",
149
+ "@swc/core-darwin-x64": "1.3.51",
150
+ "@swc/core-linux-x64-gnu": "1.3.51",
151
+ "@swc/core-linux-x64-musl": "1.3.51",
152
+ "@swc/core-win32-ia32-msvc": "1.3.51",
153
+ "@swc/core-linux-arm64-gnu": "1.3.51",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.51",
155
+ "@swc/core-darwin-arm64": "1.3.51",
156
+ "@swc/core-linux-arm64-musl": "1.3.51",
157
+ "@swc/core-win32-arm64-msvc": "1.3.51"
159
158
  },
160
159
  "files": [
161
160
  "CHANGELOG.md",