@travetto/model-firestore 4.1.2 → 5.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-firestore",
3
- "version": "4.1.2",
3
+ "version": "5.0.0-rc.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": "^7.7.0",
29
- "@travetto/base": "^4.1.0",
30
- "@travetto/config": "^4.1.0",
31
- "@travetto/model": "^4.1.2"
28
+ "@google-cloud/firestore": "^7.9.0",
29
+ "@travetto/base": "^5.0.0-rc.0",
30
+ "@travetto/config": "^5.0.0-rc.0",
31
+ "@travetto/model": "^5.0.0-rc.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^4.1.0"
34
+ "@travetto/command": "^5.0.0-rc.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -77,7 +77,7 @@ export class FirestoreModelService implements ModelCrudSupport, ModelStorageSupp
77
77
  const prepped = await ModelCrudUtil.preStore(cls, item, this);
78
78
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
79
79
  await this.#getCollection(cls).doc(item.id).update(clone(prepped) as unknown as UpdateData<DocumentData>);
80
- return item;
80
+ return prepped;
81
81
  }
82
82
 
83
83
  async upsert<T extends ModelType>(cls: Class<T>, item: OptionalId<T>): Promise<T> {
@@ -9,5 +9,5 @@ export const service: CommandService = {
9
9
  env: {
10
10
  FIRESTORE_PROJECT_ID: 'trv-local-dev'
11
11
  },
12
- image: `mtlynch/firestore-emulator-docker:${version}`
12
+ image: `ridedott/firestore-emulator:${version}`
13
13
  };