Changelog History
Page 12
-
v1.2.142 Changes
February 18, 2022๐ Bug Fixes
(css) Fix recovery mode for functions (#3600) (5420bcc)
๐ (css/parser) Fix parsing of component values (#3611) (b7dcccc)
(es) Pass
FileName::Custom
to plugins (#3578) (df69930)(es/compat) Handle
super
andnew.target
in class properties (#3594) (3191741)๐ (es/lints) Use
kebab-case
for configuration (#3590) (71a94b1)(node-swc/types) Fix experimental config options (#3603) (2b5eba1)
๐ (plugin) Fix caching of wasm modulee (#3616) (05aecf5)
(swc_common) Fix names of proxied functions (#3608) (e863f9d)
๐ Documentation
(api/rust) Fix rustdoc (#3620) (4d5ba55)
(swc_common) Document error reporting using
HANDLER
(#3605) (9df0d7c)
๐ Features
(api/rust) Improve error messages for wrong usages of scoped thread-local variables (#3606) (798ef13)
(cli) Initialize compile command (#3602) (5ed3f3a)
(css/ast) Use
SimpleBlock
for@keyframe
s (#3577) (a20ed34)(css/codegen) Improve minification of selectors (#3624) (8271566)
(css/minifier) Remove empty qualified rules and at-rules (#3597) (8c9b154)
(css/minifier) Implement the rule for easing functions (#3615) (8e06b2a)
(es/compat) Check for duplicate private names and undefined private names (#3613) (5c03551)
๐ (es/lints) Implement
no-dupe-args
rule (#3574) (3e29b73)๐ (es/lints) Allow using number as an error level (#3593) (08c343b)
(swc) Add
$schema
and utf8-bom support for.swcrc
(#3622) (3615f41)
Miscellaneous Tasks
- (ci) Fix the script for
CHANGELOG.md
(cbe87db)
๐จ Refactor
- (node-swc/types) Provide typed configuration for plugins (#3584) (07485d3)
โ Testing
(css/codegen) Add tests for custom properties in at-rules (#3596) (b019165)
(es/modules) Add a test for a fixed issue (#3586) (038e7f8)
๐ (es/parser) Add a test for #2417 (#3588) (a2f9c88)
(es/typescript) Add a test for #2670 (#3589) (f469e65)
๐ Build
- (swc) Bump the version of
parking_lot
(#3604) (5061101)
-
v1.2.141 Changes
February 16, 2022๐ Bug Fixes
๐ (es/lints) Fix
duplicate-bindings
for typescript (#3583) (786d016)(node-swc/types) Change
StringLiteral.has_escape
toStringLiteral.hasEscape
(#3581) (bf68155)
๐ Features
(css/ast) Use
SimpleBlock
in more places (#3575) (e97074b)(css/minifier) Compress contents of
@keyframes
at-rule (#3579) (803499c)
Miscellaneous Tasks
(ci) Don't run pr check for pushes (1bce557)
(ci) Make CI faster (55250e4)
(ci) Fix the auto-bump scripts (2d9735b)
(ci) Fix the auto-bump scripts (7ddd588)
(ci) Fix the auto-bump scripts (c775674)
(ci) Fix version of git-cliff (32bc17f)
(ci) Don't mark as a failure (6173bb8)
(ci) Fix the condition for cancel action (d66f701)
(ci) Skip instead of cancel (85caf29)
๐จ Refactor
- ๐ (plugin) Remove direct dependency to
once_cell
(#3582) (88e07b2)
-
v1.2.140 Changes
February 15, 2022๐ Bug Fixes
(es/compat) Allow destructuring assignment to an object property (#3544) (5802b62)
(es/compat) Fix destructing of
const
(#3545) (342c320)(es/compat) Apply
new.target
beforeclasses
(#3555) (f1c7394)(es/compat) Handle arrow parameters in class fields (#3556) (45b44b0)
(es/compat) Fix handling of constructor in
classes
(#3505) (0b16210)(es/minifier) Fix analyzer (#3557) (ac1d405)
(es/minifier) Disable name mangler if
eval
is used (#3526) (bfc9897)(es/utils) Keep arguments to
super
call (#3570) (f67796a)
๐ Documentation
- ๐ (plugin) Fix typo (#3547) (3fc16cd)
๐ Features
(bot) Add auto-bump script (#3573) (a1e45c4)
(css/ast) Add
;
to delimiters (#3551) (da36e90)(css/ast) Use correct type for
calc
(#3549) (b311ace)(css/ast) Use
SimpleBlock
for@document
at-rule (#3564) (3399702)(es/compat) Add loose mode for
classes
(#3474) (0f7a997)๐ (es/lints) Add this handling support to
no-alert
rule (#3515) (af82006)๐ (es/lints) Add
allow
config forno-console
rule (#3517) (286b6c8)๐ (es/lints) Implement
eqeqeq
rule (#3513) (8d92050)๐ (es/lints) Implement
no-empty-pattern
rule (#3550) (f9fda27)๐ (plugin) Add
PluginContext
(#3568) (a96217f)๐ (plugin/runner) Improve resolver support for npm (#3566) (d6477a7)
Miscellaneous Tasks
(bot) Fix permission issue (bfb51f3)
(ci) Add a bot for auto-rebasing (#3560) (b1fc7a9)
(ci) Remove useless tests from the matrix (#3561) (47a81bd)- general: Fix auto-rebase script (d055711)- general: Fix auto-rebase script again (d3f1c4e)- general: Use
GITHUB_TOKEN
for auto-rebasing (1c6e9ef)- general: Fix CLA issue of auto-rebase script (59233d5)
๐ Performance
- (es/optimization) Replace
map_with_mut
with proper implementation (#3539) (6d132ca)
๐จ Refactor
(css/ast) Rename tokens to match spec (#3553) (aed622b)
๐ (css/parser) Remove
parse_values
, which is not used (#3552) (d5aee47)
โ Testing
(css/codegen) Add tests (#3563) (08dd695)
๐ (css/parser) Add a test for a custom function name (#3554) (f252dfb)
๐ Build
- (*) Dedupe
once_cell
(#3567) (ad6f24a)
-
v1.2.139 Changes
February 12, 2022๐ Bug Fixes
(cli) Update the plugin template for pinned dependencies (#3538) (05cf2e9)
(css/ast) Use
SimpleBlock
in more types (#3535) (cfb2248)(es/modules) Use correct
StrKind
after rewriting import path (#3489) (ff6eb27)(es/modules) Hoist named exports (#3479) (fa0216d)
(node/helpers) Fix
isNativeReflectConstruct
(#3530) (d14d3eb)๐ (plugin) Allow testing (#3542) (fbe9196)
๐ Documentation
- ๐ (plugin) Fix install command (#3541) (72b3197)
๐ Features
(cli) Add a command for scaffolding a new plugin (#3536) (6ed089e)
(css) Support urange syntax (#3491) (cbe302b)
(css/minifier) Implement more rules (#3522) (69cfe39)
๐ (css/parser) Improve error recovery (#3486) (48e5b90)
๐ (css/parser) Implement more parser logic for nth selectors (#3532) (fcbc2ff)
๐ (css/parser) Implement more error recovery (#3534) (547eba5)
๐ (es/lints) Implement
dot-notation
rule (#3481) (5bb6bd7)๐ (es/lints) Implement
no-use-before-define
rule (#3456) (205b76e)(es/minifier) Implement
reserved
mangle option (#3476) (5488159)(es/minifier) Drop useless assignments (#3528) (a7f0e84)
๐ (plugin) Implement proxy for
Mark
andSyntaxContext
(#3511) (bc25026)๐ (swc/plugin) Implement proxy for
Mark::fresh
(#3492) (494b4c8)
Miscellaneous Tasks
๐ (build) Disable LTO for local builds (#3514) (80ed69d)
๐ (build) Remove version pinning of
parking_lot_core
(#3537) (a4d914d)(ci) Remove
cargo-uttil
from dependency (#3543) (068a408)(crates) Use bot account for publishing commits (c10cbc4)
(crates) Use bot account for commiitter (edc46cc)
๐ Performance
- (es/minifier) Remove useless operations like eager call to
.span()
(#3512) (8dab3d9)
๐จ Refactor
(common) Cleanup & rustfmt (#3495) (9b76783)
(css/ast) Rename types to match specification (#3484) (460f846)
(css/ast) Remove
Tokens
in favor ofVec<TokenAndSpan>
(#3507) (92a3cb9)(css/ast) Unify
SimpleBlock
andBlock
(#3519) (57f6a58)(css/ast) Unify
SimpleBlock
andBlock
completely (#3531) (37c49e8)๐ (css/parser) Refactor codes related to simple blocks (#3506) (4e124c7)
๐ (css/parser) Refactor code for error recovery (#3508) (2d997b3)
โ Testing
-
v1.2.138 Changes
February 08, 2022๐ Bug Fixes
- (es/minifier) Make
sequences
less aggressive (#3480) (292add7)
๐ Features
(css) Add support for
@property
at-rule (#3470) (fd5668c)(css/ast) Add types for
@counter-style
at-rule (#3469) (e6f4fbf)(css/ast) Add types for all dimensions (#3477) (dc939c6)
๐ (es/parser) Disallow assignment to optional chaining expressions (#3483) (26565b1)
๐ (plugin) Support global
HANDLER
in the plugin context (#3478) (d473a65)
Miscellaneous Tasks
- (es/minifier) Make
-
v1.2.137 Changes
February 07, 2022๐ Bug Fixes
(css) Fix parsing of
@page
at-rule (#3356) (4853821)(css/ast) Fix type definitions for
@document
at-rule (#3468) (df08e4c)๐ (css/parser) Report errors of at-rules (#3461) (e732250)
(es/compat) Handle private fields in nested classes (#3431) (01500a5)
(es/compat) Handle initializer hole in array patterns (#3442) (3bb2a6c)
(es/compat) Fix legacy decorator pass (#3459) (4f5e87b)
(es/fixer) Handle more expressions in the super class position (#3452) (032f397)
(es/minifier) Fix
codemirror
(#3462) (5812c3c)(es/minifier) Fix
mapbox
(#3463) (0371c41)(es/modules) Allow using a dynamic import with an expression from another import (#3450) (745604b)
๐ (es/parser) Fix parsing of decorators (#3449) (5a806c5)
(es/resolver) Fix handling of for statements (#3446) (2af5096)
๐ Features
(css/ast) Improve types related to
url
tokens (#3444) (49564d9)(css/codegen) Implement minification of hex colors (#3453) (eeedd71)
(css/codegen) Implement minification of identifiers (#3466) (81850c2)
(css/codegen) Improve minification for page rules (#3467) (0ca036a)
(css/lexer) Implement error recovery for functions (#3445) (f1410fc)
๐ (es/lints) Implement
prefer-regex-literals
(#3399) (8166275)๐ (es/lints) Implement linter for quotes of string literals (#3443) (5d6143a)
๐ (es/parser) Add an option to allow
super
outside of class methods (#3427) (cc185f0)
Miscellaneous Tasks
- ๐ (es/lints) Fix CI (b06a5ab)
๐จ Refactor
(css/ast) Refactor types related to
@keyframes
at-rule (#3441) (5c1b021)(css/ast) Change AST for
!important
(#3440) (38879de)(css/ast) Refactor types related to selectors (#3460) (cd87d96)
(css/ast) Remove unused types (#3465) (69660fd)
โ Testing
-
v1.2.136 Changes
February 03, 2022๐ Bug Fixes
(css) Allow empty
@media
at-rule (#3404) (75a14f9)๐ (css/parser) Fix parser logic related to case insensivity (#3382) (3ded88b)
๐ (css/parser) Fix bugs related to
url
(#3403) (3c8d985)(es/codegen) Fix bugs (#3436) (ea8dfd8)
(es/compat) Add the missing span in
optional_chaining
(#3384) (9eb7773)(es/minifier) Fix evaluator (#3391) (38c2499)
(es/modules) Allow using dynamic import with a name from another import (#3390) (1dcc188)
(es/modules) Fix span of imports (#3418) (2c99ca1)
(swc) Run
resolver
before everything (#3400) (cebc5dc)
๐ Features
(css) Improve codegen where
minify: true
(#3414) (30c29a3)(css/ast) Add
/
to the delimiters (#3402) (2dc31d9)(css/codegen) Implement
minify: true
(#3369) (0537ef1)(css/codegen) Improve minification of numbers (#3423) (340844a)
๐ (css/parser) Improve selector parser (#3386) (c73835b)
๐ (css/parser) Improve parsing of math functions (#3415) (1b1cae0)
(es/codegen) Improve compression of numbers (#3425) (e8b64a9)
๐ (es/lints) Implement
no-debugger
rule (#3398) (9dec923)๐ (es/lints) Add
no-alert
and a feature gate (#3394) (5cbe4fe)(es/minifier) Implement
drop_console
(#3392) (91d7800)
Miscellaneous Tasks
- (repo) Add
clippy
to git push hook (#3383) (78e83a3)
๐ Performance
- (node-swc) Speed up
parse
andparseFile
(#3380) (0359deb)
๐จ Refactor
(css/ast) Refactor delimited values (#3397) (b31619d)
(css/ast) Use
Dimension
instead ofUnitValue
(#3401) (1904944)(css/ast) Use
Color
instead ofHashValue
(#3411) (6b921ca)(css/ast) Rename
property
toname
(#3410) (eeedd9a)(es/minifier) Remove unused crates (#3395) (74b4330)
๐ (es/parser) Flatten tests to make
git
faster (#3393) (839d0ac)
โ Testing
-
v1.2.135 Changes
January 27, 2022๐ Bug Fixes
(css) Fix the type definition of
@support
at-rules (#3330) (34943ff)(css) Fix
@keyframes
at-rule (#3331) (f89ffa6)(css) Fix
@supports
at-rule (#3329) (9f38060)๐ (css/parser) Fix parsing of at rules (#3328) (506a310)
(es/block-scoping) Pop scope correctly on early returns (#3360) (b1a8db6)
(es/compat) Fix regression of
destructuring
(#3326) (6d1ad36)(es/compat) Handle nested functions in
private_field
(#3355) (29aaac1)(es/loader) Add an option to resolve symlinks with
true
as a default (#3340) (afdb168)(es/minifier) Consider capturing while inlining (#3322) (4f23d65)
(es/minifier) Don't inline a var if the initializer is reassigned (#3333) (d52a1f3)
(es/minifier) Respect block scoping while negating if statements (#3344) (6921ffb)
(es/minifier) Prepend/append correctly (#3367) (703972d)
(es/minifier) Improve minifier (#3350) (68e9017)
(es/module) Remove
.jsx
file extension (#3334) (b2bf38d)(es/typescript) Handle typescript enums with string values (#3339) (da709fe)
(swc) Respect
jsc.experimental.keepImportAssertions
(#3352) (d9dc2b9)
๐ Documentation
- (contributing) Fix formatting (#3376) (90cf073)
๐ Features
(css/ast) Add
Ratio
, which is defined by spec (#3335) (c7e5fae)(css/ast) Add types for dashed identifiers and
@color-profile
at-rules (#3364) (dfa0286)๐ (css/parser) Improve parsing of urls (#3362) (50521d8)
๐ (es/bugfix) Add
bugfix-safari-id-destructuring-collision-in-function-expression
(#3109) (d1c90a4)(es/codegen) Emit comments of
Module
andScript
(#3358) (fcb7288)๐ (es/lints) Implement "no-console" rule (#3269) (9872137)
(es/minifier) Handle array literals in
sequences
(#3348) (8007b2d)(es/preset-env) Upgrade
browserslist-rs
(#3375) (d3d754b)๐ (plugin) Pass host context to plugins for diagnostics emission (#3359) (a8debc1)
Miscellaneous Tasks
๐ Performance
- (node) Avoid cloning options (#3325) (8a76935)
๐จ Refactor
(css/ast) Merge several kinds of blocks into a single type (#3336) (c664eaf)
(css/ast) Fix type definitions related to
@import
at-rule (#3351) (7787f90)(css/ast) Rename
PercentValue
toPercent
(#3363) (6fc7562)(es/minifier) Merge execution tests into a file to make
git
faster (#3377) (7ef3bfa)๐ (plugin) Remove multivalue polyfill (#3346) (4386498)
-
v1.2.133 Changes
January 20, 2022 -
v1.2.131 Changes
January 19, 2022๐ Bug Fixes
(common) Use
siphasher
directly and upgrade transitive dependencies to avoid UB (#3299) (641265b)(es/compat) Apply
static_blocks
beforeclass_properties
(#3292) (89235b8)(es/minifier) Fix analysis of unary expressions (#3286) (b55ae4b)
(es/minifier) Inline into interpolations in tagged template literals (#3287) (fa5c063)
(es/minifier) Remove more side-effect-free expressions. (#3301) (18a11d7)
(es/minifier) Don't emit invalid code (#3302) (8e796cd)
(es/minifier) Fix logic for checking
arguments
(#3313) (1aa494b)(es/minifier) Prevent infinite loop due to negation (#3310) (b4d21bf)
(es/resolver) Ignore names of jsx attributes (#3289) (9a89895)
๐ Documentation
- (swc) Document
typescript::strip
(#3305) (18cd98e)
๐ Features
(es/compat) Use remove useless source map entries generated by
classes
(#3242) (2352920)(es/minifier) Drop more expressions from parallel optimizer (#3303) (210ecf8)
๐ (plugin) Add
PluginError
(#3300) (c6ffdc8)
๐จ Refactor
(es) Add
visit_obj_and_computed
macro (#3304) (9e636c7)(es/minifier) Fix clippy warnings (#3312) (2891220)
โ Testing
- ๐ (plugin/runner) Pin dependencies for the integration test (#3306) (7ba8a83)