@swc/core 1.2.155 → 1.2.156

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 +89 -0
  2. package/package.json +18 -15
package/CHANGELOG.md CHANGED
@@ -5,6 +5,95 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es)** Sort spans while preserving comments (#4011) ([b337c2e](https://github.com/swc-project/swc/commit/b337c2e2d4716520c3cf718b2037d299d9654bc5))
9
+
10
+
11
+ - **(es/compat)** Change pass ordering of `es2015` (#4029) ([e19a60a](https://github.com/swc-project/swc/commit/e19a60aad44318d9752f790c913bf010423e7f7c))
12
+
13
+
14
+ - **(es/decorator)** Remove `noop_fold_type` (#4022) ([0c8c3d7](https://github.com/swc-project/swc/commit/0c8c3d7d51e49ad9050224a8647ebc55a0262b35))
15
+
16
+
17
+ - **(es/decorator)** Insert initializer to constructor with body (#4028) ([0c76696](https://github.com/swc-project/swc/commit/0c76696ed2d8cbf00a18fd9506b8c09f1be9cdd3))
18
+
19
+
20
+ - **(es/helpers)** Inject helpers for scripts (#4025) ([73c91d3](https://github.com/swc-project/swc/commit/73c91d34d5c6fcd869e99db02b0cf82f8e159224))
21
+
22
+
23
+ - **(es/lints)** Fix false-positive of `duplicate-exports` (#4041) ([ba1c854](https://github.com/swc-project/swc/commit/ba1c854fb1685e581599da3e9f25a4e35a9279bc))
24
+
25
+
26
+ - **(es/modules)** Use correct span for `ExportAll`s (#4038) ([834cd4f](https://github.com/swc-project/swc/commit/834cd4f7b6866729b345fe68ce6386dc94b202d7))
27
+
28
+
29
+ - **(es/parser)** Report an error if `LeftHandSideExpression` is invalid (#4001) ([f8d6127](https://github.com/swc-project/swc/commit/f8d6127dd1a064e2d4b255dfc1894a1b9eb89f71))
30
+
31
+
32
+ - **(es/parser)** Allow building with stable `rustc` (#4024) ([25e5ccc](https://github.com/swc-project/swc/commit/25e5ccc548260823c9ad78b607617440e04950d3))
33
+
34
+
35
+ - **(es/parser)** Emit an error for multiple constructors with body (#4031) ([120d2a5](https://github.com/swc-project/swc/commit/120d2a534e76003e726848f3fc9f6c648a837dbb))
36
+
37
+
38
+ - **(node-swc)** Disable logging of `warn` level by default (#4033) ([bba5a33](https://github.com/swc-project/swc/commit/bba5a33415b6420c9e7b85f50da4df6c11ac9e6d))
39
+
40
+ ### Features
41
+
42
+
43
+
44
+ - **(cli/compile)** Support `out-file` (#4016) ([629709e](https://github.com/swc-project/swc/commit/629709e1b14bb6c5a6b9963fec234fb9c6911786))
45
+
46
+
47
+ - **(css)** Supports more color notations (#4009) ([a4bc092](https://github.com/swc-project/swc/commit/a4bc0927a0c44ba9d3219964d8548a0cf11d24ce))
48
+
49
+
50
+ - **(css/prefixer)** Implement more rules for prefixer (#4013) ([4f6f244](https://github.com/swc-project/swc/commit/4f6f244170f2059e1b5a3765560b91c102e00a1b))
51
+
52
+
53
+ - **(es/minifier)** Drop noop calls (#4019) ([be09ea6](https://github.com/swc-project/swc/commit/be09ea6991165162fd9fa4cfce2ead4cdba0b0cf))
54
+
55
+
56
+ - **(es/transforms/base)** Add `paren_remover` (#4034) ([3a4704f](https://github.com/swc-project/swc/commit/3a4704fe77d3d3533e2f1dc438c63c8058a1df51))
57
+
58
+ ### Miscellaneous Tasks
59
+
60
+
61
+
62
+ - **(ci)** Make bump-command check lazy (#4018) ([c27b84c](https://github.com/swc-project/swc/commit/c27b84c3f693ecae73cb0da74dd6f6178d8ab45e))
63
+
64
+
65
+ - **(ci)** Fix auto-rebase script ([9b8b111](https://github.com/swc-project/swc/commit/9b8b11126480ae9b1160f3b5722fc4e27a05b025))
66
+
67
+
68
+ - **(ci)** Revert package scripts to fix publish action (#4039) ([eee8e0f](https://github.com/swc-project/swc/commit/eee8e0f7bb025fea83c6ba44a506799be061c2f6))
69
+
70
+ ### Refactor
71
+
72
+
73
+
74
+ - **(es/minifier)** Cleanup (#4020) ([3173047](https://github.com/swc-project/swc/commit/3173047f589128c429d02b7cb128d80f0fd6e011))
75
+
76
+
77
+ - **(plugin/runner)** Split modules and introduce feature flags (#4035) ([dab2002](https://github.com/swc-project/swc/commit/dab2002a2eebefde1db545fd8f388fa528079f33))
78
+
79
+ ### Testing
80
+
81
+
82
+
83
+ - **(es)** Add tests for fixed issues (#4036) ([71f7cf2](https://github.com/swc-project/swc/commit/71f7cf2011fd948a0c1d7c4268316f3c0103f2f3))
84
+
85
+ ### Build
86
+
87
+
88
+
89
+ - **(tsconfig)** Set `tsbuildinfo` filename (#4042) ([a1308c9](https://github.com/swc-project/swc/commit/a1308c9a16c651555acb2c6e082ce95519fda88e))
90
+
91
+ ## [1.2.155] - 2022-03-14
92
+
93
+ ### Bug Fixes
94
+
95
+
96
+
8
97
  - **(common)** Don't use `None` as source while generating source maps (#4007) ([0ad13d9](https://github.com/swc-project/swc/commit/0ad13d93f288e54f245b249920d74cfe13d1e969))
9
98
 
10
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.155",
3
+ "version": "1.2.156",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -56,9 +56,11 @@
56
56
  "prepare": "husky install && git config feature.manyFiles true && node ./crates/swc_ecma_preset_env/scripts/copy-data.js",
57
57
  "artifacts": "napi artifacts --dist scripts/npm",
58
58
  "prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
59
+ "pack": "wasm-pack",
60
+ "build:ts": "tsc -d",
61
+ "build:wasm": "npm-run-all \"pack -- build ./crates/wasm --scope swc {1} -t {2} --features plugin\" --",
59
62
  "build": "tsc -d && napi build --platform --cargo-name node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p node --release",
60
63
  "build:dev": "tsc -d && napi build --platform --cargo-name node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p node",
61
- "build:ts": "tsc -d",
62
64
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest node-swc/__tests__",
63
65
  "version": "napi version -p scripts/npm"
64
66
  },
@@ -91,6 +93,7 @@
91
93
  "jest": "^27.0.1",
92
94
  "lodash": "^4.17.21",
93
95
  "mocha": "^9.1.3",
96
+ "npm-run-all": "^4.1.5",
94
97
  "progress": "^2.0.3",
95
98
  "prop-types": "^15.7.2",
96
99
  "react": "^17.0.2",
@@ -108,18 +111,18 @@
108
111
  "url": "https://opencollective.com/swc"
109
112
  },
110
113
  "optionalDependencies": {
111
- "@swc/core-win32-x64-msvc": "1.2.155",
112
- "@swc/core-darwin-x64": "1.2.155",
113
- "@swc/core-linux-x64-gnu": "1.2.155",
114
- "@swc/core-linux-x64-musl": "1.2.155",
115
- "@swc/core-freebsd-x64": "1.2.155",
116
- "@swc/core-win32-ia32-msvc": "1.2.155",
117
- "@swc/core-linux-arm64-gnu": "1.2.155",
118
- "@swc/core-linux-arm-gnueabihf": "1.2.155",
119
- "@swc/core-darwin-arm64": "1.2.155",
120
- "@swc/core-android-arm64": "1.2.155",
121
- "@swc/core-linux-arm64-musl": "1.2.155",
122
- "@swc/core-win32-arm64-msvc": "1.2.155",
123
- "@swc/core-android-arm-eabi": "1.2.155"
114
+ "@swc/core-win32-x64-msvc": "1.2.156",
115
+ "@swc/core-darwin-x64": "1.2.156",
116
+ "@swc/core-linux-x64-gnu": "1.2.156",
117
+ "@swc/core-linux-x64-musl": "1.2.156",
118
+ "@swc/core-freebsd-x64": "1.2.156",
119
+ "@swc/core-win32-ia32-msvc": "1.2.156",
120
+ "@swc/core-linux-arm64-gnu": "1.2.156",
121
+ "@swc/core-linux-arm-gnueabihf": "1.2.156",
122
+ "@swc/core-darwin-arm64": "1.2.156",
123
+ "@swc/core-android-arm64": "1.2.156",
124
+ "@swc/core-linux-arm64-musl": "1.2.156",
125
+ "@swc/core-win32-arm64-msvc": "1.2.156",
126
+ "@swc/core-android-arm-eabi": "1.2.156"
124
127
  }
125
128
  }