@swc/core 1.3.32 → 1.3.35

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,85 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/minifier)** Don't skip shorthand properties from sequential inliner (#6918) ([725d3fb](https://github.com/swc-project/swc/commit/725d3fb645976681bc11b1df943f3ca1008788ab))
9
+
10
+
11
+ - **(es/preset-env)** Fix default target (#6921) ([85a8def](https://github.com/swc-project/swc/commit/85a8defc37ce20b051b1bf2139ead7182d496483))
12
+
13
+
14
+ - **(es/typescript)** Fix handling of non-uppercase JSX elements (#6928) ([ebc65c7](https://github.com/swc-project/swc/commit/ebc65c7dcba4ccfeb7c0a1e200b5130bc8a15791))
15
+
16
+ ### Miscellaneous Tasks
17
+ - **general**: Bump swc_css_* (#6924) ([75376cd](https://github.com/swc-project/swc/commit/75376cd65cf10e9777aab5e00abf9f851a222a49))
18
+
19
+ ## [1.3.34] - 2023-02-08
20
+
21
+ ### Bug Fixes
22
+
23
+
24
+
25
+ - **(bindings)** Don't require unnecessary package (#6902) ([964dfba](https://github.com/swc-project/swc/commit/964dfbaf1ab018d26d4acc574bd4fce5272bf890))
26
+
27
+
28
+ - **(bindings/node)** Add `esnext` to `JscTarget` (#6908) ([82128e3](https://github.com/swc-project/swc/commit/82128e3734f8f5a92e85ed748e92f4f62bb4c63f))
29
+
30
+
31
+ - **(css/modules)** Fix interop of `&` and `:global` (#6900) ([f85ea9c](https://github.com/swc-project/swc/commit/f85ea9cb570ee9431926fb51559ecd34a701384f))
32
+
33
+
34
+ - **(es/minifier)** Respect span hygiene from expr simplifier (#6899) ([432dca6](https://github.com/swc-project/swc/commit/432dca647b5ab6d083d1cedbf68d6afc511f84fe))
35
+
36
+
37
+ - **(es/minifier)** Don't break ternary with assignment in test (#6906) ([951dafb](https://github.com/swc-project/swc/commit/951dafbc1a56b8b29fd76aaad8138e58eaadda12))
38
+
39
+
40
+ - **(es/module)** Fix SystemJS imports (#6879) ([85fffda](https://github.com/swc-project/swc/commit/85fffdad022cf1bccf8763e7bb73fb15f62d2430))
41
+
42
+
43
+ - **(es/parser)** Fix stack overflow due to deeply nested if (#6910) ([f36d945](https://github.com/swc-project/swc/commit/f36d945a33418e991d3ebee27956976ffd5ef446))
44
+
45
+
46
+ - **(es/parser)** Don't use `stacker` for armv7 (#6916) ([4c5d5a6](https://github.com/swc-project/swc/commit/4c5d5a6fcaf49782effc6079bb92adec45ceb83c))
47
+
48
+
49
+ - **(es/resolver)** Resolve parameters correctly (#6890) ([861d87c](https://github.com/swc-project/swc/commit/861d87cae622f371ea697b1cb07ed79d32579b74))
50
+
51
+
52
+ - **(es/typescript)** Ignore jsx element names (#6911) ([ee3a107](https://github.com/swc-project/swc/commit/ee3a1071a5dbe0f2b718dd4f2e9959076cfa337c))
53
+
54
+ ### Documentation
55
+
56
+
57
+
58
+ - **(readme)** Split download badge (#6917) ([d779927](https://github.com/swc-project/swc/commit/d779927b4d00a19b3eb2b6cb792a682cbc006970))
59
+
60
+ ### Features
61
+
62
+
63
+
64
+ - **(bindings/cli)** Add `--config` (#6835) ([d993c4d](https://github.com/swc-project/swc/commit/d993c4def65b0bf900a6b8b8f0d0dee44ba8e0c8))
65
+
66
+
67
+ - **(bindings/cli)** Support for *.mts/*.cts files (#6909) ([76bc8a2](https://github.com/swc-project/swc/commit/76bc8a29743edf397c59f5283aaa74a08e8fba57))
68
+
69
+ ### Miscellaneous Tasks
70
+
71
+
72
+
73
+ - **(bindings/cli)** Enable `preferUnplugged` by default for the plugins (#6912) ([17f1c50](https://github.com/swc-project/swc/commit/17f1c50287c798b57a0d2ac2a95ba6c864b1c2d7))- **general**: Make issue templates mention `no +1` (#6894) ([5d5140f](https://github.com/swc-project/swc/commit/5d5140f0a50696d747ee62e72866b9b03e52cde3))
74
+
75
+ ### Testing
76
+
77
+
78
+
79
+ - **(es/module)** Add a test for `jsc.paths` on windows (#6915) ([d18027c](https://github.com/swc-project/swc/commit/d18027cf9b6c45a7b70cf3dd4c3a23b81d92c93a))
80
+
81
+ ## [1.3.32] - 2023-02-01
82
+
83
+ ### Bug Fixes
84
+
85
+
86
+
8
87
  - **(es)** Remove useless message (#6882) ([9301703](https://github.com/swc-project/swc/commit/93017033117ff0c89d9a7a992d7a8834ee030227))
9
88
 
10
89
 
package/README.md CHANGED
@@ -10,8 +10,13 @@
10
10
 
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/@swc/core">
13
- <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/helpers">
13
+ <img alt="downloads (@swc/core)" src="https://img.shields.io/npm/dm/@swc/core?label=downloads%20%28%40swc%2Fcore%29">
14
14
  </a>
15
+ <a href="https://www.npmjs.com/package/@swc/helpers">
16
+ <img alt="downloads (3rd party)" src="https://img.shields.io/npm/dm/@swc/helpers?label=downloads%20%283rd%20party%29">
17
+ </a>
18
+ </p>
19
+ <p align="center">
15
20
  <a href="https://crates.io/crates/swc_ecma_parser">
16
21
  <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
17
22
  </a>
@@ -78,8 +83,8 @@ Please see [benchmark results](https://swc.rs/docs/benchmark-transform) on the w
78
83
 
79
84
  SWC is a community-driven project, and is maintained by a group of [volunteers](https://opencollective.com/swc#team). If you'd like to help support the future of the project, please consider:
80
85
 
81
- - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
82
- - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
86
+ - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
87
+ - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
83
88
 
84
89
  ## Contributing
85
90
 
package/binding.js CHANGED
@@ -105,17 +105,6 @@ switch (platform) {
105
105
  }
106
106
  break;
107
107
  case 'darwin':
108
- localFileExisted = existsSync(join(__dirname, 'swc.darwin-universal.node'));
109
- try {
110
- if (localFileExisted) {
111
- nativeBinding = require('./swc.darwin-universal.node');
112
- }
113
- else {
114
- nativeBinding = require('@swc/core-darwin-universal');
115
- }
116
- break;
117
- }
118
- catch (_a) { }
119
108
  switch (arch) {
120
109
  case 'x64':
121
110
  localFileExisted = existsSync(join(__dirname, 'swc.darwin-x64.node'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.32",
3
+ "version": "1.3.35",
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.32",
142
- "@swc/core-darwin-x64": "1.3.32",
143
- "@swc/core-linux-x64-gnu": "1.3.32",
144
- "@swc/core-linux-x64-musl": "1.3.32",
145
- "@swc/core-win32-ia32-msvc": "1.3.32",
146
- "@swc/core-linux-arm64-gnu": "1.3.32",
147
- "@swc/core-linux-arm-gnueabihf": "1.3.32",
148
- "@swc/core-darwin-arm64": "1.3.32",
149
- "@swc/core-linux-arm64-musl": "1.3.32",
150
- "@swc/core-win32-arm64-msvc": "1.3.32"
141
+ "@swc/core-win32-x64-msvc": "1.3.35",
142
+ "@swc/core-darwin-x64": "1.3.35",
143
+ "@swc/core-linux-x64-gnu": "1.3.35",
144
+ "@swc/core-linux-x64-musl": "1.3.35",
145
+ "@swc/core-win32-ia32-msvc": "1.3.35",
146
+ "@swc/core-linux-arm64-gnu": "1.3.35",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.35",
148
+ "@swc/core-darwin-arm64": "1.3.35",
149
+ "@swc/core-linux-arm64-musl": "1.3.35",
150
+ "@swc/core-win32-arm64-msvc": "1.3.35"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -474,7 +474,7 @@ export interface JscConfig {
474
474
  minify?: JsMinifyOptions;
475
475
  preserveAllComments?: boolean;
476
476
  }
477
- export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022";
477
+ export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "esnext";
478
478
  export type ParserConfig = TsParserConfig | EsParserConfig;
479
479
  export interface TsParserConfig {
480
480
  syntax: "typescript";