- Add
types
topkg.exports
(#83)
- Fix inline comments in function arguments (#79)
- Use
dts-buddy
to generate type declarations (#78)
- Breaking: remove CJS build, remove
main
andmodule
(#75)
- Update to
es2022
(#73)
- Replace
sourcemap-codec
with@jridgewell/sourcemap-codec
(#74)
- Prevent stack overflow with very large ASTs (#71)
- Fix output for arrow functions where body is an object destructuring assignment (#70)
- Fix output with comments within parenthesized
return
statement (#36) - Fix output for identifier at root of AST (#37)
- Fix output for statements with empty bodies (#65)
- Update dependencies (#63)
- Fix handling of string literal raw values (#61)
- Rewrite in JavaScript
- Only use shorthand for non-computed properties (#58)
- Fix rendering of nullish coalescing operator alongside other logical operators (#52)
- Don't crash when using an arrow function as a statement (#38)
- Throw on unhandled sigils (#30)
- Prevent syntax errors when combining comments (#28)
- Expose wrapped versions of Acorn methods to facilitate comment preservation (#26)
- Wrap
await
argument in parens if necessary (#24)
- Handle sigils in comments (#21)
- Add
toString
andtoUrl
methods on sourcemap objects (#22)
- Handle parenthesized expressions
- Always replace comment values (#20)
- Fix async/generator functions in object methods (#18)
- Determine shorthand eligibility after stringification (#17)
- Unescape sigils in literals (#16)
- Prevent erroneous object shorthand when key is an identifier (#14)
- Deconflict #-identifiers in function names (#10)
- Fix object expression with string literal key matching value (#9)
- Update deps
- Attach comments
- Fixes and additions
- Improve some aspects of generated code
- Flatten patterns
- Sourcemaps
- Flatten object properties
- Handle deconfliction edge case
- Tweak some TypeScript stuff
- Adopt estree types
- Add a
p
function for creating properties
- Allow strings to be treated as identifiers
- Various
- Flatten arguments and parameters
- Omit missing statements
- Flatten arrays of statements
- Use fork of astring
- Allow return outside function
- Print code on syntax error
- Support
@
-prefixed names (replaceable globals) - Support
#
-prefixed names (automatically deconflicted)
- First experimental release