From 25c07d77d2f73c1cbc2c2147a9a14ff2ae8bdaf7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 03:20:14 -0500 Subject: [PATCH] =?UTF-8?q?renovate:=20update=20ts-morph,=20@types/node=20?= =?UTF-8?q?and=20eslint-plugin-mmkal=20=F0=9F=8C=B2=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR was automatically created by the deps-sync workflow. Review the dependency updates made by @renovate-bot, and merge as needed. ### Updates included: - 8c6a2e7 chore(deps): update dependency ts-morph to v23 (#90) - fb6c50f chore(deps): update dependency @types/node to v20.16.1 - 85ee250 chore(deps): update dependency @types/node to v20.16.0 - c90712a chore(deps): update dependency @types/node to v20.15.0 - 4a31333 chore(deps): update dependency eslint-plugin-mmkal to v0.8.0 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: mmkal Co-authored-by: aryaemami59 --- package.json | 4 +- pnpm-lock.yaml | 192 +++++++------------------ test/__snapshots__/errors.test.ts.snap | 18 +-- test/errors.test.ts | 7 +- 4 files changed, 62 insertions(+), 159 deletions(-) diff --git a/package.json b/package.json index 3890d4d..1042873 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,11 @@ "@arethetypeswrong/cli": "0.15.4", "@types/node": "^20.0.0", "eslint": "^8.57.0", - "eslint-plugin-mmkal": "0.7.0", + "eslint-plugin-mmkal": "0.8.0", "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 c6eceb4..fa2b065 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,13 +13,13 @@ importers: version: 0.15.4 '@types/node': specifier: ^20.0.0 - version: 20.14.15 + version: 20.16.1 eslint: specifier: ^8.57.0 version: 8.57.0 eslint-plugin-mmkal: - specifier: 0.7.0 - version: 0.7.0(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.14.15)) + specifier: 0.8.0 + version: 0.8.0(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.1)) np: specifier: ^10.0.0 version: 10.0.7(typescript@5.5.4) @@ -30,14 +30,14 @@ 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 vitest: specifier: ^2.0.0 - version: 2.0.5(@types/node@20.14.15) + version: 2.0.5(@types/node@20.16.1) packages: @@ -45,10 +45,6 @@ packages: resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} - '@ampproject/remapping@2.2.0': - resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==} - engines: {node: '>=6.0.0'} - '@ampproject/remapping@2.3.0': resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} @@ -352,14 +348,6 @@ packages: resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - '@jridgewell/gen-mapping@0.1.1': - resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==} - engines: {node: '>=6.0.0'} - - '@jridgewell/gen-mapping@0.3.2': - resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==} - engines: {node: '>=6.0.0'} - '@jridgewell/gen-mapping@0.3.5': resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} @@ -368,23 +356,13 @@ packages: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.1.2': - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} - engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.2.1': resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.4.14': - resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} - '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - '@jridgewell/trace-mapping@0.3.17': - resolution: {integrity: sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==} - '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} @@ -637,8 +615,8 @@ packages: resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} - '@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==} @@ -679,8 +657,8 @@ packages: '@types/minimatch@5.1.2': resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} - '@types/node@20.14.15': - resolution: {integrity: sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==} + '@types/node@20.16.1': + resolution: {integrity: sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -1122,10 +1100,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'} @@ -1271,8 +1245,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==} @@ -1634,8 +1608,8 @@ packages: peerDependencies: eslint: '>=8' - eslint-plugin-mmkal@0.7.0: - resolution: {integrity: sha512-1AO+XgJU0Lzwyklx8fnWt3Tb49404lEC/z9kODnwp7PewaWaCtjqQsnuxB7AxrDBelwLd3A/hKcFtub2syHHtg==} + eslint-plugin-mmkal@0.8.0: + resolution: {integrity: sha512-VpO+cAdOhn0pE/qIBkYFfdQ+8Q4YlDmbJWbt1EskTHsmEwDiwZYX3BBNyr0c5UApyzgz/mAxdWltBlsWVw5iAQ==} engines: {node: '>=18'} eslint-plugin-prettier@5.1.3: @@ -1776,10 +1750,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'} @@ -1812,10 +1782,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'} @@ -2538,10 +2504,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'} @@ -2569,10 +2531,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'} @@ -2588,8 +2546,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 @@ -3347,8 +3305,8 @@ packages: ts-expose-internals-conditionally@1.0.0-empty.0: resolution: {integrity: sha512-F8m9NOF6ZhdOClDVdlM8gj3fDCav4ZIFSs/EI3ksQbAAXVSCN/Jh5OCJDDZWBuBy9psFc6jULGDlPwjMYMhJDw==} - 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==} @@ -3447,8 +3405,8 @@ packages: unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.19.6: + resolution: {integrity: sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==} undici@6.19.5: resolution: {integrity: sha512-LryC15SWzqQsREHIOUybavaIHF5IoL0dJ9aWWxL/PgT1KfqAW5225FZpDUFlt9xiDMS2/S7DOKhFWA7RLksWdg==} @@ -3646,11 +3604,6 @@ snapshots: '@aashutoshrathi/word-wrap@1.2.6': {} - '@ampproject/remapping@2.2.0': - dependencies: - '@jridgewell/gen-mapping': 0.1.1 - '@jridgewell/trace-mapping': 0.3.17 - '@ampproject/remapping@2.3.0': dependencies: '@jridgewell/gen-mapping': 0.3.5 @@ -3686,7 +3639,7 @@ snapshots: '@babel/core@7.19.6': dependencies: - '@ampproject/remapping': 2.2.0 + '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.24.7 '@babel/generator': 7.19.6 '@babel/helper-compilation-targets': 7.19.3(@babel/core@7.19.6) @@ -3713,7 +3666,7 @@ snapshots: '@babel/generator@7.19.6': dependencies: '@babel/types': 7.24.0 - '@jridgewell/gen-mapping': 0.3.2 + '@jridgewell/gen-mapping': 0.3.5 jsesc: 2.5.2 '@babel/helper-compilation-targets@7.19.3(@babel/core@7.19.6)': @@ -3947,21 +3900,10 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.14.15 + '@types/node': 20.16.1 '@types/yargs': 17.0.13 chalk: 4.1.2 - '@jridgewell/gen-mapping@0.1.1': - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - - '@jridgewell/gen-mapping@0.3.2': - dependencies: - '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.17 - '@jridgewell/gen-mapping@0.3.5': dependencies: '@jridgewell/set-array': 1.2.1 @@ -3970,19 +3912,10 @@ snapshots: '@jridgewell/resolve-uri@3.1.0': {} - '@jridgewell/set-array@1.1.2': {} - '@jridgewell/set-array@1.2.1': {} - '@jridgewell/sourcemap-codec@1.4.14': {} - '@jridgewell/sourcemap-codec@1.4.15': {} - '@jridgewell/trace-mapping@0.3.17': - dependencies: - '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.0 @@ -4249,11 +4182,11 @@ snapshots: '@sindresorhus/is@4.6.0': {} - '@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': {} @@ -4268,7 +4201,7 @@ snapshots: '@types/glob@7.1.3': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.14.15 + '@types/node': 20.16.1 '@types/istanbul-lib-coverage@2.0.4': {} @@ -4294,9 +4227,9 @@ snapshots: '@types/minimatch@5.1.2': {} - '@types/node@20.14.15': + '@types/node@20.16.1': dependencies: - undici-types: 5.26.5 + undici-types: 6.19.6 '@types/normalize-package-data@2.4.4': {} @@ -4872,10 +4805,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 @@ -5017,7 +4946,7 @@ snapshots: clone@1.0.4: {} - code-block-writer@11.0.3: {} + code-block-writer@13.0.2: {} code-point-at@1.1.0: {} @@ -5356,7 +5285,7 @@ snapshots: '@types/glob': 7.1.3 '@types/js-yaml': 3.12.5 '@types/lodash': 4.17.0 - '@types/node': 20.14.15 + '@types/node': 20.16.1 dedent: 1.5.1 eslint-plugin-markdown: 4.0.1(eslint@8.57.0) expect: 29.7.0 @@ -5450,7 +5379,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-mmkal@0.7.0(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.14.15)): + eslint-plugin-mmkal@0.8.0(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.1)): dependencies: '@eslint/js': 8.57.0 '@next/eslint-plugin-next': 14.2.3 @@ -5476,7 +5405,7 @@ snapshots: eslint-plugin-react: 7.34.0(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.57.0) eslint-plugin-unicorn: 49.0.0(eslint@8.57.0) - eslint-plugin-vitest: 0.3.26(@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.14.15)) + eslint-plugin-vitest: 0.3.26(@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.1)) eslint-plugin-wrapper: 0.1.0-1 globals: 14.0.0 lodash: 4.17.21 @@ -5575,13 +5504,13 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-vitest@0.3.26(@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.14.15)): + eslint-plugin-vitest@0.3.26(@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.0.5(@types/node@20.16.1)): dependencies: '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.5.4) eslint: 8.57.0 optionalDependencies: '@typescript-eslint/eslint-plugin': 7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) - vitest: 2.0.5(@types/node@20.14.15) + vitest: 2.0.5(@types/node@20.16.1) transitivePeerDependencies: - supports-color - typescript @@ -5713,14 +5642,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 @@ -5756,10 +5677,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 @@ -6300,7 +6217,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.15 + '@types/node': 20.16.1 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -6491,11 +6408,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 @@ -6515,10 +6427,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 @@ -6531,7 +6439,7 @@ snapshots: minipass@7.1.2: {} - mkdirp@1.0.4: {} + mkdirp@3.0.1: {} mlly@1.7.1: dependencies: @@ -7370,10 +7278,10 @@ snapshots: ts-expose-internals-conditionally@1.0.0-empty.0: {} - 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: @@ -7468,7 +7376,7 @@ snapshots: has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 - undici-types@5.26.5: {} + undici-types@6.19.6: {} undici@6.19.5: {} @@ -7518,13 +7426,13 @@ snapshots: validate-npm-package-name@5.0.1: {} - vite-node@2.0.5(@types/node@20.14.15): + vite-node@2.0.5(@types/node@20.16.1): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 tinyrainbow: 1.2.0 - vite: 5.2.13(@types/node@20.14.15) + vite: 5.2.13(@types/node@20.16.1) transitivePeerDependencies: - '@types/node' - less @@ -7535,16 +7443,16 @@ snapshots: - supports-color - terser - vite@5.2.13(@types/node@20.14.15): + vite@5.2.13(@types/node@20.16.1): dependencies: esbuild: 0.20.2 postcss: 8.4.38 rollup: 4.18.0 optionalDependencies: - '@types/node': 20.14.15 + '@types/node': 20.16.1 fsevents: 2.3.3 - vitest@2.0.5(@types/node@20.14.15): + vitest@2.0.5(@types/node@20.16.1): dependencies: '@ampproject/remapping': 2.3.0 '@vitest/expect': 2.0.5 @@ -7562,11 +7470,11 @@ snapshots: tinybench: 2.8.0 tinypool: 1.0.0 tinyrainbow: 1.2.0 - vite: 5.2.13(@types/node@20.14.15) - vite-node: 2.0.5(@types/node@20.14.15) + vite: 5.2.13(@types/node@20.16.1) + vite-node: 2.0.5(@types/node@20.16.1) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 20.14.15 + '@types/node': 20.16.1 transitivePeerDependencies: - less - lightningcss diff --git a/test/__snapshots__/errors.test.ts.snap b/test/__snapshots__/errors.test.ts.snap index 8fbf7ee..4a4a494 100644 --- a/test/__snapshots__/errors.test.ts.snap +++ b/test/__snapshots__/errors.test.ts.snap @@ -179,7 +179,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '{ a: number; }' does not satisf test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf<{a?: number}>().toEqualTypeOf<{a: number | undefined}>() - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -201,7 +201,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '{ a: {}; }' does not satisfy th test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf().toEqualTypeOf() - ~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -210,7 +210,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf().toEqualTypeOf() - ~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -219,7 +219,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf().toEqualTypeOf() - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -228,7 +228,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf<{a: 1} & {b: 2}>().toEqualTypeOf<{a: 1; b: 2}>() - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -237,7 +237,7 @@ test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf<{a: {b: 1} & {c: 1}}>().toEqualTypeOf<{a: {b: 1; c: 1}}>() - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> @@ -254,11 +254,7 @@ test/usage.test.ts:999:999 - error TS2344: Type '() => () => () => () => 2' does test/usage.test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf<() => () => () => () => {a: 1} & {b: 2}>().toEqualTypeOf< - ~~~~~~~~~~~~~~ -999 () => () => () => () => {a: 1; b: 2} - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -999 >() - ~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true> diff --git a/test/errors.test.ts b/test/errors.test.ts index b18ee30..f7edda6 100644 --- a/test/errors.test.ts +++ b/test/errors.test.ts @@ -15,11 +15,10 @@ test('toEqualTypeOf<...>() error message', async () => { test('toEqualTypeOf(...) error message', async () => { expect(tsErrors(`expectTypeOf({a: 1}).toEqualTypeOf({a: 'one'})`)).toMatchInlineSnapshot(` - "test/test.ts:999:999 - error TS2345: Argument of type '{ a: string; }' is not assignable to parameter of type 'Mismatch'. - Object literal may only specify known properties, and 'a' does not exist in type 'Mismatch'. + "test/test.ts:999:999 - error TS2353: Object literal may only specify known properties, and 'a' does not exist in type 'Mismatch'. 999 expectTypeOf({a: 1}).toEqualTypeOf({a: 'one'}) - ~~~~~~~~" + ~" `) }) @@ -61,7 +60,7 @@ test('toEqualTypeOf special types', async () => { test/test.ts:999:999 - error TS2554: Expected 1 arguments, but got 0. 999 expectTypeOf<{a: 1}>().toEqualTypeOf<{a: never}>() - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ src/index.ts:999:999 999 ...MISMATCH: MismatchArgs, true>