Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: benjamn/recast
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.23.0
Choose a base ref
...
head repository: benjamn/recast
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.23.1
Choose a head ref
  • 17 commits
  • 10 files changed
  • 3 contributors

Commits on Dec 11, 2022

  1. Copy the full SHA
    6b7353a View commit details
  2. chore(dev-deps): update @babel/*

    Updates babel dependencies to add support for parsing
    [`TSInstantiationExpression`s](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#instantiation-expressions).
    eventualbuddha authored and benjamn committed Dec 11, 2022
    Copy the full SHA
    2cf2432 View commit details
  3. feat(ts): add support for TSInstantiationExpression

    Refs #1230
    
    See https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#instantiation-expressions.
    
    This won't work yet because `ast-types` does not yet know about
    `TSInstantiationExpression`. Once it does `recast` will need to be
    updated to include the newer release of `ast-types`, at which point it
    will be supported.
    eventualbuddha authored and benjamn committed Dec 11, 2022
    Copy the full SHA
    413d600 View commit details
  4. Copy the full SHA
    640acde View commit details
  5. Copy the full SHA
    62ffa68 View commit details
  6. Implement pretty-printer case for TSTypeCastExpression.

    I'm basing this implementation on the following old Babel printer case:
    https://github.com/babel/babel/blob/b84f4f2d69228010f86baf82d107728b860bca9d/packages/babel-generator/src/generators/typescript.js#L376-L379
    
    Since I can't find `TSTypeCastExpression` anywhere in the Babel codebase
    these days, it might not be used in the wild any longer, but it doesn't
    hurt to have a printer case for it, just in case it pops up.
    benjamn committed Dec 11, 2022
    Copy the full SHA
    e1bc08d View commit details
  7. Implement pretty-printer case for TSSatisfiesExpression.

    The printer for the `TSSatisfiesExpression` type is almost identical to
    the one for `TSAsExpression`, according to this implementation by Babel:
    https://github.com/babel/babel/blob/f5b52208f05157a348fdfaa0222c07a9a83fb101/packages/babel-generator/src/generators/typescript.ts#L525-L541
    benjamn committed Dec 11, 2022
    Copy the full SHA
    e51e1bf View commit details

Commits on Dec 13, 2022

  1. Temporarily change package.json version to 0.23.0-pr1232.0.

    I will publish this version to npm using the pr-1232 dist-tag to make
    prerelease testing easier.
    benjamn committed Dec 13, 2022
    Copy the full SHA
    432338e View commit details
  2. Copy the full SHA
    63cc9ba View commit details
  3. Implement pretty-printer case for ClassAccessorProperty.

    It's very similar to the one from Babel: https://github.com/babel/babel/blob/f5b52208f05157a348fdfaa0222c07a9a83fb101/packages/babel-generator/src/generators/classes.ts#L123-L166. However, `ast-types` doesn't seem to think a `definite` attribute exists on this node type so the type checking fails.
    eventualbuddha committed Dec 13, 2022
    Copy the full SHA
    7804875 View commit details

Commits on Dec 14, 2022

  1. Copy the full SHA
    63d5431 View commit details
  2. Restore line breaks to improve test code readability.

    The loss of line breaks is probably something Prettier decided to do at
    some point.
    benjamn committed Dec 14, 2022
    Copy the full SHA
    d9cfd16 View commit details
  3. Merge pull request #1232 from benjamn/1230-error-did-not-recognize-ob…

    …ject-of-type-tsinstantiationexpression
    
    Add pretty-printer support for `TSInstantiationExpression` and other missing
    AST types, as well as updating ast-types to version 0.16.0.
    benjamn authored Dec 14, 2022
    Copy the full SHA
    7a0a0b2 View commit details
  4. Copy the full SHA
    e586f4e View commit details
  5. Copy the full SHA
    8e54f31 View commit details
  6. Copy the full SHA
    e9aa327 View commit details
  7. Bump npm version to 0.23.1.

    benjamn committed Dec 14, 2022
    Copy the full SHA
    6c8b2e6 View commit details
Loading