A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix storage
ammarahm-edfabc595f3db3
diff --git a/apps/mobile/app/common/database/mmkv.js b/apps/mobile/app/common/database/mmkv.jsindex 02a866e75..488789d78 100644--- a/apps/mobile/app/common/database/mmkv.js+++ b/apps/mobile/app/common/database/mmkv.js@@ -18,9 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { Platform } from "react-native";-import MMKVStorage, { ProcessingModes } from "react-native-mmkv-storage";+import { ProcessingModes, MMKVLoader } from "react-native-mmkv-storage";-export const MMKV = new MMKVStorage.Loader()+export const MMKV = new MMKVLoader().setProcessingMode(Platform.OS === "ios"? ProcessingModes.MULTI_PROCESSdiff --git a/apps/mobile/app/common/database/storage.js b/apps/mobile/app/common/database/storage.jsindex 47e71679c..bb2e1e2c2 100644--- a/apps/mobile/app/common/database/storage.js+++ b/apps/mobile/app/common/database/storage.js@@ -57,6 +57,7 @@ export class KV {key,typeof data === "string" ? data : JSON.stringify(data));+return true;}@@ -67,7 +68,7 @@ export class KV {try {let data = await this.storage.getMultipleItemsAsync(keys.slice(),- "object"+ "string");return data.map(([key, value]) => {let obj;@@ -76,7 +77,6 @@ export class KV {} catch (e) {obj = value;}-return [key, obj];});} catch (e) {@@ -86,11 +86,11 @@ export class KV {}async remove(key) {- return await this.storage.removeItem(key);+ return this.storage.removeItem(key);}async clear() {- return await this.storage.clearStore();+ return this.storage.clearStore();}async getAllKeys() {diff --git a/apps/mobile/native/ios/Podfile.lock b/apps/mobile/native/ios/Podfile.lockindex dfc895cd5..3f686b309 100644--- a/apps/mobile/native/ios/Podfile.lock+++ b/apps/mobile/native/ios/Podfile.lock@@ -327,7 +327,7 @@ PODS:- React-Core- react-native-keep-awake (1.2.0):- React-Core- - react-native-mmkv-storage (0.10.0-alpha.3):+ - react-native-mmkv-storage (0.10.0-alpha.5):- MMKV (~> 1.3.1)- React- React-Core@@ -875,7 +875,7 @@ SPEC CHECKSUMS:react-native-image-resizer: 00ceb0e05586c7aadf061eea676957a6c2ec60fareact-native-in-app-review: db8bb167a5f238e7ceca5c242d6b36ce8c4404a4react-native-keep-awake: caee3ff89eaa21dfe29010f0d143566874a04441- react-native-mmkv-storage: d44b2a774b5d299ab6ce421c1ec1bd1d737a3b55+ react-native-mmkv-storage: 47f3054a7ab997881fd4b8941c8a51fa49102793react-native-netinfo: ccbe1085dffd16592791d550189772e13bf479e2react-native-notification-sounds: da78c828fe1bcbb92d8b505d5261890ed315ff39react-native-orientation: f1caf84d65f1a4fd4511a18f2b924e634ad7a628diff --git a/apps/mobile/native/package.json b/apps/mobile/native/package.jsonindex cc4471905..6efc7a3f5 100644--- a/apps/mobile/native/package.json+++ b/apps/mobile/native/package.json@@ -44,7 +44,7 @@"react-native-image-picker": "4.1.2","react-native-in-app-review": "4.3.3","react-native-keychain": "4.0.5",- "react-native-mmkv-storage": "^0.10.0-alpha.3",+ "react-native-mmkv-storage": "^0.10.0-alpha.5","react-native-modal-datetime-picker": "14.0.0","react-native-navigation-bar-color": "2.0.2","react-native-notification-sounds": "0.5.5",diff --git a/apps/mobile/package-lock.json b/apps/mobile/package-lock.jsonindex 388056525..6e54e6335 100644--- a/apps/mobile/package-lock.json+++ b/apps/mobile/package-lock.json@@ -308,7 +308,7 @@"react-native-image-picker": "4.1.2","react-native-in-app-review": "4.3.3","react-native-keychain": "4.0.5",- "react-native-mmkv-storage": "^0.10.0-alpha.3",+ "react-native-mmkv-storage": "^0.10.0-alpha.5","react-native-modal-datetime-picker": "14.0.0","react-native-navigation-bar-color": "2.0.2","react-native-notification-sounds": "0.5.5",@@ -18298,9 +18298,9 @@"integrity": "sha512-TbiO8AO055EPjaxIuKxrCEOB4r81uQCVDFbtcs+e4pEOHxf6z3JgDC0UU0poJElKfCh37b+TFRxQhg6DbsYJBA=="},"node_modules/react-native-mmkv-storage": {- "version": "0.10.0-alpha.3",- "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.3.tgz",- "integrity": "sha512-YQF0HC1BouWSEx6+mI0Cj7xTwO+u4n2kNZByJ3ztGO2eJt1hf5GwDXKJinmqHLCr29+SkKAb1co9FdVY5Vrypg==",+ "version": "0.10.0-alpha.5",+ "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.5.tgz",+ "integrity": "sha512-gSsYGtShGz/dE48WX3WGcY4gEbKUpa0x7apPffAm4l8p9lICbBDmHxqSr8EVqkL327dgn6xlFmsYG1avjlb+gw==","bin": {"mmkv-link": "autolink/postlink/run.js"},@@ -26743,7 +26743,7 @@"react-native-image-picker": "4.1.2","react-native-in-app-review": "4.3.3","react-native-keychain": "4.0.5",- "react-native-mmkv-storage": "^0.10.0-alpha.3",+ "react-native-mmkv-storage": "^0.10.0-alpha.5","react-native-modal-datetime-picker": "14.0.0","react-native-navigation-bar-color": "2.0.2","react-native-notification-sounds": "0.5.5",@@ -35851,9 +35851,9 @@"integrity": "sha512-TbiO8AO055EPjaxIuKxrCEOB4r81uQCVDFbtcs+e4pEOHxf6z3JgDC0UU0poJElKfCh37b+TFRxQhg6DbsYJBA=="},"react-native-mmkv-storage": {- "version": "0.10.0-alpha.3",- "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.3.tgz",- "integrity": "sha512-YQF0HC1BouWSEx6+mI0Cj7xTwO+u4n2kNZByJ3ztGO2eJt1hf5GwDXKJinmqHLCr29+SkKAb1co9FdVY5Vrypg=="+ "version": "0.10.0-alpha.5",+ "resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.10.0-alpha.5.tgz",+ "integrity": "sha512-gSsYGtShGz/dE48WX3WGcY4gEbKUpa0x7apPffAm4l8p9lICbBDmHxqSr8EVqkL327dgn6xlFmsYG1avjlb+gw=="},"react-native-modal-datetime-picker": {"version": "14.0.0",diff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex 726461d9c..12f667b12 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -42,4 +42,4 @@"@trpc/server": "^10.31.0","@tanstack/react-query": "^4.29.19"}-}\ No newline at end of file+}diff --git a/apps/web/package-lock.json b/apps/web/package-lock.jsonindex b5594589a..879585857 100644--- a/apps/web/package-lock.json+++ b/apps/web/package-lock.json@@ -19654,8 +19654,8 @@"dev": true,"license": "GPL-3.0-or-later","dependencies": {- "@microsoft/signalr": "^6.0.7",- "@microsoft/signalr-protocol-msgpack": "^6.0.7",+ "@microsoft/signalr": "^7.0.10",+ "@microsoft/signalr-protocol-msgpack": "^7.0.10","@notesnook/logger": "file:../logger","@streetwriters/showdown": "^3.0.1-alpha.2","async-mutex": "^0.3.2",diff --git a/packages/common/package-lock.json b/packages/common/package-lock.jsonindex c24250f7c..1cb9f2a44 100644--- a/packages/common/package-lock.json+++ b/packages/common/package-lock.json@@ -28,8 +28,8 @@"dev": true,"license": "GPL-3.0-or-later","dependencies": {- "@microsoft/signalr": "^6.0.7",- "@microsoft/signalr-protocol-msgpack": "^6.0.7",+ "@microsoft/signalr": "^7.0.10",+ "@microsoft/signalr-protocol-msgpack": "^7.0.10","@notesnook/logger": "file:../logger","@streetwriters/showdown": "^3.0.1-alpha.2","async-mutex": "^0.3.2",@@ -141,8 +141,8 @@"@notesnook/core": {"version": "file:../core","requires": {- "@microsoft/signalr": "^6.0.7",- "@microsoft/signalr-protocol-msgpack": "^6.0.7",+ "@microsoft/signalr": "^7.0.10",+ "@microsoft/signalr-protocol-msgpack": "^7.0.10","@notesnook/crypto": "file:../crypto","@notesnook/logger": "file:../logger","@streetwriters/showdown": "^3.0.1-alpha.2",diff --git a/packages/editor/package-lock.json b/packages/editor/package-lock.jsonindex 28f6b3a80..36c8f7660 100644--- a/packages/editor/package-lock.json+++ b/packages/editor/package-lock.json@@ -88,8 +88,8 @@"version": "7.4.1","license": "GPL-3.0-or-later","dependencies": {- "@microsoft/signalr": "^6.0.7",- "@microsoft/signalr-protocol-msgpack": "^6.0.7",+ "@microsoft/signalr": "^7.0.10",+ "@microsoft/signalr-protocol-msgpack": "^7.0.10","@notesnook/logger": "file:../logger","@streetwriters/showdown": "^3.0.1-alpha.2","async-mutex": "^0.3.2",@@ -4307,8 +4307,8 @@"@notesnook/core": {"version": "file:../core","requires": {- "@microsoft/signalr": "^6.0.7",- "@microsoft/signalr-protocol-msgpack": "^6.0.7",+ "@microsoft/signalr": "^7.0.10",+ "@microsoft/signalr-protocol-msgpack": "^7.0.10","@notesnook/crypto": "file:../crypto","@notesnook/logger": "file:../logger","@streetwriters/showdown": "^3.0.1-alpha.2",