diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 6024b0341..045a85887 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -5,7 +5,7 @@ runs: steps: - uses: actions/setup-node@v3 with: - node-version: 16.14 + node-version: 18.18 # First we cache the rush project, to ensure we don't build multiple times, nor we download more dependencies than needed - name: Cache Rush project diff --git a/.github/workflows/re_test-integration-prepare.yml b/.github/workflows/re_test-integration-prepare.yml index 3da507bb1..7b6b9abb5 100644 --- a/.github/workflows/re_test-integration-prepare.yml +++ b/.github/workflows/re_test-integration-prepare.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 16.14 + node-version: 18.18 # If this was triggered by a /integration command, check out merge commit - name: Fork based /integration checkout diff --git a/.github/workflows/wf_publish-docs.yml b/.github/workflows/wf_publish-docs.yml index f9ad0be82..a651d5746 100644 --- a/.github/workflows/wf_publish-docs.yml +++ b/.github/workflows/wf_publish-docs.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 18.18 cache: npm cache-dependency-path: website/package-lock.json diff --git a/.github/workflows/wf_publish-npm.yml b/.github/workflows/wf_publish-npm.yml index 17bb6ca2d..4c74e3729 100644 --- a/.github/workflows/wf_publish-npm.yml +++ b/.github/workflows/wf_publish-npm.yml @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.18 registry-url: https://registry.npmjs.org/ - name: Rush Update diff --git a/.nvmrc b/.nvmrc index 53d838af2..c32828c2c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/gallium +lts/hydrogen \ No newline at end of file diff --git a/common/changes/@boostercloud/framework-core/upgrade-node-18_2023-10-03-21-51.json b/common/changes/@boostercloud/framework-core/upgrade-node-18_2023-10-03-21-51.json new file mode 100644 index 000000000..4d01ff46f --- /dev/null +++ b/common/changes/@boostercloud/framework-core/upgrade-node-18_2023-10-03-21-51.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@boostercloud/framework-core", + "comment": "Upgraded for Node18 support", + "type": "minor" + } + ], + "packageName": "@boostercloud/framework-core" +} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d7f9069e8..5c9776acb 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8,11 +8,11 @@ importers: ../../packages/application-tester: specifiers: '@apollo/client': 3.7.13 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/jsonwebtoken': 9.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/ws': 8.5.4 '@typescript-eslint/eslint-plugin': ^5.0.0 @@ -51,7 +51,7 @@ importers: devDependencies: '@boostercloud/eslint-config': link:../../tools/eslint-config '@types/jsonwebtoken': 9.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/ws': 8.5.4 '@typescript-eslint/eslint-plugin': 5.59.1_lhpu32umveoeq4t2qgxwjpp3k4 '@typescript-eslint/parser': 5.59.1_cfyxzphvxk6hfgn64jwer55l5m @@ -70,10 +70,10 @@ importers: ../../packages/cli: specifiers: - '@boostercloud/application-tester': workspace:^1.19.0 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-core': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/application-tester': workspace:^1.19.1 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-core': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@oclif/command': ^1.8 '@oclif/config': ^1.18 @@ -91,7 +91,7 @@ importers: '@types/inquirer': ^6.5.0 '@types/mocha': 10.0.1 '@types/mustache': 4.1.0 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/rewire': ^2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -135,7 +135,7 @@ importers: '@oclif/config': 1.18.8 '@oclif/errors': 1.3.6 '@oclif/parser': 3.8.10 - '@oclif/plugin-help': 5.2.9_t4lrjbt3sxauai4t5o275zsepa + '@oclif/plugin-help': 5.2.9_xpss65pzqvfdcnzjlkstkx6toy chalk: 2.4.2 child-process-promise: 2.2.1 execa: 2.1.0 @@ -151,7 +151,7 @@ importers: '@boostercloud/application-tester': link:../application-tester '@boostercloud/eslint-config': link:../../tools/eslint-config '@oclif/dev-cli': 1.26.10 - '@oclif/test': 2.3.17_t4lrjbt3sxauai4t5o275zsepa + '@oclif/test': 2.3.17_xpss65pzqvfdcnzjlkstkx6toy '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 '@types/child-process-promise': 2.2.2 @@ -161,7 +161,7 @@ importers: '@types/inquirer': 6.5.0 '@types/mocha': 10.0.1 '@types/mustache': 4.1.0 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/rewire': 2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -184,19 +184,19 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-common-helpers: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 '@types/child-process-promise': ^2.2.1 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/rewire': ^2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -232,7 +232,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/child-process-promise': 2.2.2 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/rewire': 2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -253,15 +253,15 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-core: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 - '@boostercloud/metadata-booster': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 + '@boostercloud/metadata-booster': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 @@ -269,7 +269,7 @@ importers: '@types/inflected': 1.1.29 '@types/jsonwebtoken': 9.0.1 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/validator': 13.1.3 @@ -328,7 +328,7 @@ importers: '@types/inflected': 1.1.29 '@types/jsonwebtoken': 9.0.1 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/validator': 13.1.3 @@ -352,25 +352,25 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-integration-tests: specifiers: '@apollo/client': 3.7.13 - '@boostercloud/application-tester': workspace:^1.19.0 - '@boostercloud/cli': workspace:^1.19.0 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-core': workspace:^1.19.0 - '@boostercloud/framework-provider-aws': workspace:^1.19.0 - '@boostercloud/framework-provider-aws-infrastructure': workspace:^1.19.0 - '@boostercloud/framework-provider-azure': workspace:^1.19.0 - '@boostercloud/framework-provider-azure-infrastructure': workspace:^1.19.0 - '@boostercloud/framework-provider-local': workspace:^1.19.0 - '@boostercloud/framework-provider-local-infrastructure': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 - '@boostercloud/metadata-booster': workspace:^1.19.0 + '@boostercloud/application-tester': workspace:^1.19.1 + '@boostercloud/cli': workspace:^1.19.1 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-core': workspace:^1.19.1 + '@boostercloud/framework-provider-aws': workspace:^1.19.1 + '@boostercloud/framework-provider-aws-infrastructure': workspace:^1.19.1 + '@boostercloud/framework-provider-azure': workspace:^1.19.1 + '@boostercloud/framework-provider-azure-infrastructure': workspace:^1.19.1 + '@boostercloud/framework-provider-local': workspace:^1.19.1 + '@boostercloud/framework-provider-local-infrastructure': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 + '@boostercloud/metadata-booster': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/aws-lambda': 8.10.48 '@types/chai': 4.2.18 @@ -381,7 +381,7 @@ importers: '@types/jsonwebtoken': 9.0.1 '@types/mocha': 10.0.1 '@types/nedb': ^1.8.12 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@typescript-eslint/eslint-plugin': ^5.0.0 @@ -452,7 +452,7 @@ importers: '@types/jsonwebtoken': 9.0.1 '@types/mocha': 10.0.1 '@types/nedb': 1.8.13 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@typescript-eslint/eslint-plugin': 5.59.1_lhpu32umveoeq4t2qgxwjpp3k4 @@ -486,15 +486,15 @@ importers: serverless-artillery: 0.5.2 sinon: 9.2.3 subscriptions-transport-ws: 0.11.0_graphql@16.6.0 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy ttypescript: 1.5.15_6oasmw356qmm23djlsjgkwvrtm typescript: 4.7.4 ../../packages/framework-provider-aws: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/aws-lambda': 8.10.48 '@types/chai': 4.2.18 @@ -502,7 +502,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/rewire': ^2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -542,7 +542,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/rewire': 2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -565,7 +565,7 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 velocityjs: 2.0.6 @@ -588,10 +588,10 @@ importers: '@aws-cdk/core': ^1.170.0 '@aws-cdk/custom-resources': ^1.170.0 '@aws-cdk/cx-api': ^1.170.0 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-provider-aws': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-provider-aws': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/archiver': 5.1.0 '@types/aws-lambda': 8.10.48 @@ -600,7 +600,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/rewire': ^2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -673,7 +673,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/rewire': 2.5.28 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -694,25 +694,25 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 velocityjs: 2.0.6 ../../packages/framework-provider-azure: specifiers: - '@azure/cosmos': ^3.17.0 + '@azure/cosmos': ^4.0.0 '@azure/functions': ^1.2.2 '@azure/identity': ~2.1.0 '@azure/web-pubsub': ~1.1.0 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@typescript-eslint/eslint-plugin': ^5.0.0 @@ -735,7 +735,7 @@ importers: tslib: ^2.4.0 typescript: 4.7.4 dependencies: - '@azure/cosmos': 3.17.3 + '@azure/cosmos': 4.0.0 '@azure/functions': 1.2.3 '@azure/identity': 2.1.0 '@azure/web-pubsub': 1.1.1 @@ -749,7 +749,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@typescript-eslint/eslint-plugin': 5.59.1_lhpu32umveoeq4t2qgxwjpp3k4 @@ -768,20 +768,20 @@ importers: rimraf: 5.0.0 sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-provider-azure-infrastructure: specifiers: '@azure/arm-appservice': ^13.0.0 '@azure/arm-resources': ^5.0.1 - '@azure/cosmos': ^3.17.0 + '@azure/cosmos': ^4.0.0 '@azure/identity': ~2.1.0 - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-core': workspace:^1.19.0 - '@boostercloud/framework-provider-azure': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-core': workspace:^1.19.1 + '@boostercloud/framework-provider-azure': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@cdktf/provider-azurerm': 5.0.13 '@cdktf/provider-time': 5.0.0 '@effect-ts/core': ^0.60.4 @@ -793,7 +793,7 @@ importers: '@types/mocha': 10.0.1 '@types/mustache': 4.1.0 '@types/needle': ^2.0.4 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/uuid': 8.3.0 @@ -831,7 +831,7 @@ importers: dependencies: '@azure/arm-appservice': 13.0.3 '@azure/arm-resources': 5.2.0 - '@azure/cosmos': 3.17.3 + '@azure/cosmos': 4.0.0 '@azure/identity': 2.1.0 '@boostercloud/framework-common-helpers': link:../framework-common-helpers '@boostercloud/framework-core': link:../framework-core @@ -866,7 +866,7 @@ importers: '@types/fs-extra': 9.0.13 '@types/mocha': 10.0.1 '@types/mustache': 4.1.0 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/uuid': 8.3.0 @@ -883,14 +883,14 @@ importers: prettier: 2.3.0 rimraf: 5.0.0 sinon: 9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-provider-local: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 @@ -898,7 +898,7 @@ importers: '@types/faker': 5.1.5 '@types/mocha': 10.0.1 '@types/nedb': ^1.8.12 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/sinon-express-mock': ^1.3.9 @@ -941,7 +941,7 @@ importers: '@types/express': 4.17.17 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/sinon-express-mock': 1.3.9 @@ -964,15 +964,15 @@ importers: sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 sinon-express-mock: 2.2.1_sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-provider-local-infrastructure: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/framework-common-helpers': workspace:^1.19.0 - '@boostercloud/framework-provider-local': workspace:^1.19.0 - '@boostercloud/framework-types': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/framework-common-helpers': workspace:^1.19.1 + '@boostercloud/framework-provider-local': workspace:^1.19.1 + '@boostercloud/framework-types': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 @@ -980,7 +980,7 @@ importers: '@types/express': ^4.17.13 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/node-schedule': ^1.3.2 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -1025,7 +1025,7 @@ importers: '@types/express': 4.17.17 '@types/faker': 5.1.5 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/node-schedule': 1.3.2 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 @@ -1047,20 +1047,20 @@ importers: sinon: 9.2.3 sinon-chai: 3.5.0_chai@4.2.0+sinon@9.2.3 sinon-express-mock: 2.2.1_sinon@9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 ../../packages/framework-types: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 - '@boostercloud/metadata-booster': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 + '@boostercloud/metadata-booster': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 '@effect-ts/node': ~0.39.0 '@types/chai': 4.2.18 '@types/chai-as-promised': 7.1.4 '@types/graphql': ^14.5.0 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/uuid': 8.3.0 @@ -1096,7 +1096,7 @@ importers: '@types/chai-as-promised': 7.1.4 '@types/graphql': 14.5.0 '@types/mocha': 10.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 '@types/sinon-chai': 3.2.5 '@types/uuid': 8.3.0 @@ -1121,9 +1121,9 @@ importers: ../../packages/metadata-booster: specifiers: - '@boostercloud/eslint-config': workspace:^1.19.0 + '@boostercloud/eslint-config': workspace:^1.19.1 '@effect-ts/core': ^0.60.4 - '@types/node': 16.11.7 + '@types/node': ^18.15.3 '@typescript-eslint/eslint-plugin': ^5.0.0 '@typescript-eslint/parser': ^5.0.0 eslint: ^8.23.1 @@ -1147,7 +1147,7 @@ importers: tslib: 2.5.0 devDependencies: '@boostercloud/eslint-config': link:../../tools/eslint-config - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@typescript-eslint/eslint-plugin': 5.59.1_lhpu32umveoeq4t2qgxwjpp3k4 '@typescript-eslint/parser': 5.59.1_cfyxzphvxk6hfgn64jwer55l5m eslint: 8.39.0 @@ -1158,7 +1158,7 @@ importers: prettier: 2.3.0 rimraf: 5.0.0 sinon: 9.2.3 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy ttypescript: 1.5.15_6oasmw356qmm23djlsjgkwvrtm typescript: 4.7.4 @@ -1311,9 +1311,9 @@ packages: dependencies: '@aws-cdk/aws-certificatemanager': 1.199.0_aklsbzsp6i2n6pzp4sxy6hufne '@aws-cdk/aws-cloudwatch': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi - '@aws-cdk/aws-cognito': 1.199.0_hzslyw5ts33yz4we44vxrnbbrm + '@aws-cdk/aws-cognito': 1.199.0_4ejvrq2frkzailkr27vdockoii '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 - '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_74oizvoelbxgex3gbujl2xzm54 + '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_hteww72hqzoereozif3gblcodi '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q '@aws-cdk/aws-logs': 1.199.0_tqi77pcvvujtgay5663ykqn7wy @@ -1395,7 +1395,7 @@ packages: '@aws-cdk/core': 1.199.0 constructs: ^3.3.69 dependencies: - '@aws-cdk/aws-autoscaling': 1.199.0_6ioy6wqnsnl357btnhiggvri2y + '@aws-cdk/aws-autoscaling': 1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-kms': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q @@ -1406,7 +1406,7 @@ packages: constructs: 3.4.293 dev: false - /@aws-cdk/aws-autoscaling/1.199.0_6ioy6wqnsnl357btnhiggvri2y: + /@aws-cdk/aws-autoscaling/1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu: resolution: {integrity: sha512-JSwF4UC3JB1KpIQtLUhQytrhSBeEBxe20tLZy6lsdsULtJRz/rbz1Fm4GGUiqefX3gd9qcQBL5pwNlHhjGjZbg==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -1418,7 +1418,7 @@ packages: '@aws-cdk/aws-cloudwatch': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 '@aws-cdk/aws-elasticloadbalancing': 1.199.0_ehdkigggl2baqdi4l6p7upw4f4 - '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_74oizvoelbxgex3gbujl2xzm54 + '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_hteww72hqzoereozif3gblcodi '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-sns': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm @@ -1429,7 +1429,6 @@ packages: - '@aws-cdk/aws-lambda' - '@aws-cdk/aws-logs' - '@aws-cdk/aws-s3' - - '@aws-cdk/custom-resources' - '@aws-cdk/cx-api' dev: false @@ -1543,7 +1542,7 @@ packages: '@aws-cdk/aws-logs': 1.199.0_tqi77pcvvujtgay5663ykqn7wy '@aws-cdk/aws-s3': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/aws-s3-assets': 1.199.0_tqi77pcvvujtgay5663ykqn7wy - '@aws-cdk/aws-secretsmanager': 1.199.0_uxypjio4ejtfqgxognd5fibs2q + '@aws-cdk/aws-secretsmanager': 1.199.0_maqnqwhn36fygp3z4rdnivbxii '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm '@aws-cdk/region-info': 1.199.0 constructs: 3.4.293 @@ -1621,7 +1620,7 @@ packages: constructs: 3.4.293 dev: false - /@aws-cdk/aws-cognito/1.199.0_hzslyw5ts33yz4we44vxrnbbrm: + /@aws-cdk/aws-cognito/1.199.0_4ejvrq2frkzailkr27vdockoii: resolution: {integrity: sha512-keHKhvJmAGcIbaAK/liyeI6HYaK9Dm4IhP+gXfHjMpr2Cm0Rd5WhNJtNsekVoa9m3w0agDFW8qOMDo6O2gVTzA==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -1631,18 +1630,12 @@ packages: '@aws-cdk/custom-resources': 1.199.0 constructs: ^3.3.69 dependencies: - '@aws-cdk/aws-certificatemanager': 1.199.0_aklsbzsp6i2n6pzp4sxy6hufne '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu - '@aws-cdk/aws-kms': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm '@aws-cdk/custom-resources': 1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu constructs: 3.4.293 punycode: 2.3.0 - transitivePeerDependencies: - - '@aws-cdk/aws-ec2' - - '@aws-cdk/aws-logs' - - '@aws-cdk/cx-api' dev: false bundledDependencies: - punycode @@ -1748,7 +1741,7 @@ packages: constructs: ^3.3.69 dependencies: '@aws-cdk/aws-applicationautoscaling': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi - '@aws-cdk/aws-autoscaling': 1.199.0_6ioy6wqnsnl357btnhiggvri2y + '@aws-cdk/aws-autoscaling': 1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu '@aws-cdk/aws-autoscaling-hooktargets': 1.199.0_wiaz33wtwefkv5d3nn7hbhuhmu '@aws-cdk/aws-certificatemanager': 1.199.0_aklsbzsp6i2n6pzp4sxy6hufne '@aws-cdk/aws-cloudwatch': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi @@ -1756,17 +1749,17 @@ packages: '@aws-cdk/aws-ecr': 1.199.0_5lpmbvgigeswzbugyujlevszcq '@aws-cdk/aws-ecr-assets': 1.199.0_u6wgonek7tj4xuwvr3d2ei6crq '@aws-cdk/aws-elasticloadbalancing': 1.199.0_ehdkigggl2baqdi4l6p7upw4f4 - '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_74oizvoelbxgex3gbujl2xzm54 + '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_hteww72hqzoereozif3gblcodi '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-kms': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q '@aws-cdk/aws-logs': 1.199.0_tqi77pcvvujtgay5663ykqn7wy '@aws-cdk/aws-route53': 1.199.0_ytf4bxsrhewrt5j5jnuzynemxy - '@aws-cdk/aws-route53-targets': 1.199.0_6qn3q4quwxpkjgl3z2r2rmaqqi + '@aws-cdk/aws-route53-targets': 1.199.0_2ap25t3f2ak5h2qxfnvuyuxrga '@aws-cdk/aws-s3': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/aws-s3-assets': 1.199.0_tqi77pcvvujtgay5663ykqn7wy - '@aws-cdk/aws-secretsmanager': 1.199.0_uxypjio4ejtfqgxognd5fibs2q - '@aws-cdk/aws-servicediscovery': 1.199.0_4axszbdsnc7kzhsa3r5g56z4bu + '@aws-cdk/aws-secretsmanager': 1.199.0_maqnqwhn36fygp3z4rdnivbxii + '@aws-cdk/aws-servicediscovery': 1.199.0_mcuiip26demcvhycudknexqcta '@aws-cdk/aws-sns': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/aws-sqs': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/aws-ssm': 1.199.0_iumdymv27iwprkm3rzoqxlpuia @@ -1817,7 +1810,7 @@ packages: constructs: 3.4.293 dev: false - /@aws-cdk/aws-elasticloadbalancingv2/1.199.0_74oizvoelbxgex3gbujl2xzm54: + /@aws-cdk/aws-elasticloadbalancingv2/1.199.0_hteww72hqzoereozif3gblcodi: resolution: {integrity: sha512-cb8dYlmqEjYRORTAu9Y8Xaiw3cZ0RSmCqiFL8Mj+IgxANDg9QdaMxdQu8QPWnC7+uVFWkbnD6G6NRL7FAPgnIA==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -1828,22 +1821,14 @@ packages: '@aws-cdk/cx-api': 1.199.0 constructs: ^3.3.69 dependencies: - '@aws-cdk/aws-certificatemanager': 1.199.0_aklsbzsp6i2n6pzp4sxy6hufne - '@aws-cdk/aws-cloudwatch': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi - '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q - '@aws-cdk/aws-route53': 1.199.0_ytf4bxsrhewrt5j5jnuzynemxy '@aws-cdk/aws-s3': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/cloud-assembly-schema': 1.199.0 '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm '@aws-cdk/cx-api': 1.199.0 '@aws-cdk/region-info': 1.199.0 constructs: 3.4.293 - transitivePeerDependencies: - - '@aws-cdk/assets' - - '@aws-cdk/aws-logs' - - '@aws-cdk/custom-resources' dev: false /@aws-cdk/aws-events-targets/1.199.0_efa47vukfsbcitdg2oy6em6xpe: @@ -1860,7 +1845,7 @@ packages: constructs: ^3.3.69 dependencies: '@aws-cdk/aws-apigateway': 1.199.0_6ioy6wqnsnl357btnhiggvri2y - '@aws-cdk/aws-autoscaling': 1.199.0_6ioy6wqnsnl357btnhiggvri2y + '@aws-cdk/aws-autoscaling': 1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu '@aws-cdk/aws-codebuild': 1.199.0_6aw2ag5odq3zb2mttwz3fxe3hu '@aws-cdk/aws-codepipeline': 1.199.0_z4s7qll3yvb46zglrdwf6455hq '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 @@ -2011,7 +1996,7 @@ packages: '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q '@aws-cdk/aws-s3': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/aws-s3-notifications': 1.199.0_fufarp47blk4okwshjegj2wjg4 - '@aws-cdk/aws-secretsmanager': 1.199.0_uxypjio4ejtfqgxognd5fibs2q + '@aws-cdk/aws-secretsmanager': 1.199.0_maqnqwhn36fygp3z4rdnivbxii '@aws-cdk/aws-sns': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/aws-sns-subscriptions': 1.199.0_x7skkdpav5hf4ncc76dwztyszi '@aws-cdk/aws-sqs': 1.199.0_iumdymv27iwprkm3rzoqxlpuia @@ -2080,7 +2065,7 @@ packages: - '@aws-cdk/aws-s3' dev: false - /@aws-cdk/aws-route53-targets/1.199.0_6qn3q4quwxpkjgl3z2r2rmaqqi: + /@aws-cdk/aws-route53-targets/1.199.0_2ap25t3f2ak5h2qxfnvuyuxrga: resolution: {integrity: sha512-l8cg4zZncQ2JUF4Hd8kvouWYi5y63/2PKU57MY64dUC7wL/VjeEQMRJhehB11rt1OAbp/SNB2f/dnSTcNA8dmA==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -2094,10 +2079,10 @@ packages: dependencies: '@aws-cdk/aws-apigateway': 1.199.0_6ioy6wqnsnl357btnhiggvri2y '@aws-cdk/aws-cloudfront': 1.199.0_74oizvoelbxgex3gbujl2xzm54 - '@aws-cdk/aws-cognito': 1.199.0_hzslyw5ts33yz4we44vxrnbbrm + '@aws-cdk/aws-cognito': 1.199.0_4ejvrq2frkzailkr27vdockoii '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 '@aws-cdk/aws-elasticloadbalancing': 1.199.0_ehdkigggl2baqdi4l6p7upw4f4 - '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_74oizvoelbxgex3gbujl2xzm54 + '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_hteww72hqzoereozif3gblcodi '@aws-cdk/aws-globalaccelerator': 1.199.0_uhmkgheirzwotmxej4ph7fbqla '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-route53': 1.199.0_ytf4bxsrhewrt5j5jnuzynemxy @@ -2106,7 +2091,6 @@ packages: '@aws-cdk/region-info': 1.199.0 constructs: 3.4.293 transitivePeerDependencies: - - '@aws-cdk/assets' - '@aws-cdk/aws-lambda' - '@aws-cdk/aws-logs' - '@aws-cdk/custom-resources' @@ -2236,7 +2220,7 @@ packages: constructs: 3.4.293 dev: false - /@aws-cdk/aws-secretsmanager/1.199.0_uxypjio4ejtfqgxognd5fibs2q: + /@aws-cdk/aws-secretsmanager/1.199.0_maqnqwhn36fygp3z4rdnivbxii: resolution: {integrity: sha512-Dj0+q7I9xRwg1hHowrHb9rxmicDGZVmQixFaFuBdsS5zNfBNdC6WJGWhDddJDZIPclip06fXBm/by4+l4XUpNw==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -2246,15 +2230,21 @@ packages: '@aws-cdk/cx-api': 1.199.0 constructs: ^3.3.69 dependencies: + '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu + '@aws-cdk/aws-kms': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/aws-lambda': 1.199.0_5pbncl2no5vqinyo3n2ekkob5q '@aws-cdk/aws-sam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm '@aws-cdk/cx-api': 1.199.0 constructs: 3.4.293 + transitivePeerDependencies: + - '@aws-cdk/assets' + - '@aws-cdk/aws-logs' + - '@aws-cdk/aws-s3' dev: false - /@aws-cdk/aws-servicediscovery/1.199.0_4axszbdsnc7kzhsa3r5g56z4bu: + /@aws-cdk/aws-servicediscovery/1.199.0_mcuiip26demcvhycudknexqcta: resolution: {integrity: sha512-OSGcZQE5N4ynBFcv54XWSbfunBym5r/hHstpONZkRB+jf9nFEqaVqno9ZgeLU3in5m/QuK781g+dx0r0M0Ao6w==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -2263,12 +2253,11 @@ packages: constructs: ^3.3.69 dependencies: '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 - '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_74oizvoelbxgex3gbujl2xzm54 + '@aws-cdk/aws-elasticloadbalancingv2': 1.199.0_hteww72hqzoereozif3gblcodi '@aws-cdk/aws-route53': 1.199.0_ytf4bxsrhewrt5j5jnuzynemxy '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm constructs: 3.4.293 transitivePeerDependencies: - - '@aws-cdk/assets' - '@aws-cdk/aws-iam' - '@aws-cdk/aws-lambda' - '@aws-cdk/aws-logs' @@ -2620,8 +2609,8 @@ packages: tslib: 2.5.0 dev: false - /@azure/cosmos/3.17.3: - resolution: {integrity: sha512-wBglkQ6Irjv5Vo2iw8fd6eYj60WYRSSg4/0DBkeOP6BwQ4RA91znsOHd6s3qG6UAbNgYuzC9Nnq07vlFFZkHEw==} + /@azure/cosmos/4.0.0: + resolution: {integrity: sha512-/Z27p1+FTkmjmm8jk90zi/HrczPHw2t8WecFnsnTe4xGocWl0Z4clP0YlLUTJPhRLWYa5upwD9rMvKJkS1f1kg==} engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 @@ -3316,7 +3305,7 @@ packages: transitivePeerDependencies: - supports-color - /@oclif/core/2.8.2_t4lrjbt3sxauai4t5o275zsepa: + /@oclif/core/2.8.2_xpss65pzqvfdcnzjlkstkx6toy: resolution: {integrity: sha512-g50NrCdEcFlBfuwZb9RxLmxPNQ9wIaBPOiwbxlGYRkHMnsC6LNHcvVtyDnmndU8qoXrmCOZ6ocSZenOMlG+G1w==} engines: {node: '>=14.0.0'} dependencies: @@ -3344,7 +3333,7 @@ packages: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy tslib: 2.5.0 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -3462,11 +3451,11 @@ packages: - supports-color dev: true - /@oclif/plugin-help/5.2.9_t4lrjbt3sxauai4t5o275zsepa: + /@oclif/plugin-help/5.2.9_xpss65pzqvfdcnzjlkstkx6toy: resolution: {integrity: sha512-0J3oowPURZJ4Dn1p1WpQ46E4+CoV20KTn1cvsNiDl6Hmbw+qoljKQnArJJzNFeZQxWo4R7/S42PrzKJTVYh68Q==} engines: {node: '>=12.0.0'} dependencies: - '@oclif/core': 2.8.2_t4lrjbt3sxauai4t5o275zsepa + '@oclif/core': 2.8.2_xpss65pzqvfdcnzjlkstkx6toy transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -3480,11 +3469,11 @@ packages: deprecated: Deprecated in favor of @oclif/core dev: true - /@oclif/test/2.3.17_t4lrjbt3sxauai4t5o275zsepa: + /@oclif/test/2.3.17_xpss65pzqvfdcnzjlkstkx6toy: resolution: {integrity: sha512-Ph3Gg1n7Sz2JHsoLHNifzwbeDs8kKlBK+JcFikkoH7Fc+FoNXOsEBY6HTF0/8P3SeVK3H3MyBEvGNsGbeClhtg==} engines: {node: '>=12.0.0'} dependencies: - '@oclif/core': 2.8.2_t4lrjbt3sxauai4t5o275zsepa + '@oclif/core': 2.8.2_xpss65pzqvfdcnzjlkstkx6toy fancy-test: 2.0.19 transitivePeerDependencies: - '@swc/core' @@ -3746,14 +3735,14 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/cacheable-request/6.0.3: resolution: {integrity: sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==} dependencies: '@types/http-cache-semantics': 4.0.1 '@types/keyv': 3.1.4 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/responselike': 1.0.0 dev: true @@ -3776,29 +3765,29 @@ packages: /@types/child-process-promise/2.2.2: resolution: {integrity: sha512-4eGTIhKW0jb9DlS81Fgo/UyZ12DMhDhz3Ec8tdHW53l4ubteynNIuy7Z1HNnyHn1jTzXa/o9iX0WoAdiSoDs+Q==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/cli-progress/3.11.0: resolution: {integrity: sha512-XhXhBv1R/q2ahF3BM7qT5HLzJNlIL0wbcGyZVjqOTqAybAnsLisd7gy1UCyIqpL+5Iv6XhlSyzjLCnI2sIdbCg==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/express-serve-static-core/4.17.34: resolution: {integrity: sha512-fvr49XlCGoUj2Pp730AItckfjat4WNb0lb3kfrLWffd+RLeoGAMsq7UOy04PAPtoL01uKwcp6u8nhzpgpDYr3w==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -3818,21 +3807,21 @@ packages: /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/glob/7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/glob/8.1.0: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/graphql/14.5.0: resolution: {integrity: sha512-MOkzsEp1Jk5bXuAsHsUi6BVv0zCO+7/2PTiZMXWDSsMXvNU6w/PLMQT2vHn8hy2i0JqojPz1Sz6rsFjHtsU0lA==} @@ -3865,12 +3854,12 @@ packages: /@types/jsonwebtoken/9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/keyv/3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/lodash/4.14.194: @@ -3897,12 +3886,12 @@ packages: /@types/nedb/1.8.13: resolution: {integrity: sha512-x/aIeHmmiDq1kMzgHvjygxl5RZGzIabFcq2HpRzB3X26AdfPg5Y70EwWrcZM/TuJwNHtWRruD/telSTvPEY6Xw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/needle/2.5.3: resolution: {integrity: sha512-RwgTwMRaedfyCBe5SSWMpm1Yqzc5UPZEMw0eAd09OSyV93nLRj9/evMGZmgFeHKzUOd4xxtHvgtc+rjcBjI1Qg==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: false /@types/nock/11.1.0: @@ -3917,21 +3906,21 @@ packages: /@types/node-fetch/2.6.3: resolution: {integrity: sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 form-data: 3.0.1 /@types/node-schedule/1.3.2: resolution: {integrity: sha512-Y0CqdAr+lCpArT8CJJjJq4U2v8Bb5e7ru2nV/NhDdaptCMCRdOL3Y7tAhen39HluQMaIKWvPbDuiFBUQpg7Srw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/node/10.17.60: resolution: {integrity: sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==} dev: false - /@types/node/16.11.7: - resolution: {integrity: sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==} + /@types/node/18.18.3: + resolution: {integrity: sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==} /@types/normalize-package-data/2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -3946,7 +3935,7 @@ packages: /@types/responselike/1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/rewire/2.5.28: @@ -3960,13 +3949,13 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/serve-static/1.15.1: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 16.11.7 + '@types/node': 18.18.3 /@types/sinon-chai/3.2.5: resolution: {integrity: sha512-bKQqIpew7mmIGNRlxW6Zli/QVyc3zikpGzCa797B/tRnD9OtHvZ/ts8sYXV+Ilj9u3QRaUEM8xrjgd1gwm1BpQ==} @@ -3990,7 +3979,7 @@ packages: /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/uuid/8.3.0: @@ -4004,7 +3993,7 @@ packages: /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 16.11.7 + '@types/node': 18.18.3 dev: true /@types/yoga-layout/1.9.2: @@ -6121,7 +6110,7 @@ packages: '@types/lodash': 4.14.194 '@types/mocha': 10.0.1 '@types/nock': 11.1.0 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 lodash: 4.17.21 mock-stdin: 0.3.1 @@ -6136,7 +6125,7 @@ packages: dependencies: '@types/chai': 4.2.18 '@types/lodash': 4.14.194 - '@types/node': 16.11.7 + '@types/node': 18.18.3 '@types/sinon': 10.0.0 lodash: 4.17.21 mock-stdin: 1.0.0 @@ -10100,7 +10089,7 @@ packages: code-block-writer: 11.0.3 dev: false - /ts-node/10.9.1_t4lrjbt3sxauai4t5o275zsepa: + /ts-node/10.9.1_xpss65pzqvfdcnzjlkstkx6toy: resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -10119,7 +10108,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 16.11.7 + '@types/node': 18.18.3 acorn: 8.8.2 acorn-walk: 8.2.0 arg: 4.1.3 @@ -10161,7 +10150,7 @@ packages: typescript: '>=3.2.2' dependencies: resolve: 1.22.2 - ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa + ts-node: 10.9.1_xpss65pzqvfdcnzjlkstkx6toy typescript: 4.7.4 dev: true diff --git a/packages/application-tester/package.json b/packages/application-tester/package.json index 3010fd4f8..d4c07d7e3 100644 --- a/packages/application-tester/package.json +++ b/packages/application-tester/package.json @@ -31,6 +31,9 @@ "bugs": { "url": "https://github.com/boostercloud/booster/issues" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@apollo/client": "3.7.13", "@boostercloud/framework-types": "workspace:^1.19.1", @@ -53,7 +56,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "3.4.0", "@types/jsonwebtoken": "9.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/ws": "8.5.4", "chai": "4.2.0", "chai-as-promised": "7.1.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index e560c2904..7df7e263a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -46,7 +46,7 @@ "@types/inquirer": "^6.5.0", "@types/mocha": "10.0.1", "@types/mustache": "4.1.0", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/rewire": "^2.5.28", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", @@ -73,7 +73,7 @@ "eslint-plugin-unicorn": "~44.0.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0 <19.0.0" }, "files": [ "/bin", diff --git a/packages/cli/src/templates/project/package-json.ts b/packages/cli/src/templates/project/package-json.ts index 6e58d544f..46c0050b1 100644 --- a/packages/cli/src/templates/project/package-json.ts +++ b/packages/cli/src/templates/project/package-json.ts @@ -31,12 +31,12 @@ export const template = `{ "prettier": "2.3.0", "typescript": "4.7.4", "ts-node": "9.1.1", - "@types/node": "16.11.7", "ttypescript": "1.5.15", + "@types/node": "^18.15.3", "graphql": "^16.6.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0 <19.0.0" }, "homepage": "{{{homepage}}}", "license": "{{{license}}}", diff --git a/packages/cli/test/commands/deploy.test.ts b/packages/cli/test/commands/deploy.test.ts index 226e86030..ef4c85630 100644 --- a/packages/cli/test/commands/deploy.test.ts +++ b/packages/cli/test/commands/deploy.test.ts @@ -90,6 +90,7 @@ describe('deploy', () => { describe('run', () => { context('when no environment provided', async () => { test + .loadConfig({ root: __dirname }) .stdout() .command(['deploy']) .it('shows no environment provided error', (ctx) => { diff --git a/packages/cli/test/commands/nuke.test.ts b/packages/cli/test/commands/nuke.test.ts index 2f8aa4c6e..d4ac1f386 100644 --- a/packages/cli/test/commands/nuke.test.ts +++ b/packages/cli/test/commands/nuke.test.ts @@ -11,7 +11,6 @@ import { test } from '@oclif/test' import * as environment from '../../src/services/environment' import * as configService from '../../src/services/config-service' import * as projectChecker from '../../src/services/project-checker' - const rewire = require('rewire') const nuke = rewire('../../src/commands/nuke') const runTasks = nuke.__get__('runTasks') @@ -118,6 +117,7 @@ describe('nuke', () => { describe('run', () => { context('when no environment provided', async () => { test + .loadConfig({ root: __dirname }) .stdout() .command(['nuke']) .it('shows no environment provided error', (ctx) => { diff --git a/packages/cli/test/commands/start.test.ts b/packages/cli/test/commands/start.test.ts index c9a546be7..09699230b 100644 --- a/packages/cli/test/commands/start.test.ts +++ b/packages/cli/test/commands/start.test.ts @@ -1,6 +1,5 @@ import { expect } from '../expect' import { restore, fake, replace } from 'sinon' -import rewire = require('rewire') import { ProviderLibrary, BoosterConfig } from '@boostercloud/framework-types' import * as Start from '../../src/commands/start' import * as providerService from '../../src/services/provider-service' @@ -11,6 +10,7 @@ import * as environment from '../../src/services/environment' import * as configService from '../../src/services/config-service' import * as projectChecker from '../../src/services/project-checker' +import rewire = require('rewire') const start = rewire('../../src/commands/start') const runTasks = start.__get__('runTasks') @@ -44,6 +44,7 @@ describe('start', () => { describe('run', () => { context('when no environment provided', async () => { test + .loadConfig({ root: __dirname }) .stdout() .command(['start']) .it('shows no environment provided error', (ctx) => { diff --git a/packages/cli/test/commands/stub/publish.test.ts b/packages/cli/test/commands/stub/publish.test.ts index 1152890b3..62593bfe1 100644 --- a/packages/cli/test/commands/stub/publish.test.ts +++ b/packages/cli/test/commands/stub/publish.test.ts @@ -18,6 +18,7 @@ describe('stub', async () => { const directoryFileMocks: fs.Dirent[] = [ { name: 'fake-command.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -28,6 +29,7 @@ describe('stub', async () => { }, { name: 'fake-event.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -38,6 +40,7 @@ describe('stub', async () => { }, { name: 'fake-directory', + path: '/someDir', isFile: () => false, isDirectory: () => true, isBlockDevice: () => false, diff --git a/packages/cli/test/fixtures/mock_project/package.json b/packages/cli/test/fixtures/mock_project/package.json index eb099dd62..577ec71f6 100644 --- a/packages/cli/test/fixtures/mock_project/package.json +++ b/packages/cli/test/fixtures/mock_project/package.json @@ -27,7 +27,7 @@ "@types/node": "^13.5.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0 <19.0.0" }, "homepage": "", "license": "MIT", diff --git a/packages/cli/test/services/environment.test.ts b/packages/cli/test/services/environment.test.ts index 4935885ad..0d6bc970c 100644 --- a/packages/cli/test/services/environment.test.ts +++ b/packages/cli/test/services/environment.test.ts @@ -1,6 +1,6 @@ import { initializeEnvironment, currentEnvironment } from '../../src/services/environment' import { logger } from '../../src/services/logger' -import { restore, replace, fake, stub } from 'sinon' +import { restore, replace, fake } from 'sinon' import { expect } from '../expect' describe('environment service', (): void => { @@ -21,7 +21,6 @@ describe('environment service', (): void => { describe('currentEnvironment', (): void => { it('get current environment: testing', async () => { process.env.BOOSTER_ENV = 'testing' - stub(process.env, 'BOOSTER_ENV').value('testing') expect(currentEnvironment()).to.be.equal('testing') }) @@ -39,11 +38,9 @@ describe('environment service', (): void => { describe('process.env.BOOSTER_ENV set', (): void => { beforeEach(() => { process.env.BOOSTER_ENV = 'testing' - stub(process.env, 'BOOSTER_ENV').value('testing') }) it('set environment in param: no log message', async () => { - stub(process.env, 'BOOSTER_ENV').value('testing') initializeEnvironment(logger, 'production') expect(logger.error).to.not.have.been.calledWithMatch(logMessage) expect(process.env.BOOSTER_ENV).to.be.equal('production') diff --git a/packages/cli/test/services/stub-publisher.test.ts b/packages/cli/test/services/stub-publisher.test.ts index 0281198fa..c85ab84da 100644 --- a/packages/cli/test/services/stub-publisher.test.ts +++ b/packages/cli/test/services/stub-publisher.test.ts @@ -18,6 +18,7 @@ describe('stub publisher', () => { const directoryFileMocks: fs.Dirent[] = [ { name: 'fake-command.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -28,6 +29,7 @@ describe('stub publisher', () => { }, { name: 'fake-event.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -38,6 +40,7 @@ describe('stub publisher', () => { }, { name: 'fake-stub.ts', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -48,6 +51,7 @@ describe('stub publisher', () => { }, { name: 'fake-directory-1', + path: '/someDir', isFile: () => false, isDirectory: () => true, isBlockDevice: () => false, @@ -58,6 +62,7 @@ describe('stub publisher', () => { }, { name: 'fake-directory-2', + path: '/someDir', isFile: () => false, isDirectory: () => true, isBlockDevice: () => false, @@ -154,6 +159,7 @@ describe('stub publisher', () => { const filteredFiles = createTemplateFileMap([ { name: 'fake-file-1.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -164,6 +170,7 @@ describe('stub publisher', () => { }, { name: 'fake-file-2.stub', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, @@ -187,6 +194,7 @@ describe('stub publisher', () => { const filteredFiles = createTemplateFileMap([ { name: 'fake-directory', + path: '/someDir', isFile: () => false, isDirectory: () => true, isBlockDevice: () => false, @@ -204,6 +212,7 @@ describe('stub publisher', () => { const filteredFiles = createTemplateFileMap([ { name: 'fake-stub.ts', + path: '/someDir', isFile: () => true, isDirectory: () => false, isBlockDevice: () => false, diff --git a/packages/framework-common-helpers/package.json b/packages/framework-common-helpers/package.json index 45fe1e5f8..128f76e46 100644 --- a/packages/framework-common-helpers/package.json +++ b/packages/framework-common-helpers/package.json @@ -32,6 +32,9 @@ "bugs": { "url": "https://github.com/boostercloud/booster/issues" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@boostercloud/framework-types": "workspace:^1.19.1", "child-process-promise": "^2.2.1", @@ -44,7 +47,7 @@ "@types/chai-as-promised": "7.1.4", "@types/child-process-promise": "^2.2.1", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/rewire": "^2.5.28", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", diff --git a/packages/framework-core/package.json b/packages/framework-core/package.json index 1cf252f09..14090c727 100644 --- a/packages/framework-core/package.json +++ b/packages/framework-core/package.json @@ -29,6 +29,9 @@ "bugs": { "url": "https://github.com/boostercloud/booster/issues" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "peerDependencies": { "graphql": "^16.6.0" }, @@ -56,7 +59,7 @@ "@types/inflected": "1.1.29", "@types/jsonwebtoken": "9.0.1", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@types/validator": "13.1.3", diff --git a/packages/framework-integration-tests/host.json b/packages/framework-integration-tests/host.json index 7dafa101a..4750d7633 100644 --- a/packages/framework-integration-tests/host.json +++ b/packages/framework-integration-tests/host.json @@ -2,7 +2,7 @@ "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[3.*, 4.0.0)" + "version": "[4.*, 5.0.0)" }, "functionTimeout": "00:07:00" } diff --git a/packages/framework-integration-tests/integration/fixtures/cart-demo/package.json b/packages/framework-integration-tests/integration/fixtures/cart-demo/package.json index cc54f3a81..7398a24ed 100644 --- a/packages/framework-integration-tests/integration/fixtures/cart-demo/package.json +++ b/packages/framework-integration-tests/integration/fixtures/cart-demo/package.json @@ -28,7 +28,7 @@ "graphql": "^16.6.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0 <19.0.0" }, "homepage": "homepage_placeholder", "license": "license_placeholder", diff --git a/packages/framework-integration-tests/package.json b/packages/framework-integration-tests/package.json index 8214dda87..668085f3f 100644 --- a/packages/framework-integration-tests/package.json +++ b/packages/framework-integration-tests/package.json @@ -38,7 +38,7 @@ "@types/jsonwebtoken": "9.0.1", "@types/mocha": "10.0.1", "@types/nedb": "^1.8.12", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@typescript-eslint/eslint-plugin": "^5.0.0", @@ -78,7 +78,7 @@ "eslint-plugin-unicorn": "~44.0.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=18.0.0 <19.0.0" }, "license": "Apache-2.0", "main": "dist/index.js", diff --git a/packages/framework-provider-aws-infrastructure/package.json b/packages/framework-provider-aws-infrastructure/package.json index ea9d36eac..01e4e0740 100644 --- a/packages/framework-provider-aws-infrastructure/package.json +++ b/packages/framework-provider-aws-infrastructure/package.json @@ -19,6 +19,9 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@aws-cdk/aws-apigateway": "^1.170.0", "@aws-cdk/aws-logs": "^1.170.0", @@ -72,7 +75,7 @@ "@types/chai-as-promised": "7.1.4", "@types/faker": "5.1.5", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/rewire": "^2.5.28", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", diff --git a/packages/framework-provider-aws-infrastructure/src/infrastructure/stacks/scheduled-commands-stack.ts b/packages/framework-provider-aws-infrastructure/src/infrastructure/stacks/scheduled-commands-stack.ts index 5d62b1652..d188fe792 100644 --- a/packages/framework-provider-aws-infrastructure/src/infrastructure/stacks/scheduled-commands-stack.ts +++ b/packages/framework-provider-aws-infrastructure/src/infrastructure/stacks/scheduled-commands-stack.ts @@ -53,6 +53,6 @@ export class ScheduledCommandStack { const { minute = '*', hour = '*', day = '*', month = '*', weekDay = '?', year = '*' } = scheduledCommandMetadata const expression = `${minute} ${hour} ${day} ${month} ${weekDay} ${year}` const neverRunByDefault = '0 5 31 2 ? *' - return Schedule.expression(`cron(${expression !== '* * * ? * *' ? expression : neverRunByDefault})`) + return Schedule.expression(`cron(${expression !== '* * * * ? *' ? expression : neverRunByDefault})`) } } diff --git a/packages/framework-provider-aws/package.json b/packages/framework-provider-aws/package.json index 92a86e6df..6a6bf745d 100644 --- a/packages/framework-provider-aws/package.json +++ b/packages/framework-provider-aws/package.json @@ -19,6 +19,9 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@boostercloud/framework-common-helpers": "workspace:^1.19.1", "@boostercloud/framework-types": "workspace:^1.19.1", @@ -46,7 +49,7 @@ "@types/chai-as-promised": "7.1.4", "@types/faker": "5.1.5", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/rewire": "^2.5.28", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", diff --git a/packages/framework-provider-aws/test/library/read-models-searcher-adapter.test.ts b/packages/framework-provider-aws/test/library/read-models-searcher-adapter.test.ts index ca666ae45..afc810765 100644 --- a/packages/framework-provider-aws/test/library/read-models-searcher-adapter.test.ts +++ b/packages/framework-provider-aws/test/library/read-models-searcher-adapter.test.ts @@ -190,7 +190,7 @@ describe('Read models searcher adapter', () => { const expectedInput = { ...expectedParams, FilterExpression: - '(attribute_exists(#days) and attribute_not_exists(#mainItem) and attribute_exists(#mainItem.#sku) and attribute_exists(#mainItem.#sku.#price))', + '(attribute_exists(#days) and attribute_not_exists(#mainItem) and attribute_exists(#mainItem.#sku) and attribute_exists(#mainItem.#price))', ExpressionAttributeNames: { '#days': 'days', '#mainItem': 'mainItem', @@ -203,7 +203,7 @@ describe('Read models searcher adapter', () => { { days: { isDefined: true } }, { mainItem: { isDefined: false } }, { mainItem: { sku: { isDefined: true } } }, - { mainItem: { sku: { price: { isDefined: true } } } }, + { mainItem: { price: { isDefined: true } } }, ], } diff --git a/packages/framework-provider-azure-infrastructure/package.json b/packages/framework-provider-azure-infrastructure/package.json index 8eccc31e7..96b0cdb0c 100644 --- a/packages/framework-provider-azure-infrastructure/package.json +++ b/packages/framework-provider-azure-infrastructure/package.json @@ -19,9 +19,12 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@azure/arm-appservice": "^13.0.0", - "@azure/cosmos": "^3.17.0", + "@azure/cosmos": "^4.0.0", "@boostercloud/framework-common-helpers": "workspace:^1.19.1", "@boostercloud/framework-core": "workspace:^1.19.1", "@boostercloud/framework-provider-azure": "workspace:^1.19.1", @@ -71,7 +74,7 @@ "@types/fs-extra": "^9.0.13", "@types/mocha": "10.0.1", "@types/mustache": "4.1.0", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@types/uuid": "8.3.0", diff --git a/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/event-handler-function.ts b/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/event-handler-function.ts index 7c1403b78..4aec2d322 100644 --- a/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/event-handler-function.ts +++ b/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/event-handler-function.ts @@ -13,11 +13,11 @@ export class EventHandlerFunction { type: 'cosmosDBTrigger', name: 'rawEvent', direction: 'in', - leaseCollectionName: 'leases', - connectionStringSetting: 'COSMOSDB_CONNECTION_STRING', + leaseContainerName: 'leases', + connection: 'COSMOSDB_CONNECTION_STRING', databaseName: this.config.resourceNames.applicationStack, - collectionName: this.config.resourceNames.eventsStore, - createLeaseCollectionIfNotExists: 'true', + containerName: this.config.resourceNames.eventsStore, + createLeaseContainerIfNotExists: 'true', }, ], scriptFile: this.config.functionRelativePath, diff --git a/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/subscriptions-notifier-function.ts b/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/subscriptions-notifier-function.ts index df2981f35..de283376a 100644 --- a/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/subscriptions-notifier-function.ts +++ b/packages/framework-provider-azure-infrastructure/src/infrastructure/functions/subscriptions-notifier-function.ts @@ -14,11 +14,11 @@ export class SubscriptionsNotifierFunction { type: 'cosmosDBTrigger', name: 'rawEvent', direction: 'in', - leaseCollectionName: `leases-${readModel}`, - connectionStringSetting: 'COSMOSDB_CONNECTION_STRING', + leaseContainerName: `leases-${readModel}`, + connection: 'COSMOSDB_CONNECTION_STRING', databaseName: this.config.resourceNames.applicationStack, - collectionName: this.config.resourceNames.forReadModel(readModel), - createLeaseCollectionIfNotExists: 'true', + containerName: this.config.resourceNames.forReadModel(readModel), + createLeaseContainerIfNotExists: 'true', }, { type: 'webPubSubConnection', diff --git a/packages/framework-provider-azure-infrastructure/src/infrastructure/helper/function-zip.ts b/packages/framework-provider-azure-infrastructure/src/infrastructure/helper/function-zip.ts index 4b502fe6d..43982c817 100644 --- a/packages/framework-provider-azure-infrastructure/src/infrastructure/helper/function-zip.ts +++ b/packages/framework-provider-azure-infrastructure/src/infrastructure/helper/function-zip.ts @@ -200,7 +200,7 @@ export class FunctionZip { version: '2.0', extensionBundle: { id: 'Microsoft.Azure.Functions.ExtensionBundle', - version: '[3.*, 4.0.0)', + version: '[4.*, 5.0.0)', }, } archive.append(JSON.stringify(hostConfig, null, 2), { diff --git a/packages/framework-provider-azure-infrastructure/src/infrastructure/synth/terraform-function-app.ts b/packages/framework-provider-azure-infrastructure/src/infrastructure/synth/terraform-function-app.ts index 07cb152ce..05390b840 100644 --- a/packages/framework-provider-azure-infrastructure/src/infrastructure/synth/terraform-function-app.ts +++ b/packages/framework-provider-azure-infrastructure/src/infrastructure/synth/terraform-function-app.ts @@ -44,10 +44,10 @@ export class TerraformFunctionApp { provider: providerResource, siteConfig: { applicationStack: { - nodeVersion: '~14', + nodeVersion: '~18', }, }, - functionsExtensionVersion: '~3', // keep it on version 3. Version 4 needs a migration process + functionsExtensionVersion: '~4', // keep it on version 3. Version 4 needs a migration process zipDeployFile: zipFile, }) } diff --git a/packages/framework-provider-azure-infrastructure/src/infrastructure/types/functionDefinition.ts b/packages/framework-provider-azure-infrastructure/src/infrastructure/types/functionDefinition.ts index d1db654b8..a558e9580 100644 --- a/packages/framework-provider-azure-infrastructure/src/infrastructure/types/functionDefinition.ts +++ b/packages/framework-provider-azure-infrastructure/src/infrastructure/types/functionDefinition.ts @@ -14,11 +14,11 @@ export type GraphQLBinding = Binding & { } export type EventHandlerBinding = Binding & { - leaseCollectionName: string - connectionStringSetting: string + leaseContainerName: string + connection: string databaseName: string - collectionName: string - createLeaseCollectionIfNotExists: string + containerName: string + createLeaseContainerIfNotExists: string [key: string]: any } diff --git a/packages/framework-provider-azure-infrastructure/test/infrastructure/functions/event-handler-functions.test.ts b/packages/framework-provider-azure-infrastructure/test/infrastructure/functions/event-handler-functions.test.ts index b3d4a3ed7..ab868a983 100644 --- a/packages/framework-provider-azure-infrastructure/test/infrastructure/functions/event-handler-functions.test.ts +++ b/packages/framework-provider-azure-infrastructure/test/infrastructure/functions/event-handler-functions.test.ts @@ -8,18 +8,18 @@ describe('Creating event-handler-functions', () => { config.resourceNames.applicationStack = 'applicationStack' config.resourceNames.eventsStore = 'eventsStore' - it('create the expected EventHandlerFunctionDefiniton', () => { + it('create the expected EventHandlerFunctionDefinition', () => { const definition = new EventHandlerFunction(config).getFunctionDefinition() expect(definition).not.to.be.null expect(definition.name).to.be.equal('eventHandler') expect(definition.config.bindings[0].type).to.be.equal('cosmosDBTrigger') expect(definition.config.bindings[0].name).to.be.equal('rawEvent') expect(definition.config.bindings[0].direction).to.be.equal('in') - expect(definition.config.bindings[0].leaseCollectionName).to.be.equal('leases') - expect(definition.config.bindings[0].connectionStringSetting).to.be.equal('COSMOSDB_CONNECTION_STRING') + expect(definition.config.bindings[0].leaseContainerName).to.be.equal('leases') + expect(definition.config.bindings[0].connection).to.be.equal('COSMOSDB_CONNECTION_STRING') expect(definition.config.bindings[0].databaseName).to.be.equal('new-booster-app-app') - expect(definition.config.bindings[0].collectionName).to.be.equal('new-booster-app-app-events-store') - expect(definition.config.bindings[0].createLeaseCollectionIfNotExists).to.be.equal('true') + expect(definition.config.bindings[0].containerName).to.be.equal('new-booster-app-app-events-store') + expect(definition.config.bindings[0].createLeaseContainerIfNotExists).to.be.equal('true') expect(definition.config.scriptFile).to.be.equal('../dist/index.js') expect(definition.config.entryPoint).to.be.equal('boosterEventDispatcher') }) diff --git a/packages/framework-provider-azure/package.json b/packages/framework-provider-azure/package.json index 0d797f2f5..de8c6e5ae 100644 --- a/packages/framework-provider-azure/package.json +++ b/packages/framework-provider-azure/package.json @@ -19,8 +19,11 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { - "@azure/cosmos": "^3.17.0", + "@azure/cosmos": "^4.0.0", "@azure/functions": "^1.2.2", "@azure/identity": "~2.1.0", "@boostercloud/framework-common-helpers": "workspace:^1.19.1", @@ -35,7 +38,7 @@ "@types/chai-as-promised": "7.1.4", "@types/faker": "5.1.5", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@typescript-eslint/eslint-plugin": "^5.0.0", diff --git a/packages/framework-provider-azure/src/library/read-model-adapter.ts b/packages/framework-provider-azure/src/library/read-model-adapter.ts index 4ab0f08c4..97f9d8bdc 100644 --- a/packages/framework-provider-azure/src/library/read-model-adapter.ts +++ b/packages/framework-provider-azure/src/library/read-model-adapter.ts @@ -21,7 +21,7 @@ export async function fetchReadModel( const { resource } = await db .database(config.resourceNames.applicationStack) .container(config.resourceNames.forReadModel(readModelName)) - .item(readModelID as string, readModelID) + .item(readModelID as string, readModelID as string) .read() logger.debug( @@ -141,7 +141,7 @@ export async function deleteReadModel( await db .database(config.resourceNames.applicationStack) .container(config.resourceNames.forReadModel(readModelName)) - .item(readModel.id as string, readModel.id) + .item(readModel.id as string, readModel.id as string) .delete() logger.debug(`[ReadModelAdapter#deleteReadModel] Read model deleted. ID = ${readModel.id}`) } diff --git a/packages/framework-provider-local-infrastructure/package.json b/packages/framework-provider-local-infrastructure/package.json index d3c3d64b6..853a116d0 100644 --- a/packages/framework-provider-local-infrastructure/package.json +++ b/packages/framework-provider-local-infrastructure/package.json @@ -19,6 +19,9 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@boostercloud/framework-common-helpers": "workspace:^1.19.1", "@boostercloud/framework-provider-local": "workspace:^1.19.1", @@ -50,7 +53,7 @@ "@types/express": "^4.17.13", "@types/faker": "5.1.5", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/node-schedule": "^1.3.2", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", diff --git a/packages/framework-provider-local/package.json b/packages/framework-provider-local/package.json index 2f8e63932..b0dab430c 100644 --- a/packages/framework-provider-local/package.json +++ b/packages/framework-provider-local/package.json @@ -19,6 +19,9 @@ "type": "git", "url": "git+https://github.com/boostercloud/booster.git" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "@boostercloud/framework-common-helpers": "workspace:^1.19.1", "@boostercloud/framework-types": "workspace:^1.19.1", @@ -48,7 +51,7 @@ "@types/express": "^4.17.13", "@types/faker": "5.1.5", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@types/sinon-express-mock": "^1.3.9", diff --git a/packages/framework-types/package.json b/packages/framework-types/package.json index 2b86574e5..0b506a364 100644 --- a/packages/framework-types/package.json +++ b/packages/framework-types/package.json @@ -32,6 +32,9 @@ "bugs": { "url": "https://github.com/boostercloud/booster/issues" }, + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "peerDependencies": { "graphql": "^16.6.0" }, @@ -47,7 +50,7 @@ "@types/chai": "4.2.18", "@types/chai-as-promised": "7.1.4", "@types/mocha": "10.0.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "@types/sinon": "10.0.0", "@types/sinon-chai": "3.2.5", "@types/uuid": "8.3.0", diff --git a/packages/metadata-booster/package.json b/packages/metadata-booster/package.json index fc2e38fb9..f75b50b1e 100644 --- a/packages/metadata-booster/package.json +++ b/packages/metadata-booster/package.json @@ -22,6 +22,9 @@ "files": [ "dist" ], + "engines": { + "node": ">=18.0.0 <19.0.0" + }, "dependencies": { "reflect-metadata": "0.1.13", "ts-morph": "15.1.0", @@ -36,7 +39,7 @@ "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "3.4.0", "@boostercloud/eslint-config": "workspace:^1.19.1", - "@types/node": "16.11.7", + "@types/node": "^18.15.3", "ts-node": "^10.9.1", "ttypescript": "1.5.15", "typescript": "4.7.4", diff --git a/rush.json b/rush.json index 7125e6c4e..4f12d3658 100644 --- a/rush.json +++ b/rush.json @@ -121,7 +121,7 @@ * LTS versions: https://nodejs.org/en/download/releases/ */ // "nodeSupportedVersionRange": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0", - "nodeSupportedVersionRange": ">=16.14.0 <17.0.0", + "nodeSupportedVersionRange": ">=18.0.0 <19.0.0", /** * Odd-numbered major versions of Node.js are experimental. Even-numbered releases diff --git a/tools/eslint-config/package.json b/tools/eslint-config/package.json index 7bfddcbd1..96dff26ef 100644 --- a/tools/eslint-config/package.json +++ b/tools/eslint-config/package.json @@ -33,5 +33,8 @@ "typescript": { "optional": true } + }, + "engines": { + "node": ">=18.0.0 <19.0.0" } } diff --git a/website/package.json b/website/package.json index fa2916e50..cbbb9331d 100644 --- a/website/package.json +++ b/website/package.json @@ -52,6 +52,6 @@ ] }, "engines": { - "node": ">=16.14" + "node": ">=18.0.0 <19.0.0" } }