ts-morph
28.0.0 · 12 Apr 2026MIT42.3M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 86 releases- 28.x · latest line
28.0.0
12 Apr 2026- Breaking
BREAKING: TypeScript 6.0
Standalone
printStructurefunctionInvalidOperationErrorinaddTypeArgument
What's Changed
- Breaking
BREAKING: TypeScript 6.0
Standalone
printStructurefunctionInvalidOperationErrorinaddTypeArgument
Note there are some breaking changes due to TypeScript 6.0. Read more here: devblogs.microsoft.com/typescript/announcing-ty…
As part of this release, structures can now be printed to a string using the
printStructurefunction.import { printStructure, StructureKind } from "ts-morph"; const code = printStructure({ kind: StructureKind.Class, name: "MyClass", isExported: true, properties: [{ name: "myProp", type: "string" }], methods: [{ name: "myMethod", parameters: [{ name: "param", type: "number" }], returnType: "void", }], }); console.log(code);Outputs:
export class MyClass { myProp: string; myMethod(param: number): void { } }- 27.x · maintenance
27.0.2
12 Oct 2025Fixes the npm publish in order to get the fixes in from 27.0.1
27.0.0
7 Sep 2025Switch to tinyglobby
re-export StandardizedFilePath from @ts-morph/common
TypeChecker- addgetAwaitedType
What's Changed
Switch to tinyglobby
re-export StandardizedFilePath from @ts-morph/common
TypeChecker- addgetAwaitedTypeTypeScript 5.9
Wrap OptionalTypeNode
Wrap
JSDocImportTagRemove invalid sourceMappingURL from build output
Ability to add and remove the defer keyword in imports
Dependency tracking · free for 3 projects
Know when your own dependencies move
ts-morph shipped a new major in the last 12 months, among 1 release. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 12 Nov 2026. Releases and advisories last read 12 Nov 2026.