From 555d89c5a8c0182c205566f1a4811705a7a9bfd9 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Sat, 23 Dec 2023 19:40:34 +0100 Subject: [PATCH 1/4] update Onyx --- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index f686f7152871..400ba6efd572 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,7 +94,7 @@ "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "1.0.118", + "react-native-onyx": "1.0.123", "react-native-pager-view": "^6.2.0", "react-native-pdf": "^6.7.3", "react-native-performance": "^5.1.0", @@ -47537,17 +47537,17 @@ } }, "node_modules/react-native-onyx": { - "version": "1.0.118", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.118.tgz", - "integrity": "sha512-w54jO+Bpu1ElHsrxZXIIpcBqNkrUvuVCQmwWdfOW5LvO4UwsPSwmMxzExbUZ4ip+7CROmm10IgXFaAoyfeYSVQ==", + "version": "1.0.123", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.123.tgz", + "integrity": "sha512-LOdUS+wuwh5NoV2WxU2ijGwGvqWs1Sokinc0G+4awk0rakbnBHvPvBN8HlGT2F4dYLWvH7LhLYBatXw0Hcd9vw==", "dependencies": { "ascii-table": "0.0.9", "fast-equals": "^4.0.3", "underscore": "^1.13.6" }, "engines": { - "node": ">=16.15.1 <=20.9.0", - "npm": ">=8.11.0 <=10.1.0" + "node": "20.9.0", + "npm": "10.1.0" }, "peerDependencies": { "idb-keyval": "^6.2.1", @@ -90416,9 +90416,9 @@ } }, "react-native-onyx": { - "version": "1.0.118", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.118.tgz", - "integrity": "sha512-w54jO+Bpu1ElHsrxZXIIpcBqNkrUvuVCQmwWdfOW5LvO4UwsPSwmMxzExbUZ4ip+7CROmm10IgXFaAoyfeYSVQ==", + "version": "1.0.123", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.123.tgz", + "integrity": "sha512-LOdUS+wuwh5NoV2WxU2ijGwGvqWs1Sokinc0G+4awk0rakbnBHvPvBN8HlGT2F4dYLWvH7LhLYBatXw0Hcd9vw==", "requires": { "ascii-table": "0.0.9", "fast-equals": "^4.0.3", diff --git a/package.json b/package.json index 533e8575c17c..19c033b4e754 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "1.0.118", + "react-native-onyx": "1.0.123", "react-native-pager-view": "^6.2.0", "react-native-pdf": "^6.7.3", "react-native-performance": "^5.1.0", @@ -316,4 +316,4 @@ "node": "20.9.0", "npm": "10.1.0" } -} \ No newline at end of file +} From 8e128f8ebfb3fb5f056431ecbb8c6fbe8a48858f Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Sat, 23 Dec 2023 23:52:15 +0100 Subject: [PATCH 2/4] fix: MigrationTest --- tests/unit/MigrationTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/MigrationTest.js b/tests/unit/MigrationTest.js index ebffc71e4e0e..4a363d1de36b 100644 --- a/tests/unit/MigrationTest.js +++ b/tests/unit/MigrationTest.js @@ -51,8 +51,8 @@ describe('Migrations', () => { it('Should remove any individual reportActions that have no data in Onyx', () => Onyx.multiSet({ [`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}1`]: { - 1: null, - 2: null, + 1: {}, + 2: {}, }, }) .then(PersonalDetailsByAccountID) From f6825c719d8414e9a12083b56d9fbe51c9b50ec9 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Sat, 23 Dec 2023 23:55:21 +0100 Subject: [PATCH 3/4] fix: ReportActionsUtilsTest --- tests/unit/ReportActionsUtilsTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/ReportActionsUtilsTest.js b/tests/unit/ReportActionsUtilsTest.js index 545d442e4799..c74a7d1930b7 100644 --- a/tests/unit/ReportActionsUtilsTest.js +++ b/tests/unit/ReportActionsUtilsTest.js @@ -369,7 +369,7 @@ describe('ReportActionsUtils', () => { callback: () => { Onyx.disconnect(connectionID); const res = ReportActionsUtils.getLastVisibleAction(report.reportID); - expect(res).toBe(action2); + expect(res).toEqual(action2); resolve(); }, }); From 29b923b313efeeeecc59849b01142483583d42b9 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Thu, 4 Jan 2024 15:52:59 +0100 Subject: [PATCH 4/4] update onyx --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3e6526fc4e12..2ef8c119fe59 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,7 +94,7 @@ "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "1.0.123", + "react-native-onyx": "1.0.125", "react-native-pager-view": "^6.2.0", "react-native-pdf": "^6.7.4", "react-native-performance": "^5.1.0", @@ -47590,9 +47590,9 @@ } }, "node_modules/react-native-onyx": { - "version": "1.0.123", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.123.tgz", - "integrity": "sha512-LOdUS+wuwh5NoV2WxU2ijGwGvqWs1Sokinc0G+4awk0rakbnBHvPvBN8HlGT2F4dYLWvH7LhLYBatXw0Hcd9vw==", + "version": "1.0.125", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.125.tgz", + "integrity": "sha512-55sFMOpSZnPRZyrxM4kCl3S7TvRdO+KknLcsKYIeUtKbjaMrdDkqCpZtvp0Js6pXIfyqIsQO1SBFswHMSi/Yjw==", "dependencies": { "ascii-table": "0.0.9", "fast-equals": "^4.0.3", @@ -90515,9 +90515,9 @@ } }, "react-native-onyx": { - "version": "1.0.123", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.123.tgz", - "integrity": "sha512-LOdUS+wuwh5NoV2WxU2ijGwGvqWs1Sokinc0G+4awk0rakbnBHvPvBN8HlGT2F4dYLWvH7LhLYBatXw0Hcd9vw==", + "version": "1.0.125", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-1.0.125.tgz", + "integrity": "sha512-55sFMOpSZnPRZyrxM4kCl3S7TvRdO+KknLcsKYIeUtKbjaMrdDkqCpZtvp0Js6pXIfyqIsQO1SBFswHMSi/Yjw==", "requires": { "ascii-table": "0.0.9", "fast-equals": "^4.0.3", diff --git a/package.json b/package.json index 95a4f4ac19ac..b8842d787aea 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,7 @@ "react-native-linear-gradient": "^2.8.1", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "1.0.123", + "react-native-onyx": "1.0.125", "react-native-pager-view": "^6.2.0", "react-native-pdf": "^6.7.4", "react-native-performance": "^5.1.0",