Releases: hoangnhan2ka3/twg
Releases · hoangnhan2ka3/twg
v6.0.2
Added
- Type
TransformerOptions
(previouslyReplacerOptions
) can now be imported from each entry point.
Refactor
- Refactor all
export
statement to the end of files due totsup
dts export issue. - Fixed some misleading
import
statement.
Docs
- Add
Migration Guide
to docs. - Add
README.md
tobenchmark
folder. - Add
Types definition
section toapi.md
.
Full Changelog: v6.0.1...v6.0.2
v6.0.1
v6.0.0 🎉
Breaking change
- Rename
replacer()
function totransformer()
. - Remove
*/replacer
entry point,transformer()
now is in the same entry point astwg()
, also withcreateTwg()
function. That meanstransformer()
function will be combined/located in the same file withtwg()
, to take advantage of its API without rewrite it in another entry.
Core change
- Deprecated
reducer()
andparser()
functions becausetwg()
can handle it now. - Change
toVal()
function's logic to handle mapping key with values process. - Add
bigint
toClassValue
type (related to thisclsx
issue).
Refactor
- Change
native object
detecting convention from"🚀"
to1
. - Refactor some
JSDoc
for functions and fix typo. - Delete unused bracket pair in
combiner()
function. - Refactor
ClassValue
import path tosrc/index
in every entry point.
Chore
- Bump
@types/node
version tov22.5.5
. - Add
benchmark
withclsx
.
Full Changelog: v5.0.11...v6.0.0
v5.0.11
Refactor
- Refactor
toVal()
andcreateTwg()
function's logic to use&&
instead ofif
statement.
Chore
- Update
JSDoc
fortoVal()
andcreateTwg()
function.
Full Changelog: v5.0.10...v5.0.11
v5.0.10
Docs
- Update
Version comparison
table. - Update
bundle size
section in docs.
Chore
- Remove unused
console.log
intransformer()
function ofextend
version.
Full Changelog: v5.0.9...v5.0.10
v5.0.9
Core change
- Remove unused
!innerPath.node.shorthand
condition in bothextend
andextend/lite
version. - Better handling
nestingCallee
option inextend
version.
Refactor
- Refactor
toVal()
function logic inextend
version. - Make
reducer()
function's filter more concise.
Chore
- Bump
pnpm
version to9.10.0
. - Update
pnpm-lock.yaml
. - Add more default test cases for
twg()
andreplacer()
function.
Full Changelog: v5.0.8...v5.0.9
v5.0.8
Refactor
- Import exactly what is needed from
@babel
inast.ts
to improve tree-shaking.
Full Changelog: v5.0.7...v5.0.8
v5.0.7
Docs
- Sync npm
README.md
with GitHubREADME.md
.
Chore
- Bump
terser
and other dev dependencies version. - Update tests for compatibility with
[email protected]
.
Full Changelog: v5.0.6...v5.0.7
v5.0.6
Docs
- Update
twg
thumbnail image. - Update
twg
logo in the start of every docs.
Chore
- Update
twg
logo in the start of every markdown file.
v5.0.5
Core change
- Added conditions to remove the
path
in case thekey
inObjectProperty
is notIdentifier
andStringLiteral
forextend
version.
Chore
- Add more test cases for
extend
version.
Full Changelog: v5.0.4...v5.0.5