Commit graph

1649 commits

Author SHA1 Message Date
Quine Global
62ba2f830c Add acorn as dependency 2025-08-10 02:32:40 -04:00
Brian Donovan
9bddaef3e5
style: fix formatting 2025-03-02 17:52:04 -08:00
Brian Donovan
04650ebed4
0.23.11 2025-03-02 17:45:56 -08:00
Brian Donovan
23af4519a2
Merge pull request #1415 from spanishpear/master
Feat: support Typescript type arguments on tagged template literals
2025-03-02 17:45:33 -08:00
Brian Donovan
82249ff8ef
0.23.10 2025-02-26 14:42:56 +00:00
Brian Donovan
6252ec9225
Merge pull request #1406 from mightymeld/2024/06/fix_double_parentheses
fix: double parentheses when returning JSXElements using Babel parser
2025-02-26 06:38:35 -08:00
ssomaiya
539b8d3230
Feat: support Typescript type arguments on tagged template literals 2024-11-25 22:17:40 +11:00
tim
2d6919c889 fixes incorrect indentation that could happen with tabs 2024-07-16 23:33:57 +02:00
tim
897a70a8ba fixes formatting 2024-06-18 18:57:29 +02:00
Brian Donovan
26f21ab437
Merge pull request #1408 from benjamn/refactor/fix-lines-type-annotations
refactor: replace `any` type annotations in `Lines`
2024-06-18 09:13:16 -07:00
Brian Donovan
7dee9e08ec
refactor: replace any type annotations in Lines
Many of these could just be left inferred.
2024-06-18 09:07:22 -07:00
tim
2bfb82f24a fixes double parentheses for JSXFragments too 2024-06-18 08:21:05 +02:00
tim
91896cfcfc avoids double-parentheses on JSXElements 2024-06-18 07:40:40 +02:00
Brian Donovan
887f5b724b
0.23.9 2024-06-01 18:11:00 +00:00
Brian Donovan
933e25a606
Merge pull request #1403 from benjamn/fix/1223-redo
fix: prevent removal of trailing JSX whitespace
2024-06-01 11:10:14 -07:00
Brian Donovan
5d0ec0a563
fix: prevent removal of trailing JSX whitespace
This just re-applies the fix from #1223 by @coderaiser on top of `master`.
2024-06-01 18:08:35 +00:00
Brian Donovan
ac2903c13e
0.23.8 2024-05-31 14:44:47 +00:00
Brian Donovan
6f7466ea8e
Merge pull request #1383 from dandean/patch-1 2024-05-31 07:43:54 -07:00
Brian Donovan
b36db43e8d
style: reformat with prettier 2024-05-31 14:34:27 +00:00
Brian Donovan
85cdb0e4fa
test: cover get/set in interfaces
Ported from 27ba8a64e3.
2024-05-31 14:26:05 +00:00
Brian Donovan
aff2dead1b
0.23.7 2024-05-11 11:19:30 -07:00
Brian Donovan
b7beb308b1
Merge pull request #1397 from PartMan7/support-typedef-tsx
printer: Support type parameters on JSX components in TSX
2024-05-11 11:18:31 -07:00
Parth Mane
ec2d873c6a tests: Add TSX tests 2024-05-02 17:48:46 +05:30
Parth Mane
dd8cea468e chore: Support type parameters on JSX components in TSX (<Foo<Bar> />) 2024-04-08 13:02:00 +05:30
Brian Donovan
51d5c899c1
Merge pull request #1391 from benjamn/fix-1390
fix: print export namespace specifiers without braces
2024-03-08 16:07:35 -08:00
Brian Donovan
88a2baef95
0.23.6 2024-03-08 15:57:32 -08:00
Brian Donovan
34ca95675e
Merge pull request #1392 from benjamn/remove-useless-lines-test
test: remove useless test code
2024-03-08 14:14:06 -08:00
Brian Donovan
e47aaedb95
test: remove useless test code
This was here since the `Lines` class was originally added in 1859d14416, but `exports.testBasic` was never defined and so this always was `undefined`.
2024-03-08 14:07:57 -08:00
Brian Donovan
bc87a950bb
fix: print export namespace specifiers without braces
Fixes #1390
2024-03-03 11:46:01 -08:00
Brian Donovan
2a9a88bf5f
Merge pull request #1389 from 43081j/format
chore: run format
2024-03-03 10:39:44 -08:00
Brian Donovan
3bc8b70a56
style: enforce code formatting in CI 2024-03-03 10:29:39 -08:00
43081j
ed236b84d6 chore: run format 2024-03-02 12:27:04 +00:00
Brian Donovan
d7f404ed63
Merge pull request #1388 from benjamn/tiny-invariant
refactor: replace `assert` with `tiny-invariant`
2024-03-01 15:40:44 -08:00
Brian Donovan
4b0236319d
0.23.5 2024-03-01 15:34:08 -08:00
Brian Donovan
efaae58d3d
refactor: replace assert with tiny-invariant 2024-03-01 15:27:32 -08:00
Dan Dean
f0f50943d8
Update printer.ts to support kind = 'get'/'set' on TSMethodSignature
`TSMethodSignature` has a `kind` property which can be set to `method` (the default), `get`, and `set`. When `get` and `set`, the method is a getter or a setter, and as such, should be prefixed with either `get ` or `set `.
2024-01-02 17:22:54 -08:00
Brian Donovan
7f441d2c74
0.23.4 2023-08-10 17:25:28 -07:00
Brian Donovan
97af13fe83
Merge pull request #1361 from benjamn/fix/enclose-unary-expression-inside-exponentiation-in-parens
fix(print): wrap unary exprs inside `**` in parens
2023-08-10 17:24:52 -07:00
Brian Donovan
068960405c
fix(print): wrap unary exprs inside ** in parens
Closes https://github.com/benjamn/recast/issues/1357
2023-08-10 07:03:13 -07:00
Brian Donovan
2bb3a4ffdd
0.23.3 2023-07-11 19:15:02 -04:00
Brian Donovan
d0afcd637d
Merge pull request #1338 from ashsearle/fix-export-specifier-export-kind
fix: print ExportSpecifier.exportKind
2023-07-11 19:13:14 -04:00
Ash Searle
9292af1162 fix: print ExportSpecifier.exportKind 2023-07-05 21:56:37 +01:00
dependabot[bot]
0385cd919d
Merge pull request #1313 from benjamn/dependabot/npm_and_yarn/typescript-eslint/parser-5.59.9 2023-06-06 15:00:11 +00:00
dependabot[bot]
6f85a40b33
Bump @typescript-eslint/parser from 5.47.1 to 5.59.9
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.47.1 to 5.59.9.
- [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.59.9/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 11:57:53 +00:00
Brian Donovan
34a6b3ddb3
0.23.2 2023-05-12 09:27:53 -07:00
Brian Donovan
a35e6c3808
Merge pull request #1273 from coderaiser/fix/comments-move-in-call-expression-after-recast-print
feature: improve support of comments inside CallExpression (benjamn/r…
2023-05-12 09:27:36 -07:00
Brian Donovan
1413bdf5a3
style: apply prettier formatting 2023-05-12 09:25:55 -07:00
dependabot[bot]
fd44c6271c
Merge pull request #1288 from benjamn/dependabot/npm_and_yarn/lint-staged-13.2.2 2023-05-12 16:20:12 +00:00
dependabot[bot]
2bdf178bdc
Bump lint-staged from 12.4.1 to 13.2.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.4.1 to 13.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.4.1...v13.2.2)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-12 16:17:52 +00:00
Brian Donovan
fdaebba1e9
Merge pull request #1256 from benjamn/dependabot/npm_and_yarn/mocha-and-types/mocha-10.2.0
Bump mocha and @types/mocha
2023-05-12 09:17:17 -07:00