@swc/core 1.2.139 → 1.2.140

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 +110 -0
  2. package/package.json +14 -14
  3. package/types.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,113 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/compat)** Allow destructuring assignment to an object property (#3544) ([5802b62](https://github.com/swc-project/swc/commit/5802b62e3486b0fba176533fcd2998f47c60910d))
9
+
10
+
11
+ - **(es/compat)** Fix destructing of `const` (#3545) ([342c320](https://github.com/swc-project/swc/commit/342c320bfa1f43f25262c0ba403a51df8228c655))
12
+
13
+
14
+ - **(es/compat)** Apply `new.target` before `classes` (#3555) ([f1c7394](https://github.com/swc-project/swc/commit/f1c7394d10d624009549ec24de8c79b08594cfd4))
15
+
16
+
17
+ - **(es/compat)** Handle arrow parameters in class fields (#3556) ([45b44b0](https://github.com/swc-project/swc/commit/45b44b088cf0c0964232b66bb4b7b5f9e539623d))
18
+
19
+
20
+ - **(es/compat)** Fix handling of constructor in `classes` (#3505) ([0b16210](https://github.com/swc-project/swc/commit/0b162102fad75a364121b51a94fc36a7f8872259))
21
+
22
+
23
+ - **(es/minifier)** Fix analyzer (#3557) ([ac1d405](https://github.com/swc-project/swc/commit/ac1d4058f276693f52d5ccec5ccbb4c04f62bc9f))
24
+
25
+
26
+ - **(es/minifier)** Disable name mangler if `eval` is used (#3526) ([bfc9897](https://github.com/swc-project/swc/commit/bfc9897e347e2adc6efb5bd66151abdb9cbaa4fa))
27
+
28
+
29
+ - **(es/utils)** Keep arguments to `super` call (#3570) ([f67796a](https://github.com/swc-project/swc/commit/f67796a962cfd1e5c33206622c325dfbdd3b4ee2))
30
+
31
+ ### Documentation
32
+
33
+
34
+
35
+ - **(plugin)** Fix typo (#3547) ([3fc16cd](https://github.com/swc-project/swc/commit/3fc16cdc1c69a5ee0ecb506e3a3c496c51e52756))
36
+
37
+ ### Features
38
+
39
+
40
+
41
+ - **(css/ast)** Add `;` to delimiters (#3551) ([da36e90](https://github.com/swc-project/swc/commit/da36e90d1ee6ca479826ef379fbf0562cdc02ee5))
42
+
43
+
44
+ - **(css/ast)** Use correct type for `calc` (#3549) ([b311ace](https://github.com/swc-project/swc/commit/b311aced89dbbcb1605312e3ad5b0715e437bcd8))
45
+
46
+
47
+ - **(css/ast)** Use `SimpleBlock` for `@document` at-rule (#3564) ([3399702](https://github.com/swc-project/swc/commit/3399702b735cebcf19855b01c5b884cb44e06653))
48
+
49
+
50
+ - **(es/compat)** Add loose mode for `classes` (#3474) ([0f7a997](https://github.com/swc-project/swc/commit/0f7a99787f78a1b010a20fc042c4c565959557ad))
51
+
52
+
53
+ - **(es/lints)** Add this handling support to `no-alert` rule (#3515) ([af82006](https://github.com/swc-project/swc/commit/af8200647bb5f96525bcf3333c7c6889fe69dd5d))
54
+
55
+
56
+ - **(es/lints)** Add `allow` config for `no-console` rule (#3517) ([286b6c8](https://github.com/swc-project/swc/commit/286b6c804fc9f4b12065eb848be56d0a58230cf2))
57
+
58
+
59
+ - **(es/lints)** Implement `eqeqeq` rule (#3513) ([8d92050](https://github.com/swc-project/swc/commit/8d92050f557690bca6f695bbae173876fd9e53a2))
60
+
61
+
62
+ - **(es/lints)** Implement `no-empty-pattern` rule (#3550) ([f9fda27](https://github.com/swc-project/swc/commit/f9fda2743cb549d1af6b9bbb92155da3f60536c2))
63
+
64
+
65
+ - **(plugin)** Add `PluginContext` (#3568) ([a96217f](https://github.com/swc-project/swc/commit/a96217feaa9fea72cf828f2ec02f0639b5dd1561))
66
+
67
+
68
+ - **(plugin/runner)** Improve resolver support for npm (#3566) ([d6477a7](https://github.com/swc-project/swc/commit/d6477a76cf088072f5355335f48413fbbc9310c7))
69
+
70
+ ### Miscellaneous Tasks
71
+
72
+
73
+
74
+ - **(ci)** Add a bot for auto-rebasing (#3560) ([b1fc7a9](https://github.com/swc-project/swc/commit/b1fc7a9e3446240e4615a50517e4a13c50c05f4e))
75
+
76
+
77
+ - **(ci)** Remove useless tests from the matrix (#3561) ([47a81bd](https://github.com/swc-project/swc/commit/47a81bdb95e11e577afd35c854939151bb8bd668))- **general**: Fix auto-rebase script ([d055711](https://github.com/swc-project/swc/commit/d0557117ce62ea6a9294720689769c4b156c62eb))- **general**: Fix auto-rebase script again ([d3f1c4e](https://github.com/swc-project/swc/commit/d3f1c4e6025722dbf5dcb493e5a60067b4227341))- **general**: Use `GITHUB_TOKEN` for auto-rebasing ([1c6e9ef](https://github.com/swc-project/swc/commit/1c6e9efeb46251d99831aab56d8b3332af6167bd))- **general**: Fix CLA issue of auto-rebase script ([59233d5](https://github.com/swc-project/swc/commit/59233d5082af625816450691103f95ffd121bd16))
78
+
79
+ ### Performance
80
+
81
+
82
+
83
+ - **(es/optimization)** Replace `map_with_mut` with proper implementation (#3539) ([6d132ca](https://github.com/swc-project/swc/commit/6d132ca0765a46b39a6844b7de2e7f2655f7dd1b))
84
+
85
+ ### Refactor
86
+
87
+
88
+
89
+ - **(css/ast)** Rename tokens to match spec (#3553) ([aed622b](https://github.com/swc-project/swc/commit/aed622be2f8f73581ce72f5263ad2b61a7b04ea7))
90
+
91
+
92
+ - **(css/parser)** Remove `parse_values`, which is not used (#3552) ([d5aee47](https://github.com/swc-project/swc/commit/d5aee470cb6ea1e25057a5a36f0a19274c1f42b3))
93
+
94
+ ### Testing
95
+
96
+
97
+
98
+ - **(css/codegen)** Add tests (#3563) ([08dd695](https://github.com/swc-project/swc/commit/08dd695c67012fe8d58828ab047cb902b0a7d53c))
99
+
100
+
101
+ - **(css/parser)** Add a test for a custom function name (#3554) ([f252dfb](https://github.com/swc-project/swc/commit/f252dfb885b904ef8386f2004c359a1a2f43b63e))
102
+
103
+ ### Build
104
+
105
+
106
+
107
+ - **(*)** Dedupe `once_cell` (#3567) ([ad6f24a](https://github.com/swc-project/swc/commit/ad6f24ad83ed0086ab7f4e260800df598212be25))
108
+
109
+ ## [1.2.139] - 2022-02-12
110
+
111
+ ### Bug Fixes
112
+
113
+
114
+
8
115
  - **(cli)** Update the plugin template for pinned dependencies (#3538) ([05cf2e9](https://github.com/swc-project/swc/commit/05cf2e92e690c72ca6d49fee1dd33c9e776ba304))
9
116
 
10
117
 
@@ -77,6 +184,9 @@
77
184
  - **(build)** Remove version pinning of `parking_lot_core` (#3537) ([a4d914d](https://github.com/swc-project/swc/commit/a4d914dab5a4263a9f2ac396decd11b64dfc0714))
78
185
 
79
186
 
187
+ - **(ci)** Remove `cargo-uttil` from dependency (#3543) ([068a408](https://github.com/swc-project/swc/commit/068a4087caa12f2c28ec62b5e194a85efcc907a1))
188
+
189
+
80
190
  - **(crates)** Use bot account for publishing commits ([c10cbc4](https://github.com/swc-project/swc/commit/c10cbc4ecaaca8f5795de70c8bcf7feee455aaa4))
81
191
 
82
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.139",
3
+ "version": "1.2.140",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -49,19 +49,19 @@
49
49
  },
50
50
  "dependencies": {},
51
51
  "optionalDependencies": {
52
- "@swc/core-win32-x64-msvc": "1.2.139",
53
- "@swc/core-darwin-x64": "1.2.139",
54
- "@swc/core-linux-x64-gnu": "1.2.139",
55
- "@swc/core-linux-x64-musl": "1.2.139",
56
- "@swc/core-freebsd-x64": "1.2.139",
57
- "@swc/core-win32-ia32-msvc": "1.2.139",
58
- "@swc/core-linux-arm64-gnu": "1.2.139",
59
- "@swc/core-linux-arm-gnueabihf": "1.2.139",
60
- "@swc/core-darwin-arm64": "1.2.139",
61
- "@swc/core-android-arm64": "1.2.139",
62
- "@swc/core-linux-arm64-musl": "1.2.139",
63
- "@swc/core-win32-arm64-msvc": "1.2.139",
64
- "@swc/core-android-arm-eabi": "1.2.139"
52
+ "@swc/core-win32-x64-msvc": "1.2.140",
53
+ "@swc/core-darwin-x64": "1.2.140",
54
+ "@swc/core-linux-x64-gnu": "1.2.140",
55
+ "@swc/core-linux-x64-musl": "1.2.140",
56
+ "@swc/core-freebsd-x64": "1.2.140",
57
+ "@swc/core-win32-ia32-msvc": "1.2.140",
58
+ "@swc/core-linux-arm64-gnu": "1.2.140",
59
+ "@swc/core-linux-arm-gnueabihf": "1.2.140",
60
+ "@swc/core-darwin-arm64": "1.2.140",
61
+ "@swc/core-android-arm64": "1.2.140",
62
+ "@swc/core-linux-arm64-musl": "1.2.140",
63
+ "@swc/core-win32-arm64-msvc": "1.2.140",
64
+ "@swc/core-android-arm-eabi": "1.2.140"
65
65
  },
66
66
  "types": "./index.d.ts",
67
67
  "scripts": {
package/types.d.ts CHANGED
@@ -420,7 +420,7 @@ export interface EsParserConfig {
420
420
  importAssertions?: boolean;
421
421
  }
422
422
  /**
423
- * Options for trasnform.
423
+ * Options for transform.
424
424
  */
425
425
  export interface TransformConfig {
426
426
  /**