@travetto/model-firestore 3.0.2 → 3.1.0-rc.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.
Files changed (2) hide show
  1. package/README.md +6 -11
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  <!-- This file was generated by @travetto/doc and should not be modified directly -->
2
- <!-- Please modify https://github.com/travetto/travetto/tree/main/module/model-firestore/DOC.ts and execute "npx trv doc" to rebuild -->
2
+ <!-- Please modify https://github.com/travetto/travetto/tree/main/module/model-firestore/DOC.tsx and execute "npx trv doc" to rebuild -->
3
3
  # Firestore Model Support
4
+
4
5
  ## Firestore backing for the travetto model module.
5
6
 
6
7
  **Install: @travetto/model-firestore**
@@ -12,17 +13,13 @@ npm install @travetto/model-firestore
12
13
  yarn add @travetto/model-firestore
13
14
  ```
14
15
 
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).
16
+ 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).
16
17
 
17
18
  Supported features:
18
-
19
19
  * [CRUD](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts#L11)
20
20
  * [Indexed](https://github.com/travetto/travetto/tree/main/module/model/src/service/indexed.ts#L12)
21
+ Out of the box, by installing the module, everything should be wired up by default.If you need to customize any aspect of the source or config, you can override and register it with the [Dependency Injection](https://github.com/travetto/travetto/tree/main/module/di#readme "Dependency registration/management and injection support.") module.
21
22
 
22
- Out of the box, by installing the module, everything should be wired up by default.If you need to customize any aspect of the source
23
- or config, you can override and register it with the [Dependency Injection](https://github.com/travetto/travetto/tree/main/module/di#readme "Dependency registration/management and injection support.") module.
24
-
25
-
26
23
  **Code: Wiring up a custom Model Source**
27
24
  ```typescript
28
25
  import { InjectableFactory } from '@travetto/di';
@@ -38,9 +35,8 @@ export class Init {
38
35
  }
39
36
  ```
40
37
 
41
- where the [FirestoreModelConfig](https://github.com/travetto/travetto/tree/main/module/model-firestore/src/config.ts#L5) is defined by:
38
+ where the [FirestoreModelConfig](https://github.com/travetto/travetto/tree/main/module/model-firestore/src/config.ts#L5) is defined by:
42
39
 
43
-
44
40
  **Code: Structure of FirestoreModelConfig**
45
41
  ```typescript
46
42
  import { FileResourceProvider } from '@travetto/base';
@@ -73,5 +69,4 @@ export class FirestoreModelConfig {
73
69
  }
74
70
  ```
75
71
 
76
- Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the
77
- standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support")resolution paths.
72
+ Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support") resolution paths.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-firestore",
3
- "version": "3.0.2",
3
+ "version": "3.1.0-rc.0",
4
4
  "description": "Firestore backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -26,12 +26,12 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@google-cloud/firestore": "^6.4.3",
29
- "@travetto/base": "^3.0.2",
30
- "@travetto/config": "^3.0.2",
31
- "@travetto/model": "^3.0.2"
29
+ "@travetto/base": "^3.1.0-rc.0",
30
+ "@travetto/config": "^3.1.0-rc.0",
31
+ "@travetto/model": "^3.1.0-rc.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^3.0.2"
34
+ "@travetto/command": "^3.1.0-rc.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {