@travetto/model-firestore 3.0.0-rc.9 → 3.0.0

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-firestore**
7
7
  ```bash
8
8
  npm install @travetto/model-firestore
9
+
10
+ # or
11
+
12
+ yarn add @travetto/model-firestore
9
13
  ```
10
14
 
11
15
  This module provides an [Firestore](https://firebase.google.com/docs/firestore)-based implementation of 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 [Firestore](https://firebase.google.com/docs/firestore).
@@ -39,7 +43,7 @@ export class Init {
39
43
 
40
44
  **Code: Structure of FirestoreModelConfig**
41
45
  ```typescript
42
- import { CommonFileResourceProvider } from '@travetto/base';
46
+ import { FileResourceProvider } from '@travetto/base';
43
47
  import { Config } from '@travetto/config';
44
48
 
45
49
  @Config('model.firestore')
@@ -62,7 +66,7 @@ export class FirestoreModelConfig {
62
66
  process.env.FIRESTORE_EMULATOR_HOST = this.emulator;
63
67
  }
64
68
  if (this.credentialsFile && !this.credentials) {
65
- const resources = new CommonFileResourceProvider();
69
+ const resources = new FileResourceProvider({ includeCommon: true });
66
70
  this.credentials = JSON.parse(await resources.read(this.credentialsFile));
67
71
  }
68
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-firestore",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.0",
4
4
  "description": "Firestore backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -25,13 +25,13 @@
25
25
  "directory": "module/model-firestore"
26
26
  },
27
27
  "dependencies": {
28
- "@google-cloud/firestore": "^5.0.2",
29
- "@travetto/base": "^3.0.0-rc.7",
30
- "@travetto/config": "^3.0.0-rc.9",
31
- "@travetto/model": "^3.0.0-rc.9"
28
+ "@google-cloud/firestore": "^6.4.3",
29
+ "@travetto/base": "^3.0.0",
30
+ "@travetto/config": "^3.0.0",
31
+ "@travetto/model": "^3.0.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^3.0.0-rc.7"
34
+ "@travetto/command": "^3.0.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
@@ -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
4
  const version = Env.get('FIRESTORE_VERSION', 'latest');
5
5
 
6
- export const service: Service = {
6
+ export const service: CommandService = {
7
7
  name: 'firestore',
8
8
  version,
9
9
  ports: { 7000: 8080 },