@swc/core 1.3.39 → 1.3.41

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 +91 -0
  2. package/package.json +11 -11
  3. package/types.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,97 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings/cli)** Change order of checking inputs to workaround a Windows issue (#7077) ([7bbec92](https://github.com/swc-project/swc/commit/7bbec92d234ddb47b51a014937d1ec7c1cb571c7))
9
+
10
+
11
+ - **(css/codegen)** Respect `raw` of `Str` (#7078) ([7849a2d](https://github.com/swc-project/swc/commit/7849a2d75d57bf3b6242f5f472a06a30c9fb948d))
12
+
13
+
14
+ - **(css/parser)** Fix parsing of `:global(> *)` (#7082) ([60f74ea](https://github.com/swc-project/swc/commit/60f74ea0769c2be764af8eb5320343f77ea78c1a))
15
+
16
+
17
+ - **(es/codegen)** Emit `type_params` for `TsConstructSignatureDecl` (#7080) ([8353acc](https://github.com/swc-project/swc/commit/8353accb1315a8847e4dabcd36274cde5856e763))
18
+
19
+
20
+ - **(es/minifier)** Preserve `delete` of unresolved variables (#7072) ([86295ba](https://github.com/swc-project/swc/commit/86295ba8f26fbe3829c2c08fd8034975f05f60b5))
21
+
22
+
23
+ - **(es/minifier)** Accept `keep_fnames` and `keep_classnames` (#7090) ([0086914](https://github.com/swc-project/swc/commit/00869147d3ac62db323cdf2a06cc8cc17dcdd1f3))
24
+
25
+
26
+ - **(es/minifier)** Remove wrong optimization of `new RegExp(…)` (#7091) ([493a4f7](https://github.com/swc-project/swc/commit/493a4f7042bad7f883981b10cdc02fe0d36a5fb0))
27
+
28
+
29
+ - **(es/react)** Align to `babel@8` behavior (#7081) ([7b491a6](https://github.com/swc-project/swc/commit/7b491a69a5ea80cd8aace9e7da3e73079c6a259f))
30
+
31
+
32
+ - **(testing)** Ignore `non_snake_case` for generated test names (#7087) ([1c254b1](https://github.com/swc-project/swc/commit/1c254b1c44f72f5e66698f78d76796d5a7f66146))
33
+
34
+ ### Performance
35
+
36
+
37
+
38
+ - **(es/lexer)** Use jump table for `skip_space` (#7073) ([f854d51](https://github.com/swc-project/swc/commit/f854d51343dcbdf43acd87f51e2288a052e39a0b))
39
+
40
+ ### Refactor
41
+ - **general**: Fix lints using clippy from `nightly-2023-03-13` (#6920) ([963c460](https://github.com/swc-project/swc/commit/963c46061321fff3a2893da4953c1fd5ec649311))
42
+
43
+ ## [1.3.40] - 2023-03-13
44
+
45
+ ### Bug Fixes
46
+
47
+
48
+
49
+ - **(bindings/cli)** Update `swc_ecma_ast` (#7060) ([1b40689](https://github.com/swc-project/swc/commit/1b40689c3a754ce4a038ea98d7e9f41b1e9cf7a7))
50
+
51
+
52
+ - **(es)** Support stable rustc again (#7057) ([fbb3016](https://github.com/swc-project/swc/commit/fbb3016870cb6378743170b6833be6bbb7b4a73a))
53
+
54
+
55
+ - **(es)** Respect the value of assumptions (#7065) ([11d4874](https://github.com/swc-project/swc/commit/11d4874a2ea173a43e0a1fcdf8a1390d4320b7ee))
56
+
57
+
58
+ - **(es/ast)** Fix memory layout (#7062) ([085c6f3](https://github.com/swc-project/swc/commit/085c6f35f1f298a7863a99f3adfeb48b2dddbcb8))
59
+
60
+
61
+ - **(es/compat)** Handle `useDefineForClassFields: false` (#7055) ([bb6dde7](https://github.com/swc-project/swc/commit/bb6dde794326838b2069c7f86fb900eee36027bc))
62
+
63
+
64
+ - **(es/compat)** Insert the variable declaration nearest to the available statements (#7067) ([ae348e3](https://github.com/swc-project/swc/commit/ae348e32e18e07c277c358746e3ba3a78b9251c4))
65
+
66
+
67
+ - **(es/parser)** Handle class members with `accessor` as the name (#7046) ([9acaf4d](https://github.com/swc-project/swc/commit/9acaf4deeb412d9d3966223acbda673e8e686f06))
68
+
69
+
70
+ - **(es/preset-env)** Update data for core-js3 (#7023) ([3730463](https://github.com/swc-project/swc/commit/37304638742238c97d2c87d6ac2dc5f4347da973))
71
+
72
+ ### Features
73
+
74
+
75
+
76
+ - **(es/compat)** Simplify static blocks in classes (#7056) ([b78ce8b](https://github.com/swc-project/swc/commit/b78ce8b7c20f7c62523a017f4066776ada9d779d))
77
+
78
+ ### Miscellaneous Tasks
79
+
80
+
81
+
82
+ - **(ci)** Fix CI (#7070) ([97945d0](https://github.com/swc-project/swc/commit/97945d02b8ea7936d7b30142807999da53fec96b))
83
+
84
+ ### Performance
85
+
86
+
87
+
88
+ - **(es/lexer)** Make lexer faster (#7052) ([d1d0607](https://github.com/swc-project/swc/commit/d1d0607158ab40463d1b123fed52cc526eba8385))
89
+
90
+
91
+ - **(es/lexer)** Use jump table for `read_token` (#7058) ([9beefaa](https://github.com/swc-project/swc/commit/9beefaa1d5e711b63293d52a6c77e8aaf5e8f4c1))
92
+
93
+ ## [1.3.39] - 2023-03-10
94
+
95
+ ### Bug Fixes
96
+
97
+
98
+
8
99
  - **(es/minifier)** Bailout regex optimization on invalid flags (#7020) ([1318afe](https://github.com/swc-project/swc/commit/1318afe2b4a7a25233db5760b785605019b9f06b))
9
100
 
10
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.39",
3
+ "version": "1.3.41",
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.39",
142
- "@swc/core-darwin-x64": "1.3.39",
143
- "@swc/core-linux-x64-gnu": "1.3.39",
144
- "@swc/core-linux-x64-musl": "1.3.39",
145
- "@swc/core-win32-ia32-msvc": "1.3.39",
146
- "@swc/core-linux-arm64-gnu": "1.3.39",
147
- "@swc/core-linux-arm-gnueabihf": "1.3.39",
148
- "@swc/core-darwin-arm64": "1.3.39",
149
- "@swc/core-linux-arm64-musl": "1.3.39",
150
- "@swc/core-win32-arm64-msvc": "1.3.39"
141
+ "@swc/core-win32-x64-msvc": "1.3.41",
142
+ "@swc/core-darwin-x64": "1.3.41",
143
+ "@swc/core-linux-x64-gnu": "1.3.41",
144
+ "@swc/core-linux-x64-musl": "1.3.41",
145
+ "@swc/core-win32-ia32-msvc": "1.3.41",
146
+ "@swc/core-linux-arm64-gnu": "1.3.41",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.41",
148
+ "@swc/core-darwin-arm64": "1.3.41",
149
+ "@swc/core-linux-arm64-musl": "1.3.41",
150
+ "@swc/core-win32-arm64-msvc": "1.3.41"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -614,6 +614,7 @@ export interface ReactConfig {
614
614
  development?: boolean;
615
615
  /**
616
616
  * Use `Object.assign()` instead of `_extends`. Defaults to false.
617
+ * @deprecated
617
618
  */
618
619
  useBuiltins?: boolean;
619
620
  /**