Skip to content

Releases: sveltejs/esrap

v2.2.9

15 May 20:44
0d601c9

Choose a tag to compare

Patch Changes

  • aa3078c: fix: keep braces for concise arrow functions with as/satifies type suffix

v2.2.8

12 May 23:17
a8bcc9d

Choose a tag to compare

Patch Changes

  • 6e22ff0: fix: emit valid TS for aliased inline-type import specifiers

    ImportSpecifier with both importKind: 'type' and an alias (e.g.
    import { type Foo as Bar } from '...') was being printed as
    Foo as type Bar, which is not valid TypeScript. The type keyword now
    precedes the imported identifier instead of the local.

v2.2.7

11 May 09:32
f668499

Choose a tag to compare

Patch Changes

  • 5d382df: fix: print type parameters and return type of arrow functions, and default of type parameters
  • 02b140b: fix: add locations to keywords

v2.2.5

10 Apr 15:44
8f0cdfe

Choose a tag to compare

Patch Changes

  • fe96f0f: fix: make @typescript-eslint/types an optional peer dependency

    print() is also used in non-TypeScript contexts (e.g. with @types/estree nodes), where @typescript-eslint/types as a regular dependency can cause type conflicts. Now optional, so ts()/tsx() visitors work with any node type.

v2.2.4

13 Mar 07:54
f51bbe9

Choose a tag to compare

Patch Changes

  • d22f488: fix: add @typescript-eslint/types as a dependency since some types are exported

v2.2.3

08 Feb 02:37
02acfcb

Choose a tag to compare

Patch Changes

  • 4994752: fix: print function accessibility
  • f9137c4: fix: print superTypeParameters
  • 779b3f5: fix: print override keyword

v2.2.2

20 Jan 18:38
eca363b

Choose a tag to compare

Patch Changes

  • fc7edf6: fix: context.multiline now bubbles up through child-contexts
  • 8f2fc99: fix: remove extra margin between multiline object

v2.2.1

01 Dec 20:27
7a37005

Choose a tag to compare

Patch Changes

  • 4b2b920: fix: loosen types for getLeadingComments and getTrailingComments

v2.2.0

25 Nov 19:15
00dea24

Choose a tag to compare

Minor Changes

  • da2f84d: feat: add getLeadingComments & getTrailingComments option for programmatic comment insertion

v2.1.3

16 Nov 07:24
6ca1bd0

Choose a tag to compare

Patch Changes

  • 9bf2740: fix: support export class with decorators