build: update dependency @swc/core to v1.4.17
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@swc/core (source) | devDependencies | minor | 1.3.58 -> 1.4.17 |
Release Notes
swc-project/swc (@swc/core)
v1.4.17
Bug Fixes
-
(es) Ignore
sourceMappingURL
in string literals (#8879) (d7188cd) -
(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
Bug Fixes
v1.4.15
Bug Fixes
-
(es/codegen) Fix
ascii_only
for identifiers (#8866) (2075a23) -
(es/minifier) Remove
raw
of strings after modification (#8865) (740c0bb) -
(es/proposal) Update explicit resource management to match spec (#8860) (6d24076)
Features
Refactor
Build
-
(cargo) Update rustc to
nightly-2024-04-03
(#8821) (ca9c76b) -
(cargo) Update
rustc
tonightly-2024-04-16
(#8870) (f9459a8)
v1.4.14
Bug Fixes
-
(es/compat) Handle class fields correctly (#8835) (5cc585b)
-
(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
Refactor
Testing
v1.4.13
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
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
Miscellaneous Tasks
Performance
v1.4.11
v1.4.8
Bug Fixes
-
(es/module) Fix regression of resolving relative modules (#8748) (f988b66)
-
(es/parser) Allow
export
after decorators when valid (#8739) (663261b)
Miscellaneous Tasks
v1.4.7
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
Refactor
v1.4.6
Bug Fixes
Performance
v1.4.5
Bug Fixes
Features
v1.4.4
v1.4.2
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
Testing
v1.4.1
Bug Fixes
-
(es) Ignore
sourceMappingURL
in string literals (#8879) (d7188cd) -
(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.0
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/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
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
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
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/codegen) Set
sourceRoot
of sourcemaps (#6086) (ae78669) -
(es/compat) Support vars from
reserved_word
pass (#8543) (fc929e9) -
(es/loader) Don't use browser versions for
jsc.paths
(#8548) (fab27da) -
(es/minifier) Fix a bug related to inliner and the variable scoping (#8542) (aa70131)
-
(es/module) Fix resolving of dependencies (#8533) (71fb5c1)
-
(es/module) Fix handling of
*
injsc.paths
(#8535) (2d8bd9e) -
(es/quote) Add support for import phase to quote macro (#8536) (71930ff)
Features
Miscellaneous Tasks
v1.3.105
Bug Fixes
-
(common) Remove
<
and>
fromDisplay
impl ofFileName::Custom
(#8530) (014a6cd) -
(es/minifier) Fix a bug in tpl string <-> string logic (#8510) (4946a11)
-
(es/typescript) Fix panic on invalid jsx pragma (#8513) (f40f59b)
Miscellaneous Tasks
Testing
-
(es/codegen) Add tests for
@ctrl/tinycolor
(#8518) (1c4eb1f) -
(es/codegen) Add a JS test for ascii-only mode (#8519) (974c6a0)
-
(es/minifier) Add a test for a fixed issue (#8520) (8fac2bb)
v1.3.104
Bug Fixes
-
(es) Fix plugin template & restore
test!
astest_inline!
(#8508) (10449e0) -
(plugin) Set
swc_common::errors::HANDLER
while invoking plugins (#8511) (ba753f1)
v1.3.103
Bug Fixes
-
(binding/types) Add type for
decoratorVersion
(#8468) (79438e6) -
(es/codegen) Emit declare keyword for class properties (#8478) (2076ef8)
-
(es/codegen) Emit implements clause with commas (#8477) (d98a282)
-
(es/codegen) Emit
?
for an optional computed property (#8481) (e0bdc0f) -
(es/codegen) Fix codegen of a property key in ascii-only mode (#8493) (8d9bf4c)
-
(es/compat) Set inserted var inside export class in destructing (#8470) (4416077)
-
(es/compat) Correctly handle
this
in arrow function parameters (#8489) (52a8f05) -
(es/minifier) Correctly escape more characters (#8490) (f7c4934)
-
(es/resolver) Resolve top-level
undefined
,NaN
, andInfinity
correctly (#8471) (82bd807)
Documentation
Features
Refactor
Testing
-
(es/minifier) Enable non esm mode for tests (#8472) (1120336)
-
(es/minifier) Enable script mode for
terser_exec
andmangle
(#8474) (b676e75)
v1.3.102
Bug Fixes
-
(css/parser) Fix parsing of
hsla(var(--foo), 1)
(#8443) (d89b60a) -
(es/codegen) Fix codegen of type-only export declarations (#8447) (65dec90)
-
(es/compat) Use correct
span.lo
in class transforms (#8439) (a06d5b2) -
(es/minifier) Add WeakRef as a safe global reference (#8458) (d681785)
-
(es/parser) Disallowing await as an identifier in class static block (#8450) (0b188cc)
v1.3.101
Bug Fixes
-
(es/codegen) Emit extra paren emitting
AssignExpr
(#8413) (dce3693) -
(es/codegen) Fix codegen of ts specific syntax in class props (#8426) (7566ddf)
-
(es/compat) Fix destructuring of export class/function (#8371) (630f9d3)
-
(es/compat) Preserve spread in the
generator
pass (#8401) (29bec98) -
(es/compat) Preserve comment for arrow body (#8427) (56992e3)
-
(es/fixer) Preserve parenthesis for optional chaining (#8399) (a69f172)
-
(es/lints) Ignore ambient context binding (#8368) (83c8fe5)
-
(es/resolver) Handle
TsInterfaceDecl
andUsingDecl
correctly (#8403) (f8ce316)
Features
Miscellaneous Tasks
Performance
Refactor
Build
v1.3.100
Bug Fixes
-
(es/codegen) Wrap quote for length greater than one (#8351) (2cdea3f)
-
(es/decorators) Resolve enum for
design:returntype
(#8320) (91ef7c9) -
(es/fixer) Wrap yield expression in await expression (#8357) (ff719f0)
-
(es/minifier) Fix
if_return
bug related toawait
andyield
(#8328) (01e2c7f) -
(es/minifier) Give up terminate merge if in
try
withfinally
(#8342) (ed5a9b3) -
(es/parser) Wrap with
OptChain
acrossTsNonNull
(#8332) (8af6ffb) -
(es/react) Make jsx with single spread child static (#8339) (58568fa)
-
(es/renamer) Allow
globalThis
to be shadowed (#8327) (3dd73a3) -
(es/typescript) Handle shebang with jsx pragma (#8318) (c25601d)
Miscellaneous Tasks
Build
v1.3.99
v1.3.96
Bug Fixes
-
(es/compat) Make
block-scoping
pass rename exports correctly (#8175) (b13bc32) -
(es/compat) Use dummy span for blocks in
parameters
(#8202) (c1b255a) -
(es/compat) Handle private names from class properties pass (#8090) (83a5a0c)
-
(es/react) Visit children nodes in
jsx-src
pass (#8212) (47733a9) -
(es/transforms) Do not add
PURE
comment toBytePos(0)
(#8207) (c061356) -
(es/typescript) Preserve const enum for named export (#8208) (abced23)
Features
-
(es/minifier) Respect inline level and preserve native names (#8205) (dd805e9)
-
(es/testing) Support babel-like fixture testing officially (#8190) (e960614)
-
(es/testing) Use
__swc_snapshots__
fortest!
macro (#8191) (0aafa75)
Performance
Refactor
v1.3.95
Bug Fixes
-
(es/compat) Don't add pure annotations to dummy spans (#8172) (9ceb57b)
-
(es/minifier) Always consider
reassigned
when inlining (#8168) (c26a225) -
(es/typescript) Support
ts_enum_is_mutable
with const enums (#8171) (02d0613)
Build
v1.3.94
Bug Fixes
-
(css/ast) Make
.hash()
ofToken
not recursive (#8151) (8d7894c) -
(es/minifier) Abort seq inliner if
b
can short-circuit (#8128) (111de26) -
(es/minifier) Abort function inliner if
keep_fnames
istrue
(#8145) (35601e4) -
(es/parser) Skip
this
parameters in setter (#8158) (826386f) -
(es/utils) Skip var declarator name in
RefRewriter
(#8125) (fb81a36)
Features
-
(es/compat) Implement decorator metadata proposal (#8097) (9c029ef)
-
(es/compat) Skip empty class static blocks (#8138) (e186b80)
-
(es/minifier) Evaluate more
toFixed
expressions (#8109) (7da3f52) -
(es/minifier) Inline into the arguments of
new
using seq inliner (#8127) (4f67794) -
(es/parser) Implement
AsRef<str>
forIdentLike
(#8133) (bffe33a) -
(es/typescript) Add
ts_enum_is_mutable
to disable enum inlining (#8115) (57b171d)
Miscellaneous Tasks
Refactor
v1.3.93
Bug Fixes
-
(es/codegen) Fix codegen of type-only imports (#8070) (6f45b46)
-
(es/compat) Handle
__proto__
edge case inshorthand
pass (#8077) (a912937) -
(es/compat) Handle export default decorator only if not empty (#8099) (bf523f5)
-
(es/decorators) Fix a regression about class expressions (#8102) (cb4361f)
-
(es/helpers) Override mistake in
_interop_require_wildcard
(#8076) (1346528) -
(es/minifier) Don't inline functions if
keep_fnames
is enabled (#8093) (94bb42e)
Features
Miscellaneous Tasks
Refactor
-
(atoms) Remove usage of
js_word!
to dropstring-cache
(#7976) (84cec87) -
(es/compat) Split
swc_ecma_transforms_compat
(#8110) (affb6fb) -
(es/module) Reimplement some functions of module/typescript (#8063) (3e5b062)
-
(es/parser) Introduce
TokenKind
along withToken
(#8071) (9b9bc51) -
(es/preset-env) Rename parameter to avoid confusion (#8106) (95eb147)
v1.3.92
Bug Fixes
-
(es/compat) Transform default-exported class decorators correctly (#8050) (a751f1c)
-
(es/compat) Use
async
andawait
correctly inblock-scoping
pass (#8056) (8318ea8)
v1.3.91
v1.3.90
v1.3.89
v1.3.88
v1.3.87
v1.3.86
What's Changed
- chore(es/preset-env): Add the repository url to
Cargo.toml
by @szabgab in https://github.com/swc-project/swc/pull/7941 - fix(es/module): Preserve import specifier if resolving fails by @kdy1 in https://github.com/swc-project/swc/pull/7955
- fix(es/compat): Handle
PrivateName
inlogical_assignments
by @magic-akari in https://github.com/swc-project/swc/pull/7958 - fix(es/minifier): Handle
ModuleDecl
when transform const modules by @magic-akari in https://github.com/swc-project/swc/pull/7959 - chore(es/preset-env): Ignore
tp
in the version of a browser version by @kdy1 in https://github.com/swc-project/swc/pull/7968 - build(bindings/node): Link msvc runtime statically by @Brooooooklyn in https://github.com/swc-project/swc/pull/7965
- refactor(es/lint): Remove usage of
box_patterns
by @magic-akari in https://github.com/swc-project/swc/pull/7966 - chore: Publish
v1.3.86
withswc_core
v0.83.16
by @kdy1 in https://github.com/swc-project/swc/pull/7970
New Contributors
- @szabgab made their first contribution in https://github.com/swc-project/swc/pull/7941
Full Changelog: https://github.com/swc-project/swc/compare/v1.3.85...v1.3.86
v1.3.85
v1.3.84
v1.3.83
v1.3.82
v1.3.81
v1.3.80
v1.3.79
v1.3.78
v1.3.77
v1.3.76
v1.3.75
v1.3.74
v1.3.73
v1.3.72
v1.3.71
v1.3.70
v1.3.69
v1.3.68
v1.3.67
v1.3.66
v1.3.65
v1.3.64
v1.3.63
v1.3.62
v1.3.61
v1.3.60
v1.3.59
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.