@travetto/model-firestore 4.0.7 → 4.1.2

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/package.json +6 -6
  2. package/src/service.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-firestore",
3
- "version": "4.0.7",
3
+ "version": "4.1.2",
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.3.1",
29
- "@travetto/base": "^4.0.6",
30
- "@travetto/config": "^4.0.7",
31
- "@travetto/model": "^4.0.7"
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"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^4.0.6"
34
+ "@travetto/command": "^4.1.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/service.ts CHANGED
@@ -90,7 +90,6 @@ export class FirestoreModelService implements ModelCrudSupport, ModelStorageSupp
90
90
  async updatePartial<T extends ModelType>(cls: Class<T>, item: Partial<T> & { id: string }, view?: string): Promise<T> {
91
91
  ModelCrudUtil.ensureNotSubType(cls);
92
92
  const id = item.id;
93
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
94
93
  item = await ModelCrudUtil.naivePartialUpdate(cls, item, view, async () => this.get(cls, item.id));
95
94
  const cleaned = toSimpleObj(item, FieldValue.delete());
96
95
  await this.#getCollection(cls).doc(id).set(cleaned, { mergeFields: Object.keys(item) });