diff --git a/package-lock.json b/package-lock.json index 3afb07475..533189e08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3681,6 +3681,45 @@ "readable-stream": "3" } }, + "node_modules/tinyglobby": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.10.tgz", + "integrity": "sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==", + "license": "MIT", + "dependencies": { + "fdir": "^6.4.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", + "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -4033,10 +4072,10 @@ }, "packages/bootstrap": { "name": "@ts-morph/bootstrap", - "version": "0.25.0", + "version": "0.26.0", "license": "MIT", "dependencies": { - "@ts-morph/common": "~0.25.0" + "@ts-morph/common": "~0.26.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", @@ -4124,7 +4163,7 @@ }, "packages/common": { "name": "@ts-morph/common", - "version": "0.25.0", + "version": "0.26.0", "license": "MIT", "dependencies": { "fast-glob": "^3.3.2", @@ -4216,10 +4255,10 @@ } }, "packages/ts-morph": { - "version": "24.0.0", + "version": "25.0.0", "license": "MIT", "dependencies": { - "@ts-morph/common": "~0.25.0", + "@ts-morph/common": "~0.26.0", "code-block-writer": "^13.0.3" }, "devDependencies": { @@ -4701,7 +4740,7 @@ "version": "file:packages/bootstrap", "requires": { "@rollup/plugin-typescript": "^11.1.6", - "@ts-morph/common": "~0.25.0", + "@ts-morph/common": "~0.26.0", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.7", "@types/node": "^20.14.8", @@ -6916,6 +6955,28 @@ "readable-stream": "3" } }, + "tinyglobby": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.10.tgz", + "integrity": "sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==", + "requires": { + "fdir": "^6.4.2", + "picomatch": "^4.0.2" + }, + "dependencies": { + "fdir": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", + "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", + "requires": {} + }, + "picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==" + } + } + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -6934,7 +6995,7 @@ "version": "file:packages/ts-morph", "requires": { "@rollup/plugin-typescript": "^11.1.6", - "@ts-morph/common": "~0.25.0", + "@ts-morph/common": "~0.26.0", "@types/chai": "^4.3.16", "@types/diff": "^5.2.1", "@types/mocha": "^10.0.7", @@ -6952,6 +7013,15 @@ "typescript": "~5.7.2" }, "dependencies": { + "@ts-morph/common": { + "version": "https://registry.npmjs.org/@ts-morph/common/-/common-0.25.0.tgz", + "integrity": "sha512-kMnZz+vGGHi4GoHnLmMhGNjm44kGtKUXGnOvrKmMwAuvNjM/PgKVGfUnL7IDvK7Jb2QQ82jq3Zmp04Gy+r3Dkg==", + "requires": { + "minimatch": "^9.0.4", + "path-browserify": "^1.0.1", + "tinyglobby": "^0.2.9" + } + }, "assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", diff --git a/packages/bootstrap/package.json b/packages/bootstrap/package.json index 3504cf536..4143eb3a7 100644 --- a/packages/bootstrap/package.json +++ b/packages/bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@ts-morph/bootstrap", - "version": "0.25.0", + "version": "0.26.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.25.0" + "@ts-morph/common": "~0.26.0" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.6", diff --git a/packages/common/package.json b/packages/common/package.json index 22989296a..df17fa096 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@ts-morph/common", - "version": "0.25.0", + "version": "0.26.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 79fc3b9fa..132b6dc79 100644 --- a/packages/ts-morph/CHANGELOG.md +++ b/packages/ts-morph/CHANGELOG.md @@ -2,6 +2,25 @@ 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. +## [25.0.0](https://github.com/dsherret/ts-morph/compare/24.0.0...25.0.0) (2024-12-30) + +### BREAKING CHANGES + +* Upgraded to TypeScript 5.7 +* removing last named import/export should not remove or change declaration ([#1599](https://github.com/dsherret/ts-morph/issues/1599)) ([3d41ded](https://github.com/dsherret/ts-morph/commit/3d41ded41f8b3bcf7e0277bd8554eeb9c07559e5)) + +### Features + +* TypeScript 5.7.2 ([#1594](https://github.com/dsherret/ts-morph/issues/1594)) ([e4fffa4](https://github.com/dsherret/ts-morph/commit/e4fffa4951e50a324316735b0c2d41780d81345a)) + + +### Bug Fixes + +* properly insert async keyword in arrow function ([#1597](https://github.com/dsherret/ts-morph/issues/1597)) ([84613e5](https://github.com/dsherret/ts-morph/commit/84613e5146ca19c495153b9921dff65f5441865f)) +* removing last named import/export should not remove or change declaration ([#1599](https://github.com/dsherret/ts-morph/issues/1599)) ([3d41ded](https://github.com/dsherret/ts-morph/commit/3d41ded41f8b3bcf7e0277bd8554eeb9c07559e5)) +* switch back to fast-glob for stability ([#1595](https://github.com/dsherret/ts-morph/issues/1595)) ([04a1679](https://github.com/dsherret/ts-morph/commit/04a1679a13350cea26d4ef161ad682c74bd63d3f)) +* throw descriptive error when inserting variable statement with no declarations ([#1598](https://github.com/dsherret/ts-morph/issues/1598)) ([f4ed887](https://github.com/dsherret/ts-morph/commit/f4ed8878a2052e4e959205ed3e56c573133ca25c)) + ## [24.0.0](https://github.com/dsherret/ts-morph/compare/23.0.0...24.0.0) (2024-10-05) ### BREAKING CHANGES diff --git a/packages/ts-morph/package.json b/packages/ts-morph/package.json index ff8341963..c07631a66 100644 --- a/packages/ts-morph/package.json +++ b/packages/ts-morph/package.json @@ -1,6 +1,6 @@ { "name": "ts-morph", - "version": "24.0.0", + "version": "25.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.25.0", + "@ts-morph/common": "~0.26.0", "code-block-writer": "^13.0.3" }, "devDependencies": {