@travetto/model-dynamodb 6.0.0-rc.3 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-dynamodb",
3
- "version": "6.0.0-rc.3",
3
+ "version": "6.0.1",
4
4
  "description": "DynamoDB backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,10 +25,10 @@
25
25
  "directory": "module/model-dynamodb"
26
26
  },
27
27
  "dependencies": {
28
- "@aws-sdk/client-dynamodb": "^3.796.0",
29
- "@travetto/cli": "^6.0.0-rc.3",
30
- "@travetto/config": "^6.0.0-rc.2",
31
- "@travetto/model": "^6.0.0-rc.2"
28
+ "@aws-sdk/client-dynamodb": "^3.902.0",
29
+ "@travetto/cli": "^6.0.1",
30
+ "@travetto/config": "^6.0.1",
31
+ "@travetto/model": "^6.0.1"
32
32
  },
33
33
  "travetto": {
34
34
  "displayName": "DynamoDB Model Support"
package/src/service.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
- AttributeDefinition, AttributeValue, DynamoDB, GlobalSecondaryIndex,
3
- KeySchemaElement, PutItemCommandInput, PutItemCommandOutput
2
+ type AttributeDefinition, type AttributeValue, DynamoDB, type GlobalSecondaryIndex,
3
+ type KeySchemaElement, type PutItemCommandInput, type PutItemCommandOutput
4
4
  } from '@aws-sdk/client-dynamodb';
5
5
 
6
6
  import { ShutdownManager, TimeUtil, type Class, type DeepPartial } from '@travetto/runtime';
@@ -185,7 +185,7 @@ export class DynamoDBModelService implements ModelCrudSupport, ModelExpirySuppor
185
185
  async postConstruct(): Promise<void> {
186
186
  this.client = new DynamoDB({ ...this.config.client });
187
187
  await ModelStorageUtil.registerModelChangeListener(this);
188
- ShutdownManager.onGracefulShutdown(async () => this.client.destroy(), this);
188
+ ShutdownManager.onGracefulShutdown(async () => this.client.destroy());
189
189
  }
190
190
 
191
191
  // Storage
@@ -1,6 +1,6 @@
1
1
  import type { ServiceDescriptor } from '@travetto/cli';
2
2
 
3
- const version = process.env.DYNAMODB_VERSION || '2.5.3';
3
+ const version = process.env.DYNAMODB_VERSION || '3.0.0';
4
4
 
5
5
  export const service: ServiceDescriptor = {
6
6
  name: 'dynamodb',