From 886ad69eca9566c38a23a7dbf6047e89ea8b0d3b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 10 Mar 2024 13:22:27 -0400 Subject: [PATCH] 22.0.0 (#1521) --- package-lock.json | 14 +++++++------- packages/bootstrap/package.json | 4 ++-- packages/common/package.json | 2 +- packages/ts-morph/CHANGELOG.md | 26 +++++++++++++++++++++++++- packages/ts-morph/breaking-changes.md | 7 +++++++ packages/ts-morph/package.json | 4 ++-- 6 files changed, 44 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 37aa8299..353350ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2235,10 +2235,10 @@ }, "packages/bootstrap": { "name": "@ts-morph/bootstrap", - "version": "0.22.0", + "version": "0.23.0", "license": "MIT", "dependencies": { - "@ts-morph/common": "~0.22.0" + "@ts-morph/common": "~0.23.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", @@ -2339,7 +2339,7 @@ }, "packages/common": { "name": "@ts-morph/common", - "version": "0.22.0", + "version": "0.23.0", "license": "MIT", "dependencies": { "fast-glob": "^3.3.2", @@ -2445,10 +2445,10 @@ } }, "packages/ts-morph": { - "version": "21.0.1", + "version": "22.0.0", "license": "MIT", "dependencies": { - "@ts-morph/common": "~0.22.0", + "@ts-morph/common": "~0.23.0", "code-block-writer": "^13.0.1" }, "devDependencies": { @@ -2816,7 +2816,7 @@ "version": "file:packages/bootstrap", "requires": { "@rollup/plugin-typescript": "^11.1.6", - "@ts-morph/common": "~0.22.0", + "@ts-morph/common": "~0.23.0", "@types/chai": "^4.3.12", "@types/mocha": "^10.0.6", "@types/node": "^20.11.25", @@ -3908,7 +3908,7 @@ "version": "file:packages/ts-morph", "requires": { "@rollup/plugin-typescript": "^11.1.6", - "@ts-morph/common": "~0.22.0", + "@ts-morph/common": "~0.23.0", "@types/chai": "^4.3.12", "@types/diff": "^5.0.9", "@types/mocha": "^10.0.6", diff --git a/packages/bootstrap/package.json b/packages/bootstrap/package.json index ae09e757..d2778d5c 100644 --- a/packages/bootstrap/package.json +++ b/packages/bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@ts-morph/bootstrap", - "version": "0.22.0", + "version": "0.23.0", "description": "API for getting quickly set up with the TypeScript Compiler API.", "keywords": [ "typescript", @@ -24,7 +24,7 @@ "rollup": "rollup -c" }, "dependencies": { - "@ts-morph/common": "~0.22.0" + "@ts-morph/common": "~0.23.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", diff --git a/packages/common/package.json b/packages/common/package.json index 846feb4e..8f3d715b 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@ts-morph/common", - "version": "0.22.0", + "version": "0.23.0", "description": "Common functionality for ts-morph packages.", "main": "dist/ts-morph-common.js", "author": "David Sherret", diff --git a/packages/ts-morph/CHANGELOG.md b/packages/ts-morph/CHANGELOG.md index 464100d9..a03785fc 100644 --- a/packages/ts-morph/CHANGELOG.md +++ b/packages/ts-morph/CHANGELOG.md @@ -1,7 +1,31 @@ -# Change Log +# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [22.0.0](https://github.com/dsherret/ts-morph/compare/21.0.1...22.0.0) (2024-03-10) + + +### Features + +* `Type.prototype.isAssignableTo` ([#1517](https://github.com/dsherret/ts-morph/issues/1517)) ([e8b5727](https://github.com/dsherret/ts-morph/commit/e8b5727d7d65827cdc130afebc35f1003a30dc44)) +* `TypeChecker.prototype.resolveName` ([#1518](https://github.com/dsherret/ts-morph/issues/1518)) ([ca77636](https://github.com/dsherret/ts-morph/commit/ca77636e4717fa4cd9407922e881b3e3a7463161)) +* **BREAKING:** upgrade to TypeScript 5.4 ([#1516](https://github.com/dsherret/ts-morph/issues/1516)) ([e7799eb](https://github.com/dsherret/ts-morph/commit/e7799eb5e5be801acb13eb61cdabb5e65851063a)) +* ClassDeclarationStructure - support static blocks ([#1520](https://github.com/dsherret/ts-morph/issues/1520)) ([d24e2a7](https://github.com/dsherret/ts-morph/commit/d24e2a7a529da8c73974c12e338169c398bc3a04)) + + +### Bug Fixes + +* **BREAKING:** `Node.prototype.forgetDescendants()` no longer returns self ([#1515](https://github.com/dsherret/ts-morph/issues/1515)) ([92962aa](https://github.com/dsherret/ts-morph/commit/92962aacc92fb9e5b1b18747b3ac1e1c69a42047)) +* MethodDeclarationStructure should write an asterisk isGenerator = true ([#1502](https://github.com/dsherret/ts-morph/issues/1502)) ([871cb46](https://github.com/dsherret/ts-morph/commit/871cb461051859d4594451291f2948a2ab8afba0)) + +### CodeBlockWriter 13.0.1 + +People may have been working around these bugs in the past: + +- `.quote()` - should include newline in literal (https://github.com/dsherret/code-block-writer/pull/47) +- `.quote()` - escape characters were not always being escaped (https://github.com/dsherret/code-block-writer/pull/46) + # [21.0.0](https://github.com/dsherret/ts-morph/compare/20.0.0...21.0.0) (2023-12-02) diff --git a/packages/ts-morph/breaking-changes.md b/packages/ts-morph/breaking-changes.md index c5564de8..b81012a9 100644 --- a/packages/ts-morph/breaking-changes.md +++ b/packages/ts-morph/breaking-changes.md @@ -2,6 +2,13 @@ View [CHANGELOG.md](CHANGELOG.md) for more detail on releases. This file is only a high level overview of breaking changes. +## Version 22 + +- Upgraded to TS 5.4 +- code-block-writer fixes that you should be aware of (as some people might have been working around the bugs); + - `.quote()` - should include newline in literal (https://github.com/dsherret/code-block-writer/pull/47) + - `.quote()` - escape characters were not always being escaped (https://github.com/dsherret/code-block-writer/pull/46) + ## Version 21 - Upgraded to TS 5.3 diff --git a/packages/ts-morph/package.json b/packages/ts-morph/package.json index b078f1e4..ead8848c 100644 --- a/packages/ts-morph/package.json +++ b/packages/ts-morph/package.json @@ -1,6 +1,6 @@ { "name": "ts-morph", - "version": "21.0.1", + "version": "22.0.0", "description": "TypeScript compiler wrapper for static analysis and code manipulation.", "main": "dist/ts-morph.js", "typings": "lib/ts-morph.d.ts", @@ -44,7 +44,7 @@ }, "homepage": "https://github.com/dsherret/ts-morph#readme", "dependencies": { - "@ts-morph/common": "~0.22.0", + "@ts-morph/common": "~0.23.0", "code-block-writer": "^13.0.1" }, "devDependencies": {