From 48f5457c775c53889770e135aec3df657d7c4c2a Mon Sep 17 00:00:00 2001 From: Dominic Bartl Date: Fri, 7 Jun 2024 12:58:16 +0200 Subject: [PATCH] fix(core): remove nested partial when updating documents --- packages/core/src/storage/types.ts | 6 +----- pnpm-lock.yaml | 9 +++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/core/src/storage/types.ts b/packages/core/src/storage/types.ts index 5a04142..1d9d2a4 100644 --- a/packages/core/src/storage/types.ts +++ b/packages/core/src/storage/types.ts @@ -21,8 +21,4 @@ export type ModelDataWithId = Pick & ModelDataOnly export type ModelQuery = Partial>; -type NestedPartial = { - [K in keyof T]?: T[K] extends Array ? Array : NestedPartial; -}; - -export type PatchUpdate = Required> & Omit, 'id'>; +export type PatchUpdate = Required> & Omit, 'id'>; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5a07052..7b534e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -74,7 +74,7 @@ importers: specifier: ^14.11.8 version: 14.18.36 firestore-storage-core: - specifier: ^6.0.11 + specifier: ^7.0.1 version: link:../core mocha: specifier: ^9.1.3 @@ -113,7 +113,7 @@ importers: specifier: ^3.1.0 version: 3.1.0(firebase-admin@11.8.0)(firebase-functions@4.4.0)(jest@29.7.0) firestore-storage-core: - specifier: ^6.0.11 + specifier: ^7.0.1 version: link:../core mocha: specifier: ^9.1.3 @@ -3368,6 +3368,7 @@ packages: /bignumber.js@9.1.1: resolution: {integrity: sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==} + requiresBuild: true /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} @@ -5593,6 +5594,7 @@ packages: resolution: {integrity: sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==} engines: {node: '>=12.0.0'} hasBin: true + requiresBuild: true dependencies: node-forge: 1.3.1 @@ -6936,6 +6938,7 @@ packages: /jwa@2.0.0: resolution: {integrity: sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==} + requiresBuild: true dependencies: buffer-equal-constant-time: 1.0.1 ecdsa-sig-formatter: 1.0.11 @@ -7468,6 +7471,7 @@ packages: /mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} + requiresBuild: true dev: true /mime-types@2.1.35: @@ -9610,6 +9614,7 @@ packages: /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + requiresBuild: true dependencies: safe-buffer: 5.2.1