From d761bc80762c687d9073abadbcb7a4efaa3ad232 Mon Sep 17 00:00:00 2001 From: junbao Date: Sun, 10 Nov 2024 21:21:37 -0800 Subject: [PATCH] feat: should skip empty key --- package.json | 2 +- packages/amos-babel/package.json | 2 +- packages/amos-boxes/package.json | 2 +- packages/amos-core/package.json | 2 +- packages/amos-io/package.json | 2 +- packages/amos-persist/package.json | 2 +- packages/amos-persist/src/enhancer.ts | 2 +- packages/amos-react/package.json | 2 +- packages/amos-shapes/package.json | 2 +- packages/amos-testing/package.json | 2 +- packages/amos-typescript/package.json | 2 +- packages/amos-utils/package.json | 2 +- packages/amos/package.json | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 771e66a..423e8dd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@amos/root", "private": true, - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "license": "MIT", "workspaces": [ "packages/*", diff --git a/packages/amos-babel/package.json b/packages/amos-babel/package.json index be17092..5a86176 100644 --- a/packages/amos-babel/package.json +++ b/packages/amos-babel/package.json @@ -1,6 +1,6 @@ { "name": "amos-babel", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [], "peerDependencies": { diff --git a/packages/amos-boxes/package.json b/packages/amos-boxes/package.json index e892261..aa6c909 100644 --- a/packages/amos-boxes/package.json +++ b/packages/amos-boxes/package.json @@ -1,6 +1,6 @@ { "name": "amos-boxes", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-core/package.json b/packages/amos-core/package.json index 3b8c120..b194af9 100644 --- a/packages/amos-core/package.json +++ b/packages/amos-core/package.json @@ -1,6 +1,6 @@ { "name": "amos-core", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-io/package.json b/packages/amos-io/package.json index 1c7c117..c946033 100644 --- a/packages/amos-io/package.json +++ b/packages/amos-io/package.json @@ -1,6 +1,6 @@ { "name": "amos-io", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-persist/package.json b/packages/amos-persist/package.json index 5f6ce09..95a0226 100644 --- a/packages/amos-persist/package.json +++ b/packages/amos-persist/package.json @@ -1,6 +1,6 @@ { "name": "amos-persist", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-persist/src/enhancer.ts b/packages/amos-persist/src/enhancer.ts index 1d919eb..89f671b 100644 --- a/packages/amos-persist/src/enhancer.ts +++ b/packages/amos-persist/src/enhancer.ts @@ -85,7 +85,7 @@ export function withPersist(options: PartialRequired) } // hydrate rows for multi-row boxes if ( - loadRows && + loadRows?.[1] && (getInitial(loadRows[0])[1] === void 0 || !loadRows[0].table!.hasRow(getInitial(loadRows[0])[0], loadRows[1])) && !hydrated.has(toKey(loadRows[0])) && diff --git a/packages/amos-react/package.json b/packages/amos-react/package.json index d4fb62e..11bbae2 100644 --- a/packages/amos-react/package.json +++ b/packages/amos-react/package.json @@ -1,6 +1,6 @@ { "name": "amos-react", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [], "peerDependencies": { diff --git a/packages/amos-shapes/package.json b/packages/amos-shapes/package.json index 76d4b1b..38a2c51 100644 --- a/packages/amos-shapes/package.json +++ b/packages/amos-shapes/package.json @@ -1,6 +1,6 @@ { "name": "amos-shapes", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-testing/package.json b/packages/amos-testing/package.json index e291c78..f0e9dae 100644 --- a/packages/amos-testing/package.json +++ b/packages/amos-testing/package.json @@ -1,6 +1,6 @@ { "name": "amos-testing", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos-typescript/package.json b/packages/amos-typescript/package.json index 6be3c97..61b695b 100644 --- a/packages/amos-typescript/package.json +++ b/packages/amos-typescript/package.json @@ -1,6 +1,6 @@ { "name": "amos-typescript", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [], "peerDependencies": { diff --git a/packages/amos-utils/package.json b/packages/amos-utils/package.json index 9bedb07..9fa2dc4 100644 --- a/packages/amos-utils/package.json +++ b/packages/amos-utils/package.json @@ -1,6 +1,6 @@ { "name": "amos-utils", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "private": true, "files": [] } diff --git a/packages/amos/package.json b/packages/amos/package.json index 0ae9896..22705ea 100644 --- a/packages/amos/package.json +++ b/packages/amos/package.json @@ -1,6 +1,6 @@ { "name": "amos", - "version": "0.3.0-beta.34", + "version": "0.3.0-beta.35", "description": "An out-of-the-box state management library designed for your large-scale projects.", "keywords": [ "amos",