Update dependency @swc/core to v1.7.6 #669
Closed
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.3.53
->1.7.6
Release Notes
swc-project/swc (@swc/core)
v1.7.6
Compare Source
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)
v1.7.5
Compare Source
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
v1.7.4
Compare Source
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
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)
v1.7.3
Compare Source
Bug Fixes
v1.7.2
Compare Source
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
v1.7.1
Compare Source
Bug Fixes
(bindings/types) Add missing mangle options (#9298) (567f40d)
(deps) Update cargo (patch) (#9317) (ea66e84)
(es/ast) Make span of binding ident include type ann (#9293) (2b32481)
(es/minifier) Support minifying JSX (#9271) (9a6367b)
(es/typescript) Fix typings (#9301) (27ca712)
(es/typescript) Preserve type assertions (#9328) (4d60f52)
(es/utils) Use
$crate
forquote_ident!()
(#9309) (bdaaf47)Features
(allocator) Feature gate
nightly
via macros (#9274) (a31fb58)(allocator) Add
maybe
types (#9278) (a417ff4)(es/typescript) Add esm build for fast ts strip (#9286) (d10cb9f)
Miscellaneous Tasks
(deps) Update actions (#9311) (475432e)
(deps) Update npm (patch) (#9318) (9d983c3)
(deps) Update
wasmer
to fix broken Windows build (#9322) (a120faf)(deps) Drop
atty
(#9325) (831500e)Performance
(allocator) Use
std
instead ofallocator-api2
(#9281) (88723db)(es/codegen) Use
Vec<T>
fromswc_allocator
(#9280) (c1cd0b9)(es/codegen) Optimize using
swc_allocator
(#9294) (07376c6)(es/helpers) Use
bool
instead ofAtomicBool
(#9321) (8107e98)(es/minifier) Pre-allocate collections (#9289) (76fe139)
(visit) Modify
Box
andVec
in-place (#9291) (ae2ac05)(visit) Add
#[inline]
(#9302) (0b3dbb8)Enable LTO for benchmarks (#9279) (a3020b2)
Refactor
Build
rustc
tonightly-2024-07-21
(#9319) (279ea91)v1.7.0
Compare Source
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
(allocator) Initialize package (#9195) (f3681cb)
(allocator) Implement
SwcAlloc
(#9232) (e343eb6)(allocator) Add a cargo feature (#9239) (398dc21)
(allocator) Implement
default
mode (#9242) (b6333db)(es/typescript) Add
transform
mode back to fast TS strip (#9237) (8231e3c)(es/utils) Support for arrays using
cast_to_number
(#9212) (2aef14d)Miscellaneous Tasks
(es) Bump
unicode-id-start
tov1.2.0
(#9177) (9904a53)(es/typescript) Improve decorator handling of fast strip (#9178) (962170f)
Performance
(allocator) Drop
scoped_tls
(#9240) (4ce2514)(bindings) Invert Wasm size shrink (#9224) (aa7f791)
(bindings/wasm) Shrink the size of the wasm file (#9191) (3a23b3d)
(es/codegen) Use scoped allocator (#9248) (970f323)
(es/typescript) Add a benchmark for fast TS strip (#9205) (7d9364c)
(es/visit) Introduce
standard_only_*
macros (#9207) (92879b1)Refactor
(allocator) Use
&
instead of a thread-local (#9235) (8d5670e)(allocator) Use RAII guard instead of
scope
(#9254) (6e098ae)(common) Drop
SyntaxContext
from AST nodes (#9175) (b2491e5)(es) Use
into
for AST construction (#9197) (e7358e0)(es) Use
Into
andFrom
for AST construction (#9201) (0960b23)(es/codegen) Revert #9248 (#9266) (b9b233c)
(es/helpers) Remove unnecessary exports (#9225) (69719c2)
(visit) Pre-generate visitor code (#9262) (9c17663)
Testing
(allocator) Merge test (#9267) (efc3963)
(es/base) Disable flaky benchmark (#9221) (bd4bef1)
Enable scoped API by default (#9247) (e7ce94b)
Pers
IdentName
(#9185) (7b3e5b3)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
Configuration
📅 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 was generated by Mend Renovate. View the repository job log.