Open
Conversation
cd1e967 to
3ad524c
Compare
3ad524c to
d60888b
Compare
d60888b to
0eb5877
Compare
0eb5877 to
176dc26
Compare
176dc26 to
2aa3426
Compare
2aa3426 to
f9f5e06
Compare
f9f5e06 to
91f02f0
Compare
91f02f0 to
4884e40
Compare
4884e40 to
5118f4d
Compare
5118f4d to
45880ca
Compare
45880ca to
0c90d38
Compare
0c90d38 to
f4d8fd2
Compare
f4d8fd2 to
bfdcc6e
Compare
bfdcc6e to
24293c8
Compare
24293c8 to
f1c710a
Compare
f1c710a to
15dd3ab
Compare
15dd3ab to
eb0a368
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.2.197->1.2.224Release Notes
swc-project/swc
v1.2.224Compare Source
Bug Fixes
(es/codegen) Emit extra dot if a float is too large (#5407) (6dca81e)
(es/fixer) Preserve parens for optional chaining expressions (#5388) (9443419)
(es/minifier) Inline vars declared in conditional paths (#5392) (ca21fd0)
(es/modules) Use an indirect call for a tagged template (#5382) (cdb6164)
Features
(es/codegen) Remove more whitespaces from
BinExpr(#5380) (e37b7e8)(swc_core) Expand features to support node bindings (#5387) (038a543)
(swc_core) Expose
quote!macros (#5400) (8ca736f)Testing
(es/minifier) Update the golden list (#5378) (84a1ef8)
(es/minifier) Add snapshots of compressed libraries (#5389) (a46669d)
(es/minifier) Organize simple size tests (#5403) (86da544)
v1.2.223Compare Source
Bug Fixes
(es/fixer) Don't insert extra paren when left of
BinExprisUpdateExpr(#5376) (77497e4)(es/lints) Ignore TS module declare blocks (#5363) (daaa8b5)
(es/minifier) Drop more comments (#5361) (27cdc65)
(es/minifier) Optimize inlining function calls with a literal in arguments (#5365) (b221f90)
Documentation
Features
(es/minifier) Remove duplicate
vardeclarations (#5373) (4fdbe40)(es/minifier) Consider char frequencies (#5375) (3943eb2)
(swc_core) Introduce package (#5364) (27b464d)
(swc_core) Expand features and use it from wasm and cli (#5369) (8b9dd6f)
Miscellaneous Tasks
Performance
v1.2.222Compare Source
Bug Fixes
(css/ast) Support list of component values (#5321) (8f81104)
(css/prefixer) Generate prefixes for selectors using env (#5307) (b18172d)
(es/codegen) Emit type parameters of class super expression (#5338) (42d8ad2)
(es/minifier) Change default es version to
es5(#5333) (64a9946)(es/minifier) Check if an inlined value is mutated (#5318) (11f495a)
(es/minifier) Ignore member expression without side-effects in assign position (#5344) (8611161)
(es/minifier) Allow single-thread mode (#5353) (fbdc9af)
(es/utils) Fix
contains_top_level_await(#5335) (1d10c3e)Features
(css/prefixer) Prefix more properties (#5340) (8e12e52)
(css/prefixer) Avoid prefixing general functions (#5319) (07732d6)
(wasm) Add interfaces for wasm bindings (#5341) (c16b6b7)
(wasm) Enable string interning (#5351) (b0cb35a)
(wasm) Expose async facade interfaces (#5352) (281bdd9)
(xml) Add xml crates (#5329) (83e5023)
Miscellaneous Tasks
(ci) Set MSRV to
1.60(#5354) (d3ecfd3)(ci) Fix publish action (#5358) (4c461d1)
Performance
(es/minifier) Make name mangler faster (#5336) (b378c06)
(html/parser) Apply small memory optimizations (#5345) (2a499de)
Refactor
Testing
(es) Support tsc multi-file unit tests (#5316) (81ac366)
(es) Update test cases (#5334) (add1b75)
Build
(cargo) Update packages (#5331) (5c9ea16)
(node) Include fallback binding as a dependency (#5322) (0782d25)
v1.2.220Compare Source
Bug Fixes
(atoms) Workaround a bug of
rkyv(#5323) (14894ed)(css/prefixer) Avoid prefixes for media features (#5308) (925b16a)
Features
Testing
v1.2.219Compare Source
Bug Fixes
(css) Fix parsing of
layer(#5290) (83651c2)(css/prefixer) Generate at-rules based on preset-env (#5294) (94b4e0a)
(es/codegen) Add
;for a generator function (#5292) (daac26b)(es/codegen) Fix sourcemap of multiline comments (#5299) (3100bf8)
(es/compat) Preserve orders of
imports andexports (#5249) (2010409)(es/compat) Fix capturing of block scoping pass (#5279) (b423d6f)
(es/decorators) Use decorated consturctors (#5263) (d9877e3)
(es/fixer) Wrap
awaitandyieldin callee (#5314) (b3269fd)(es/minifier) Preserve order of side-effects in sequences pass (#5283) (ee84842)
(es/modules) Use a private context for
export from(#5262) (c0ace4c)(es/preset-env) Realign with
babel-polyfills(#5293) (dd0a152)(es/preset-env) Don't add instance properties when there's a static property (#5305) (06677c2)
(es/visit) Disable
serdeby default (#5273) (a0007e1)(html/minifier) Don't break unknown attributes (#5256) (4f55459)
(html/parser) Fix span (#5312) (c80b9e1)
Documentation
Features
(css/minifier) Remove duplicate selectors (#5257) (ce34746)
(css/prefixer) Implement
preset-env(#5247) (e78d23d)(es/codegen) Optimize number and bigint literal (#5223) (3f0856d)
(es/codegen) Remove extra space before a private method (#5295) (0f254d5)
(es/minifier) Calculate correct size (#5253) (6573324)
(es/plugin) Add experimental metadata field (#5254) (bd1c2cc)
(es/plugin) Pass experimental metadata from host (#5261) (43eeeb3)
(node) Coerce fallback bindings (#5250) (7e6ffff)
(plugin) Make metadata api lazy (#5310) (5a164bd)
(testing/macros) Generalize test names with regex (#5242) (ecbf9d6)
Miscellaneous Tasks
(ci) Update macos runner (#5284) (e8473eb)
(ci) Fix build for Android platforms (#5317) (18d4029)
(deps) Update
bytecheck(#5296) (35b1e78)- general: Fix CI (#5251) (d229917)- general: Fix CI (3421064)Performance
Atomin some places (#5271) (037a53d)Testing
Build
v1.2.218Compare Source
Bug Fixes
(cli) Emit sourcemap with file inputs (#5213) (3e3be80)
(es) Check the syntax context of
arguments(#5174) (375774d)(es) Fix resolving of symlinks (#5222) (27cc45d)
(es/codegen) Mark bigint as an item starting with number (#5207) (387d5e4)
(es/fixer) Handle invalid numeric literals (#5201) (436f620)
(es/lints) Disallow duplicate export functions (#5234) (c68d484)
(es/minifier) Fix size calculation of numbers (#5232) (2e9c9be)
(es/modules) Preserve order for ts import equals (#5215) (6b1ce09)
(es/parser) Fix parsing of export specifiers (#5190) (ec93783)
(html/parser) Fix span (#5209) (b4daa30)
(html/parser) Improve span (#5230) (0f7646c)
(testing) Allow space in file names (#5237) (de76868)- general: Fix(es/lints: Handle ts export import equals (#5225)
(04de455)
Features
(css/ast) Make
rawoptional (#5211) (b65a16c)(es) Add quote to
swc_ecmascript(#5199) (fbfa59b)(es/lints) Support
ignoreReadBeforeAssignforprefer-const(#4933) (d035648)(es/plugin) Print filename on failure (#5200) (f69dee7)
(html/ast) Add
rawto attributes (#5208) (64237fa)(html/ast) Add
rawto doctype (#5198) (945510a)(html/minifier) Compress more default attributes (#5182) (625fc18)
(html/minifier) Improve minifier (#5227) (1da6016)
(html/parser) Add
rawto comments (#5196) (dead719)(node) Use wasm as a fallback (#5233) (1cebf62)
(plugin) Pass
unresolved_markto plugins (#5212) (92c0153)(quote) Support different types for variables (#5194) (c91abb2)
Miscellaneous Tasks
(ci) Skip plugin e2e tests for unsupported targets (#5203) (6b6b582)
(ci) Disable plugin tests while publishing (31bbf2d)
(ci) Disable some tests (ff949b0)
(ci) Fix publish script (#5241) (66550d6)
(visit) Specify version of
swc_macros_common(#5231) (1aa0223)- general: Typo (#5239) (17f1cee)- general: Typo (#5238) (df426d7)Testing
(css/codegen) Add tests (#5195) (fa4c2de)
(css/parser) Add a test (#5228) (8e5efb6)
(es/plugin) Build plugins for e2e testing (#5210) (cd94f0a)
(plugin) Setup e2e fixture testing for plugins (#5192) (2fa51ec)
(plugin) Fix e2e tests on windows (#5216) (f1ba332)
Build
v1.2.215Compare Source
v1.2.213Compare Source
Bug Fixes
(css/codegen) Fix sourcemap of multibyte characters (#5183) (5b70233)
(css/parser) Avoid skipping whitespaces if not required (#5181) (7b28521)
(es/minifier) Don't merge exported declarations (#5193) (16ece4d)
(html/codegen) Fix source map generation (#5184) (60ca553)
(node/types) Fix AST type definitions (#5175) (afd5171)
Features
(es/codegen) Emit comments in
emit_module(#5132) (1ef541e)(html/minifier) Allow specifying options for other tools (#5125) (dada2d7)
(visit) Improve API (#5185) (4744d43)
(visit) Implement serde for
AstParentKind(#5191) (d1418ee)Testing
v1.2.212Compare Source
Bug Fixes
(es/modules) Add the missing span for
export default(#5170) (997240c)(es/modules) Keep TDZ for
export defaultif possible (#5164) (56ad09a)Features
(plugin/macros) Export new interface for getting plugin schema version (#5166) (f167198)
(visit) Add index to
AstKind(#5138) (ac3a55a)Miscellaneous Tasks
Performance
v1.2.211Compare Source
Bug Fixes
(cli) Constructs config file correctly (#5146) (4f87396)
(es/compat) Preserve more class names (#5106) (dd39a79)
(es/compat) Optimize
for-ofloops for array literals (#5141) (9351303)(es/compat) Remove extra
this/argumentscapture in arrows (#5152) (cd8d65b)(es/lints) Handle import-require duplicate bindings (#5131) (a0ec370)
(es/minifier) Don't inline a callable expression if it's used as a reference (#5118) (0e4a03c)
(es/modules) Handle top level this (#5159) (451f346)
(es/modules) Handle top level this, really (#5160) (2555d71)
(es/parser) Support type-only export-import declarations (#5122) (fbfca36)
(sourcemap) Handle multi-byte characters correctly (#5153) (bbbe0b6)
Documentation
(es/parser) Typo (#5136) (9d4be11)
(visit) Add docs for visitors (#5137) (76de911)
Features
(css/minifier) Compress hsl colors (#5142) (714ff53)
(css/minifier) Compress
hwbcolor (#5155) (d6a827d)(es/parser) Support
din regex flag for es2022 (#5127) (2d94797)(es/typescript) Follow TypeScript error report (#5114) (f952a61)
(html) Add
rawfor text (#5148) (01bfe46)(html/minifier) Sort attributes (#4784) (f813a60)
(html/minifier) Compress default attributes for svg (#5150) (8bc9a40)
(plugin) Wrap serialized struct with a version (#5128) (82fbe15)
(visit) Implement
EqforAstKind(#5133) (46b1b42)(visit) Implement more traits for
AstKind(#5135) (f26d59b)Refactor
(common) Bikeshed plugin apis (#5120) (2ba8b39)
(plugin) Refactor transform executor (#5147) (e8214ba)
v1.2.210Compare Source
Bug Fixes
(es/codegen) Fix codegen of some non-ascii characters (#5108) (b76b499)
(es/fixer) Preserve parens in opt calls (#5110) (3e3c44a)
(es/fixer) Preserve parens in more opt calls (#5111) (528d4c5)
(es/lints) Allow overload in typescript (#5116) (bef8aeb)
Documentation
v1.2.209Compare Source
Bug Fixes
(es/codegen) Emit numeric value for Binary and Octal literals (#5083) (8df6e04)
(es/compat) Preserve spans in
object_rest_spread(#5082) (de66b64)(es/compat) Preserve class names (#5104) (adbb0bf)
(es/lints) Cover more
const-assigncases (#5098) (f7d857c)(es/modules) Preserve orders of exports (#5081) (2f2039c)
(es/modules) Create an indirect call for a lazy require (#5089) (0a7ca2f)
(es/modules) Support lazy for
export from(#5103) (c531e67)(es/react) Don't panic on invalid react pragma (#5101) (cc555ef)
(es/resolver) Fix handling of block scoped functions (#5092) (9519e80)
(html/minifier) Small fix (#5079) (5ac5ae2)
(html/minifier) Fix bugs of the smart mode (#5093) (5932a0a)
(node/types) Add
simplify(#5105) (2a29b50)Features
(es/modules) Support
allowTopLevelThis(#5086) (9addef6)(es/modules) Add pure annotations to interop functions (#5087) (4d5783d)
(es/modules) Support AMD triple slash directives (#5091) (ddb31d1)
(es/parser) Support labelled function from annex B (#5078) (b62fd3e)
(html/minifier) Remove empty metadata elements (#5085) (cb845c9)
(visit) Add path-aware variants (#5073) (204d742)
Testing
v1.2.208Compare Source
Bug Fixes
(es/compat) Preserve this in function with block scoped vars (#5056) (18ea2b5)
(es/modules) Handle
thisin class methods (#5065) (ef543b1)(es/modules) Improve compatibility with cjs lexer (#5080) (9e162dc)
(html/minifier) Fix smart mode (#5058) (e9bad20)
(html/minifier) Minify
metaelement (#5075) (214c60a)Documentation
--features memory_cacheto test steps (#5074) (9d8beb0)Features
(atoms) Improve atoms (#5066) (34f4f5a)
(es/modules) Support node interop (#5069) (1e33dba)
(es/parser) Add
allow_return_outside_functionto options (#5046) (37eb366)(html/minifier) Allow minifying custom script contents (#5043) (d7a5f71)
(html/minifier) Sort unordered values in attributes (#5035) (26cfeff)
(html/minifier) Improve
collapse_whitespaces(#5070) (144314d)(plugin) Add versioned wrapper struct (#5062) (e34a864)
(plugin) Allow taking the inner data from versioned (#5071) (e1aa937)
Miscellaneous Tasks
rkyv(#5057) (374366d)- general: Workaround cargo mono bug (60424db)Performance
JsWordwithAtom(#5064) (2e139f1)v1.2.207Compare Source
Bug Fixes
(es/compat) Handle classes with accessors and a method with the same name (#5039) (25bd520)
(es/modules) Handle module references in binding idents (#5055) (e13364f)
(node-swc/types) Add
nodenextconfig type (#5044) (7d4e6be)Features
(es/lints) Report an error for reassignment to import binding (#5033) (376c4e1)
(es/minifier) Handle pure annotations on member expressions (#5050) (a15bb48)
(es/modules) Optimize a dynamic import with a literal path (#5049) (2cc229e)
(html/minifier) Allow compressing additional attributes (#5036) (55e0ea3)
(html/minifier) Add
normalize_attributesfor disabling normalization (#5045) (0836d29)v1.2.206Compare Source
Bug Fixes
(es/compat) Fix name conflict of
Array(#5034) (04fc1cb)(es/parser) Allow initializer of the var of for-in loop in non-strict mode (#5038) (f238093)
Features
(html/codegen) Improve API (#5031) (8bf924a)
(html/minifier) Add
remove_commentsoption (#5037) (e6c78d0)(html/minifier) Improve smart mode (#5004) (9202ff9)
Refactor
v1.2.205Compare Source
Bug Fixes
(css/parser) Improve lexer errors (#5025) (c345524)
(es/lints) Allow duplicate function in non-top level (#5011) (4a422a0)
(es/parser) Don't panic on an invalid import meta property (#4994) (53a8cb1)
(es/parser) Allow instantiation expression followed by a line break or a binary operator (#5000) (a62b2b3)
(es/transforms) Add custom
Sync+Sendfor the renamer (#5018) (fd73895)(es/typescript) Preserve
export =for AMD (#4995) (d736b31)(html/minifier) Avoid optional attributes (#5016) (f1fd83d)
(html/minifier) Compress more complex attributes (#5024) (c61babd)
Documentation
README.md(#5005) (1f64055)Features
(html/minifier) Compress more svg/mathml attributes (#5001) (1538649)
(html/minifier) Add an API to minify document fragments (#5002) (7745fbf)
(html/minifier) Minify js (#4999) (28bc735)
(html/minifier) Add
remove_redundant_attributes(#5023) (03d8a3a)(html/minifier) Compress
styleandmediaattributes (#5022) (47d34a3)Performance
Refactor
Testing
(es/helpers) Unify code path for testing external helpers (#5010) (125549b)
(es/minifier) Add a test case for the minifier (#5013) (eedcb11)
(es/parser) Add a test case for instantiation expr (#5014) (6bcb925)
v1.2.204Compare Source
Bug Fixes
(es/helpers) Fix
modulefield inpackage.jsonof@swc/helpers(#4978) (5123c20)(es/helpers) Use
.mjsextension in helper imports (#4979) (9484cf8)(es/parser) Fix binary operator parsed as an instantiation expression (#4992) (36ef3e4)
(es/resolver) Make catch parameter not disturb resolving (#4976) (b3f6f20)
(html/codegen) Handle optional tags (#4986) (41dc0a7)
(html/minifier) Fix removal of comments (#4974) (8e63b0b)
Documentation
Features
(es/config) Add
isModuleto.swcrc(#4993) (e85c0db)(html/codegen) Add option for tag omission of self closing void elements (#4971) (d07ab2c)
(html/minifier) Compress CSS (#4973) (3e6c0f5)
(html/minifier) Add
preserve_commentsoption (#4959) (2e52c18)(html/minifier) Add an option to set html5 doctype (#4980) (fb74ace)
(html/minifier) Minify conditional comments (#4975) (713a256)
Performance
hygienefaster (#4952) ([36d960c](https://togithub.com/swc-project/swc/commit/36d960c7e908f6924ce9b0fdConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.