Releases: codemodsquad/astx
Releases · codemodsquad/astx
v2.0.0
2.0.0 (2022-12-03)
Bug Fixes
- babel/auto: fix webpack compatibility (8e18624)
- Astx.replace definition and MJS/CJS builds (291c728)
- change Astx API (0961160)
- change type property placeholder syntax to $a: $ (89b4bc7)
- debug perf and ObjectProperty node types (0c3756b)
- disable progress spinner in CI (3316c56)
- error handling in AstxWorker and transform cli (6468f14)
- ExportNamedDeclaration.specifiers list matching (9a4533d)
- get Astx class working again (bb8a7fd)
- handle AssignmentPattern matching correctly (8262ec5)
- match capture positions like class /**/ { } (279fa97)
- memoize babelAstTypes, make backend properties readonly (9ada03b)
- optional assignment pattern matching (4f8589d)
- remove flow-parser tests and other things (801ccca)
- rename $Optional to $Maybe (21428d6)
- rename TransformOptions.path -> file (987fcc3)
- TS errors when @types/debug isn't installed as peer dep (d8b5b10)
- tweak type defs (7c7c53a)
- types conditional exports (78df3e1)
- unignore .mjs files (79d7ada)
- use ast-types for all traversal (66d9098)
- webpackIgnore external module imports (48171e2)
- Worker filename in cjs/mjs builds (c84cf83)
-
--babel-generator: use
@babel/generator
from deps if it isn't installed in your project (673a2a6) - Astx: almost finish connecting new backend architecture (2d8bb8a)
- AstxWorkerPool: fix failure to end iteration (a2d0c72)
- babel: fix backend.generate is not a function error in mjs build (528a99f)
- prettier warning (55090e9)
- AstxWorker: convert to worker_threads (d7900f2)
- babel-generator: use concise mode (3c60692)
- babelAstTypes: tolerate babel node fields without a validate property (5ba012c)
- cli: get cli working again (e25fa9c)
- cli: update options and docs (3b5e9de)
- cli/transform: don't output reports if transform.onReport defined (5840a7f)
- cli/transform: remove --babel-generator option (b753b7d)
- CodeFrameError: fix missing type declaration error (053cce7)
- convertReplacement: issues with import specifiers (4a4e6b4)
- find: accept array of paths again (8bde868)
- formatMatches: get all node locations properly via backend (3afb40f)
- glob: handle complete file path in pattern (a26ac78)
- PushPullIterable: use ring buffer (6f8cab2)
- recast/babel: pass tokens: true to @babel/parser (6900ec0)
- recast/util/addMissingFields: fix typeParameters/typeArguments fields (77fc861)
- runTransform: catch and handle aborted errors (0e63f07)
- generalize parse template string function (1aecfa2)
- cloneNode: bug affecting RegExps in replacements (4095dc4), closes #10
- find: fix bug with leading statement array capture (beffcd5), closes #9
- find: take root path instead of node (b8f870c)
- babel-generator issues (0065da9)
- bug with replacing an ExpressionStatement with multiple Statements (536e8db)
- capture escape bugs (bebd341)
- get all find testcases working with babel and jscodeshift backends (8154675)
- get all find/replace testcases working with babel and recast (0b417ab)
- more major refactoring (9dd7796)
- GenericArrayMatcher: include reference to input pattern in errors (652b6d2)
- ObjectExpression: include reference to input pattern in errors (860a08e)
- implement convertReplacement system (72b155c)
- issue in GenericNodeMatcher/GenericNodeReplacement (ab46d74)
- remove Collection from Astx API (bc00c2e)
- replace lodash.cloneDeep (8fcdf7d)
- string capture escaping (420a5e0)
- Astx: support passing ASTNode to replace (33289ee)
- Capture: allow (JSX)Identifier captues/backreferences to match (6beb33a)
- Capture: allow identifier backreference to match shorthand property (b918816)
- compileMatcher: improve JSX children matching (645e55d)
- compileMatcher: use ASTPaths instead of ASTNodes (8c390f8)
- parseFindOrReplace: default to function and class declarations instead of expressions ([65320b1](65320b1b74045bfd7f55b75a61b...
v2.0.0-beta.46
v2.0.0-beta.45
v2.0.0-beta.44
v2.0.0-beta.43
2.0.0-beta.43 (2022-11-25)
Bug Fixes
- babel: fix backend.generate is not a function error in mjs build (528a99f)
v2.0.0-beta.42
2.0.0-beta.42 (2022-11-25)
Bug Fixes
- Astx.replace definition and MJS/CJS builds (291c728)
- prettier warning (55090e9)
- AstxWorker: convert to worker_threads (d7900f2)
BREAKING CHANGES
- the type signatures of replace and Astx.replace have changed
v2.0.0-beta.41
v2.0.0-beta.40
v2.0.0-beta.39
v2.0.0-beta.38
2.0.0-beta.38 (2022-11-18)
Bug Fixes
- disable progress spinner in CI (3316c56)
- template: fix string interpolation bug (091df56)
- error handling in AstxWorker and transform cli (6468f14)
- rename TransformOptions.path -> file (987fcc3)
Features
- cli: add --workers option (5add00b)
- add Astx.map, make .filter iterate over sub-Astxes (43aa15e)
- cli: add -no-gitignore option (d0f4927)
BREAKING CHANGES
TransformOptions.path
has been renamed tofile