@travetto/model-dynamodb 3.0.0-rc.9 → 3.0.1-rc.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/README.md CHANGED
@@ -6,6 +6,10 @@
6
6
  **Install: @travetto/model-dynamodb**
7
7
  ```bash
8
8
  npm install @travetto/model-dynamodb
9
+
10
+ # or
11
+
12
+ yarn add @travetto/model-dynamodb
9
13
  ```
10
14
 
11
15
  This module provides an [DynamoDB](https://aws.amazon.com/dynamodb/)-based implementation for the [Data Modeling Support](https://github.com/travetto/travetto/tree/main/module/model#readme "Datastore abstraction for core operations."). This source allows the [Data Modeling Support](https://github.com/travetto/travetto/tree/main/module/model#readme "Datastore abstraction for core operations.") module to read, write and query against [DynamoDB](https://aws.amazon.com/dynamodb/). The entire document is stored as a single value, so nothing is needed to handle schema updates in real time. Indices on the other hand are more complicated, and will not be retroactively computed for new values.
@@ -39,7 +43,7 @@ export class Init {
39
43
 
40
44
  **Code: Structure of DynamoDBModelConfig**
41
45
  ```typescript
42
- import type * as dynamodb from '@aws-sdk/client-dynamodb';
46
+ import type dynamodb from '@aws-sdk/client-dynamodb';
43
47
 
44
48
  import { Config } from '@travetto/config';
45
49
  import { Field } from '@travetto/schema';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-dynamodb",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.1-rc.1",
4
4
  "description": "DynamoDB backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,12 +25,12 @@
25
25
  "directory": "module/model-dynamodb"
26
26
  },
27
27
  "dependencies": {
28
- "@aws-sdk/client-dynamodb": "^3.245.0",
29
- "@travetto/config": "^3.0.0-rc.9",
30
- "@travetto/model": "^3.0.0-rc.9"
28
+ "@aws-sdk/client-dynamodb": "^3.272.0",
29
+ "@travetto/config": "^3.0.1-rc.1",
30
+ "@travetto/model": "^3.0.1-rc.1"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/command": "^3.0.0-rc.7"
33
+ "@travetto/command": "^3.0.1-rc.1"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/command": {
package/src/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type * as dynamodb from '@aws-sdk/client-dynamodb';
1
+ import type dynamodb from '@aws-sdk/client-dynamodb';
2
2
 
3
3
  import { Config } from '@travetto/config';
4
4
  import { Field } from '@travetto/schema';
@@ -1,9 +1,9 @@
1
1
  import { Env } from '@travetto/base';
2
- import type { Service } from '@travetto/command/support/bin/service';
2
+ import type { CommandService } from '@travetto/command';
3
3
 
4
- const version = Env.get('DYNAMODB_VERSION', '1.15.0');
4
+ const version = Env.get('DYNAMODB_VERSION', '1.20.0');
5
5
 
6
- export const service: Service = {
6
+ export const service: CommandService = {
7
7
  name: 'dynamodb',
8
8
  version,
9
9
  port: 8000,