From 22b35fb899d79f9d6e8a55679ce3739a71c42f1a Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Sat, 20 Apr 2024 22:42:05 +0800 Subject: [PATCH] chore: update deps --- .editorconfig | 8 - .vscode/extensions.json | 2 +- .vscode/settings.json | 26 +- README.md | 18 +- package.json | 176 ++++++------- pnpm-lock.yaml | 544 +++++++++++++++++++++++----------------- src/index.js | 474 +++++++++++++++++----------------- src/index.test.js | 2 +- tsconfig.json | 40 +-- 9 files changed, 678 insertions(+), 612 deletions(-) delete mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 2d23506..0000000 --- a/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -# EditorConfig is awesome: https://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -indent_style = tab -insert_final_newline = true \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json index e6cd984..1d7ac85 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,3 @@ { - "recommendations": ["dbaeumer.vscode-eslint"] + "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index d90f323..3fb68b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,16 +1,16 @@ { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" - }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, - "eslint.experimental.useFlatConfig": true, - "eslint.probe": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "json" - ] + "eslint.experimental.useFlatConfig": true, + "eslint.probe": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "json" + ] } diff --git a/README.md b/README.md index bada07e..2591c21 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,12 @@ The Recommended `.release-it.json` configuration ```json { - "plugins": { - "release-it-pnpm": {} - }, - "git": { - "commitMessage": "chore: release ${version}" - } + "plugins": { + "release-it-pnpm": {} + }, + "git": { + "commitMessage": "chore: release ${version}" + } } ``` @@ -54,9 +54,9 @@ By default, release-it will not add a `v` prefix for the tag name, useless there ```json { - "git": { - "tagName": "v${version}" - } + "git": { + "tagName": "v${version}" + } } ``` diff --git a/package.json b/package.json index 405ff91..d896851 100644 --- a/package.json +++ b/package.json @@ -1,90 +1,90 @@ { - "name": "release-it-pnpm", - "type": "module", - "version": "4.3.7", - "packageManager": "pnpm@9.0.0+sha256.bdfc9a7b372b5c462176993e586492603e20da5864d2f8881edc2462482c76fa", - "description": "Run release-it with pnpm", - "author": "Stephen Zhou ", - "license": "MIT", - "homepage": "https://github.com/hyoban/release-it-pnpm#readme", - "repository": { - "type": "git", - "url": "git+https://github.com/hyoban/release-it-pnpm.git" - }, - "bugs": "https://github.com/hyoban/release-it-pnpm/issues", - "keywords": [ - "release", - "release-it", - "release-it-plugin" - ], - "sideEffects": false, - "exports": { - ".": { - "import": { - "default": "./dist/index.js" - }, - "require": { - "default": "./dist/index.cjs" - } - }, - "./package.json": "./package.json" - }, - "main": "./dist/index.cjs", - "module": "./dist/index.js", - "bin": { - "release-it-pnpm": "dist/bin/index.js" - }, - "files": [ - "dist", - "package.json" - ], - "scripts": { - "build": "bunchee", - "dev": "bunchee -w", - "lint": "prettier --list-different . && eslint", - "lint:fix": "prettier --list-different --write . && eslint --fix", - "prepublishOnly": "pnpm run build", - "test": "vitest", - "typecheck": "tsc" - }, - "release-it": { - "plugins": { - "./src/index.js": {} - }, - "git": { - "commitMessage": "chore: release ${version}", - "tagName": "${version}" - }, - "hooks": { - "before:init": [ - "pnpm run lint", - "pnpm run typecheck", - "pnpm run test --run" - ] - } - }, - "peerDependencies": { - "release-it": "^17.0.0" - }, - "dependencies": { - "bumpp": "npm:@hyoban/bumpp@9.4.0-1", - "changelogithub": "^0.13.7", - "conventional-changelog": "^5.1.0", - "conventional-recommended-bump": "^9.0.0", - "kolorist": "^1.8.0", - "semver": "^7.6.0" - }, - "devDependencies": { - "@types/node": "20.11.30", - "@types/semver": "^7.5.8", - "bunchee": "^5.1.2", - "eslint": "^9.0.0", - "eslint-config-hyoban": "^1.0.1", - "prettier": "^3.2.5", - "prettier-config-hyoban": "^1.0.3", - "release-it": "^17.2.0", - "typescript": "^5.4.5", - "vitest": "^1.5.0" - }, - "prettier": "prettier-config-hyoban" + "name": "release-it-pnpm", + "type": "module", + "version": "4.3.7", + "packageManager": "pnpm@9.0.4", + "description": "Run release-it with pnpm", + "author": "Stephen Zhou ", + "license": "MIT", + "homepage": "https://github.com/hyoban/release-it-pnpm#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/hyoban/release-it-pnpm.git" + }, + "bugs": "https://github.com/hyoban/release-it-pnpm/issues", + "keywords": [ + "release", + "release-it", + "release-it-plugin" + ], + "sideEffects": false, + "exports": { + ".": { + "import": { + "default": "./dist/index.js" + }, + "require": { + "default": "./dist/index.cjs" + } + }, + "./package.json": "./package.json" + }, + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "bin": { + "release-it-pnpm": "dist/bin/index.js" + }, + "files": [ + "dist", + "package.json" + ], + "scripts": { + "build": "bunchee", + "dev": "bunchee -w", + "lint": "prettier --list-different . && eslint", + "lint:fix": "prettier --list-different --write . && eslint --fix", + "prepublishOnly": "pnpm run build", + "test": "vitest", + "typecheck": "tsc" + }, + "release-it": { + "plugins": { + "./src/index.js": {} + }, + "git": { + "commitMessage": "chore: release ${version}", + "tagName": "${version}" + }, + "hooks": { + "before:init": [ + "pnpm run lint", + "pnpm run typecheck", + "pnpm run test --run" + ] + } + }, + "peerDependencies": { + "release-it": "^17.0.0" + }, + "dependencies": { + "bumpp": "npm:@hyoban/bumpp@9.4.0-1", + "changelogithub": "^0.13.7", + "conventional-changelog": "^5.1.0", + "conventional-recommended-bump": "^9.0.0", + "kolorist": "^1.8.0", + "semver": "^7.6.0" + }, + "devDependencies": { + "@types/node": "20.11.30", + "@types/semver": "^7.5.8", + "bunchee": "^5.1.2", + "eslint": "^9.1.0", + "eslint-config-hyoban": "^1.0.3", + "prettier": "^3.2.5", + "prettier-config-hyoban": "^2.0.2", + "release-it": "^17.2.0", + "typescript": "^5.4.5", + "vitest": "^1.5.0" + }, + "prettier": "prettier-config-hyoban" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 415400d..da082f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,17 +37,17 @@ importers: specifier: ^5.1.2 version: 5.1.2(typescript@5.4.5) eslint: - specifier: ^9.0.0 - version: 9.0.0 + specifier: ^9.1.0 + version: 9.1.0 eslint-config-hyoban: - specifier: ^1.0.1 - version: 1.0.1(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) + specifier: ^1.0.3 + version: 1.0.3(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) prettier: specifier: ^3.2.5 version: 3.2.5 prettier-config-hyoban: - specifier: ^1.0.3 - version: 1.0.3 + specifier: ^2.0.2 + version: 2.0.2 release-it: specifier: ^17.2.0 version: 17.2.0(typescript@5.4.5) @@ -227,34 +227,34 @@ packages: resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint-react/ast@1.5.8': - resolution: {integrity: sha512-bfhjJYByn/oql2H3xqlUwqsCrCsu7ItYTuSl7vU2VWuUaGTNm2DVLljje5prUq7z26mQ/96YzW16OFoSmGovjw==} + '@eslint-react/ast@1.5.9': + resolution: {integrity: sha512-tm8nGfPyBa7uA7i1Q1GS4ORvI40HQHCtF/fY/e1FBVzObfIlOlWaG0lIbmB6rnxBoLM6EiKBB8BrgP3XoyPvNQ==} - '@eslint-react/core@1.5.8': - resolution: {integrity: sha512-iJoWoD5+dPS0sZvyVhkeQi2K5tI/fviRavsXFAR4GDhiviI8tZvKQg8mj/OlHDPUlvA+Bz8P0d0dxEXM3nyolQ==} + '@eslint-react/core@1.5.9': + resolution: {integrity: sha512-JxsQ3Su1o/tUdKQLgz4fJqe0RETwuIONbs6+er6ow1QFF4zi6CTtl5MpSIJaht56UTNOQKjTG820zei/TDvTtg==} - '@eslint-react/eslint-plugin@1.5.8': - resolution: {integrity: sha512-SQgGcd5DKK0zjOn6O1QztTolzRzw+VHP9qMWwlRkonoxau4T9U5RwsbBzl2Aojk9v3CtPOHtr1AQ8ZOUEi6d4A==} + '@eslint-react/eslint-plugin@1.5.9': + resolution: {integrity: sha512-3f0iNa9Y9YmZDTyYj+LT/h6nW3wV971ls+4Be9twujtJwIYr9qNzmA8k8JTQkakfaK/SU1tNp6UVe37vzMQbaQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: '@typescript-eslint/parser': '>=7.5.0' eslint: '>=9.0.0' typescript: '>=5.3.3' - '@eslint-react/jsx@1.5.8': - resolution: {integrity: sha512-zQd239hspAJ9I9ejxKh7MuSW27HNVsXWiRHzit3azXRX95jwGZeeMRQeh9tS9290ANr8n2vBbSTePbl1FkuPKg==} + '@eslint-react/jsx@1.5.9': + resolution: {integrity: sha512-L5z7lO9G3JVhQ7hU/L9YKjfKg3YXnqDTHe1EYuY/Znn1mZTP3Ol1WleXjrTtuUVI5hWV6c4PFwOPHnaEUIqVaA==} - '@eslint-react/shared@1.5.8': - resolution: {integrity: sha512-XE6tp39NACI9pFD1x5LRXE2NfcQoRDVsOEqzYfS1XQczTHann2ySzrPgTPJE4KlKT156uRxg8DqPkcpsioQIEw==} + '@eslint-react/shared@1.5.9': + resolution: {integrity: sha512-NkAIU36MP9I2pPfi4IBeJ7EZoqxXI9d/CIIzs7fqkO6VZ7qYMwdBLRsG1wc13FhNemIZ3SnBmUX4kzlKafo3qA==} - '@eslint-react/tools@1.5.8': - resolution: {integrity: sha512-Ye4HqrB6l8JomMRE7A8DUZsNNK5P28dDBXE69kR9UjWQqXU1xA2E5Pw7g9dn7CSNkPSi6IIm/1cFAPzPgMUqrQ==} + '@eslint-react/tools@1.5.9': + resolution: {integrity: sha512-DyRj67pDoHFebvuDjfoeXbwvrWqOb+/7VXbc1/E8MjhYVHxtvFOKiKbGFwOxidR8Moic4EzlGcaTaSBhgb9dZg==} - '@eslint-react/types@1.5.8': - resolution: {integrity: sha512-u1Y1G8+IRiNNZ+REMMkVvHAp+I3ruJoKRybHsM1DCoyT3xZZ85wNPwB5R+oBurEXG7vRi3A9CsUGKU7v+PCbfw==} + '@eslint-react/types@1.5.9': + resolution: {integrity: sha512-UI/1bEw7uPQ97vDm5VqLYcrZ1o8ewDVzexFFYt+Z7Irb7uYOEHER7upeM/ePQcEY6SiJXEXbPpESF6IET99hnQ==} - '@eslint-react/var@1.5.8': - resolution: {integrity: sha512-RhQfA2oTGTX7d8aauU8pIqq+tAxv5bSl/8LxtvNx6UXQxQAuk/2Oss7ICdgm6GBMUGpbaBATTgIo3wOytLwqCw==} + '@eslint-react/var@1.5.9': + resolution: {integrity: sha512-040GAzUltoij1/q64fxxYlVSrfK2+QoyIuUN5DSY9MPQkobd8rZ2UE0LjEm1O9fpkEM+5/EvzwqMN2ohUVb9bw==} '@eslint/eslintrc@2.1.4': resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} @@ -264,15 +264,15 @@ packages: resolution: {integrity: sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.0.0': - resolution: {integrity: sha512-RThY/MnKrhubF6+s1JflwUjPEsnCEmYCWwqa/aRISKWNXGZ9epUwft4bUMM35SdKF9xvBrLydAM1RDHd1Z//ZQ==} + '@eslint/js@9.1.1': + resolution: {integrity: sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@fastify/deepmerge@1.3.0': resolution: {integrity: sha512-J8TOSBq3SoZbDhM9+R/u77hP93gz/rajSA+K2kGyijPpORPWUXHUpTaleoj+92As0S9uPRP7Oi8IqMf0u+ro6A==} - '@humanwhocodes/config-array@0.12.3': - resolution: {integrity: sha512-jsNnTBlMWuTpDkeE3on7+dWJi0D6fdDfeANj/w7MpS8ztROCoLvIO2nG0CcFj+E4k8j4QrSTh4Oryi3i2G669g==} + '@humanwhocodes/config-array@0.13.0': + resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} '@humanwhocodes/module-importer@1.0.1': @@ -282,6 +282,10 @@ packages: '@humanwhocodes/object-schema@2.0.3': resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} + '@humanwhocodes/retry@0.2.3': + resolution: {integrity: sha512-X38nUbachlb01YMlvPFojKoiXq+LzZvuSce70KPMPdeM1Rj03k4dR7lDslhbqXn3Ang4EU3+EAmwEAsbrjHW3g==} + engines: {node: '>=18.18'} + '@hutson/parse-repository-url@5.0.0': resolution: {integrity: sha512-e5+YUKENATs1JgYHMzTr2MW/NDcXGfYFAuOQU8gJgF/kEh4EqKgfGrfLI67bMD4tbhZVlkigz/9YYwWcbOFthg==} engines: {node: '>=10.13.0'} @@ -600,8 +604,8 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@types/eslint@8.56.9': - resolution: {integrity: sha512-W4W3KcqzjJ0sHg2vAq9vfml6OhsJ53TcUjUqfzzZf/EChUtwspszj/S0pzMxnfRcO55/iGq47dscXw71Fxc4Zg==} + '@types/eslint@8.56.10': + resolution: {integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==} '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -630,8 +634,8 @@ packages: '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} - '@typescript-eslint/eslint-plugin@7.6.0': - resolution: {integrity: sha512-gKmTNwZnblUdnTIJu3e9kmeRRzV2j1a/LUO27KNNAnIC5zjy1aSvXSRp4rVNlmAoHlQ7HzX42NbKpcSr4jF80A==} + '@typescript-eslint/eslint-plugin@7.7.0': + resolution: {integrity: sha512-GJWR0YnfrKnsRoluVO3PRb9r5aMZriiMMM/RHj5nnTrBy1/wIgk76XCtCKcnXGjpZQJQRFtGV9/0JJ6n30uwpQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: '@typescript-eslint/parser': ^7.0.0 @@ -641,8 +645,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@7.6.0': - resolution: {integrity: sha512-usPMPHcwX3ZoPWnBnhhorc14NJw9J4HpSXQX4urF2TPKG0au0XhJoZyX62fmvdHONUkmyUe74Hzm1//XA+BoYg==} + '@typescript-eslint/parser@7.7.0': + resolution: {integrity: sha512-fNcDm3wSwVM8QYL4HKVBggdIPAy9Q41vcvC/GtDobw3c4ndVT3K6cqudUmjHPw8EAp4ufax0o58/xvWaP2FmTg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -655,8 +659,12 @@ packages: resolution: {integrity: sha512-ngttyfExA5PsHSx0rdFgnADMYQi+Zkeiv4/ZxGYUWd0nLs63Ha0ksmp8VMxAIC0wtCFxMos7Lt3PszJssG/E6w==} engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/type-utils@7.6.0': - resolution: {integrity: sha512-NxAfqAPNLG6LTmy7uZgpK8KcuiS2NZD/HlThPXQRGwz6u7MDBWRVliEEl1Gj6U7++kVJTpehkhZzCJLMK66Scw==} + '@typescript-eslint/scope-manager@7.7.0': + resolution: {integrity: sha512-/8INDn0YLInbe9Wt7dK4cXLDYp0fNHP5xKLHvZl3mOT5X17rK/YShXaiNmorl+/U4VKCVIjJnx4Ri5b0y+HClw==} + engines: {node: ^18.18.0 || >=20.0.0} + + '@typescript-eslint/type-utils@7.7.0': + resolution: {integrity: sha512-bOp3ejoRYrhAlnT/bozNQi3nio9tIgv3U5C0mVDdZC7cpcQEDZXvq8inrHYghLVwuNABRqrMW5tzAv88Vy77Sg==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -669,6 +677,10 @@ packages: resolution: {integrity: sha512-h02rYQn8J+MureCvHVVzhl69/GAfQGPQZmOMjG1KfCl7o3HtMSlPaPUAPu6lLctXI5ySRGIYk94clD/AUMCUgQ==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/types@7.7.0': + resolution: {integrity: sha512-G01YPZ1Bd2hn+KPpIbrAhEWOn5lQBrjxkzHkWvP6NucMXFtfXoevK82hzQdpfuQYuhkvFDeQYbzXCjR1z9Z03w==} + engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/typescript-estree@7.6.0': resolution: {integrity: sha512-+7Y/GP9VuYibecrCQWSKgl3GvUM5cILRttpWtnAu8GNL9j11e4tbuGZmZjJ8ejnKYyBRb2ddGQ3rEFCq3QjMJw==} engines: {node: ^18.18.0 || >=20.0.0} @@ -678,16 +690,35 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@7.7.0': + resolution: {integrity: sha512-8p71HQPE6CbxIBy2kWHqM1KGrC07pk6RJn40n0DSc6bMOBBREZxSDJ+BmRzc8B5OdaMh1ty3mkuWRg4sCFiDQQ==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/utils@7.6.0': resolution: {integrity: sha512-x54gaSsRRI+Nwz59TXpCsr6harB98qjXYzsRxGqvA5Ue3kQH+FxS7FYU81g/omn22ML2pZJkisy6Q+ElK8pBCA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 + '@typescript-eslint/utils@7.7.0': + resolution: {integrity: sha512-LKGAXMPQs8U/zMRFXDZOzmMKgFv3COlxUQ+2NMPhbqgVm6R1w+nU1i4836Pmxu9jZAuIeyySNrN/6Rc657ggig==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + '@typescript-eslint/visitor-keys@7.6.0': resolution: {integrity: sha512-4eLB7t+LlNUmXzfOu1VAIAdkjbu5xNSerURS9X/S5TUKWFRpXRQZbmtPqgKmYx8bj3J0irtQXSiWAOY82v+cgw==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/visitor-keys@7.7.0': + resolution: {integrity: sha512-h0WHOj8MhdhY8YWkzIF30R379y0NqyOHExI9N9KCzvmu05EgG4FumeYa3ccfKUSphyWkWQE1ybVrgz/Pbam6YA==} + engines: {node: ^18.18.0 || >=20.0.0} + '@vitest/expect@1.5.0': resolution: {integrity: sha512-0pzuCI6KYi2SIC3LQezmxujU9RK/vwC1U9R0rLuGlNGcOuDWxqWKu6nUdFsX9tH1WU0SXtAxToOsEjeUn1s3hA==} @@ -1339,8 +1370,8 @@ packages: eslint-config-flat-gitignore@0.1.5: resolution: {integrity: sha512-hEZLwuZjDBGDERA49c2q7vxc8sCGv8EdBp6PQYzGOMcHIgrfG9YOM6s/4jx24zhD+wnK9AI8mgN5RxSss5nClQ==} - eslint-config-hyoban@1.0.1: - resolution: {integrity: sha512-LPiIc9DuRGQM0b7PMKCgsAtrHIxZAxb3n8rwtBQ3mSF7Dbze5sGV6SLQaYwH7P0/FTtc/t68PXSfpxwkE8e/7A==} + eslint-config-hyoban@1.0.3: + resolution: {integrity: sha512-ofpG2rXybEDfUnlJ10NqO53eU9GOiu8I6ZOWPzWrZTxtmepRJYpgw5NVgbJfIIKvjrTl0A2VCXSGpl6UtErSzg==} peerDependencies: eslint: ^8.56.0 || ^9.0.0 typescript: '>=4.7.4' @@ -1375,24 +1406,24 @@ packages: eslint: '>=8.0.0' jsonc-eslint-parser: ^2.0.0 - eslint-plugin-react-core@1.5.8: - resolution: {integrity: sha512-AWF0N07w3Tpkq2VKiZdvf1ItdQuYw/nJFmcs1ZZZOKq6eNSYpsSzKDpurwjAyMl4+WE+xL2b6lrUuVawfNpkMQ==} + eslint-plugin-react-core@1.5.9: + resolution: {integrity: sha512-zXS4dq7C1GGIg0d+yDAf9k9Q9x7dFts6AzyM5Zh0lqmyFlb49du6RB2rql620nEBZCxSUKPtBmlJ/x+4QpE9hA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: '@typescript-eslint/parser': '>=7.5.0' eslint: '>=9.0.0' typescript: '>=5.3.3' - eslint-plugin-react-dom@1.5.8: - resolution: {integrity: sha512-xPCfuSvdccCnzyMHeBWCepi+SniXf5IszcQB0951Chvb4pSkwyemuN0xy4ux4cu0i5wyHzQZJk3jBqM1b49+YQ==} + eslint-plugin-react-dom@1.5.9: + resolution: {integrity: sha512-tFvjqGQqbqyihtwe/cVIts73ylncDKxHlUFUEgU2N+aGJ7sxOCtDldi5Du0n7cjrZEIc1ctmglYEWnOIXnLmDA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: '@typescript-eslint/parser': '>=7.5.0' eslint: '>=9.0.0' typescript: '>=5.3.3' - eslint-plugin-react-hooks-extra@1.5.8: - resolution: {integrity: sha512-GDitayVrF51bDH+ASs9QCvw6YZOn5A99iQMH9wKCGlaGA+mUD0vFt8EHW4kALjmBNSjA/y5ZZ3/435mGwrIv8Q==} + eslint-plugin-react-hooks-extra@1.5.9: + resolution: {integrity: sha512-CiOyHqPOsLJXkvnlFsX56cjfBP1IelhkYUpbldsRt43VhblRkaZyc+I9sg4vCzkH0dehlOA32V/nYaZ/ykDZqQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: '@typescript-eslint/parser': '>=7.5.0' @@ -1405,8 +1436,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - eslint-plugin-react-naming-convention@1.5.8: - resolution: {integrity: sha512-1pZNudmoiaB4ZnfGauMoi9at4pSmzb0EMidfDXybmev09fEuO7mBUfpks/Fjs1PGDGogEhe0a9KQIVTPe4Ui2w==} + eslint-plugin-react-naming-convention@1.5.9: + resolution: {integrity: sha512-Di+6+Vkypol7EF2Js8NRprYuLUJM1fAEbGCcr/dbrDj/gZA6qwecIcRsWVgwJKWnqcAWn93+p6Cqg4NiECradQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: '@typescript-eslint/parser': '>=7.5.0' @@ -1436,8 +1467,8 @@ packages: resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.0.0: - resolution: {integrity: sha512-IMryZ5SudxzQvuod6rUdIUz29qFItWx281VhtFVc2Psy/ZhlCeD/5DT6lBIJ4H3G+iamGJoTln1v+QSuPw0p7Q==} + eslint@9.1.0: + resolution: {integrity: sha512-1TCBecGFQtItia2o39P7Z4BK1X7ByNPxAiWJvwiyTGcOwYnTiiASgMpNA6a+beu8cFPhEDWvPf6mIlYUJv6sgA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true @@ -2543,8 +2574,8 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} - prettier-config-hyoban@1.0.3: - resolution: {integrity: sha512-KfLZJcRg+XVTPJU0L+15xetKMpZORxD5bPJoi5Clh54y+mBpHNXdkPtRd1jNIYsRI2DJGdlr05TW2n9QfpRw0Q==} + prettier-config-hyoban@2.0.2: + resolution: {integrity: sha512-seCdPXFcCpbn4yxbHH+sAxQKyDD+dIsFKM7qiO/IL+ZtCfd3dWSxnpUopCCczS3fKS42KEInyrMA9Exco8v1jg==} prettier@3.2.5: resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} @@ -3058,8 +3089,8 @@ packages: typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - typescript-eslint@7.6.0: - resolution: {integrity: sha512-LY6vH6F1l5jpGqRtU+uK4+mOecIb4Cd4kaz1hAiJrgnNiHUA8wiw8BkJyYS+MRLM69F1QuSKwtGlQqnGl1Rc6w==} + typescript-eslint@7.7.0: + resolution: {integrity: sha512-wZZ+7mTQJCn4mGAvzdERtL4vwKGM/mF9cMSMeKUllz3Hgbd1Mdd5L60Q+nJmCio9RB4OyMMr0EX4Ry2Q7jiAyw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 @@ -3359,108 +3390,108 @@ snapshots: '@esbuild/win32-x64@0.20.2': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint@9.0.0)': + '@eslint-community/eslint-utils@4.4.0(eslint@9.1.0)': dependencies: - eslint: 9.0.0 + eslint: 9.1.0 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.10.0': {} - '@eslint-react/ast@1.5.8(eslint@9.0.0)(typescript@5.4.5)': + '@eslint-react/ast@1.5.9(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) string-ts: 2.1.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/core@1.5.8(eslint@9.0.0)(typescript@5.4.5)': - dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/jsx': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@eslint-react/core@1.5.9(eslint@9.1.0)(typescript@5.4.5)': + dependencies: + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/jsx': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) short-unique-id: 5.0.3 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/eslint-plugin@1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5)': - dependencies: - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 - eslint-plugin-react-core: 1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) - eslint-plugin-react-dom: 1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) - eslint-plugin-react-hooks-extra: 1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) - eslint-plugin-react-naming-convention: 1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) + '@eslint-react/eslint-plugin@1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5)': + dependencies: + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 + eslint-plugin-react-core: 1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) + eslint-plugin-react-dom: 1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) + eslint-plugin-react-hooks-extra: 1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) + eslint-plugin-react-naming-convention: 1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@eslint-react/jsx@1.5.8(eslint@9.0.0)(typescript@5.4.5)': + '@eslint-react/jsx@1.5.9(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/var': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/var': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) micro-memoize: 4.1.2 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/shared@1.5.8(eslint@9.0.0)(typescript@5.4.5)': + '@eslint-react/shared@1.5.9(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) deepmerge-ts: 5.1.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/tools@1.5.8': {} + '@eslint-react/tools@1.5.9': {} - '@eslint-react/types@1.5.8(eslint@9.0.0)(typescript@5.4.5)': + '@eslint-react/types@1.5.9(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@eslint-react/tools': 1.5.8 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/var@1.5.8(eslint@9.0.0)(typescript@5.4.5)': + '@eslint-react/var@1.5.9(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) string-ts: 2.1.0 transitivePeerDependencies: - eslint @@ -3495,11 +3526,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.0.0': {} + '@eslint/js@9.1.1': {} '@fastify/deepmerge@1.3.0': {} - '@humanwhocodes/config-array@0.12.3': + '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 debug: 4.3.4 @@ -3511,6 +3542,8 @@ snapshots: '@humanwhocodes/object-schema@2.0.3': {} + '@humanwhocodes/retry@0.2.3': {} + '@hutson/parse-repository-url@5.0.0': {} '@hyoban/bumpp@9.4.0-1': @@ -3785,7 +3818,7 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@types/eslint@8.56.9': + '@types/eslint@8.56.10': dependencies: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 @@ -3813,16 +3846,16 @@ snapshots: '@types/semver@7.5.8': {} - '@typescript-eslint/eslint-plugin@7.6.0(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@7.7.0(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.6.0 + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.7.0 debug: 4.3.4 - eslint: 9.0.0 + eslint: 9.1.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 @@ -3833,14 +3866,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5)': + '@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5) - '@typescript-eslint/visitor-keys': 7.6.0 + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5) + '@typescript-eslint/visitor-keys': 7.7.0 debug: 4.3.4 - eslint: 9.0.0 + eslint: 9.1.0 optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: @@ -3851,12 +3884,17 @@ snapshots: '@typescript-eslint/types': 7.6.0 '@typescript-eslint/visitor-keys': 7.6.0 - '@typescript-eslint/type-utils@7.6.0(eslint@9.0.0)(typescript@5.4.5)': + '@typescript-eslint/scope-manager@7.7.0': dependencies: - '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5) - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/visitor-keys': 7.7.0 + + '@typescript-eslint/type-utils@7.7.0(eslint@9.1.0)(typescript@5.4.5)': + dependencies: + '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) debug: 4.3.4 - eslint: 9.0.0 + eslint: 9.1.0 ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: typescript: 5.4.5 @@ -3865,6 +3903,8 @@ snapshots: '@typescript-eslint/types@7.6.0': {} + '@typescript-eslint/types@7.7.0': {} + '@typescript-eslint/typescript-estree@7.6.0(typescript@5.4.5)': dependencies: '@typescript-eslint/types': 7.6.0 @@ -3880,15 +3920,44 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.6.0(eslint@9.0.0)(typescript@5.4.5)': + '@typescript-eslint/typescript-estree@7.7.0(typescript@5.4.5)': + dependencies: + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/visitor-keys': 7.7.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.4 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.4.5) + optionalDependencies: + typescript: 5.4.5 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@7.6.0(eslint@9.1.0)(typescript@5.4.5)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 7.6.0 '@typescript-eslint/types': 7.6.0 '@typescript-eslint/typescript-estree': 7.6.0(typescript@5.4.5) - eslint: 9.0.0 + eslint: 9.1.0 + semver: 7.6.0 + transitivePeerDependencies: + - supports-color + - typescript + + '@typescript-eslint/utils@7.7.0(eslint@9.1.0)(typescript@5.4.5)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.8 + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/typescript-estree': 7.7.0(typescript@5.4.5) + eslint: 9.1.0 semver: 7.6.0 transitivePeerDependencies: - supports-color @@ -3899,6 +3968,11 @@ snapshots: '@typescript-eslint/types': 7.6.0 eslint-visitor-keys: 3.4.3 + '@typescript-eslint/visitor-keys@7.7.0': + dependencies: + '@typescript-eslint/types': 7.7.0 + eslint-visitor-keys: 3.4.3 + '@vitest/expect@1.5.0': dependencies: '@vitest/spy': 1.5.0 @@ -4657,9 +4731,9 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-compat-utils@0.5.0(eslint@9.0.0): + eslint-compat-utils@0.5.0(eslint@9.1.0): dependencies: - eslint: 9.0.0 + eslint: 9.1.0 semver: 7.6.0 eslint-config-flat-gitignore@0.1.5: @@ -4667,26 +4741,26 @@ snapshots: find-up: 7.0.0 parse-gitignore: 2.0.0 - eslint-config-hyoban@1.0.1(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5): + eslint-config-hyoban@1.0.3(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5): dependencies: - '@eslint-react/eslint-plugin': 1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) - '@eslint/js': 9.0.0 - '@types/eslint': 8.56.9 + '@eslint-react/eslint-plugin': 1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) + '@eslint/js': 9.1.1 + '@types/eslint': 8.56.10 defu: 6.1.4 - eslint: 9.0.0 + eslint: 9.1.0 eslint-config-flat-gitignore: 0.1.5 - eslint-plugin-antfu: 2.1.2(eslint@9.0.0) - eslint-plugin-hyoban: 0.2.7(eslint@9.0.0)(typescript@5.4.5) - eslint-plugin-import-x: 0.5.0(eslint@9.0.0)(typescript@5.4.5) - eslint-plugin-jsonc: 2.15.1(eslint@9.0.0) - eslint-plugin-package-json: 0.12.2(eslint@9.0.0)(jsonc-eslint-parser@2.4.0) - eslint-plugin-react-hooks: 4.6.0(eslint@9.0.0) - eslint-plugin-simple-import-sort: 12.1.0(eslint@9.0.0) - eslint-plugin-unicorn: 52.0.0(eslint@9.0.0) + eslint-plugin-antfu: 2.1.2(eslint@9.1.0) + eslint-plugin-hyoban: 0.2.7(eslint@9.1.0)(typescript@5.4.5) + eslint-plugin-import-x: 0.5.0(eslint@9.1.0)(typescript@5.4.5) + eslint-plugin-jsonc: 2.15.1(eslint@9.1.0) + eslint-plugin-package-json: 0.12.2(eslint@9.1.0)(jsonc-eslint-parser@2.4.0) + eslint-plugin-react-hooks: 4.6.0(eslint@9.1.0) + eslint-plugin-simple-import-sort: 12.1.0(eslint@9.1.0) + eslint-plugin-unicorn: 52.0.0(eslint@9.1.0) globals: 15.0.0 jsonc-eslint-parser: 2.4.0 typescript: 5.4.5 - typescript-eslint: 7.6.0(eslint@9.0.0)(typescript@5.4.5) + typescript-eslint: 7.7.0(eslint@9.1.0)(typescript@5.4.5) transitivePeerDependencies: - '@typescript-eslint/parser' - supports-color @@ -4699,24 +4773,24 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-antfu@2.1.2(eslint@9.0.0): + eslint-plugin-antfu@2.1.2(eslint@9.1.0): dependencies: - eslint: 9.0.0 + eslint: 9.1.0 - eslint-plugin-hyoban@0.2.7(eslint@9.0.0)(typescript@5.4.5): + eslint-plugin-hyoban@0.2.7(eslint@9.1.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.6.0(eslint@9.1.0)(typescript@5.4.5) transitivePeerDependencies: - eslint - supports-color - typescript - eslint-plugin-import-x@0.5.0(eslint@9.0.0)(typescript@5.4.5): + eslint-plugin-import-x@0.5.0(eslint@9.1.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.6.0(eslint@9.1.0)(typescript@5.4.5) debug: 4.3.4 doctrine: 3.0.0 - eslint: 9.0.0 + eslint: 9.1.0 eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.7.3 is-glob: 4.0.3 @@ -4726,122 +4800,122 @@ snapshots: - supports-color - typescript - eslint-plugin-jsonc@2.15.1(eslint@9.0.0): + eslint-plugin-jsonc@2.15.1(eslint@9.1.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) - eslint: 9.0.0 - eslint-compat-utils: 0.5.0(eslint@9.0.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) + eslint: 9.1.0 + eslint-compat-utils: 0.5.0(eslint@9.1.0) espree: 9.6.1 graphemer: 1.4.0 jsonc-eslint-parser: 2.4.0 natural-compare: 1.4.0 synckit: 0.6.2 - eslint-plugin-package-json@0.12.2(eslint@9.0.0)(jsonc-eslint-parser@2.4.0): + eslint-plugin-package-json@0.12.2(eslint@9.1.0)(jsonc-eslint-parser@2.4.0): dependencies: - eslint: 9.0.0 + eslint: 9.1.0 jsonc-eslint-parser: 2.4.0 package-json-validator: 0.6.4 semver: 7.6.0 sort-package-json: 1.57.0 validate-npm-package-name: 5.0.0 - eslint-plugin-react-core@1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5): - dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/core': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/jsx': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/var': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 + eslint-plugin-react-core@1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5): + dependencies: + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/core': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/jsx': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/var': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 string-ts: 2.1.0 ts-api-utils: 1.3.0(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: - supports-color - eslint-plugin-react-dom@1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5): - dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/core': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/jsx': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/var': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 + eslint-plugin-react-dom@1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5): + dependencies: + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/core': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/jsx': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/var': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 string-ts: 2.1.0 typescript: 5.4.5 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks-extra@1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5): - dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/core': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/jsx': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/var': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 + eslint-plugin-react-hooks-extra@1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5): + dependencies: + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/core': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/jsx': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/var': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 string-ts: 2.1.0 typescript: 5.4.5 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks@4.6.0(eslint@9.0.0): + eslint-plugin-react-hooks@4.6.0(eslint@9.1.0): dependencies: - eslint: 9.0.0 + eslint: 9.1.0 - eslint-plugin-react-naming-convention@1.5.8(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5): + eslint-plugin-react-naming-convention@1.5.9(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5): dependencies: - '@eslint-react/ast': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/core': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/jsx': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/shared': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@eslint-react/tools': 1.5.8 - '@eslint-react/types': 1.5.8(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/scope-manager': 7.6.0 - '@typescript-eslint/type-utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/types': 7.6.0 - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 + '@eslint-react/ast': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/core': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/jsx': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/shared': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@eslint-react/tools': 1.5.9 + '@eslint-react/types': 1.5.9(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/scope-manager': 7.7.0 + '@typescript-eslint/type-utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/types': 7.7.0 + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 string-ts: 2.1.0 typescript: 5.4.5 transitivePeerDependencies: - supports-color - eslint-plugin-simple-import-sort@12.1.0(eslint@9.0.0): + eslint-plugin-simple-import-sort@12.1.0(eslint@9.1.0): dependencies: - eslint: 9.0.0 + eslint: 9.1.0 - eslint-plugin-unicorn@52.0.0(eslint@9.0.0): + eslint-plugin-unicorn@52.0.0(eslint@9.1.0): dependencies: '@babel/helper-validator-identifier': 7.22.20 - '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) '@eslint/eslintrc': 2.1.4 ci-info: 4.0.0 clean-regexp: 1.0.0 core-js-compat: 3.34.0 - eslint: 9.0.0 + eslint: 9.1.0 esquery: 1.5.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 @@ -4864,14 +4938,15 @@ snapshots: eslint-visitor-keys@4.0.0: {} - eslint@9.0.0: + eslint@9.1.0: dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.0.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.1.0) '@eslint-community/regexpp': 4.10.0 '@eslint/eslintrc': 3.0.2 - '@eslint/js': 9.0.0 - '@humanwhocodes/config-array': 0.12.3 + '@eslint/js': 9.1.1 + '@humanwhocodes/config-array': 0.13.0 '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.2.3 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 chalk: 4.1.2 @@ -4887,7 +4962,6 @@ snapshots: file-entry-cache: 8.0.0 find-up: 5.0.0 glob-parent: 6.0.2 - graphemer: 1.4.0 ignore: 5.3.1 imurmurhash: 0.1.4 is-glob: 4.0.3 @@ -6027,7 +6101,7 @@ snapshots: prelude-ls@1.2.1: {} - prettier-config-hyoban@1.0.3: {} + prettier-config-hyoban@2.0.2: {} prettier@3.2.5: {} @@ -6585,12 +6659,12 @@ snapshots: dependencies: is-typedarray: 1.0.0 - typescript-eslint@7.6.0(eslint@9.0.0)(typescript@5.4.5): + typescript-eslint@7.7.0(eslint@9.1.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/eslint-plugin': 7.6.0(@typescript-eslint/parser@7.6.0(eslint@9.0.0)(typescript@5.4.5))(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/parser': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - '@typescript-eslint/utils': 7.6.0(eslint@9.0.0)(typescript@5.4.5) - eslint: 9.0.0 + '@typescript-eslint/eslint-plugin': 7.7.0(@typescript-eslint/parser@7.7.0(eslint@9.1.0)(typescript@5.4.5))(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/parser': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + '@typescript-eslint/utils': 7.7.0(eslint@9.1.0)(typescript@5.4.5) + eslint: 9.1.0 optionalDependencies: typescript: 5.4.5 transitivePeerDependencies: diff --git a/src/index.js b/src/index.js index a14c18d..4d8deb6 100644 --- a/src/index.js +++ b/src/index.js @@ -2,10 +2,10 @@ import fs from "node:fs"; import { versionBump } from "bumpp"; import { - generate, - hasTagOnGitHub, - isRepoShallow, - sendRelease, + generate, + hasTagOnGitHub, + isRepoShallow, + sendRelease, } from "changelogithub"; import conventionalRecommendedBump from "conventional-recommended-bump"; import { blue, bold, cyan, dim, red, yellow } from "kolorist"; @@ -13,267 +13,267 @@ import { Plugin } from "release-it"; import semver from "semver"; const prompts = { - publish: { - type: "confirm", - message: () => - "Are you sure you want to publish? (pnpm -r publish --access public --no-git-checks)", - }, - release: { - type: "confirm", - message: () => "Are you sure you want to create a new release on GitHub?", - }, + publish: { + type: "confirm", + message: () => + "Are you sure you want to publish? (pnpm -r publish --access public --no-git-checks)", + }, + release: { + type: "confirm", + message: () => "Are you sure you want to create a new release on GitHub?", + }, }; class ReleaseItPnpmPlugin extends Plugin { - static disablePlugin() { - return ["npm", "version"]; - } + static disablePlugin() { + return ["npm", "version"]; + } - constructor(...args) { - super(...args); - this.registerPrompts(prompts); - } + constructor(...args) { + super(...args); + this.registerPrompts(prompts); + } - getInitialOptions(options, pluginName) { - return Object.assign({}, options[pluginName], { - "dry-run": options["dry-run"], - "ci": options.ci, - "preRelease": options.preRelease, - "verbose": options.verbose, - }); - } + getInitialOptions(options, pluginName) { + return Object.assign({}, options[pluginName], { + "dry-run": options["dry-run"], + ci: options.ci, + preRelease: options.preRelease, + verbose: options.verbose, + }); + } - getIncrement(options) { - return options.increment; - } + getIncrement(options) { + return options.increment; + } - getIncrementedVersionCI(options) { - return this.getRecommendedVersion(options); - } + getIncrementedVersionCI(options) { + return this.getRecommendedVersion(options); + } - getIncrementedVersion(options) { - return this.getRecommendedVersion(options); - } + getIncrementedVersion(options) { + return this.getRecommendedVersion(options); + } - async getRecommendedVersion({ - latestVersion, - increment, - isPreRelease, - preReleaseId, - }) { - this.debug("release-it-pnpm:getRecommendedVersion", { - increment, - latestVersion, - isPreRelease, - preReleaseId, - }); - const { options } = this; - this.debug("release-it-pnpm:getRecommendedVersion", { options }); + async getRecommendedVersion({ + latestVersion, + increment, + isPreRelease, + preReleaseId, + }) { + this.debug("release-it-pnpm:getRecommendedVersion", { + increment, + latestVersion, + isPreRelease, + preReleaseId, + }); + const { options } = this; + this.debug("release-it-pnpm:getRecommendedVersion", { options }); - if (!options.ci) { - const result = await versionBump({ - commit: false, - tag: false, - push: false, - confirm: true, - preid: preReleaseId, - files: ["this-is-a-non-existing-file-i-believe-you-do-not-have-it.txt"], - }); - return semver.valid(result.newVersion); - } + if (!options.ci) { + const result = await versionBump({ + commit: false, + tag: false, + push: false, + confirm: true, + preid: preReleaseId, + files: ["this-is-a-non-existing-file-i-believe-you-do-not-have-it.txt"], + }); + return semver.valid(result.newVersion); + } - try { - const result = await conventionalRecommendedBump({ - preset: { - name: "conventionalcommits", - preMajor: semver.lt(latestVersion, "1.0.0"), - }, - }); - this.debug("release-it-pnpm:getRecommendedVersion", { result }); - let { releaseType } = result; - if (increment) { - this.log.warn( - `The recommended bump is "${releaseType}", but is overridden with "${increment}".`, - ); - releaseType = increment; - } - if (increment && semver.valid(increment)) { - return increment; - } else if (isPreRelease) { - const type = - releaseType && !semver.prerelease(latestVersion) ? - `pre${releaseType}` - : "prerelease"; - return semver.inc(latestVersion, type, preReleaseId); - } else if (!releaseType) { - return null; - } - return semver.inc(latestVersion, releaseType, preReleaseId); - } catch (err) { - this.debug("release-it-pnpm:getRecommendedVersion", { err }); - throw err; - } - } + try { + const result = await conventionalRecommendedBump({ + preset: { + name: "conventionalcommits", + preMajor: semver.lt(latestVersion, "1.0.0"), + }, + }); + this.debug("release-it-pnpm:getRecommendedVersion", { result }); + let { releaseType } = result; + if (increment) { + this.log.warn( + `The recommended bump is "${releaseType}", but is overridden with "${increment}".`, + ); + releaseType = increment; + } + if (increment && semver.valid(increment)) { + return increment; + } else if (isPreRelease) { + const type = + releaseType && !semver.prerelease(latestVersion) + ? `pre${releaseType}` + : "prerelease"; + return semver.inc(latestVersion, type, preReleaseId); + } else if (!releaseType) { + return null; + } + return semver.inc(latestVersion, releaseType, preReleaseId); + } catch (err) { + this.debug("release-it-pnpm:getRecommendedVersion", { err }); + throw err; + } + } - async bump(newVersion) { - let needPublish = false; + async bump(newVersion) { + let needPublish = false; - if (!this.options["dry-run"]) { - const { updatedFiles } = await versionBump({ - commit: false, - tag: false, - push: false, - confirm: false, - recursive: true, - release: newVersion, - }); - if (updatedFiles.length > 0) { - for (const file of updatedFiles) { - const { private: isPrivate } = JSON.parse( - fs.readFileSync(file, "utf8"), - ); - if (!isPrivate) { - needPublish = true; - break; - } - } - } - } + if (!this.options["dry-run"]) { + const { updatedFiles } = await versionBump({ + commit: false, + tag: false, + push: false, + confirm: false, + recursive: true, + release: newVersion, + }); + if (updatedFiles.length > 0) { + for (const file of updatedFiles) { + const { private: isPrivate } = JSON.parse( + fs.readFileSync(file, "utf8"), + ); + if (!isPrivate) { + needPublish = true; + break; + } + } + } + } - this.debug("release-it-pnpm:bump", { - newVersion, - parsed: semver.parse(newVersion), - }); - const { prerelease } = semver.parse(newVersion); - const includePrerelease = prerelease.length > 0; - const prereleaseTag = includePrerelease ? `--tag ${prerelease[0]}` : ""; - this.setContext({ prereleaseTag }); + this.debug("release-it-pnpm:bump", { + newVersion, + parsed: semver.parse(newVersion), + }); + const { prerelease } = semver.parse(newVersion); + const includePrerelease = prerelease.length > 0; + const prereleaseTag = includePrerelease ? `--tag ${prerelease[0]}` : ""; + this.setContext({ prereleaseTag }); - this.debug("release-it-pnpm:bump", { prereleaseTag, needPublish }); - if (needPublish) { - await this.step({ - task: async () => { - await this.exec( - `pnpm -r publish --access public --no-git-checks ${prereleaseTag}`, - ); - }, - label: - "Publishing packages(s) (pnpm -r publish --access public --no-git-checks)", - prompt: "publish", - }); - } - } + this.debug("release-it-pnpm:bump", { prereleaseTag, needPublish }); + if (needPublish) { + await this.step({ + task: async () => { + await this.exec( + `pnpm -r publish --access public --no-git-checks ${prereleaseTag}`, + ); + }, + label: + "Publishing packages(s) (pnpm -r publish --access public --no-git-checks)", + prompt: "publish", + }); + } + } - async release() { - if (this.options?.disableRelease) return; + async release() { + if (this.options?.disableRelease) return; - await this.step({ - task: async () => { - let token = process.env.GITHUB_TOKEN; - if (!token) { - try { - token = await this.exec("gh auth token"); - } catch (e) { - this.debug("release-it-pnpm:release", e); - } - } + await this.step({ + task: async () => { + let token = process.env.GITHUB_TOKEN; + if (!token) { + try { + token = await this.exec("gh auth token"); + } catch (e) { + this.debug("release-it-pnpm:release", e); + } + } - let webUrl = ""; + let webUrl = ""; - try { - const { config, md, commits } = await generate({ - token, - dry: this.options["dry-run"], - }); - webUrl = `https://${config.baseUrl}/${config.repo}/releases/new?title=${encodeURIComponent(String(config.name || config.to))}&body=${encodeURIComponent(String(md))}&tag=${encodeURIComponent(String(config.to))}&prerelease=${config.prerelease}`; + try { + const { config, md, commits } = await generate({ + token, + dry: this.options["dry-run"], + }); + webUrl = `https://${config.baseUrl}/${config.repo}/releases/new?title=${encodeURIComponent(String(config.name || config.to))}&body=${encodeURIComponent(String(md))}&tag=${encodeURIComponent(String(config.to))}&prerelease=${config.prerelease}`; - this.debug("release-it-pnpm:release", { config, md, commits }); + this.debug("release-it-pnpm:release", { config, md, commits }); - if (this.options["verbose"]) { - this.log.log( - cyan(config.from) + - dim(" -> ") + - blue(config.to) + - dim(` (${commits.length} commits)`), - ); - this.log.log(dim("--------------")); - this.log.log(); - this.log.log(md.replaceAll(" ", "")); - this.log.log(); - this.log.log(dim("--------------")); - } + if (this.options["verbose"]) { + this.log.log( + cyan(config.from) + + dim(" -> ") + + blue(config.to) + + dim(` (${commits.length} commits)`), + ); + this.log.log(dim("--------------")); + this.log.log(); + this.log.log(md.replaceAll(" ", "")); + this.log.log(); + this.log.log(dim("--------------")); + } - const printWebUrl = () => { - this.log.log(); - this.log.error( - yellow("Using the following link to create it manually:"), - ); - this.log.error(yellow(webUrl)); - this.log.log(); - }; + const printWebUrl = () => { + this.log.log(); + this.log.error( + yellow("Using the following link to create it manually:"), + ); + this.log.error(yellow(webUrl)); + this.log.log(); + }; - if (config.dry) { - this.log.log(yellow("Dry run. Release skipped.")); - printWebUrl(); - return; - } + if (config.dry) { + this.log.log(yellow("Dry run. Release skipped.")); + printWebUrl(); + return; + } - if (!config.token) { - this.log.error( - red( - "No GitHub token found, specify it via GITHUB_TOKEN env. Release skipped.", - ), - ); - printWebUrl(); - return; - } + if (!config.token) { + this.log.error( + red( + "No GitHub token found, specify it via GITHUB_TOKEN env. Release skipped.", + ), + ); + printWebUrl(); + return; + } - if (!(await hasTagOnGitHub(config.to, config))) { - this.log.error( - yellow( - `Current ref "${bold(config.to)}" is not available as tags on GitHub. Release skipped.`, - ), - ); - process.exitCode = 1; - printWebUrl(); - return; - } + if (!(await hasTagOnGitHub(config.to, config))) { + this.log.error( + yellow( + `Current ref "${bold(config.to)}" is not available as tags on GitHub. Release skipped.`, + ), + ); + process.exitCode = 1; + printWebUrl(); + return; + } - if (commits.length === 0 && (await isRepoShallow())) { - this.log.error( - yellow( - "The repo seems to be clone shallowly, which make changelog failed to generate. You might want to specify `fetch-depth: 0` in your CI config.", - ), - ); - process.exitCode = 1; - printWebUrl(); - return; - } + if (commits.length === 0 && (await isRepoShallow())) { + this.log.error( + yellow( + "The repo seems to be clone shallowly, which make changelog failed to generate. You might want to specify `fetch-depth: 0` in your CI config.", + ), + ); + process.exitCode = 1; + printWebUrl(); + return; + } - await sendRelease(config, md); - } catch (e) { - this.log.error(red(String(e))); - if (e?.stack) - this.log.error(dim(e.stack?.split("\n").slice(1).join("\n"))); + await sendRelease(config, md); + } catch (e) { + this.log.error(red(String(e))); + if (e?.stack) + this.log.error(dim(e.stack?.split("\n").slice(1).join("\n"))); - if (webUrl) { - this.log.log(); - this.log.error( - red( - "Failed to create the release. Using the following link to create it manually:", - ), - ); - this.log.error(yellow(webUrl)); - this.log.log(); - } - // eslint-disable-next-line unicorn/no-process-exit - process.exit(1); - } - }, - label: "Creating release on GitHub", - prompt: "release", - }); - } + if (webUrl) { + this.log.log(); + this.log.error( + red( + "Failed to create the release. Using the following link to create it manually:", + ), + ); + this.log.error(yellow(webUrl)); + this.log.log(); + } + // eslint-disable-next-line unicorn/no-process-exit + process.exit(1); + } + }, + label: "Creating release on GitHub", + prompt: "release", + }); + } } export default ReleaseItPnpmPlugin; diff --git a/src/index.test.js b/src/index.test.js index 551dfc2..132e5a7 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -1,5 +1,5 @@ import { expect, test } from "vitest"; test("foo", () => { - expect(1).toBe(1); + expect(1).toBe(1); }); diff --git a/tsconfig.json b/tsconfig.json index e5735e8..8a80ef9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,25 @@ { - "compilerOptions": { - /* Base Options: */ - "esModuleInterop": true, - "skipLibCheck": true, - "target": "es2022", - "allowJs": true, - "resolveJsonModule": true, - "moduleDetection": "force", - "isolatedModules": true, + "compilerOptions": { + /* Base Options: */ + "esModuleInterop": true, + "skipLibCheck": true, + "target": "es2022", + "allowJs": true, + "resolveJsonModule": true, + "moduleDetection": "force", + "isolatedModules": true, - /* Strictness */ - "strict": true, - "noUncheckedIndexedAccess": true, + /* Strictness */ + "strict": true, + "noUncheckedIndexedAccess": true, - /* If NOT transpiling with TypeScript: */ - "moduleResolution": "Bundler", - "module": "ESNext", - "noEmit": true, + /* If NOT transpiling with TypeScript: */ + "moduleResolution": "Bundler", + "module": "ESNext", + "noEmit": true, - /* If your code doesn't run in the DOM: */ - "lib": ["es2022"] - }, - "exclude": ["**/dist"] + /* If your code doesn't run in the DOM: */ + "lib": ["es2022"] + }, + "exclude": ["**/dist"] }