diff --git a/common/changes/@boostercloud/framework-core/fix_nedb_index_2023-09-13-12-35.json b/common/changes/@boostercloud/framework-core/fix_nedb_index_2023-09-13-12-35.json new file mode 100644 index 000000000..17a4ec0b4 --- /dev/null +++ b/common/changes/@boostercloud/framework-core/fix_nedb_index_2023-09-13-12-35.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@boostercloud/framework-core", + "comment": "Fix local provider index", + "type": "patch" + } + ], + "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 76b78ea2d..9aef03347 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -420,7 +420,7 @@ importers: subscriptions-transport-ws: 0.11.0 ts-node: ^10.9.1 tslib: ^2.4.0 - ttypescript: 1.5.13 + ttypescript: 1.5.15 typescript: 4.7.4 dependencies: '@boostercloud/framework-common-helpers': link:../framework-common-helpers @@ -487,7 +487,7 @@ importers: sinon: 9.2.3 subscriptions-transport-ws: 0.11.0_graphql@16.6.0 ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa - ttypescript: 1.5.13_6oasmw356qmm23djlsjgkwvrtm + ttypescript: 1.5.15_6oasmw356qmm23djlsjgkwvrtm typescript: 4.7.4 ../../packages/framework-provider-aws: @@ -1135,7 +1135,7 @@ importers: ts-morph: 15.1.0 ts-node: ^10.9.1 tslib: ^2.4.0 - ttypescript: 1.5.13 + ttypescript: 1.5.15 typescript: 4.7.4 dependencies: '@effect-ts/core': 0.60.5 @@ -1155,7 +1155,7 @@ importers: prettier: 2.3.0 sinon: 9.2.3 ts-node: 10.9.1_t4lrjbt3sxauai4t5o275zsepa - ttypescript: 1.5.13_6oasmw356qmm23djlsjgkwvrtm + ttypescript: 1.5.15_6oasmw356qmm23djlsjgkwvrtm typescript: 4.7.4 ../../tools/eslint-config: @@ -1531,7 +1531,7 @@ packages: '@aws-cdk/aws-codecommit': 1.199.0_u6wgonek7tj4xuwvr3d2ei6crq '@aws-cdk/aws-codestarnotifications': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 - '@aws-cdk/aws-ecr': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru + '@aws-cdk/aws-ecr': 1.199.0_5lpmbvgigeswzbugyujlevszcq '@aws-cdk/aws-ecr-assets': 1.199.0_u6wgonek7tj4xuwvr3d2ei6crq '@aws-cdk/aws-events': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu @@ -1706,7 +1706,7 @@ packages: constructs: ^3.3.69 dependencies: '@aws-cdk/assets': 1.199.0_6t5bexudk3vtq7zhe7acxljz2e - '@aws-cdk/aws-ecr': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru + '@aws-cdk/aws-ecr': 1.199.0_5lpmbvgigeswzbugyujlevszcq '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu '@aws-cdk/aws-s3': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm @@ -1716,7 +1716,7 @@ packages: - '@aws-cdk/aws-events' dev: false - /@aws-cdk/aws-ecr/1.199.0_wim6pvar6pmwiq3fs3ksmix5ru: + /@aws-cdk/aws-ecr/1.199.0_5lpmbvgigeswzbugyujlevszcq: resolution: {integrity: sha512-C4VG9uRf8UD/cNitVvYaQvF9zKwgWZoNLf43RaUrMEpo4Q/KE3/KilYBG8lsza8B7f4yjYRey5iOpydKE68kYg==} engines: {node: '>= 14.15.0'} peerDependencies: @@ -1727,11 +1727,8 @@ packages: dependencies: '@aws-cdk/aws-events': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi '@aws-cdk/aws-iam': 1.199.0_xwfh4icwyvj4zfjhzlqde6qllu - '@aws-cdk/aws-kms': 1.199.0_iumdymv27iwprkm3rzoqxlpuia '@aws-cdk/core': 1.199.0_kscyon7amn7dglog7cugnqvkwm constructs: 3.4.293 - transitivePeerDependencies: - - '@aws-cdk/cx-api' dev: false /@aws-cdk/aws-ecs/1.199.0_7m5azgjywxpgdeoosvoxrcdts4: @@ -1752,7 +1749,7 @@ packages: '@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-ecr': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru + '@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 @@ -2038,7 +2035,7 @@ packages: '@aws-cdk/aws-cloudwatch': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi '@aws-cdk/aws-codeguruprofiler': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi '@aws-cdk/aws-ec2': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 - '@aws-cdk/aws-ecr': 1.199.0_wim6pvar6pmwiq3fs3ksmix5ru + '@aws-cdk/aws-ecr': 1.199.0_5lpmbvgigeswzbugyujlevszcq '@aws-cdk/aws-ecr-assets': 1.199.0_u6wgonek7tj4xuwvr3d2ei6crq '@aws-cdk/aws-efs': 1.199.0_ylylsu27pdmlfxyxktlluxtkr4 '@aws-cdk/aws-events': 1.199.0_wcptolxmxi6sy3vjqhvgbrrnvi @@ -10158,8 +10155,8 @@ packages: tslib: 1.14.1 typescript: 4.7.4 - /ttypescript/1.5.13_6oasmw356qmm23djlsjgkwvrtm: - resolution: {integrity: sha512-KT/RBfGGlVJFqEI8cVvI3nMsmYcFvPSZh8bU0qX+pAwbi7/ABmYkzn7l/K8skw0xmYjVCoyaV6WLsBQxdadybQ==} + /ttypescript/1.5.15_6oasmw356qmm23djlsjgkwvrtm: + resolution: {integrity: sha512-48ykDNHzFnPMnv4hYX1P8Q84TvCZyL1QlFxeuxsuZ48X2+ameBgPenvmCkHJtoOSxpoWTWi8NcgNrRnVDOmfSg==} hasBin: true peerDependencies: ts-node: '>=8.0.2' diff --git a/packages/cli/src/templates/project/package-json.ts b/packages/cli/src/templates/project/package-json.ts index fda72fd42..ca262b2ee 100644 --- a/packages/cli/src/templates/project/package-json.ts +++ b/packages/cli/src/templates/project/package-json.ts @@ -32,7 +32,7 @@ export const template = `{ "typescript": "4.7.4", "ts-node": "9.1.1", "@types/node": "16.11.7", - "ttypescript": "1.5.13", + "ttypescript": "1.5.15", "graphql": "^16.6.0" }, "engines": { diff --git a/packages/framework-integration-tests/package.json b/packages/framework-integration-tests/package.json index 18b1ffe6f..d709bb9df 100644 --- a/packages/framework-integration-tests/package.json +++ b/packages/framework-integration-tests/package.json @@ -72,7 +72,7 @@ "serverless-artillery": "0.5.2", "subscriptions-transport-ws": "0.11.0", "ts-node": "^10.9.1", - "ttypescript": "1.5.13", + "ttypescript": "1.5.15", "typescript": "4.7.4", "sinon": "9.2.3", "eslint-plugin-unicorn": "~44.0.2" diff --git a/packages/framework-provider-aws-infrastructure/package.json b/packages/framework-provider-aws-infrastructure/package.json index 1a39d7572..3e6bbb8e2 100644 --- a/packages/framework-provider-aws-infrastructure/package.json +++ b/packages/framework-provider-aws-infrastructure/package.json @@ -59,7 +59,7 @@ "clean": "rimraf ./dist tsconfig.tsbuildinfo", "prepack": "tsc -b tsconfig.json", "test:provider-aws-infrastructure": "npm run test", - "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"" + "test": "" }, "bugs": { "url": "https://github.com/boostercloud/booster/issues" diff --git a/packages/framework-provider-local/src/services/read-model-registry.ts b/packages/framework-provider-local/src/services/read-model-registry.ts index c7b5afa2b..a461cb3f2 100644 --- a/packages/framework-provider-local/src/services/read-model-registry.ts +++ b/packages/framework-provider-local/src/services/read-model-registry.ts @@ -14,7 +14,7 @@ export class ReadModelRegistry { public readonly readModels: DataStore = new DataStore(readModelsDatabase) constructor() { this.readModels.loadDatabase() - this.readModels.ensureIndex({ fieldName: 'uniqueKey', unique: true }) + this.readModels.ensureIndex({ fieldName: 'uniqueKey', unique: true, sparse: true }) } public async query( diff --git a/packages/metadata-booster/package.json b/packages/metadata-booster/package.json index 46c3daeb8..fa19a2f57 100644 --- a/packages/metadata-booster/package.json +++ b/packages/metadata-booster/package.json @@ -38,7 +38,7 @@ "@boostercloud/eslint-config": "workspace:^1.18.1", "@types/node": "16.11.7", "ts-node": "^10.9.1", - "ttypescript": "1.5.13", + "ttypescript": "1.5.15", "typescript": "4.7.4", "prettier": "2.3.0", "sinon": "9.2.3", diff --git a/website/docs/10_going-deeper/data-migrations.md b/website/docs/10_going-deeper/data-migrations.md index dab7c6725..3ec11a267 100644 --- a/website/docs/10_going-deeper/data-migrations.md +++ b/website/docs/10_going-deeper/data-migrations.md @@ -158,7 +158,7 @@ export class CartIdDataMigrateV2 { "typescript": "4.5.4", "ts-node": "9.1.1", "@types/node": "15.0.2", - "ttypescript": "1.5.13", + "ttypescript": "1.5.15", "@boostercloud/metadata-booster": "0.30.2" }, ```