From d1ee44ba8224be8ab5b3e5eb079d84d54bea761c Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 6 Oct 2025 19:09:25 +0300 Subject: [PATCH] avoid using package alias --- package.json | 2 +- src/storage/__tests__/index.test.ts | 2 +- src/storage/index.ts | 2 +- yarn.lock | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index c1d2d1adee..9ef05c1f41 100644 --- a/package.json +++ b/package.json @@ -192,7 +192,7 @@ "react-native-gesture-handler": "~2.28.0", "react-native-get-random-values": "~1.11.0", "react-native-keyboard-controller": "1.18.5", - "react-native-mmkv": "npm:@mozzius/react-native-mmkv@2.12.3", + "@mozzius/react-native-mmkv": "2.12.3", "react-native-pager-view": "6.8.0", "react-native-progress": "bluesky-social/react-native-progress", "react-native-qrcode-styled": "^0.3.3", diff --git a/src/storage/__tests__/index.test.ts b/src/storage/__tests__/index.test.ts index e11affa7a8..56565e225e 100644 --- a/src/storage/__tests__/index.test.ts +++ b/src/storage/__tests__/index.test.ts @@ -2,7 +2,7 @@ import {beforeEach, expect, jest, test} from '@jest/globals' import {Storage} from '#/storage' -jest.mock('react-native-mmkv', () => ({ +jest.mock('@mozzius/react-native-mmkv', () => ({ MMKV: class MMKVMock { _store = new Map() diff --git a/src/storage/index.ts b/src/storage/index.ts index 4c42005104..53dc8d78a8 100644 --- a/src/storage/index.ts +++ b/src/storage/index.ts @@ -1,5 +1,5 @@ import {useCallback, useEffect, useState} from 'react' -import {MMKV} from 'react-native-mmkv' +import {MMKV} from '@mozzius/react-native-mmkv' import {type Account, type Device} from '#/storage/schema' diff --git a/yarn.lock b/yarn.lock index 603933f186..6564302039 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5346,6 +5346,11 @@ "@expo/image-utils" "^0.8.7" xcode "^3.0.1" +"@mozzius/react-native-mmkv@2.12.3": + version "2.12.3" + resolved "https://registry.yarnpkg.com/@mozzius/react-native-mmkv/-/react-native-mmkv-2.12.3.tgz#562e78c608703cfc1ee2b31c7d3ec328167b708a" + integrity sha512-w3T9lstT69Xln0gpxGEtB6/L2i7977WFLCa7CCu/9iyLHEXxOGCbzWWdFnR7SW53GlIMMn5/z9/nqoSiprVySQ== + "@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": version "5.1.1-v1" resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" @@ -17065,11 +17070,6 @@ react-native-keyboard-controller@1.18.5: dependencies: react-native-is-edge-to-edge "^1.2.1" -"react-native-mmkv@npm:@mozzius/react-native-mmkv@2.12.3": - version "2.12.3" - resolved "https://registry.yarnpkg.com/@mozzius/react-native-mmkv/-/react-native-mmkv-2.12.3.tgz#562e78c608703cfc1ee2b31c7d3ec328167b708a" - integrity sha512-w3T9lstT69Xln0gpxGEtB6/L2i7977WFLCa7CCu/9iyLHEXxOGCbzWWdFnR7SW53GlIMMn5/z9/nqoSiprVySQ== - react-native-pager-view@6.8.0: version "6.8.0" resolved "https://registry.yarnpkg.com/react-native-pager-view/-/react-native-pager-view-6.8.0.tgz#5bac05203d911bf9bf039d47db41b1313dbd1a7a"