@swc/core 1.3.38 → 1.3.40

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 (3) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/README.md +1 -1
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -5,6 +5,112 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings/cli)** Update `swc_ecma_ast` (#7060) ([1b40689](https://github.com/swc-project/swc/commit/1b40689c3a754ce4a038ea98d7e9f41b1e9cf7a7))
9
+
10
+
11
+ - **(es)** Support stable rustc again (#7057) ([fbb3016](https://github.com/swc-project/swc/commit/fbb3016870cb6378743170b6833be6bbb7b4a73a))
12
+
13
+
14
+ - **(es)** Respect the value of assumptions (#7065) ([11d4874](https://github.com/swc-project/swc/commit/11d4874a2ea173a43e0a1fcdf8a1390d4320b7ee))
15
+
16
+
17
+ - **(es/ast)** Fix memory layout (#7062) ([085c6f3](https://github.com/swc-project/swc/commit/085c6f35f1f298a7863a99f3adfeb48b2dddbcb8))
18
+
19
+
20
+ - **(es/compat)** Handle `useDefineForClassFields: false` (#7055) ([bb6dde7](https://github.com/swc-project/swc/commit/bb6dde794326838b2069c7f86fb900eee36027bc))
21
+
22
+
23
+ - **(es/compat)** Insert the variable declaration nearest to the available statements (#7067) ([ae348e3](https://github.com/swc-project/swc/commit/ae348e32e18e07c277c358746e3ba3a78b9251c4))
24
+
25
+
26
+ - **(es/parser)** Handle class members with `accessor` as the name (#7046) ([9acaf4d](https://github.com/swc-project/swc/commit/9acaf4deeb412d9d3966223acbda673e8e686f06))
27
+
28
+
29
+ - **(es/preset-env)** Update data for core-js3 (#7023) ([3730463](https://github.com/swc-project/swc/commit/37304638742238c97d2c87d6ac2dc5f4347da973))
30
+
31
+ ### Features
32
+
33
+
34
+
35
+ - **(es/compat)** Simplify static blocks in classes (#7056) ([b78ce8b](https://github.com/swc-project/swc/commit/b78ce8b7c20f7c62523a017f4066776ada9d779d))
36
+
37
+ ### Miscellaneous Tasks
38
+
39
+
40
+
41
+ - **(ci)** Fix CI (#7070) ([97945d0](https://github.com/swc-project/swc/commit/97945d02b8ea7936d7b30142807999da53fec96b))
42
+
43
+ ### Performance
44
+
45
+
46
+
47
+ - **(es/lexer)** Make lexer faster (#7052) ([d1d0607](https://github.com/swc-project/swc/commit/d1d0607158ab40463d1b123fed52cc526eba8385))
48
+
49
+
50
+ - **(es/lexer)** Use jump table for `read_token` (#7058) ([9beefaa](https://github.com/swc-project/swc/commit/9beefaa1d5e711b63293d52a6c77e8aaf5e8f4c1))
51
+
52
+ ## [1.3.39] - 2023-03-10
53
+
54
+ ### Bug Fixes
55
+
56
+
57
+
58
+ - **(es/minifier)** Bailout regex optimization on invalid flags (#7020) ([1318afe](https://github.com/swc-project/swc/commit/1318afe2b4a7a25233db5760b785605019b9f06b))
59
+
60
+
61
+ - **(es/transforms)** Handle member object in missing else branch (#7027) ([5c7c8e0](https://github.com/swc-project/swc/commit/5c7c8e073634ff6347194fa0e3fae8c83b64718c))
62
+
63
+
64
+ - **(es/transforms)** Handle object shorthand in `const_modules` (#7022) ([0314869](https://github.com/swc-project/swc/commit/0314869464f59748a6a44980ade4dc1eda39ac3b))
65
+
66
+ ### Documentation
67
+ - **general**: MSRV ([32bc2f5](https://github.com/swc-project/swc/commit/32bc2f57be06997497d2ad43c2168efb3daaa435))
68
+
69
+ ### Features
70
+
71
+
72
+
73
+ - **(common)** Add an API to create a `SourceFile` without allocation (#7029) ([81495f5](https://github.com/swc-project/swc/commit/81495f5f21d56df7a187847337c9fdd2ff8ee73b))
74
+
75
+ ### Miscellaneous Tasks
76
+
77
+
78
+
79
+ - **(ci)** Fix bot ([691a8c1](https://github.com/swc-project/swc/commit/691a8c1a5490cc6fa05ad2bb59cfc7c4d370056f))
80
+
81
+ ### Performance
82
+
83
+
84
+
85
+ - **(atoms)** Update `string-cache` for per-bucket mutex (#6980) ([9841f0b](https://github.com/swc-project/swc/commit/9841f0b5d14736d780c9864eb9bf7609f9ff2840))
86
+
87
+
88
+ - **(es/ast)** Shrink size of `Expr` (#7041) ([a9fe1d2](https://github.com/swc-project/swc/commit/a9fe1d2d2228ba89fccb2a5d91f5ac4008f09d01))
89
+
90
+
91
+ - **(es/lexer)** Use string searcher for lexing line comments (#7043) ([962b0fc](https://github.com/swc-project/swc/commit/962b0fc8af6084ade064d189ed7cd7f0e2b25ee8))
92
+
93
+
94
+ - **(es/parser)** Use Cow for `_` in numeric literals (#7031) ([30546a2](https://github.com/swc-project/swc/commit/30546a28f21eb90bbbaef33ce4bc0448cd062a72))
95
+
96
+
97
+ - **(es/parser)** Use `SmartString` as the buffer (#7033) ([f378a14](https://github.com/swc-project/swc/commit/f378a14888b5a6457ade3991e2754f235d4e3d85))
98
+
99
+
100
+ - **(es/utils)** Introduce `NodeIgnoringSpan` (#7030) ([8bfef35](https://github.com/swc-project/swc/commit/8bfef35c1be5790b32fea253f28961271fe7f619))
101
+
102
+ ### Testing
103
+
104
+
105
+
106
+ - **(es/quote)** Fix doctests (#7038) ([e698a34](https://github.com/swc-project/swc/commit/e698a348162e43b11347d2a6139910e096291f59))
107
+
108
+ ## [1.3.38] - 2023-03-06
109
+
110
+ ### Bug Fixes
111
+
112
+
113
+
8
114
  - **(bindings/node)** Fix `visitBindingIdentifier` (#7000) ([30cff01](https://github.com/swc-project/swc/commit/30cff016563d8925ef2b150a669ac4b6de968b82))
9
115
 
10
116
 
package/README.md CHANGED
@@ -46,7 +46,7 @@ Also, SWC tries to ensure that
46
46
 
47
47
  for rust users.
48
48
 
49
- MSRV of crates named `swc_ecma_*` is the current stable, and nightly for others.
49
+ MSRV of crates is currently nightly, but we will support stable rustc again in the future.
50
50
 
51
51
  ---
52
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.38",
3
+ "version": "1.3.40",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -138,16 +138,16 @@
138
138
  "url": "https://opencollective.com/swc"
139
139
  },
140
140
  "optionalDependencies": {
141
- "@swc/core-win32-x64-msvc": "1.3.38",
142
- "@swc/core-darwin-x64": "1.3.38",
143
- "@swc/core-linux-x64-gnu": "1.3.38",
144
- "@swc/core-linux-x64-musl": "1.3.38",
145
- "@swc/core-win32-ia32-msvc": "1.3.38",
146
- "@swc/core-linux-arm64-gnu": "1.3.38",
147
- "@swc/core-linux-arm-gnueabihf": "1.3.38",
148
- "@swc/core-darwin-arm64": "1.3.38",
149
- "@swc/core-linux-arm64-musl": "1.3.38",
150
- "@swc/core-win32-arm64-msvc": "1.3.38"
141
+ "@swc/core-win32-x64-msvc": "1.3.40",
142
+ "@swc/core-darwin-x64": "1.3.40",
143
+ "@swc/core-linux-x64-gnu": "1.3.40",
144
+ "@swc/core-linux-x64-musl": "1.3.40",
145
+ "@swc/core-win32-ia32-msvc": "1.3.40",
146
+ "@swc/core-linux-arm64-gnu": "1.3.40",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.40",
148
+ "@swc/core-darwin-arm64": "1.3.40",
149
+ "@swc/core-linux-arm64-musl": "1.3.40",
150
+ "@swc/core-win32-arm64-msvc": "1.3.40"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",