diff --git a/.changeset/commit.js b/.changeset/commit.js new file mode 100644 index 0000000000..d9ddde3fc9 --- /dev/null +++ b/.changeset/commit.js @@ -0,0 +1,24 @@ +const { execSync } = require('node:child_process') + +const getSignedOffBy = () => { + const gitUserName = execSync('git config user.name').toString('utf-8').trim() + const gitEmail = execSync('git config user.email').toString('utf-8').trim() + + return `Signed-off-by: ${gitUserName} <${gitEmail}>` +} + +const getAddMessage = async (changeset) => { + return `docs(changeset): ${changeset.summary}\n\n${getSignedOffBy()}\n` +} + +const getVersionMessage = async (releasePlan) => { + const publishableReleases = releasePlan.releases.filter((release) => release.type !== 'none') + const releasedVersion = publishableReleases[0].newVersion + + return `chore(release): version ${releasedVersion}\n\n${getSignedOffBy()}\n` +} + +module.exports = { + getAddMessage, + getVersionMessage, +} diff --git a/.changeset/config.json b/.changeset/config.json index 582133f984..b6b6972d35 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,7 +1,7 @@ { "$schema": "https://unpkg.com/@changesets/config@3.0.1/schema.json", "changelog": "@changesets/cli/changelog", - "commit": true, + "commit": "./commit", "privatePackages": false, "fixed": [["@credo-ts/*"]], "access": "public", diff --git a/.eslintrc.js b/.eslintrc.js index 51535e4a4d..e1ab5de77a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { }, }, rules: { + '@typescript-eslint/no-unsafe-declaration-merging': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: true }], diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6839456708..af90c043cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,6 @@ on: - main - '**-pre' -concurrency: ${{ github.workflow }}-${{ github.ref }} - permissions: pull-requests: write contents: write @@ -40,16 +38,26 @@ jobs: with: # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: pnpm release - commit: 'chore(release): new version' title: 'chore(release): new version' + createGithubReleases: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_PUBLISH }} + - name: Get current package version + id: get_version + run: echo "CURRENT_PACKAGE_VERSION=$(node -p "require('./packages/core/package.json').version")" >> $GITHUB_ENV + + - name: Create Github Release + if: steps.changesets.outputs.published == 'true' + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ env.CURRENT_PACKAGE_VERSION }} + release-unstable: name: Release Unstable runs-on: ubuntu-latest - if: "!startsWith(github.event.head_commit.message, 'chore(release): new version')" + if: "!startsWith(github.event.head_commit.message, 'chore(release): version')" steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/package.json b/package.json index 85d3c8a033..e68f5483d7 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "@types/uuid": "^9.0.1", "@types/varint": "^6.0.0", "@types/ws": "^8.5.4", - "@typescript-eslint/eslint-plugin": "^5.48.1", - "@typescript-eslint/parser": "^5.48.1", + "@typescript-eslint/eslint-plugin": "^7.14.1", + "@typescript-eslint/parser": "^7.14.1", "bn.js": "^5.2.1", "cors": "^2.8.5", "eslint": "^8.36.0", @@ -58,7 +58,6 @@ "rxjs": "^7.8.0", "ts-jest": "^29.1.2", "ts-node": "^10.0.0", - "tsconfig-paths": "^4.1.2", "tsyringe": "^4.8.0", "typescript": "~5.5.2", "ws": "^8.13.0" diff --git a/packages/action-menu/package.json b/packages/action-menu/package.json index e53c26c1b7..f7be7a29d1 100644 --- a/packages/action-menu/package.json +++ b/packages/action-menu/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/action-menu", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/action-menu", diff --git a/packages/anoncreds/package.json b/packages/anoncreds/package.json index b52e3a37ee..7064803a83 100644 --- a/packages/anoncreds/package.json +++ b/packages/anoncreds/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/anoncreds", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/anoncreds", diff --git a/packages/anoncreds/src/updates/0.4-0.5/anonCredsCredentialRecord.ts b/packages/anoncreds/src/updates/0.4-0.5/anonCredsCredentialRecord.ts index 44536a414c..53073483a7 100644 --- a/packages/anoncreds/src/updates/0.4-0.5/anonCredsCredentialRecord.ts +++ b/packages/anoncreds/src/updates/0.4-0.5/anonCredsCredentialRecord.ts @@ -16,7 +16,6 @@ import { fetchCredentialDefinition } from '../../utils/anonCredsObjects' import { getIndyNamespaceFromIndyDid, getQualifiedDidIndyDid, - getUnQualifiedDidIndyDid, getUnqualifiedRevocationRegistryDefinitionId, isIndyDid, isUnqualifiedCredentialDefinitionId, diff --git a/packages/askar/package.json b/packages/askar/package.json index c8064faf1d..b0a05c1666 100644 --- a/packages/askar/package.json +++ b/packages/askar/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/askar", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/askar", diff --git a/packages/bbs-signatures/package.json b/packages/bbs-signatures/package.json index f427cf525d..f11c7e7e1a 100644 --- a/packages/bbs-signatures/package.json +++ b/packages/bbs-signatures/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/bbs-signatures", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/bbs-signatures", diff --git a/packages/cheqd/package.json b/packages/cheqd/package.json index c2552f77c3..91293174c0 100644 --- a/packages/cheqd/package.json +++ b/packages/cheqd/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/cheqd", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/cheqd", diff --git a/packages/core/package.json b/packages/core/package.json index d2043dd9e0..461ea739ea 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/core", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/core", diff --git a/packages/drpc/package.json b/packages/drpc/package.json index 866f16c338..11203e4d0f 100644 --- a/packages/drpc/package.json +++ b/packages/drpc/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/drpc", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/drpc", diff --git a/packages/drpc/src/models/ValidRequest.ts b/packages/drpc/src/models/ValidRequest.ts index 97f36db0d9..7c2be91bb9 100644 --- a/packages/drpc/src/models/ValidRequest.ts +++ b/packages/drpc/src/models/ValidRequest.ts @@ -4,7 +4,7 @@ import { ValidateBy, ValidationError, buildMessage } from 'class-validator' export function IsValidDrpcRequest(validationOptions?: ValidationOptions): PropertyDecorator { // eslint-disable-next-line @typescript-eslint/no-explicit-any - return function (target: any, propertyKey: string | symbol) { + return (target: any, propertyKey: string | symbol) => { ValidateBy( { name: 'isValidDrpcRequest', @@ -36,6 +36,7 @@ export function IsValidDrpcRequest(validationOptions?: ValidationOptions): Prope } } +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function isValidDrpcRequest(value: any): boolean { if (typeof value !== 'object' || value === null || Array.isArray(value)) { return false diff --git a/packages/drpc/src/models/ValidResponse.ts b/packages/drpc/src/models/ValidResponse.ts index 4ca51890d8..83dadc9905 100644 --- a/packages/drpc/src/models/ValidResponse.ts +++ b/packages/drpc/src/models/ValidResponse.ts @@ -4,7 +4,7 @@ import { ValidateBy, ValidationError, buildMessage } from 'class-validator' export function IsValidDrpcResponse(validationOptions?: ValidationOptions): PropertyDecorator { // eslint-disable-next-line @typescript-eslint/no-explicit-any - return function (target: any, propertyKey: string | symbol) { + return (target: any, propertyKey: string | symbol) => { ValidateBy( { name: 'isValidDrpcResponse', @@ -36,6 +36,7 @@ export function IsValidDrpcResponse(validationOptions?: ValidationOptions): Prop } } +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function isValidDrpcResponse(value: any): boolean { // Check if value is an object if (typeof value !== 'object' || value === null) { @@ -62,6 +63,7 @@ export function isValidDrpcResponse(value: any): boolean { return false } +// eslint-disable-next-line @typescript-eslint/no-explicit-any function isValidDrpcResponseError(error: any): boolean { return typeof error === 'object' && error !== null && 'code' in error && 'message' in error } diff --git a/packages/indy-sdk-to-askar-migration/package.json b/packages/indy-sdk-to-askar-migration/package.json index 7a1a472cb4..f4f61e6599 100644 --- a/packages/indy-sdk-to-askar-migration/package.json +++ b/packages/indy-sdk-to-askar-migration/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/indy-sdk-to-askar-migration", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/indy-sdk-to-askar-migration", diff --git a/packages/indy-vdr/package.json b/packages/indy-vdr/package.json index e00eabcc50..f466d6df11 100644 --- a/packages/indy-vdr/package.json +++ b/packages/indy-vdr/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/indy-vdr", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/indy-vdr", diff --git a/packages/node/package.json b/packages/node/package.json index fe1ddca3f4..efb960e0a9 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/node", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/node", diff --git a/packages/openid4vc/package.json b/packages/openid4vc/package.json index 2fb1379ee1..964363179e 100644 --- a/packages/openid4vc/package.json +++ b/packages/openid4vc/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/openid4vc", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/openid4vc", diff --git a/packages/question-answer/package.json b/packages/question-answer/package.json index 1f45d92b70..91d0a072bc 100644 --- a/packages/question-answer/package.json +++ b/packages/question-answer/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/question-answer", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/question-answer", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index aadcd6a2f1..da0686327a 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/react-native", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/react-native", diff --git a/packages/tenants/package.json b/packages/tenants/package.json index 2ef88e3a58..8e4290ab5f 100644 --- a/packages/tenants/package.json +++ b/packages/tenants/package.json @@ -1,15 +1,15 @@ { "name": "@credo-ts/tenants", - "main": "build/index", + "main": "src/index", "types": "src/index", "version": "0.5.6", "files": [ - "!src/**/__tests__", - "src", "build" ], "license": "Apache-2.0", "publishConfig": { + "main": "build/index", + "types": "build/index", "access": "public" }, "homepage": "https://github.com/openwallet-foundation/credo-ts/tree/main/packages/tenants", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 05bf85112a..2a6ccdd876 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,11 +48,11 @@ importers: specifier: ^8.5.4 version: 8.5.10 '@typescript-eslint/eslint-plugin': - specifier: ^5.48.1 - version: 5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint@8.57.0)(typescript@5.5.2) + specifier: ^7.14.1 + version: 7.14.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint@8.57.0)(typescript@5.5.2) '@typescript-eslint/parser': - specifier: ^5.48.1 - version: 5.62.0(eslint@8.57.0)(typescript@5.5.2) + specifier: ^7.14.1 + version: 7.14.1(eslint@8.57.0)(typescript@5.5.2) bn.js: specifier: ^5.2.1 version: 5.2.1 @@ -67,10 +67,10 @@ importers: version: 8.10.0(eslint@8.57.0) eslint-import-resolver-typescript: specifier: ^3.5.3 - version: 3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) + version: 3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) eslint-plugin-import: specifier: ^2.23.4 - version: 2.29.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + version: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) eslint-plugin-prettier: specifier: ^4.2.1 version: 4.2.1(eslint-config-prettier@8.10.0(eslint@8.57.0))(eslint@8.57.0)(prettier@2.8.8) @@ -95,9 +95,6 @@ importers: ts-node: specifier: ^10.0.0 version: 10.9.2(@types/node@18.18.8)(typescript@5.5.2) - tsconfig-paths: - specifier: ^4.1.2 - version: 4.2.0 tsyringe: specifier: ^4.8.0 version: 4.8.0 @@ -2590,63 +2587,63 @@ packages: '@types/yargs@17.0.32': resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} - '@typescript-eslint/eslint-plugin@5.62.0': - resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/eslint-plugin@7.14.1': + resolution: {integrity: sha512-aAJd6bIf2vvQRjUG3ZkNXkmBpN+J7Wd0mfQiiVCJMu9Z5GcZZdcc0j8XwN/BM97Fl7e3SkTXODSk4VehUv7CGw==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + '@typescript-eslint/parser': ^7.0.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/parser@5.62.0': - resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/parser@7.14.1': + resolution: {integrity: sha512-8lKUOebNLcR0D7RvlcloOacTOWzOqemWEWkKSVpMZVF/XVcwjPR+3MD08QzbW9TCGJ+DwIc6zUSGZ9vd8cO1IA==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/scope-manager@5.62.0': - resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/scope-manager@7.14.1': + resolution: {integrity: sha512-gPrFSsoYcsffYXTOZ+hT7fyJr95rdVe4kGVX1ps/dJ+DfmlnjFN/GcMxXcVkeHDKqsq6uAcVaQaIi3cFffmAbA==} + engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/type-utils@5.62.0': - resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/type-utils@7.14.1': + resolution: {integrity: sha512-/MzmgNd3nnbDbOi3LfasXWWe292+iuo+umJ0bCCMCPc1jLO/z2BQmWUUUXvXLbrQey/JgzdF/OV+I5bzEGwJkQ==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: '*' + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/types@5.62.0': - resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/types@7.14.1': + resolution: {integrity: sha512-mL7zNEOQybo5R3AavY+Am7KLv8BorIv7HCYS5rKoNZKQD9tsfGUpO4KdAn3sSUvTiS4PQkr2+K0KJbxj8H9NDg==} + engines: {node: ^18.18.0 || >=20.0.0} - '@typescript-eslint/typescript-estree@5.62.0': - resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/typescript-estree@7.14.1': + resolution: {integrity: sha512-k5d0VuxViE2ulIO6FbxxSZaxqDVUyMbXcidC8rHvii0I56XZPv8cq+EhMns+d/EVIL41sMXqRbK3D10Oza1bbA==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true - '@typescript-eslint/utils@5.62.0': - resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/utils@7.14.1': + resolution: {integrity: sha512-CMmVVELns3nak3cpJhZosDkm63n+DwBlDX8g0k4QUa9BMnF+lH2lr3d130M1Zt1xxmB3LLk3NV7KQCq86ZBBhQ==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^8.56.0 - '@typescript-eslint/visitor-keys@5.62.0': - resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@typescript-eslint/visitor-keys@7.14.1': + resolution: {integrity: sha512-Crb+F75U1JAEtBeQGxSKwI60hZmmzaqA3z9sYsVm8X7W5cwLEm5bRe0/uXS6+MR/y8CVpKSR/ontIAIEPFcEkA==} + engines: {node: ^18.18.0 || >=20.0.0} '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -3797,10 +3794,6 @@ packages: eslint-plugin-workspaces@0.8.0: resolution: {integrity: sha512-8BhKZaGFpl0xAVo7KHaWffaBvvroaOeLuqLkVsMNZvMaN6ZHKYx7QZoaXC/Y299tG3wvN6v7hu27VBHmyg4q4g==} - eslint-scope@5.1.1: - resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} - engines: {node: '>=8.0.0'} - eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5413,9 +5406,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - natural-compare-lite@1.4.0: - resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} - natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -6607,6 +6597,12 @@ packages: resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} engines: {node: '>=8'} + ts-api-utils@1.3.0: + resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} @@ -6654,10 +6650,6 @@ packages: tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} - tsconfig-paths@4.2.0: - resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} - engines: {node: '>=6'} - tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} @@ -6668,12 +6660,6 @@ packages: resolution: {integrity: sha512-oDWuGVONxhVEBtschLf2cs/Jy8i7h1T+CpdkTNWQgdAF7DhRo2G8vMCgILKe7ojdEkLhICWgI1LYSSKaJsRgcw==} engines: {node: '>=16'} - tsutils@3.21.0: - resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} - engines: {node: '>= 6'} - peerDependencies: - typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' - tsyringe@4.8.0: resolution: {integrity: sha512-YB1FG+axdxADa3ncEtRnQCFq/M0lALGLxSZeVNbTU8NqhOVc51nnv2CISTcvc1kyv6EGPtXVr0v6lWeDxiijOA==} engines: {node: '>= 6.0.0'} @@ -10094,30 +10080,30 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint@8.57.0)(typescript@5.5.2)': + '@typescript-eslint/eslint-plugin@7.14.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint@8.57.0)(typescript@5.5.2)': dependencies: '@eslint-community/regexpp': 4.10.1 - '@typescript-eslint/parser': 5.62.0(eslint@8.57.0)(typescript@5.5.2) - '@typescript-eslint/scope-manager': 5.62.0 - '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.0)(typescript@5.5.2) - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.5.2) - debug: 4.3.5 + '@typescript-eslint/parser': 7.14.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/scope-manager': 7.14.1 + '@typescript-eslint/type-utils': 7.14.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/utils': 7.14.1(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/visitor-keys': 7.14.1 eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.3.1 - natural-compare-lite: 1.4.0 - semver: 7.6.2 - tsutils: 3.21.0(typescript@5.5.2) + natural-compare: 1.4.0 + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: typescript: 5.5.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2)': + '@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2)': dependencies: - '@typescript-eslint/scope-manager': 5.62.0 - '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) + '@typescript-eslint/scope-manager': 7.14.1 + '@typescript-eslint/types': 7.14.1 + '@typescript-eslint/typescript-estree': 7.14.1(typescript@5.5.2) + '@typescript-eslint/visitor-keys': 7.14.1 debug: 4.3.5 eslint: 8.57.0 optionalDependencies: @@ -10125,57 +10111,54 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@5.62.0': + '@typescript-eslint/scope-manager@7.14.1': dependencies: - '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/visitor-keys': 5.62.0 + '@typescript-eslint/types': 7.14.1 + '@typescript-eslint/visitor-keys': 7.14.1 - '@typescript-eslint/type-utils@5.62.0(eslint@8.57.0)(typescript@5.5.2)': + '@typescript-eslint/type-utils@7.14.1(eslint@8.57.0)(typescript@5.5.2)': dependencies: - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) - '@typescript-eslint/utils': 5.62.0(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/typescript-estree': 7.14.1(typescript@5.5.2) + '@typescript-eslint/utils': 7.14.1(eslint@8.57.0)(typescript@5.5.2) debug: 4.3.5 eslint: 8.57.0 - tsutils: 3.21.0(typescript@5.5.2) + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: typescript: 5.5.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/types@5.62.0': {} + '@typescript-eslint/types@7.14.1': {} - '@typescript-eslint/typescript-estree@5.62.0(typescript@5.5.2)': + '@typescript-eslint/typescript-estree@7.14.1(typescript@5.5.2)': dependencies: - '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/visitor-keys': 5.62.0 + '@typescript-eslint/types': 7.14.1 + '@typescript-eslint/visitor-keys': 7.14.1 debug: 4.3.5 globby: 11.1.0 is-glob: 4.0.3 + minimatch: 9.0.4 semver: 7.6.2 - tsutils: 3.21.0(typescript@5.5.2) + ts-api-utils: 1.3.0(typescript@5.5.2) optionalDependencies: typescript: 5.5.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.62.0(eslint@8.57.0)(typescript@5.5.2)': + '@typescript-eslint/utils@7.14.1(eslint@8.57.0)(typescript@5.5.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.8 - '@typescript-eslint/scope-manager': 5.62.0 - '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) + '@typescript-eslint/scope-manager': 7.14.1 + '@typescript-eslint/types': 7.14.1 + '@typescript-eslint/typescript-estree': 7.14.1(typescript@5.5.2) eslint: 8.57.0 - eslint-scope: 5.1.1 - semver: 7.6.2 transitivePeerDependencies: - supports-color - typescript - '@typescript-eslint/visitor-keys@5.62.0': + '@typescript-eslint/visitor-keys@7.14.1': dependencies: - '@typescript-eslint/types': 5.62.0 + '@typescript-eslint/types': 7.14.1 eslint-visitor-keys: 3.4.3 '@ungap/structured-clone@1.2.0': {} @@ -11469,13 +11452,13 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0): + eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0): dependencies: debug: 4.3.5 enhanced-resolve: 5.17.0 eslint: 8.57.0 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0) fast-glob: 3.3.2 get-tsconfig: 4.7.5 is-core-module: 2.13.1 @@ -11486,18 +11469,18 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.8.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): + eslint-module-utils@2.8.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/parser': 7.14.1(eslint@8.57.0)(typescript@5.5.2) eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -11507,7 +11490,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@5.62.0(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) + eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.5.2))(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0) hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 @@ -11518,7 +11501,7 @@ snapshots: semver: 6.3.1 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.57.0)(typescript@5.5.2) + '@typescript-eslint/parser': 7.14.1(eslint@8.57.0)(typescript@5.5.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack @@ -11536,11 +11519,6 @@ snapshots: dependencies: find-workspaces: 0.1.0 - eslint-scope@5.1.1: - dependencies: - esrecurse: 4.3.0 - estraverse: 4.3.0 - eslint-scope@7.2.2: dependencies: esrecurse: 4.3.0 @@ -13658,7 +13636,6 @@ snapshots: minimatch@9.0.4: dependencies: brace-expansion: 2.0.1 - optional: true minimist-options@4.1.0: dependencies: @@ -13746,8 +13723,6 @@ snapshots: nanoid@3.3.7: {} - natural-compare-lite@1.4.0: {} - natural-compare@1.4.0: {} ncp@2.0.0: @@ -15098,6 +15073,10 @@ snapshots: trim-newlines@3.0.1: {} + ts-api-utils@1.3.0(typescript@5.5.2): + dependencies: + typescript: 5.5.2 + ts-interface-checker@0.1.13: optional: true @@ -15147,23 +15126,12 @@ snapshots: minimist: 1.2.8 strip-bom: 3.0.0 - tsconfig-paths@4.2.0: - dependencies: - json5: 2.2.3 - minimist: 1.2.8 - strip-bom: 3.0.0 - tslib@1.14.1: {} tslib@2.6.3: {} tslog@4.9.3: {} - tsutils@3.21.0(typescript@5.5.2): - dependencies: - tslib: 1.14.1 - typescript: 5.5.2 - tsyringe@4.8.0: dependencies: tslib: 1.14.1 diff --git a/tsconfig.json b/tsconfig.json index 8ba0dbb553..9b5c56eefa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "./tsconfig.build.json", "ts-node": { - "require": ["tsconfig-paths/register"], "files": true }, "compilerOptions": { diff --git a/tsconfig.test.json b/tsconfig.test.json index 3db7a36004..e24fac40b6 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,8 +1,5 @@ { "extends": "./tsconfig.build.json", - "ts-node": { - "require": ["tsconfig-paths/register"] - }, "compilerOptions": { "baseUrl": ".", "paths": {