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:
^0.1.62
->^0.4.0
1.3.67
->1.6.13
Release Notes
swc-project/pkgs (@swc/cli)
v0.1.65
Compare Source
swc-project/swc (@swc/core)
v1.6.13
Compare Source
Bug Fixes
(es/parser) Revert #9141 (#9171) (8b66d5e)
(es/testing) Fix
PluginCommentProxy
(#9170) (d86ca2d)Features
(es/typescript) Improve fast TS strip (#9166) (ee8dc28)
(es/typescript) Improve fast TS strip (#9167) (98af589)
Testing
v1.6.12
Compare Source
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
(bindings/ts) Add transform/strip-only mode (#9138) (a08bb46)
(es/testing) Improve comment testing story (#9150) (3638e97)
(es/typescript) Add
swc_fast_ts_strip
(#9143) (b129343)(es/typescript) Improve fast TS stripper (#9152) (9fca4ab)
(es/typescript) Improve fast TS stripper (#9153) (732d748)
(es/typescript) Improve fast TS strip (#9154) (05c7210)
Performance
Refactor
(bindings/ts) Inline Wasm file into
wasm.js
(#9139) (307b6f2)(es/parser) Improve readability (#9141) (9d9fe66)
v1.6.7
Compare Source
Bug Fixes
Documentation
@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
memchr::memmem
in parser (#9118) (72021de)Refactor
Testing
(bindings/ts) Test Wasm binding (#9128) (c6d6db3)
(es/decorators) Split
decorator-tests
(#9119) (07c3054)Build
v1.6.6
Compare Source
Bug Fixes
\r\n
in JSX (#9112) (2a0ebec)Performance
(es/parser) Optimize macros (#9100) (719b7c5)
(es/parser) Remove unnecessary check (#9102) (2a490ad)
(es/parser) Add a check before numeric operations (#9105) (c0602c8)
(es/parser) Increase token context size (#9104) (8ef30cc)
v1.6.5
Compare Source
v1.6.4
Compare Source
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
sha-1
withsha1
(#9091) (5a2c968)Performance
(es/lexer) Apply various optimizations (#9095) (2f02630)
(es/lexer) Use
memchr::memmem
for lexing block comments (#9096) (1b3672f)Refactor
EsConfig
andTsConfig
(#9094) (5520b23)v1.6.3
Compare Source
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
inStringInput
(#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
StringInput
implementation (#9071) (c3a8c0b)v1.6.1
Compare Source
Bug Fixes
Use SourceMap::adjust_mappings
(#9058) (cdd20cd)Performance
v1.6.0
Compare Source
Features
(common) Use
SourceMap::adjust_mappings
(#9052) (eda2e45)(es/ast) Add more utilities (#9054) (ab226dc)
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
(es/ast) Remove unused fields of
TsPropertySignature
(#8955) (6306778)(es/parser) Remove unused
raw: Raw
params (#9048) (32e23ed)(es/utils) Refine some APIs (#9049) (e856478)
Testing
v1.5.29
Compare Source
Bug Fixes
(ci) Make publish action upload cli artifacts (#9040) (3337bb2)
(es) Make
output
field optional (#9033) (39654bf)(es/codegen) Emit named type in mapped types (#9038) (91e92ec)
(es/minifier) Visit RHS while hoisting properties (#9032) (cb16994)
(xtask) Fix
nightly
action (#9042) (733dcc6)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)
v1.5.28
Compare Source
Bug Fixes
v1.5.27
Compare Source
v1.5.25
Compare Source
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
andlet
(#8987) (0d9ecf3)Features
(es/minifier) Detect TypeScript enum initialization pattern (#8986) (cc8c155)
(x) Initialize project (#8999) (da70ebe)
Performance
tracing-spans
(#9019) (3bf3114)v1.5.24
Compare Source
v1.5.23
Compare Source
Bug Fixes
(bindings/node) Fix regression of JS APIs (#8998) (125ddd2)
(es/jest) Handle
@jest/globals
(#8994) (a81a01f)v1.5.22
Compare Source
v1.5.20
Compare Source
v1.5.19
Compare Source
v1.5.11
Compare Source
v1.5.7
Compare Source
Documentation
v1.5.6
Compare Source
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)v1.5.5
Compare Source
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
v1.5.3
Compare Source
v1.5.2
Compare Source
v1.5.1
Compare Source
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)v1.5.0
Compare Source
Bug Fixes
Features
v1.4.17
Compare Source
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 isn’t elided (#8877) (5419a94)
v1.4.16
Compare Source
Bug Fixes
usingCtx
helper (#8874) (6e9d1a4)v1.4.15
Compare Source
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
Refactor
mangle.safari10
(#8857) (df2e056)Build
(cargo) Update rustc to
nightly-2024-04-03
(#8821) (ca9c76b)(cargo) Update
rustc
tonightly-2024-04-16
(#8870) (f9459a8)v1.4.14
Compare Source
Bug Fixes
(es/compat) Handle class fields correctly (#8835) (5cc585b)
(es/helpers) Add missing helpers (#8843) (67bfcf4)
(es/minifier) Handle switch cases (#8854) (7a89e5d)
(es/plugin) Create
tokio
runtime only if necessary (#8845) (62c4f5e)(es/resolver) Correctly check strict mode (#8851) (f6ba92b)
(es/utils) Preserve optional chain effect (#8850) (a7a32c4)
Documentation
--all-features
flag (#8848) (c0d901e)Refactor
(es) Make the code compile with
miri
(#8836) (3a51140)(es/decorator) Remove unsafe code (#8839) (e8c6344)
(visit) Simplify
Vec::move_map
(#8838) (b1973d4)Testing
conformance
test suite fromtsc
(#8834) (ea5d9cc)v1.4.13
Compare Source
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 forBox
(#8819) (dc04657)v1.4.12
Compare Source
Bug Fixes
(common) Fix source index for
inputSourceMap
(#8800) (4f9ab81)(es) Change default value of
inputSourceMap
totrue
(#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
withresolveFully
(#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 toswc_ecma_ext_transforms
(#8793) (37f0a79)Performance
(atoms) Update
hstr
(#8799) (0745624)(es/parser) Use faster unicode crate (#8785) (6f780ca)
v1.4.11
Compare Source
v1.4.8
Compare Source
Bug Fixes
(es/module) Fix regression of resolving relative modules (#8748) (f988b66)
(es/parser) Allow
export
after decorators when valid (#8739) (663261b)Miscellaneous Tasks
tokio
(#8740) (9c1eb01)v1.4.7
Compare Source
Bug Fixes
(es/minifier) Fix eval of
toString
of array with holes (#8727) (f3fbd9d)(es/minifier) Do not evaluate
slice
calls with negative index (#8726) (23f9635)(es/minifier) Handle cyclic references while dropping unused properties (#8725) (102241b)
(es/minifier) Fix evaluation of array literals with
void 0
(#8733) (aa0154d)(es/minifier) Fix removal of array pattern bindings (#8730) (312f0d8)
(es/minifier) Make
Finalizer
handlehoisted_props
correctly (#8738) (95761b7)(es/proposal) Fix var placement for using transform (#8732) (633cd89)
Features
(es/lints) Add
no-prototype-builtins
rule (#8684) (a5dbb17)(es/lints) Add
prefer-object-spread
rule (#8696) (aa9297b)Refactor
wasm32-wasi-preview1-threads
target support (#8724) (e3acd14)v1.4.6
Compare Source
Bug Fixes
Performance
v1.4.5
Compare Source
Bug Fixes
jsc.paths
(#8702) (d37125f)Features
v
flag (#8690) (4ce39eb)v1.4.4
Compare Source
v1.4.2
Compare Source
Bug Fixes
(es/helpers) Add
addInitializer
to field decorators (#8619) (cd38ef3)(es/minifier) Abort property hoister on
this
usage (#8647) (9715320)(es/react) Validate pragma before parsing (#8637) (5f1cf01)
(es/typescript) Handle exported JSX members (#8642) (22c8e2e)
Features
(es/minifier) Remove unused parameters of arrow functions (#8636) (8cd4813)
(swc_core) Expose ES linter (#8635) (762959c)
Testing
(es/parser) Add a test for
<<
(#8634) (2c63b31)(es/transforms) Add a test for
reserved_words
pass (#8638) (a0b77e0)v1.4.1
Compare Source
Bug Fixes
(binding/types) Update typings for
options.envs
to match implementation (#8620) (2a115cf)(es/compat) Visit AssignExpr right branch in FnEnvHoister (#8633) (e5d6de0)
(es/decorators) Do not insert duplicate constructors (#8631) (21a447f)
(es/parser) Set class property to
abstract
oroverride
even in error states (#8610) (5a77306)(es/parser) Fix parsing of dynamic source phase imports (#8611) (7d724d8)
(es/parser) Rescan
<<
as<
when parsing type args (#8607) (9e6dad9)(es/parser) Fix detection of
use strict
directive (#8617) (95236e9)(es/plugin) Fix schema version issue (#8621) (132be95)
(es/quote) Allow variables typed
AssignTarget
(#8602) (6a48be4)(es/quote) Support
AssignTarget
, really (#8603) (ef91661)(es/quote) Fix code generation of
AssignTarget
(#8604) (16e9d4c)Features
hoist_props
(#8593) (3122e94)Miscellaneous Tasks
(config) Remove an empty file in
swc_config
(#8609) (d87fef0)(preset-env) Update
browserslist-rs
(#8614) (e5585e9)Refactor
Testing
(es) Update
tsc
conformance test suite (#8615) (c0beba7)Update
@swc/plguin-jest
used for plugin e2e testing (#8601) (95fe3db)Build
(cargo) Update
rustc
tonightly-2024-02-06
(#8618) (6726b63)(plugin) Update
wasmer
tov4.2.5
(#8624) (4e0d240)v1.4.0
Compare Source
Bug Fixes
(cli) Make Rust CLI use sourcemap code from the
swc
crate (#8576) (82bc061)(es/codegen) Fix codegen of async methods with decorators (#8575) (8c32225)
(es/lexer) Fix typo in
package
keyword (#8589) (8413a6c)(es/minifier) Fix top-level check (#8583) (a7c5255)
(es/proposals) Support using
using
keyword with functions (#8574) (d81596c)(es/resolver) Skip property in JSX member (#8598) (d480ab9)
(es/testing) Make
test_inline!
not read output as a file (#8569) (d683089)(es/typescript) Handle exported JSX binding name in TypeScript namespace (#8596) (2a70a6b)
Features
(es/minifier) Inline more IIFE arguments (#8584) (18e0b53)
(es/minifier) Respect more options (#8582) (fd997d3)
Refactor
Testing
(es/minifer) Update the passing terser test list (#8573) (8b86638)
(es/testing) Ensure that
test_inline!
is working properly (#8590) (872a47b)v1.3.107
Compare Source
Bug Fixes
(es/codegen) Do not produce octal literals (#8565) (07634a0)
(es/decorator) Skip TypeScript class method/prop declarations (#8555) (6a8dd8c)
(es/decorator) Preserve state while traversing the
module_items
scope (#8556) (f416aff)(es/loader) Make
tsc
resolver work for bare specifier (#8550) (d6a4615)v1.3.106
Compare Source
Bug Fixes
(binding/types) Add
bugfixes
field to EnvConfig (#8538) (49ebdf9)(common) Fix source map generation with
inputSourceMap
(#8546) (043ee85)(es/ast) Add
definite
andis_override
toAutoAccessor
(#8436) (572bcae)(es/ast) Fix definition of
SetterProp
([#8314](https://toConfiguration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.