swc/CHANGELOG.md
2024-08-12 05:18:05 +00:00

65 KiB
Raw Blame History

Changelog

[unreleased]

Bug Fixes

Features

  • (estree/compat) Remove dependency on rayon (#9393) (34d1b27)

Miscellaneous Tasks

[1.7.10] - 2024-08-09

Bug Fixes

  • (es/typescript) Strip optional mark and definite mark (#9411) (8c161a0)

  • (es/typescript) Strip exported default overload function declaration (#9412) (b395f48)

  • (es/typescript) Strip this param in getter/setter (#9414) (442fb7b)

  • (es/typescript) Update ts-strip type definition (#9415) (165c8fa)

[1.7.9] - 2024-08-09

Bug Fixes

[1.7.8] - 2024-08-09

Bug Fixes

  • (common) Do not generate invalid source map (#9050) (9d65c77)

  • (common) Require newer version of allocator (#9386) (4e854c7)

  • (common) Remove unused import (#9387) (f530476)

  • (es/minifier) Preserve function length (#9389) (679682c)

  • (es/module) Drop the level of a few tracing events (#9380) (95af253)

  • (es/parser) Fix span of EOF errors (#9378) (f702657)

  • (es/typescript) Enable Injector to process JSX (#9395) (e24e2ff)

  • (es/typescript) Strip declaration of exported function overloads (#9397) (5c8aa52)

  • (visit) Fix regression (#9404) (041a7b7)

Features

  • (visit) Make kind() accessible without swc_visit (#9382) (021e41d)

Miscellaneous Tasks

Testing

  • (es/typescript) Verify TypeScript stripped output (#9398) (4c4c860)

[1.7.6] - 2024-08-04

Bug Fixes

  • (es/codegen) Print the missing abstract in class expression (#9372) (c2e3021)

  • (es/decorators) Use correct class name reference (#9375) (badd6a9)

  • (es/typescript) Strip declare export in strip-only mode (#9374) (c53cce4)

[1.7.5] - 2024-08-02

Bug Fixes

  • (common) Fix StringInput.end_pos (#9362) (5368e18)

  • (es/parser) Fix span for unterminated block comments (#9361) (dc1b87e)

  • (es/parser) Make UnterminatedBlockComment stick to the EOF (#9366) (4f0fc6e)

  • (es/typescript) Handle single type statement in if/for/while (#9364) (2217730)

  • (es/typescript) Handle backtick in ASI issue (#9367) (6f1716c)

  • (es/typescript) Analyze import chain (#9369) (4f9116f)

Miscellaneous Tasks

  • (deps) Update rust crate toml to v0.8.19 (#9360) (9cd51ce)

[1.7.4] - 2024-07-31

Bug Fixes

  • (es/codegen) Emit question token for class methods (#9342) (636585b)

  • (es/minifier) Fix detection of this (#9339) (77da7cf)

  • (es/minifier) Fix analysis of for-in/of (#9340) (1454ab5)

  • (es/minifier) Preserve flags while dropping elements of SeqExpr (#8907) (24e8798)

  • (es/typescript) Fix ASI in expression for fast strip (#9358) (3ee82e2)

Documentation

  • (contributing) Add warning for test --all (#9338) (234bb97)

Miscellaneous Tasks

  • (deps) Update rust crate toml to v0.8.16 (#9327) (67aadfa)

  • (deps) Update dependency magic-string to v0.30.11 (#9345) (ced06e2)

  • (deps) Update rust crate toml to v0.8.17 (#9349) (d5472cc)

[1.7.3] - 2024-07-27

Bug Fixes

  • (es/decorators) Fix TypeScript syntax assertion (#9336) (acb3952)

[1.7.2] - 2024-07-25

Bug Fixes

  • (es/ast) Accept any case of EsVersion during deserialization (#9329) (56da6be)

  • (es/typescrupt) Fix ASI issue in fast ts strip (#9332) (57146cf)

  • (swc_core) Remove unused preset_env (#9333) (75bc7bf)

Documentation

  • (bindings/wasm) Document supported TypeScript version (#9334) (66f31c0)

[1.7.1] - 2024-07-24

Bug Fixes

Features

Miscellaneous Tasks

Performance

Refactor

Build

[1.7.0] - 2024-07-18

Bug Fixes

  • (allocator) Fix allocator & add benchmark (#9234) (037dad5)

  • (allocator) Remove wrong assertions and add tests (#9252) (d8e8b04)

  • (ci) Fix CI of `peff (#9216) (602e0e5)

  • (es/codegen) Fix codegen of large numeric literals (#9226) (fba79e6)

  • (es/compat) Consider only the variables used in the closure (#9151) (1357531)

  • (es/compat) Add support for destructuring with BigInts (#9215) (2cc7028)

  • (es/fixer) Wrap in expr in for-in head (#9209) (5cd837f)

  • (es/minifier) Fix case matching (#9208) (f81fa6e)

  • (es/minifier) Fix compress pow NaN (#9210) (2b361e6)

  • (es/minifier) Fix variable declaration in default branch (#9220) (a7c82bd)

  • (es/minifier) Check this in function params (#9229) (da4866d)

  • (es/minifier) Remove optimization for array pattern (#9241) (521161e)

  • (es/minifier) Fix exponentiate operator (#9251) (06bb533)

  • (es/minifier) Fix panic in bitwise logic and incorrect values (#9258) (baeb9e2)

  • (es/minifier) Collect raw str values for new Tpl element (#9261) (6ddbfa0)

  • (es/modules) Fix lint issue (#9206) (efb8636)

  • (es/quote) Fix macro (#9270) (93d9e44)

  • (es/typescript) Handle unicode for fast ts strip (#9202) (096bfe3)

  • (es/typescript) Fix transform mode (#9243) (0e79a5b)

  • (es/typescript) Workaround wasm-bindgen (#9272) (6b1d2ff)

Documentation

  • (allocator) Mention oxc_allocator (be99ce0)

  • (contributing) Fix deno installation url (#9249) (ff5bbda)

  • (es/minifier) Add contributing section (e22f3ba)

Features

Miscellaneous Tasks

  • (es) Bump unicode-id-start to v1.2.0 (#9177) (9904a53)

  • (es/typescript) Improve decorator handling of fast strip (#9178) (962170f)

Performance

Refactor

Testing

Pers

[1.6.13] - 2024-07-06

Bug Fixes

Features

Testing

[1.6.12] - 2024-07-06

Bug Fixes

  • (ci) Restore disabled CI checks (#9002) (cdfd4c8)

  • (es/decorators) Fix bugs of 2022-03 implementation (#9145) (8a3ae44)

  • (es/loader) Exclude .json from default extension list (#9134) (e94e5e7)

  • (es/minifier) Fix undefined judgement (#9146) (1a739b7)

  • (es/renamer) Fix renaming of default-exported declarations (#9135) (45f671d)

  • (es/renamer) Remove FastJsWord (#9136) (42b4caf)

  • (es/typescript) Fix tricky cases in TS fast strip (#9159) (2bc51b8)

  • (es/typescript) Fix replacement logic of fast TS strip (#9163) (c5acafe)

Features

Performance

  • (es) Reduce allocations for dynamic stacks (#9133) (648830a)

Refactor

[1.6.7] - 2024-07-03

Bug Fixes

Documentation

  • Use @swc/counter for 3rd-party download count (026ff7e)

Features

  • (binding) Create Wasm package for stripping only TypeScript (#9124) (6b3c0da)

  • (es/minifier) Handle more indexing expression (#8750) (570c47a)

  • (preset-env) Upgrade browserslist-rs (#9023) (18d6277)

Performance

  • (es/lexer) Do not use memchr::memmem in parser (#9118) (72021de)

Refactor

  • (es/typescript) Extract type annotation proposal out (#9127) (dfee5f8)

Testing

Build

  • (bindings) Fix build of typescript binding (#9125) (f409bc0)

[1.6.6] - 2024-06-29

Bug Fixes

Performance

[1.6.4] - 2024-06-22

Features

  • (cli) Support generating .d.ts files (#9097) (e71b6d3)

  • (common) Add fallible methods to swc_common::SourceMap (#9090) (e423d1b)

  • (es/transform) Add experimental .d.ts generation (#9093) (51a2702)

  • (swc_core) Reexport swc_typescript (#9092) (a2645e2)

  • (typescript) Implement Isolated Declaration (#9086) (a855159)

Miscellaneous Tasks

Performance

  • (es/lexer) Apply various optimizations (#9095) (2f02630)

  • (es/lexer) Use memchr::memmem for lexing block comments (#9096) (1b3672f)

Refactor

  • (es/parser) Rename EsConfig and TsConfig (#9094) (5520b23)

[1.6.3] - 2024-06-19

Bug Fixes

  • (css/minifier) Don't tranform rotate deg (#9072) (8d37dae)

  • (es/decorators) Reduce the number of sourcemap mappings (#9074) (cfe3ba3)

Performance

  • (common) Use Chars in StringInput (#9073) (7698eaa)

  • (es/lexer) Optimize lexer (#9075) (6426928)

  • (es/lexer) Make lexing of string literals faster (#9077) (373bac5)

  • (es/lexer) Reduce allocation while lexing identifiers (#9076) (69f00b8)

  • (es/lexer) Add a fast-path to template literal lexer (#9080) (238f1c5)

  • (es/lexer) Add fast-path to jsx lexer (#9081) (af58606)

Refactor

  • (common) Simplify StringInput implementation (#9071) (c3a8c0b)

[1.6.1] - 2024-06-16

Bug Fixes

  • (common) Revert Use SourceMap::adjust_mappings (#9058) (cdd20cd)

Performance

  • (es/parser) Reduce allocations while lexing numbers (#9057) (ca26eb7)

[1.6.0] - 2024-06-15

Features

Performance

  • (es/lints) Avoid needless allocations in no-dupe-args (#9041) (e560198)

  • (es/parser) Do not track raw by hand (#9047) (60fe5f0)

  • (es/parser) Reduce allocations for raw while lexing numbers (#9056) (bc8ec62)

Refactor

Testing

[1.5.29] - 2024-06-13

Bug Fixes

Performance

  • (es/minifier) Do not visit var init multiple times (#9039) (675916c)

  • (es/parser) Optimize lexing of template literals (#9036) (6ab19a1)

  • (es/parser) Optimize lexing of template literals, again (#9037) (5bffd0f)

[1.5.28] - 2024-06-11

Bug Fixes

  • (es/minifier) Fix typescript enum detection (#9031) (6669343)

[1.5.26] - 2024-06-10

Bug Fixes

  • (es/es2015) Remove needless unreachable! (#9021) (555e71c)

Features

  • (es) Integrate experimental data API (#9027) (825749f)

  • (es/minifier) Support module: "unknown" (#9026) (cada50b)

  • (es/renamer) Workaround a bug of Safari (#9029) (54ac992)

  • (es/transforms) Add experimental output API for transforms (#9000) (6fa79be)

  • (es/transforms) Add an API for returning metadata to JS (#9022) (6ce112c)

[1.5.25] - 2024-06-05

Bug Fixes

  • (es/es2015) Fix injection location of this for getter/setter properties (#8993) (09121a6)

  • (es/minifier) Preserve unused special properties (#9005) (e764ff6)

  • (es/minifier) Fix comparison of -0.0 (#9012) (8a29577)

  • (es/minifier) Do not index a string with a surrogate pair (#9013) (2879a4d)

  • (es/minifier) Fix evaluation of -0 as a string (#9011) (9f8e24a)

  • (es/resolver) Fix hoisting of const and let (#8987) (0d9ecf3)

Features

  • (es/minifier) Detect TypeScript enum initialization pattern (#8986) (cc8c155)

  • (x) Initialize project (#8999) (da70ebe)

Performance

  • (es/parser) Add feature named tracing-spans (#9019) (3bf3114)

[1.5.23] - 2024-05-30

Bug Fixes

[1.5.9] - 2024-05-28

Bug Fixes

  • (es/codegen) Accept &impl Node instead of impl Node (#8969) (a456799)

  • (es/es2015) Fix typeof comparions with "object" (#8976) (51e0639)

  • (es/minifier) Add type check to & and | (#8965) (545ec51)

  • (es/minifier) Fix comparison of -0.0 and 0 (#8973) (2a43df4)

  • (es/minifier) Mark usage in TaggedTpl as ref (#8975) (a753c8d)

Features

  • (es/codegen) Add to_code (#8968) (e80fd41)

  • (plugin/runner) Add description about wasi and file system (#8963) (ced63a9)

Testing

  • (es/decorators) Add tests written by evanw (#8967) (95472e4)

  • (es/minifier) Update the passing terser test list (#8984) (c0dc5e4)

[1.5.8] - 2024-05-20

Bug Fixes

  • (es/minifier) Abort array property inliner if the array is used as a ref (#8956) (255485e)

  • (es/minifier) Abort property hoisting on eval (#8957) (02729f2)

Refactor

[1.5.7] - 2024-05-14

Documentation

[1.5.6] - 2024-05-14

Bug Fixes

  • (es) Allow input source map file to be omitted (#8951) (606cb67)

  • (es/ast) Pin version of unicodes (#8941) (6362ff4)

  • (es/compat) Avoid reserved name for private method (#8949) (7053bb1)

  • (es/minifier) Abort inliner on mutation via property (#8938) (257afc9)

  • (es/minifier) Don't invoke IIFE containing reserved words (#8939) (5a3456c)

  • (es/minifier) Fix evaluation of String.charCodeAt (#8946) (772c50f)

  • (es/minifier) Abort seq inliner on ** (#8947) (3046d71)

[1.5.5] - 2024-05-08

Bug Fixes

  • (css/modules) Allow any order of composes (#8930) (7014c63)

  • (css/modules) Fix :global selectors without preceding whitespace (#8926) (2405dc6)

  • (es/fixer) Wrap class expressions in callee (#8928) (6b60bdb)

  • (es/minifier) Respect module: false (#8925) (aca6a77)

  • (es/minifier) Consider side effects of operands of binary expressions (#8929) (4d4a7a9)

  • (es/minifier) Fix operand handling of ** (#8933) (c9d72cd)

  • (es/minifier) Fix a bug about Tpl => Str (#8934) (d4be383)

  • (es/module) Resolve .jsx imports fully (#8936) (c536d2a)

Refactor

[1.5.4] - 2024-05-06

Bug Fixes

  • (es/decorators) Handle ref of decorated class (#8905) (af96e39)

  • (es/minifier) Increment ref_count while invoking IIFE (#8904) (86e2bb0)

  • (es/proposal) Fix scoping of explicit resource management pass (#8903) (762b0d4)

Miscellaneous Tasks

[1.5.1] - 2024-04-27

Bug Fixes

  • (es/decorator) Support for legacy decorators in class expressions (#8892) (8fe57ad)

  • (es/helpers) Remove unused export from _using_ctx.js (#8891) (438d0b3)

  • (es/minifier) Do not add vars if eval exists (#8888) (be359fa)

[1.5.0] - 2024-04-24

Bug Fixes

  • (es/minifier) Abort seq inline on recursive usage (#8887) (cd4548f)

Features

  • (es/ast) Support abstract auto-accessors (#8736) (1155ac7)

[1.4.17] - 2024-04-23

Bug Fixes

  • (es) Ignore sourceMappingURL in string literals (#8879) (d7188cd)

  • (es/codegen) Use Str.raw for es5 (#8873) (c7a06b1)

  • (es/compat) Fix async generator (#8881) (063eabd)

  • (es/resolver) Prioritze jsc.paths by length in tsc resolver (#8875) (e22c368)

  • (html/codegen) Expand elements before which body isnt elided (#8877) (5419a94)

[1.4.16] - 2024-04-18

Bug Fixes

  • (es/helpers) Fix resolving of usingCtx helper (#8874) (6e9d1a4)

[1.4.15] - 2024-04-17

Bug Fixes

  • (es/codegen) Fix ascii_only for identifiers (#8866) (2075a23)

  • (es/minifier) Remove raw of strings after modification (#8865) (740c0bb)

  • (es/parser) Fix span of BindingIdent (#8859) (fbd32fb)

  • (es/proposal) Update explicit resource management to match spec (#8860) (6d24076)

Features

  • (es/transforms) Allocate stacks dynamically (#8867) (a1c5415)

Refactor

Build

  • (cargo) Update rustc to nightly-2024-04-03 (#8821) (ca9c76b)

  • (cargo) Update rustc to nightly-2024-04-16 (#8870) (f9459a8)

[1.4.14] - 2024-04-15

Bug Fixes

Documentation

  • (swc_core) Resolve build issue with --all-features flag (#8848) (c0d901e)

Refactor

Testing

  • (es) Update conformance test suite from tsc (#8834) (ea5d9cc)

[1.4.13] - 2024-04-09

Bug Fixes

  • (es/decorators) Fix capacity overflow with decorators (#8818) (9ed93c1)

  • (es/minifier) Respect top_retain for top-level functions (#8814) (811308c)

  • (es/minifier) Abort IIFE invoker in function parameters (#8828) (ebb68db)

  • (es/module) Respect module.resolveFully in more cases (#8820) (e1f7704)

  • (es/transforms) Fix capacity overflow with decorators (#8815) (974f5c7)

  • (plugin/runner) Pin version of virtual-fs (#8827) (089f61b)

  • (visit) Improve Map implementation for Box (#8819) (dc04657)

[1.4.12] - 2024-04-04

Bug Fixes

  • (common) Fix source index for inputSourceMap (#8800) (4f9ab81)

  • (es) Change default value of inputSourceMap to true (#8801) (9ffcd18)

  • (es/bugfixes) Fix fn transform in nameless fns (#8796) (7ad004e)

  • (es/helpers) Fix metadata of decorators being undefined (#8768) (263ce6e)

  • (es/minifier) Abort fn inliner if there's a spread arg (#8809) (730ded2)

  • (es/module) Fix jsc.paths with resolveFully (#8784) (4961bb0)

  • (es/parser) Tweak msg of SyntaxError::UsingDeclNotEnabled (#8791) (95c822e)

Features

  • (es/minifier) Evaluate spread of arrays (#8811) (47714c5)

  • (plugin/runner) Improve error message for Wasm plugin crashes (#8794) (571d297)

Miscellaneous Tasks

  • (deps) Update dependencies (#8810) (207582f)

  • (es/transforms) Add repository field to swc_ecma_ext_transforms (#8793) (37f0a79)

Performance

[1.4.9] - 2024-03-26

Bug Fixes

  • (es/minifier) Abort eval on valueOf or toString (#8763) (9f98a70)

  • (es/minifier) Fix tpl-to-string conversion (#8778) (e7bca10)

  • (es/module) Fix interop of jsc.paths with symlinks (#8757) (e2c6db5)

  • (es/parser) Fix parsing of TypeScript type instantiation (#8758) (2d6de94)

  • (es/parser) Parse await using in for head (#8775) (53fd09c)

  • (es/utils) Mark ident of default fn/class as binding (#8764) (f62097c)

Features

  • (es/lints) Detect duplicate bindings in export defaults (#8760) (c9c971a)

Miscellaneous Tasks

Refactor

  • (common) Debug-print spans more compactly (#8746) (f2300da)

Build

[1.4.8] - 2024-03-14

Bug Fixes

  • (es/module) Fix regression of resolving relative modules (#8748) (f988b66)

  • (es/parser) Allow export after decorators when valid (#8739) (663261b)

Miscellaneous Tasks