- aa3078c: fix: keep braces for concise arrow functions with
as/satifiestype suffix
-
6e22ff0: fix: emit valid TS for aliased inline-type import specifiers
ImportSpecifierwith bothimportKind: 'type'and an alias (e.g.import { type Foo as Bar } from '...') was being printed asFoo as type Bar, which is not valid TypeScript. Thetypekeyword now precedes the imported identifier instead of the local.
- 5d382df: fix: print type parameters and return type of arrow functions, and default of type parameters
- 02b140b: fix: add locations to keywords
- 038a3d2: fix: print
declare moduleand mapped types
-
fe96f0f: fix: make
@typescript-eslint/typesan optional peer dependencyprint()is also used in non-TypeScript contexts (e.g. with@types/estreenodes), where@typescript-eslint/typesas a regular dependency can cause type conflicts. Now optional, sots()/tsx()visitors work with any node type.
- d22f488: fix: add
@typescript-eslint/typesas a dependency since some types are exported
- 4994752: fix: print function accessibility
- f9137c4: fix: print
superTypeParameters - 779b3f5: fix: print override keyword
- fc7edf6: fix:
context.multilinenow bubbles up through child-contexts - 8f2fc99: fix: remove extra margin between multiline object
- 4b2b920: fix: loosen types for
getLeadingCommentsandgetTrailingComments
- da2f84d: feat: add
getLeadingComments&getTrailingCommentsoption for programmatic comment insertion
- 9bf2740: fix: support export class with decorators
- 53b485d: fix: support typescript class decorator
- 9a7693e: fix: support more typescript nodes
- 3c9abb3: feat: add
context.space()method
- 3c9abb3: fix: add newline after line comment following statement
- 922292a: fix: support
implementswith an empty array and with more than 1
- a5f91d5: breaking: add support for custom printers
- 029962b: breaking:
print(...)only accepts a node, not an array of nodes
- 6483d71: feat: experimental JSX support
- bd045a3: fix: support function return type
- bd045a3: fix: support decorator expression
- 61c9902: fix: only push
withclause if attributes length is gt 0
- bab0228: fix: support import attributes
- 1caf836: fix: add missing spaces in interfaces
- 49d433b: fix: correctly handle parenthesised FunctionExpressions
- 76eabe8: fix: consistently escape escape characters
- 9daf5dd: fix: correct indentation of
TSModuleBlock
- 6a6eed9: fix: support
TSImportType
- b683171: fix: support
TSModuleDeclaration
- 030c3ec: fix: correctly escape
\r
- faa865e: fix: including sourcemap mappings for block statement brackets
- 10c6156: fix: escape newlines when quoting strings
- d97e56f: feat: add option for quote and indentation styles
- 4c784f6: fix: move @changesets/cli to dev dependencies
- 333b32c: chore: verify changesets setup, again
- a6c0031: chore: verify changesets setup
- Transfer repo to
sveltejs
- Loosen types (#15)
- Fix types
- Support TypeScript nodes (#13)
- Wrap object expression statements in parentheses (#14)
- Correctly handle arrow functions where body includes an object expression (#9)
- Support default and namespace import in same declaration (#8)
- Rewrite for better performance (#7)
- Actually add the changes that were supposed to go in 1.1.0
- Tweak output (#5)
- Fix typo (#4)
- Collapse empty bodies (#3)
- Better types
- First release