@swc/core 1.2.197 → 1.2.198

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 +113 -0
  2. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -5,6 +5,119 @@
5
5
 
6
6
 
7
7
 
8
+ - **(ci)** Fix android build issue caused by NDK 21 -> 23 (#4942) ([52e2347](https://github.com/swc-project/swc/commit/52e23470e71e769e980f1e0d291ebf4a984bbfb8))
9
+
10
+
11
+ - **(es/decorators)** Fix syntax context of decorated classes (#4905) ([814f72f](https://github.com/swc-project/swc/commit/814f72f22454861db2c84aebd40fb6fba6906ac2))
12
+
13
+
14
+ - **(es/fixer)** Preserve parens in optional calls (#4923) ([5bb417e](https://github.com/swc-project/swc/commit/5bb417ef88b545505d24ccf5dad8b72b13a58fcd))
15
+
16
+
17
+ - **(es/helpers)** Fix syntax context of helpers (#4900) ([4e3a878](https://github.com/swc-project/swc/commit/4e3a878b48745d90715e8b9f83aa0d7501150e29))
18
+
19
+
20
+ - **(es/minifier)** Reserve more symbols on `eval` (#4925) ([be87494](https://github.com/swc-project/swc/commit/be87494495a7708769430362f1852f52f77eb47f))
21
+
22
+
23
+ - **(es/modules/amd)** Support `export * as foo from 'foo'` (#4904) ([10f6849](https://github.com/swc-project/swc/commit/10f6849f7aa7a694c582f7150e721ef3b698f0dd))
24
+
25
+
26
+ - **(es/parser)** Allow negative bigint literal in types (#4938) ([11db191](https://github.com/swc-project/swc/commit/11db191af5fe41b5b752b8bc77cc61a05372e0bd))
27
+
28
+
29
+ - **(es/parser)** Check for line break after async (#4940) ([381d273](https://github.com/swc-project/swc/commit/381d273f11584f25343a54b37a0ff9357192f488))
30
+
31
+
32
+ - **(es/resolver)** Hoist namespaces (#4902) ([a9f91dc](https://github.com/swc-project/swc/commit/a9f91dc797cc5d1e96010aa541ba5aa5221b5779))
33
+
34
+
35
+ - **(es/transforms)** Fix threshold ([a70c737](https://github.com/swc-project/swc/commit/a70c7375062f828fd47dd2bc0562b18a3c9cdd6f))
36
+
37
+
38
+ - **(html/codegen)** Fix quotes in attributes (#4918) ([064e504](https://github.com/swc-project/swc/commit/064e50448fb3a916ce52c537f73cedec2253ed50))
39
+
40
+
41
+ - **(html/codegen)** Emit newline in `textarea`/`pre` (#4919) ([4f1e046](https://github.com/swc-project/swc/commit/4f1e04671dcf33fe30dcc0915ea5aa5b0bc19973))
42
+
43
+
44
+ - **(html/parser)** Fix spans (#4877) ([70760d2](https://github.com/swc-project/swc/commit/70760d222281774fab655def4703a663fae962ad))
45
+
46
+ ### Features
47
+
48
+
49
+
50
+ - **(es/lints)** Add `default-case-last` rule (#4913) ([4fb932d](https://github.com/swc-project/swc/commit/4fb932dd0818c76feac01df7ea0c371626b62143))
51
+
52
+
53
+ - **(es/lints)** Add `no-await-in-loop` rule (#4936) ([b041f29](https://github.com/swc-project/swc/commit/b041f2911f65b964f0cf1056afcb78e68ace55d9))
54
+
55
+
56
+ - **(es/minifier)** Drop `new` token if possible (#4932) ([5940894](https://github.com/swc-project/swc/commit/594089488b8b3498d59fb8e07c518ef2071d83bb))
57
+
58
+
59
+ - **(es/modules/amd)** Convert ts import equals to normal AMD import (#4906) ([36a82cc](https://github.com/swc-project/swc/commit/36a82ccfc95ca3b67741c20565f4e7c886711e68))
60
+
61
+
62
+ - **(html/codegen)** Support context element (#4887) ([ae1ff1e](https://github.com/swc-project/swc/commit/ae1ff1e55b4be7d9f611ebbbc0fdaac1d5591ac5))
63
+
64
+
65
+ - **(html/codegen)** Improve entity compression (#4889) ([da09c1c](https://github.com/swc-project/swc/commit/da09c1ca5bc79e63aaf2b4d03b03b216b88ce049))
66
+
67
+
68
+ - **(html/codegen)** Minify svg attributes (#4917) ([f157aae](https://github.com/swc-project/swc/commit/f157aae40cb11d3ecb18f03f5a32cb4423cfab8b))
69
+
70
+
71
+ - **(plugin)** Upgrade `wasmer` (#4929) ([b30032d](https://github.com/swc-project/swc/commit/b30032dd46124b476c3e0ebd94a1845120161ff1))
72
+
73
+
74
+ - **(preset-env)** Upgrade `browserslist-rs` (#4903) ([f7c89c5](https://github.com/swc-project/swc/commit/f7c89c5b601e2fa71eb2f2c0ce56a717fb469c0b))
75
+
76
+ ### Miscellaneous Tasks
77
+
78
+
79
+
80
+ - **(html/parser)** Remove unused dependencies (#4922) ([299da10](https://github.com/swc-project/swc/commit/299da10ff947eddc4a44d24f8e43a435b89e7b89))
81
+
82
+ ### Performance
83
+
84
+
85
+
86
+ - **(es/minifier)** Change default pass limit to 2 (#4924) ([fc0d8e3](https://github.com/swc-project/swc/commit/fc0d8e3f74d61ccbf37d5bb2e2ba6bf85561db97))
87
+
88
+
89
+ - **(es/transforms)** Make transforms parallel (#4939) ([35c93be](https://github.com/swc-project/swc/commit/35c93be60f645fb71bc67f8c7e4fbe6ad5120615))
90
+
91
+
92
+ - **(html/parser)** Improve performance (#4881) ([5abe847](https://github.com/swc-project/swc/commit/5abe847c2358ee9876140772f16d303c388cbbb5))
93
+
94
+
95
+ - **(html/parser)** Improve memory allocation (#4884) ([ce4d577](https://github.com/swc-project/swc/commit/ce4d57735e6cfe240967c8d4c6655bfaca107eea))
96
+
97
+
98
+ - **(html/parser)** Reduce cloning (#4901) ([e365766](https://github.com/swc-project/swc/commit/e3657660701366ca5c5e03876fe032d5a011b92a))
99
+
100
+
101
+ - **(html/parser)** Add a benchmark for document fragment (#4920) ([d669454](https://github.com/swc-project/swc/commit/d669454157da62f9bec4b078230e4e372efd91e3))
102
+
103
+
104
+ - **(html/parser)** Improve performance (#4934) ([f993a52](https://github.com/swc-project/swc/commit/f993a526797ec3e2119828b129bf9aad3b1c28d8))
105
+
106
+ ### Refactor
107
+
108
+
109
+
110
+ - **(es/lints)** Simplify `no-empty-pattern` rule (#4928) ([286f265](https://github.com/swc-project/swc/commit/286f265632b1af6a2b6ebdd495a0c9a5e7af6260))
111
+
112
+
113
+ - **(html/ast)** Avoid `TokenAndSpan` (#4885) ([b14719c](https://github.com/swc-project/swc/commit/b14719c046584878424f794a86c7a0793f7033be))
114
+
115
+ ## [1.2.197] - 2022-06-05
116
+
117
+ ### Bug Fixes
118
+
119
+
120
+
8
121
  - **(css/parser)** Fix parsing of constant function (#4856) ([e083d0e](https://github.com/swc-project/swc/commit/e083d0eb5a0fe0589876722ce4bdecfe9c006120))
9
122
 
10
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.197",
3
+ "version": "1.2.198",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -71,16 +71,16 @@
71
71
  "*.rs": [
72
72
  "rustfmt --"
73
73
  ],
74
- "*.js": [
74
+ "!(**/tests/**/*)*.js": [
75
75
  "prettier --write"
76
76
  ],
77
- "*.ts": [
77
+ "!(**/tests/**/*)*.ts": [
78
78
  "prettier --write"
79
79
  ],
80
- "*.jsx": [
80
+ "!(**/tests/**/*)*.jsx": [
81
81
  "prettier --write"
82
82
  ],
83
- "*.tsx": [
83
+ "!(**/tests/**/*)*.tsx": [
84
84
  "prettier --write"
85
85
  ]
86
86
  },
@@ -94,7 +94,7 @@
94
94
  "@babel/preset-react": "^7.13.13",
95
95
  "@babel/preset-typescript": "^7.13.0",
96
96
  "@babel/types": "^7.14.0",
97
- "@napi-rs/cli": "^2.7.0",
97
+ "@napi-rs/cli": "^2.10.0",
98
98
  "@swc/helpers": "^0.3.8",
99
99
  "@taplo/cli": "^0.3.2",
100
100
  "@types/jest": "^26.0.23",
@@ -135,18 +135,18 @@
135
135
  "url": "https://opencollective.com/swc"
136
136
  },
137
137
  "optionalDependencies": {
138
- "@swc/core-win32-x64-msvc": "1.2.197",
139
- "@swc/core-darwin-x64": "1.2.197",
140
- "@swc/core-linux-x64-gnu": "1.2.197",
141
- "@swc/core-linux-x64-musl": "1.2.197",
142
- "@swc/core-freebsd-x64": "1.2.197",
143
- "@swc/core-win32-ia32-msvc": "1.2.197",
144
- "@swc/core-linux-arm64-gnu": "1.2.197",
145
- "@swc/core-linux-arm-gnueabihf": "1.2.197",
146
- "@swc/core-darwin-arm64": "1.2.197",
147
- "@swc/core-android-arm64": "1.2.197",
148
- "@swc/core-linux-arm64-musl": "1.2.197",
149
- "@swc/core-win32-arm64-msvc": "1.2.197",
150
- "@swc/core-android-arm-eabi": "1.2.197"
138
+ "@swc/core-win32-x64-msvc": "1.2.199",
139
+ "@swc/core-darwin-x64": "1.2.199",
140
+ "@swc/core-linux-x64-gnu": "1.2.199",
141
+ "@swc/core-linux-x64-musl": "1.2.199",
142
+ "@swc/core-freebsd-x64": "1.2.199",
143
+ "@swc/core-win32-ia32-msvc": "1.2.199",
144
+ "@swc/core-linux-arm64-gnu": "1.2.199",
145
+ "@swc/core-linux-arm-gnueabihf": "1.2.199",
146
+ "@swc/core-darwin-arm64": "1.2.199",
147
+ "@swc/core-android-arm64": "1.2.199",
148
+ "@swc/core-linux-arm64-musl": "1.2.199",
149
+ "@swc/core-win32-arm64-msvc": "1.2.199",
150
+ "@swc/core-android-arm-eabi": "1.2.199"
151
151
  }
152
152
  }