-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update swc monorepo #3006
Update swc monorepo #3006
Conversation
|
Run & review this pull request in StackBlitz Codeflow. |
Reviewer's Guide by SourceryThis PR updates the @swc/core dependency from version 1.7.42 to 1.8.0. The update includes bug fixes, performance improvements, and new features for the SWC compiler. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
This PR contains the following updates:
0.3.12
->0.5.0
1.7.42
->1.8.0
0.5.10
->0.5.13
Release Notes
swc-project/swc (@swc/core)
v1.8.0
Compare Source
Bug Fixes
(es/typescript) Handle multiline type parameters in async arrow functions (#9704) (c5ed19c)
(es/typescript) Handle ASI hazards in fast type strip (#9707) (c135f71)
Features
(es) Add
es2023
andes2024
toEsVersion
(#9700) (5a6f0e6)(es/plugin) Introduce
manual-tokio-runtmie
toswc
crate (#9701) (97298c4)Performance
(common) Make character analysis lazy (#9696) (1c3eaf6)
(es/renamer) Modify parallel renaming threshold (#9706) (91a9106)
v1.7.42
Compare Source
Bug Fixes
(es/generator) Fix code generation for
break
in nested while (#9684) (65872af)(es/parser) Parse
await using()
call (#9693) (bcf05de)(es/resolver) Skip resolving lowercase
JSXIdentifiers
(#9686) (6ed1715)(es/types) Add
jsc.experimental.keepImportAssertions
to types (#9691) (4b4dcfa)Features
(es/minifier) Optimize switch with side effect and termination tests (#9677) (7344a63)
(es/parser) Ability to get script's potential module errors (#9682) (2bbd1e8)
Miscellaneous Tasks
Performance
(es) Cache
current_dir()
system calls (#9683) (7aab945)(es/lints) Disable lints by default (#9689) (4d887d0)
(visit) Introduce
Pass
API and adjust visitor APIs for it (#9680) (581aafb)v1.7.40
Compare Source
Bug Fixes
(bindings) Update napi to handle string with
\0
(#9665) (8f45eaf)(bindings/node) Add
VisitTsPropertySignature
(#9670) (715c42c)(es/codegen) Improve EndsWithAlphaNum (#9675) (ba2a942)
(es/renamer) Check
preserved
in normal renaming mode (#9666) (87b4e10)(typescript) Check whether the method is abstract when checking
is_overload
(#9678) (78500af)Documentation
Miscellaneous Tasks
v1.7.39
Compare Source
Bug Fixes
(es/compat) Add missing visit children for
destructuring
(#9658) (32116a0)(es/parser) Correct
>
and<
when exit type context (#9653) (abffc07)(es/proposal) Use
tsc
version of explicit resource management (#9585) (f735108)(wasm-typescript) Fix option types of functions (#9662) (4cbe33c)
Features
Miscellaneous Tasks
v1.7.36
Compare Source
Bug Fixes
(es) Run esnext transforms on esnext target (#9644) (8a19201)
(es/codegen) Emit space after div if rhs has leading comment (#9631) (f2be26e)
(es/lints) Correct the false positive error of TS2309 (#9635) (f74c1f3)
(es/minifier) Only merge last if return (#9633) (6f52949)
(es/minifier) Check type of assignment target before merging assignments (#9617) (4436621)
Features
(es) Introduce
runPluginFirst
for Wasm plugins (#9645) (3d3e434)(es/minifier) Support unary negate in
cast_to_number
(#9642) (88a2186)Miscellaneous Tasks
v1.7.35
Compare Source
Bug Fixes
(ci) Fix target triples (#9622) (f625035)
(es/codegen) Fix source map so it works with Sentry (#9627) (9c90a73)
(es/minifier) Compress consecutive return statements properly (#9620) (8263da1)
(es/module) Allow TypeScript nodes for
Rewriter
(#9606) (4ee45ac)(es/testing) Revert #9264 (#9621) (85f5e5b)
(html/minifier) Fix HTML minifier TS types (#9615) (7b98bb5)
Features
(bindings/html) Accept
Buffer|string
instead ofBuffer
(#9625) (62edb36)(es/preset-env) Update preset-env data (#9573) (9a11d34)
(es/testing) Parse test code as a
Program
instead of aModule
(#9264) (166b858)(es/testing) Parse test code as a
Program
instead of aModule
(#9623) (bfea322)Miscellaneous Tasks
hstr
(#9612) (e2e9a9c)Performance
(es) Avoid needless string comparisons (#9613) (ec0a62c)
(es/codegen) Reduce usage of
tracing::instrument
(#9604) (2f06fc5)(es/transforms) Copy benchmarks from
oxc
(#9602) (24c3a0c)(es/typescript) Reduce unnecessary visits (#9605) (866af6c)
Refactor
Build
rustc
tonightly-2024-10-07
(#9624) (6a3b0fc)v1.7.28
Compare Source
Bug Fixes
(ast) Add
archive(check_bytes)
to all relevant AST types (#9574) (185d6f5)(cli) Exclude non-files from get_files_list (#9560) (85cc2bd)
(es/codegen) Fix wrong sourcemap when there are new lines in tpl (#9578) (cf74382)
(es/compat) Skip
getter
andsetter
as FlowHelperfunction
do (#9580) (14cfd70)(es/isolated-dts) Preserve comments (#9572) (6d15d9c)
(es/minifier) Avoid decl name when mangle with eval (#9546) (e2242c4)
(es/minifier) Check variable type while optimizing
+=
(#9575) (04016e9)(es/module) Rewrite import specifier in type declaration (#9577) (fc0ba2a)
(plugin) Don't panic when ast byte not match (#9562) (c36871a)
Miscellaneous Tasks
wasmer
tov4.3.7
(#9557) (190d6f0)Testing
v1.7.26
Compare Source
v1.7.25
Compare Source
Bug Fixes
(es/codegen) Handle minify number (#9541) (8b1e442)
(es/codegen) Ensure decorators are emitted first in TS paramters (#9545) (47ef38d)
Features
Span
andBytePos
to handle#__PURE__
(#9539) (f63a481)Miscellaneous Tasks
v1.7.24
Compare Source
Bug Fixes
(es/compat) Handle label block in constructor (#9528) (c43dbad)
(es/decorator) Add support for private access expressions in legacy decorators (#9535) (62ed065)
(es/minifier)
typeof
class should befunction
(#9522) (c7fdd6b)(es/minifier) Prevent removing side effects from accessing getter (#9530) (8513816)
(es/typescript) Handle enum in single statement (#9532) (84b0043)
v1.7.23
Compare Source
Bug Fixes
Performance
(es/compat) Reimplement constructor transform (#9519) (4b85a92)
(es/utils) Rewrite inject_after_super (#9496) (c562cfa)
v1.7.22
Compare Source
Bug Fixes
v1.7.21
Compare Source
Bug Fixes
v1.7.19
Compare Source
Bug Fixes
in
(#9508) (7d6269e)Features
(es/minifier) Support mangle cache (#9489) (af922d8)
(plugin/runner) Improve error message (#9502) (da52930)
Miscellaneous Tasks
Refactor
prepend_stmts
(#9493) (faec8c1)v1.7.18
Compare Source
v1.7.14
Compare Source
Bug Fixes
(common) Use
SourceMap::adjust_mappings
in correct order (#9447) (05961eb)(es) Preserve more comments (#9449) (673655c)
Features
Refactor
VisitAll
(#9448) (8845b76)v1.7.12
Compare Source
Bug Fixes
(common) Do not use
adjust_mappings
fromsourcemap
crate (#9437) (563c162)(es) Mark TypeScript nodes as reachable from
Evaluator
(#9440) (308e5ec)(es/compat) Init this in sub class constructor for async (#9446) (bfaf31b)
(es/decorators) Fix metadata for accessors (#9444) (99738ef)
Miscellaneous Tasks
v1.7.11
Compare Source
Bug Fixes
(es) Improve sourcemap url error messages. (#9422) (230d1d9)
(visit) Fix regression of AST paths (#9420) (9751518)
Features
(es/typescript) Add
native_class_properties
to skip reordering of class properties inits (#9421) (d2929d1)(estree/compat) Remove dependency on
rayon
(#9393) (34d1b27)(html/minifier) Support using custom css minifier (#9425) (970cc81)
Miscellaneous Tasks
(bindings/node) Deprecate
parse
(#9419) (1bf467d)(deps) Update cargo (patch) (#9405) (baf4928)
(es/preset-env) Update core js compat data (#9407) (ce761cf)
(es/typescript) Remove the workaround for wasm-bindgen (#9428) (55f7268)
v1.7.10
Compare Source
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)
v1.7.9
Compare Source
Bug Fixes
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](htConfiguration
📅 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 was generated by Mend Renovate. View the repository job log.
Summary by Sourcery
Build: