@swc/core 1.2.171 → 1.2.172

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 +128 -0
  2. package/package.json +15 -15
package/CHANGELOG.md CHANGED
@@ -5,6 +5,134 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/ast)** Fix tag of `BigInt` (#4440) ([2813eaa](https://github.com/swc-project/swc/commit/2813eaadcd0703b9f8c11d77f91c70cd002c9296))
9
+
10
+
11
+ - **(es/minifier)** Remove the last break in the last `BlockStmt` (#4413) ([83244ad](https://github.com/swc-project/swc/commit/83244add338c3dd1a1a84fec94b73d1931699cdb))
12
+
13
+
14
+ - **(es/minifier)** Don't drop arguments to an IIFE without body (#4419) ([aa19b65](https://github.com/swc-project/swc/commit/aa19b65f9cb1170c36991649348e064406523699))
15
+
16
+
17
+ - **(es/minifier)** Preserve more side effects (#4420) ([8ab12fd](https://github.com/swc-project/swc/commit/8ab12fd97b035e4131775676cdd33daaf31587b8))
18
+
19
+
20
+ - **(es/minifier)** Fix analysis of update expressions (#4428) ([9733917](https://github.com/swc-project/swc/commit/9733917cc718ad4800697ffc9203ad96d5dd3f3f))
21
+
22
+
23
+ - **(es/minifier)** Remove wrong logic for optimizing `delete`s (#4429) ([8118569](https://github.com/swc-project/swc/commit/8118569045135e06fcaadc61255b9ca09ef120ea))
24
+
25
+
26
+ - **(es/parser)** Fix top-level await with binary expr (#4426) ([465cc2f](https://github.com/swc-project/swc/commit/465cc2f92907ebd4ad4a659eca18b6ca2bc426a7))
27
+
28
+
29
+ - **(html/lexer)** Fix lexing of html entity (#4423) ([9b26dbd](https://github.com/swc-project/swc/commit/9b26dbd45763fbf48dd81a1652608cc90736fe4f))
30
+
31
+
32
+ - **(html/parser)** Parse foreign attributes (#4400) ([cf3be64](https://github.com/swc-project/swc/commit/cf3be649bb327feda8bce4e7ab7eca92d248c2da))
33
+
34
+
35
+ - **(html/parser)** Fix parsing of foreign elements (#4422) ([4ccbdf2](https://github.com/swc-project/swc/commit/4ccbdf2a7d6419552db6b34586a32fef52b200bd))
36
+
37
+
38
+ - **(html/parser)** Fix span (#4437) ([3293060](https://github.com/swc-project/swc/commit/329306007018d733bc9d348cd4a5dc839768b3e8))
39
+
40
+
41
+ - **(html/parsing)** Fix parsing of formatting elements (#4442) ([8f2a3ea](https://github.com/swc-project/swc/commit/8f2a3ead6a56c47ae867c40ac863346a0e6bc88a))
42
+
43
+ ### Features
44
+
45
+
46
+
47
+ - **(es/optimization)** Accept top level mark from simplifiers (#4434) ([8048597](https://github.com/swc-project/swc/commit/8048597c9ec10fb956de06e6b2de28e621262dd9))
48
+
49
+
50
+ - **(es/parser)** Reject invalid regex flags (#4404) ([c96e322](https://github.com/swc-project/swc/commit/c96e32243c549d0f7db26a8e76d69a5646b4865c))
51
+
52
+
53
+ - **(es/parser)** Reject invalid `new.target` (#4406) ([da02c9d](https://github.com/swc-project/swc/commit/da02c9dc509f97d58f565223c81e7b123b0301c5))
54
+
55
+
56
+ - **(es/parser)** Reject `'use strict'` with non-simple params list in TS (#4416) ([6dc64c9](https://github.com/swc-project/swc/commit/6dc64c9ca0bccf27b325d3298f4ed7f07eaaa076))
57
+
58
+
59
+ - **(es/resolver)** Use different syntax context for unresolved refs (#4436) ([53610fd](https://github.com/swc-project/swc/commit/53610fdafc83d25f0a5132b3381737aaffb1a29d))
60
+
61
+
62
+ - **(html)** Prepare processing system (#4358) ([7332dce](https://github.com/swc-project/swc/commit/7332dce4f801546f0c5f29b6919feaaebebc435a))
63
+
64
+
65
+ - **(html/codegen)** Print unquoted value when it is possible (#4402) ([c15dc4f](https://github.com/swc-project/swc/commit/c15dc4f2b7e97eae939a82113ff5ab15a2553d78))
66
+
67
+
68
+ - **(html/minifier)** Initialize crate (#4403) ([63a6280](https://github.com/swc-project/swc/commit/63a6280e8f691f93db246db02ce2479b08874220))
69
+
70
+
71
+ - **(html/minifier)** Remove `script` `type` attribute (#4407) ([fec0f2e](https://github.com/swc-project/swc/commit/fec0f2e417b8da2e0391f594f28d32e93b03673e))
72
+
73
+
74
+ - **(html/minifier)** Compress `type` for `style` and `link` tags (#4424) ([25a87f0](https://github.com/swc-project/swc/commit/25a87f000048facf4daa78fb6605af3b1e50e81e))
75
+
76
+
77
+ - **(html/minifier)** Compress doctype (#4425) ([6fc70f3](https://github.com/swc-project/swc/commit/6fc70f3866e4d60867a3ae38ae40c8f46065153c))
78
+
79
+
80
+ - **(html/minifier)** Compress default values of attributes (#4427) ([4c699f2](https://github.com/swc-project/swc/commit/4c699f2554157333f0598cd4f8143f536027d396))
81
+
82
+
83
+ - **(node/css)** Add css bindings crate (#4346) ([6a19ff1](https://github.com/swc-project/swc/commit/6a19ff1a152b67b15714c0290eb21ede878692e5))
84
+
85
+
86
+ - **(preset-env/base)** Update "browserslist-rs" (#4435) ([1c2af93](https://github.com/swc-project/swc/commit/1c2af932b68cae34805b4ab789d6f2ccb4171fa4))
87
+
88
+ ### Miscellaneous Tasks
89
+
90
+
91
+
92
+ - **(ci)** Improve bot script (#4430) ([c216a03](https://github.com/swc-project/swc/commit/c216a03673ca12e16d3650161eb890e6236054b1))
93
+
94
+
95
+ - **(ci)** Use `yarn` instead of `npm` (#4432) ([b3fb0e9](https://github.com/swc-project/swc/commit/b3fb0e9ceb45b6d2b1c45499680a7d519f6d2f25))
96
+
97
+
98
+ - **(es/minifier)** Add a script to instrument real-world inputs (#4399) ([efdf93d](https://github.com/swc-project/swc/commit/efdf93d91099bab79f04a58635b418b7160a0b75))
99
+
100
+
101
+ - **(plugin)** Add a benchmark (#4397) ([60efb7e](https://github.com/swc-project/swc/commit/60efb7e9c75445fdffccf936964785424f421a7e))
102
+
103
+
104
+ - **(repo)** Make `git commit` faster (#4421) ([65e00aa](https://github.com/swc-project/swc/commit/65e00aafc3b27bc896178fc9b3164fef0777cd9f))
105
+
106
+ ### Performance
107
+
108
+
109
+
110
+ - **(es/minifier)** Add some fast-path to the `MultiReplacer` (#4408) ([4c9e5c0](https://github.com/swc-project/swc/commit/4c9e5c01ef91d01c95a6e928daa9e99839eabedf))
111
+
112
+ ### Testing
113
+
114
+
115
+
116
+ - **(es)** Add tests for `.swcrc` (#4398) ([5134b4f](https://github.com/swc-project/swc/commit/5134b4f9bee5725bae53876067399aa0528a8add))
117
+
118
+
119
+ - **(es/minifier)** Split tests into improvement and stabilization (#4409) ([ab88637](https://github.com/swc-project/swc/commit/ab886379377726bd32f9221da494eb00d9b6fa94))
120
+
121
+
122
+ - **(es/minifier)** Use `_` instead of `-` for terser tests (#4411) ([4e11303](https://github.com/swc-project/swc/commit/4e113037e5142ca24bb4f28c316f58bbd28d3f9b))
123
+
124
+
125
+ - **(es/minifier)** Execute terser tests if possible (#4418) ([f787f8c](https://github.com/swc-project/swc/commit/f787f8c81943b022078a53575486094d5d2b1eca))
126
+
127
+
128
+ - **(es/minifier)** Categorize tests (#4410) ([9b34ecf](https://github.com/swc-project/swc/commit/9b34ecfd2e292ed557b4e357ea61a0cda4533445))
129
+
130
+ ## [1.2.171] - 2022-04-22
131
+
132
+ ### Bug Fixes
133
+
134
+
135
+
8
136
  - **(common)** Ignore extraneous mapping of 1, 0 => 0, 0 (#4381) ([a06c559](https://github.com/swc-project/swc/commit/a06c55930f64a158b289c790ac9f7f71de78838a))
9
137
 
10
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.171",
3
+ "version": "1.2.172",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -69,7 +69,7 @@
69
69
  "taplo format"
70
70
  ],
71
71
  "*.rs": [
72
- "cargo fmt --"
72
+ "rustfmt --"
73
73
  ]
74
74
  },
75
75
  "devDependencies": {
@@ -121,18 +121,18 @@
121
121
  "url": "https://opencollective.com/swc"
122
122
  },
123
123
  "optionalDependencies": {
124
- "@swc/core-win32-x64-msvc": "1.2.171",
125
- "@swc/core-darwin-x64": "1.2.171",
126
- "@swc/core-linux-x64-gnu": "1.2.171",
127
- "@swc/core-linux-x64-musl": "1.2.171",
128
- "@swc/core-freebsd-x64": "1.2.171",
129
- "@swc/core-win32-ia32-msvc": "1.2.171",
130
- "@swc/core-linux-arm64-gnu": "1.2.171",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.171",
132
- "@swc/core-darwin-arm64": "1.2.171",
133
- "@swc/core-android-arm64": "1.2.171",
134
- "@swc/core-linux-arm64-musl": "1.2.171",
135
- "@swc/core-win32-arm64-msvc": "1.2.171",
136
- "@swc/core-android-arm-eabi": "1.2.171"
124
+ "@swc/core-win32-x64-msvc": "1.2.172",
125
+ "@swc/core-darwin-x64": "1.2.172",
126
+ "@swc/core-linux-x64-gnu": "1.2.172",
127
+ "@swc/core-linux-x64-musl": "1.2.172",
128
+ "@swc/core-freebsd-x64": "1.2.172",
129
+ "@swc/core-win32-ia32-msvc": "1.2.172",
130
+ "@swc/core-linux-arm64-gnu": "1.2.172",
131
+ "@swc/core-linux-arm-gnueabihf": "1.2.172",
132
+ "@swc/core-darwin-arm64": "1.2.172",
133
+ "@swc/core-android-arm64": "1.2.172",
134
+ "@swc/core-linux-arm64-musl": "1.2.172",
135
+ "@swc/core-win32-arm64-msvc": "1.2.172",
136
+ "@swc/core-android-arm-eabi": "1.2.172"
137
137
  }
138
138
  }