Releases: codemodsquad/astx
Releases · codemodsquad/astx
v2.0.0-beta.22
2.0.0-beta.22 (2022-09-29)
Bug Fixes
- formatMatches: get all node locations properly via backend (3afb40f)
v2.0.0-beta.21
2.0.0-beta.21 (2022-09-28)
Bug Fixes
v2.0.0-beta.20
2.0.0-beta.20 (2022-09-28)
Features
BREAKING CHANGES
- move runTransform/runTransformOnFile to:
import { runTransform, runTransformOnFile } from 'astx/node'
v2.0.0-beta.19
2.0.0-beta.19 (2022-09-27)
Features
- support config files and improve globbing (1f502c6)
BREAKING CHANGES
- the signatures for runTransform and runTransformOnFile have changed.
- the babel and recast/babel parsers now use fixed parser options, and
the new babel/auto and recast/babel/auto parsers load parser options from your babel
config. However, the default parser behavior (now babel/auto) behaves the same as
before.
v2.0.0-beta.18
2.0.0-beta.18 (2022-09-10)
Features
- parse: support extracting node between two empty comments (02b9fdd)
v2.0.0-beta.17
2.0.0-beta.17 (2022-09-10)
Bug Fixes
- match capture positions like class /**/ { } (279fa97)
Features
- make Astx.backend public, provide node location method (4727e87)
BREAKING CHANGES
- Backend.sourceRange has been renamed to Backend.location and the return type
has changed
v2.0.0-beta.16
2.0.0-beta.16 (2022-09-09)
Bug Fixes
BREAKING CHANGES
- Astx.size, Astx.matches, Astx.match, Astx.paths, and Astx.nodes
are now getters. Astx.length has been removed, and Astx is now an Iterable.
Various array properties and parameters are now readonly.
v2.0.0-beta.15
2.0.0-beta.15 (2022-09-02)
Bug Fixes
- babelAstTypes: tolerate babel node fields without a validate property (5ba012c)
v2.0.0-beta.14
2.0.0-beta.14 (2022-09-02)
Bug Fixes
- memoize babelAstTypes, make backend properties readonly (9ada03b)
v2.0.0-beta.13
2.0.0-beta.13 (2022-09-01)
Features
- implement $Ordered/$Unordered flags (e70e2b3)
BREAKING CHANGES
- some list types are now matched unordered by default. These types are now listed in the README.
To force an ordered match you can place the$Ordered
capture variable inside the list pattern. You can also
force an unordered match when the default is ordered by placing the$Unordered
capture variable inside the list
pattern.