From 65f20b5ff8c54a728d09302d6575c113eb25f0e6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:17:30 +0000 Subject: [PATCH] chore(deps): update dependency ts-morph to v23 ##### [`v23.0.0](https://github.com/dsherret/ts-morph/releases/tag/23.0.0) #### What's Changed - feat: ts 5.5 by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1545 - feat: Type.prototype.isBigInt and isBigIntLiteral by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1546 - fix: handle removeDefaultImport with type only import by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1547 Now available on JSR for use in Deno: https://jsr.io/[@ts-morph/ts-morph](https://github.com/ts-morph/ts-morph) **Full Changelog**: https://github.com/dsherret/ts-morph/compare/22.0.0...23.0.0 ##### [`v22.0.0](https://github.com/dsherret/ts-morph/releases/tag/22.0.0) #### What's Changed - feat(BREAKING): upgrade to TypeScript 5.4 by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1516 - fix(BREAKING): `Node.prototype.forgetDescendants()` no longer returns self by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1515 - feat: `Type.prototype.isAssignableTo` by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1517 - feat: `TypeChecker.prototype.resolveName` by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1518 - fix: MethodDeclarationStructure should write an asterisk isGenerator = true by [@ajvincent](https://github.com/ajvincent) in https://github.com/dsherret/ts-morph/pull/1502 - docs: fix typo in adding-source-files.md by [@ilirbeqirii](https://github.com/ilirbeqirii) in https://github.com/dsherret/ts-morph/pull/1490 - feat: ClassDeclarationStructure - support static blocks by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1520 ##### CodeBlockWriter 13.0.1 People may have been working around these bugs in the past: - `.quote()` - should include newline on newline (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) #### New Contributors - [@ilirbeqirii](https://github.com/ilirbeqirii) made their first contribution in https://github.com/dsherret/ts-morph/pull/1490 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/21.0.1...22.0.0 ##### [`v21.0.1](https://github.com/dsherret/ts-morph/releases/tag/21.0.1) I forgot to run a code generation script to update some code for the 21.0.0 release and only realized after. This release fixes that and also reduces the chance of that happening in the future. For 21.0.0 release notes, see https://github.com/dsherret/ts-morph/releases/tag/21.0.0 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/21.0.0...21.0.1 ##### [`v21.0.0](https://github.com/dsherret/ts-morph/releases/tag/21.0.0) #### What's Changed - feat: `ProjectOptions::defaultCompilerOptions` by [@wojpawlik](https://github.com/wojpawlik) in https://github.com/dsherret/ts-morph/pull/1460 - feat: TypeScript 5.3 https://github.com/dsherret/ts-morph/pull/1476 - feat: add interface and type literal getters & setters by [@ajvincent](https://github.com/ajvincent) in https://github.com/dsherret/ts-morph/pull/1473 - feat: add wrapped method for `getShorthandAssignmentValueSymbol` to `TypeChecker`. add convenience method for getting the value symbol on `ShorthandPropertyAssignment`. by [@kronodeus](https://github.com/kronodeus) in https://github.com/dsherret/ts-morph/pull/1456 - perf: use path.exists functions that don't throw internally when not exists https://github.com/dsherret/ts-morph/pull/1478 ##### Breaking Changes - Upgraded to TS 5.3 - Underlying `@ts-morph/common` file system methods return undefined instead of throwing when not exists (for perf). - Private fields are actually private (default build requires private fields). #### New Contributors - [@ajvincent](https://github.com/ajvincent) made their first contribution in https://github.com/dsherret/ts-morph/pull/1473 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/20.0.0...21.0.0 ##### [`v20.0.0](https://github.com/dsherret/ts-morph/releases/tag/20.0.0) #### What's Changed - feat: upgrade to TypeScript 5.2 by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1450 - fix: support dynamic type imports in getReferencedSourceFiles() by [@lo1tuma](https://github.com/lo1tuma) in https://github.com/dsherret/ts-morph/pull/1436 #### New Contributors - [@lo1tuma](https://github.com/lo1tuma) made their first contribution in https://github.com/dsherret/ts-morph/pull/1436 - [@kronodeus](https://github.com/kronodeus) made their first contribution in https://github.com/dsherret/ts-morph/pull/1455 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/19.0.0...20.0.0 ##### [`v19.0.0](https://github.com/dsherret/ts-morph/releases/tag/19.0.0) ##### What's Changed - docs: add deno installation method by [@scarf005](https://github.com/scarf005) in https://github.com/dsherret/ts-morph/pull/1411 - feat: improve typing of `Type` by [@odiak](https://github.com/odiak) in https://github.com/dsherret/ts-morph/pull/1408 - feat: add IsVoid method to `Type` by [@giuseppelt](https://github.com/giuseppelt) in https://github.com/dsherret/ts-morph/pull/1398 - feat: add JSDocable to ExportAssignment by [@giuseppelt](https://github.com/giuseppelt) in https://github.com/dsherret/ts-morph/pull/1397 - feat: upgrade to TS 5.1 by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1415 - fix: allow `.tranform` to work with Nodes from another parsed source file by [@ivanhofer](https://github.com/ivanhofer) in https://github.com/dsherret/ts-morph/pull/1417 ##### New Contributors - [@scarf005](https://github.com/scarf005) made their first contribution in https://github.com/dsherret/ts-morph/pull/1411 - [@odiak](https://github.com/odiak) made their first contribution in https://github.com/dsherret/ts-morph/pull/1408 - [@giuseppelt](https://github.com/giuseppelt) made their first contribution in https://github.com/dsherret/ts-morph/pull/1398 - [@ivanhofer](https://github.com/ivanhofer) made their first contribution in https://github.com/dsherret/ts-morph/pull/1417 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/18.0.0...19.0.0 ##### [`v18.0.0](https://github.com/dsherret/ts-morph/releases/tag/18.0.0) #### What's Changed - docs: update transforms example to use factory by [@tobyhede](https://github.com/tobyhede) in https://github.com/dsherret/ts-morph/pull/1386 - fix: allow setType on binding patterns by [@jquense](https://github.com/jquense) in https://github.com/dsherret/ts-morph/pull/1380 - feat: upgrade to TypeScript 5.0.2 by [@dsherret](https://github.com/dsherret) in https://github.com/dsherret/ts-morph/pull/1390 BREAKING CHANGE: Upgraded to TypeScript 5.0.2 #### New Contributors - [@tobyhede](https://github.com/tobyhede) made their first contribution in https://github.com/dsherret/ts-morph/pull/1386 - [@jquense](https://github.com/jquense) made their first contribution in https://github.com/dsherret/ts-morph/pull/1380 **Full Changelog**: https://github.com/dsherret/ts-morph/compare/17.0.1...18.0.0 ##### [`v17.0.1](https://github.com/dsherret/ts-morph/releases/tag/17.0.1) - fix: revert rollup from v3 to v2 to fix build (`esModuleInterop: true` had no effect) [#1358](https://github.com/dsherret/ts-morph/issues/1358) ##### [`v17.0.0](https://github.com/dsherret/ts-morph/releases/tag/17.0.0) ##### Bug Fixes - getOverloads for a class method should take into account if static ([#1337](https://github.com/dsherret/ts-morph/issues/1337)) ([f927d01](https://github.com/dsherret/ts-morph/commit/f927d01)), closes [#1298](https://github.com/dsherret/ts-morph/issues/1298) - ImportEqualsDeclaration should be exportable ([#1336](https://github.com/dsherret/ts-morph/issues/1336)) ([7680bae](https://github.com/dsherret/ts-morph/commit/7680bae)) - named import/export specifier structures were missing isTypeOnly ([#1347](https://github.com/dsherret/ts-morph/issues/1347)) ([6b88a0b](https://github.com/dsherret/ts-morph/commit/6b88a0b)) ##### Features - allow providing custom error messages to `OrThrow` methods ([#1327](https://github.com/dsherret/ts-morph/issues/1327)) ([05916d3](https://github.com/dsherret/ts-morph/commit/05916d3)) - Thanks [@jantimon](https://github.com/jantimon)! - upgrade to TS 4.9 ([#1354](https://github.com/dsherret/ts-morph/issues/1354)) ([e334437](https://github.com/dsherret/ts-morph/commit/e334437)) ##### BREAKING CHANGES - Upgraded to TS 4.9 --- package.json | 2 +- pnpm-lock.yaml | 83 ++++++++++++-------------------------------------- 2 files changed, 20 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index c16eaf9..28cd635 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "np": "^10.0.0", "pkg-pr-new": "0.0.20", "strip-ansi": "7.1.0", - "ts-morph": "16.0.0", + "ts-morph": "23.0.0", "typescript": "5.5.4", "vitest": "^2.0.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1858da3..3edd09c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: 7.1.0 version: 7.1.0 ts-morph: - specifier: 16.0.0 - version: 16.0.0 + specifier: 23.0.0 + version: 23.0.0 typescript: specifier: 5.5.4 version: 5.5.4 @@ -614,8 +614,8 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - '@ts-morph/common@0.17.0': - resolution: {integrity: sha512-RMSSvSfs9kb0VzkvQ2NWobwnj7TxCA9vI/IjR9bDHqgAyVbu2T0DN4wiKVqomyDWqO7dPr/tErSfq7urQ1Q37g==} + '@ts-morph/common@0.24.0': + resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} '@types/dedent@0.7.0': resolution: {integrity: sha512-EGlKlgMhnLt/cM4DbUSafFdrkeJoC9Mvnj0PUCU7tFmTjMjNRT957kXCx0wYm3JuEq4o4ZsS5vG+NlkM2DMd2A==} @@ -1092,10 +1092,6 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} - engines: {node: '>=8'} - braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -1225,8 +1221,8 @@ packages: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} - code-block-writer@11.0.3: - resolution: {integrity: sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw==} + code-block-writer@13.0.2: + resolution: {integrity: sha512-XfXzAGiStXSmCIwrkdfvc7FS5Dtj8yelCtyOf2p2skCAfvLd6zu0rGzuS9NSCO3bq1JKpFZ7tbKdKlcd5occQA==} code-point-at@1.1.0: resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==} @@ -1719,10 +1715,6 @@ packages: fast-diff@1.2.0: resolution: {integrity: sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==} - fast-glob@3.2.12: - resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} - engines: {node: '>=8.6.0'} - fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -1752,10 +1744,6 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} - fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} - engines: {node: '>=8'} - fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -2460,10 +2448,6 @@ packages: micromark@2.11.4: resolution: {integrity: sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==} - micromatch@4.0.5: - resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} - engines: {node: '>=8.6'} - micromatch@4.0.7: resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} engines: {node: '>=8.6'} @@ -2491,10 +2475,6 @@ packages: minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - minimatch@5.1.0: - resolution: {integrity: sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==} - engines: {node: '>=10'} - minimatch@9.0.3: resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} engines: {node: '>=16 || 14 >=14.17'} @@ -2510,8 +2490,8 @@ packages: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} - mkdirp@1.0.4: - resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} engines: {node: '>=10'} hasBin: true @@ -3231,8 +3211,8 @@ packages: peerDependencies: typescript: '>=4.2.0' - ts-morph@16.0.0: - resolution: {integrity: sha512-jGNF0GVpFj0orFw55LTsQxVYEUOCWBAbR5Ls7fTYE5pQsbW18ssTb/6UXx/GYAEjS+DQTp8VoTw0vqYMiaaQuw==} + ts-morph@23.0.0: + resolution: {integrity: sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==} tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} @@ -4086,11 +4066,11 @@ snapshots: '@sinclair/typebox@0.27.8': {} - '@ts-morph/common@0.17.0': + '@ts-morph/common@0.24.0': dependencies: - fast-glob: 3.2.12 - minimatch: 5.1.0 - mkdirp: 1.0.4 + fast-glob: 3.3.2 + minimatch: 9.0.5 + mkdirp: 3.0.1 path-browserify: 1.0.1 '@types/dedent@0.7.0': {} @@ -4703,10 +4683,6 @@ snapshots: dependencies: balanced-match: 1.0.2 - braces@3.0.2: - dependencies: - fill-range: 7.0.1 - braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -4825,7 +4801,7 @@ snapshots: clone@1.0.4: {} - code-block-writer@11.0.3: {} + code-block-writer@13.0.2: {} code-point-at@1.1.0: {} @@ -5515,14 +5491,6 @@ snapshots: fast-diff@1.2.0: {} - fast-glob@3.2.12: - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.5 - fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -5556,10 +5524,6 @@ snapshots: dependencies: flat-cache: 3.0.4 - fill-range@7.0.1: - dependencies: - to-regex-range: 5.0.1 - fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -6275,11 +6239,6 @@ snapshots: transitivePeerDependencies: - supports-color - micromatch@4.0.5: - dependencies: - braces: 3.0.2 - picomatch: 2.3.1 - micromatch@4.0.7: dependencies: braces: 3.0.3 @@ -6299,10 +6258,6 @@ snapshots: dependencies: brace-expansion: 1.1.11 - minimatch@5.1.0: - dependencies: - brace-expansion: 2.0.1 - minimatch@9.0.3: dependencies: brace-expansion: 2.0.1 @@ -6315,7 +6270,7 @@ snapshots: minipass@7.1.2: {} - mkdirp@1.0.4: {} + mkdirp@3.0.1: {} mlly@1.7.1: dependencies: @@ -7112,10 +7067,10 @@ snapshots: dependencies: typescript: 5.5.4 - ts-morph@16.0.0: + ts-morph@23.0.0: dependencies: - '@ts-morph/common': 0.17.0 - code-block-writer: 11.0.3 + '@ts-morph/common': 0.24.0 + code-block-writer: 13.0.2 tsconfig-paths@3.15.0: dependencies: