dependabot[bot]
dea1daeab7
Bump mocha and @types/mocha
...
Bumps [mocha](https://github.com/mochajs/mocha ) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ). These dependencies needed to be updated together.
Updates `mocha` from 9.2.2 to 10.2.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.2.0 )
Updates `@types/mocha` from 8.2.0 to 10.0.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
- dependency-name: "@types/mocha"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-12 16:15:39 +00:00
dependabot[bot]
b7520d582d
Merge pull request #1255 from benjamn/dependabot/npm_and_yarn/glob-and-types/glob-8.0.3
2023-05-12 16:14:44 +00:00
dependabot[bot]
298c24c3b5
Merge pull request #1268 from benjamn/dependabot/npm_and_yarn/tslib-2.5.0
2023-05-12 16:14:27 +00:00
dependabot[bot]
8be4600991
Merge pull request #1287 from benjamn/dependabot/npm_and_yarn/eslint-8.40.0
2023-05-12 16:13:43 +00:00
dependabot[bot]
365b925be3
Bump eslint from 7.31.0 to 8.40.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.31.0 to 8.40.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.31.0...v8.40.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-12 16:11:58 +00:00
Brian Donovan
e18deeb1ff
Merge pull request #1286 from benjamn/ci/update-node-versions
...
ci: update node versions
2023-05-12 09:11:14 -07:00
Brian Donovan
6fa727cba3
ci: update node versions
...
10.x was EOL over two years ago, so I think it's okay to no longer test against it. Also adds 18.x, 19.x, and 20.x since they're the current releases per the NodeJS release schedule: https://github.com/nodejs/release#release-schedule .
2023-05-12 09:08:59 -07:00
Brian Donovan
5ca81125fa
Merge pull request #1266 from benjamn/dependabot/npm_and_yarn/json5-2.2.3
...
Bump json5 from 2.2.1 to 2.2.3
2023-05-12 08:58:14 -07:00
Brian Donovan
5e6442d2d6
Merge pull request #1276 from clarkdo/patch-1
2023-02-16 08:00:55 -08:00
Xin Du (Clark)
e800995698
chore(doc): fix ast types def link
2023-02-16 15:55:34 +00:00
coderaiser
65a102da24
fix: improve support of nodes without enclosing
2023-02-12 14:04:34 +02:00
coderaiser
691aa1c96a
feature: improve support of comments inside CallExpression ( benjamn/recast#1272 )
2023-02-12 13:34:10 +02:00
Brian Donovan
130d7ac092
Merge pull request #1270 from coderaiser/patch-1
2023-02-01 08:44:42 -08:00
coderaiser
3745c6c0f8
docs: readme: add ")"
2023-02-01 16:10:02 +02:00
dependabot[bot]
e3f36ff453
Bump tslib from 2.3.0 to 2.5.0
...
Bumps [tslib](https://github.com/Microsoft/tslib ) from 2.3.0 to 2.5.0.
- [Release notes](https://github.com/Microsoft/tslib/releases )
- [Commits](https://github.com/Microsoft/tslib/compare/2.3.0...2.5.0 )
---
updated-dependencies:
- dependency-name: tslib
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 11:03:23 +00:00
dependabot[bot]
ad82c8756b
Bump json5 from 2.2.1 to 2.2.3
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-09 20:22:39 +00:00
dependabot[bot]
78bf044845
Bump glob and @types/glob
...
Bumps [glob](https://github.com/isaacs/node-glob ) and [@types/glob](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/glob ). These dependencies needed to be updated together.
Updates `glob` from 7.2.0 to 8.0.3
- [Release notes](https://github.com/isaacs/node-glob/releases )
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md )
- [Commits](https://github.com/isaacs/node-glob/compare/v7.2.0...v8.0.3 )
Updates `@types/glob` from 7.2.0 to 8.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/glob )
---
updated-dependencies:
- dependency-name: glob
dependency-type: direct:development
update-type: version-update:semver-major
- dependency-name: "@types/glob"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-27 16:20:22 +00:00
dependabot[bot]
4d389c493e
Merge pull request #1263 from benjamn/dependabot/npm_and_yarn/typescript-eslint/parser-5.47.1
2022-12-27 16:19:33 +00:00
dependabot[bot]
a0dde6fd4b
Bump @typescript-eslint/parser from 4.14.2 to 5.47.1
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.14.2 to 5.47.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-27 11:01:10 +00:00
Ben Newman
6c8b2e63cd
Bump npm version to 0.23.1.
2022-12-14 16:33:43 -05:00
Ben Newman
e9aa327f98
Update typescript dev dependency from ^4.3.5 to to ^4.9.4.
...
Closes #1244 .
2022-12-14 16:29:49 -05:00
Ben Newman
8e54f31f83
Update @babel/{core,parser} to latest versions.
...
Closes #1234 .
2022-12-14 16:26:22 -05:00
dependabot[bot]
e586f4e7c9
Bump @types/node from 16.4.0 to 18.11.15 ( #1253 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 16.4.0 to 18.11.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
2022-12-14 16:23:15 -05:00
Ben Newman
7a0a0b2566
Merge pull request #1232 from benjamn/1230-error-did-not-recognize-object-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.
2022-12-14 16:20:24 -05:00
Ben Newman
d9cfd1651d
Restore line breaks to improve test code readability.
...
The loss of line breaks is probably something Prettier decided to do at
some point.
2022-12-14 16:16:38 -05:00
Brian Donovan
63d5431f9a
ensure class member modifiers are printed correctly
2022-12-14 08:28:07 -08:00
Brian Donovan
780487577a
Implement pretty-printer case for ClassAccessorProperty.
...
It's very similar to the one from Babel: f5b52208f0/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.
2022-12-13 07:49:05 -08:00
Ben Newman
63cc9ba185
Revert "Temporarily change package.json version to 0.23.0-pr1232.0."
...
This reverts commit 432338e9bf .
2022-12-13 09:54:56 -05:00
Ben Newman
432338e9bf
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.
2022-12-13 09:53:05 -05:00
Ben Newman
e51e1bfe49
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:
f5b52208f0/packages/babel-generator/src/generators/typescript.ts (L525-L541)
2022-12-11 15:37:42 -05:00
Ben Newman
e1bc08d78d
Implement pretty-printer case for TSTypeCastExpression.
...
I'm basing this implementation on the following old Babel printer case:
b84f4f2d69/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.
2022-12-11 15:23:42 -05:00
Ben Newman
62ffa684b7
Split pretty-printer completeness check into one it(...) per AST type.
2022-12-11 15:05:14 -05:00
Ben Newman
640acde4c0
Update ast-types to version 0.16.0.
2022-12-11 15:05:14 -05:00
Brian Donovan
413d600a0a
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.
2022-12-11 15:05:14 -05:00
Brian Donovan
2cf243225c
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 ).
2022-12-11 15:05:14 -05:00
dependabot[bot]
6b7353a1ef
Bump flow-parser from 0.156.0 to 0.195.0 ( #1245 )
...
Bumps [flow-parser](https://github.com/facebook/flow ) from 0.156.0 to 0.195.0.
- [Release notes](https://github.com/facebook/flow/releases )
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md )
- [Commits](https://github.com/facebook/flow/compare/v0.156.0...v0.195.0 )
2022-12-11 14:36:12 -05:00
Ben Newman
568e2cda85
Bump npm version to 0.23.0.
2022-12-11 12:28:19 -05:00
Ben Newman
56416d1881
Merge pull request #1247 from benjamn/restore-pretty-printing-ts-object-type-semicolons
...
Restore pretty-printing TypeScript `type T = {...}` and
`interface T {...}` semicolons between child members.
2022-12-11 12:26:07 -05:00
Ben Newman
298deac5aa
Revert "Publish prerelease version of PR #1247 to npm."
...
This reverts commit 808e539051 .
I usually bump the main package version on the main/master branch after
merging PRs, but I wanted the commit I published to npm (git tag
v0.23.0-pr-1247, recast@0.23.0-pr-1247, npm dist-tag pr-1247) to appear
in the Git history somewhere, even though this commit reverts it.
2022-12-11 12:21:02 -05:00
Ben Newman
808e539051
Publish prerelease version of PR #1247 to npm.
2022-12-10 18:26:28 -05:00
Ben Newman
f76948ecca
Pretty-print semicolons after TSInterfaceBody elements, too.
2022-12-10 18:01:18 -05:00
Ben Newman
1ac55c88e9
Use semicolons in TSTypeLiteral again (not commas though).
...
Follow-up to PR #1157 that I caught while trying to regenerate the
TypeScript declarations for ast-types, and noticed a bunch of (IMHO
reasonable) semicolons going missing.
2022-12-10 17:46:01 -05:00
Brian Donovan
00bda58517
0.22.0
2022-12-09 13:31:52 -08:00
Brian Donovan
c9c5bb5dcf
Merge pull request #1237 from d3lm/d3lm/feat/remove-node-deps
...
feat: make lib browser compatible
2022-12-09 13:29:26 -08:00
Dominic Elm
61093a4f49
feat: make lib browser compatible
2022-11-29 12:03:24 +01:00
Brian Donovan
6b5cb1addd
Merge pull request #1231 from benjamn/chore/dev-deps/bump-mocha
...
chore(dev-deps): update `mocha`
2022-11-25 08:54:24 -08:00
Brian Donovan
bd83f98b6b
chore(dev-deps): update mocha
...
This was the result of running `npm audit fix`.
2022-11-25 08:49:30 -08:00
Brian Donovan
f41dd8b53f
0.21.5
2022-09-27 05:39:52 +00:00
Brian Donovan
9a22270ab4
Merge pull request #1090 from gnprice/pr-flow-declareclass
...
Support Flow "declare class" fully: type parameters, "extends", "implements"
2022-09-26 22:39:17 -07:00
Greg Price
7891bc75c3
Unify DeclareClass with ClassDeclaration
...
These have so much in common that when they're implemented separately,
it's easy (as the breakage fixed in the previous commit demonstrates)
for one of them to lag behind in getting a feature the other has.
2022-09-27 05:36:14 +00:00