@multiplatform.one/keycloak 8.6.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -243,7 +243,13 @@ var defaultLoaders = {
243
243
  // passed-around `require` reference would survive as a bare identifier and
244
244
  // crash). Lazy so a genuinely missing native module throws HERE — inside
245
245
  // the try/catch — instead of at bundle evaluation.
246
- loadMMKV: () => require("react-native-mmkv"),
246
+ loadMMKV: () => {
247
+ try {
248
+ return require("react-native-mmkv");
249
+ } catch (error2) {
250
+ throw new Error("react-native-mmkv is not installed", { cause: error2 });
251
+ }
252
+ },
247
253
  loadAsyncStorage: () => {
248
254
  try {
249
255
  return require("@react-native-async-storage/async-storage");
@@ -194,7 +194,13 @@ var defaultLoaders = {
194
194
  // passed-around `require` reference would survive as a bare identifier and
195
195
  // crash). Lazy so a genuinely missing native module throws HERE — inside
196
196
  // the try/catch — instead of at bundle evaluation.
197
- loadMMKV: () => __require("react-native-mmkv"),
197
+ loadMMKV: () => {
198
+ try {
199
+ return __require("react-native-mmkv");
200
+ } catch (error2) {
201
+ throw new Error("react-native-mmkv is not installed", { cause: error2 });
202
+ }
203
+ },
198
204
  loadAsyncStorage: () => {
199
205
  try {
200
206
  return __require("@react-native-async-storage/async-storage");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/keycloak",
3
- "version": "8.6.0",
3
+ "version": "9.0.0",
4
4
  "description": "keycloak client for multiplatform.one ecosystem",
5
5
  "keywords": [
6
6
  "auth",
@@ -55,17 +55,17 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@better-auth/expo": "~1.6.33",
58
- "@multiplatform.one/auth": "^8.6.0",
59
- "@multiplatform.one/keycloak-js": "^8.6.0",
60
- "@multiplatform.one/store": "^8.6.0",
58
+ "@multiplatform.one/auth": "^9.0.0",
59
+ "@multiplatform.one/keycloak-js": "^9.0.0",
60
+ "@multiplatform.one/store": "^9.0.0",
61
61
  "better-auth": "~1.6.33",
62
62
  "jwt-decode": "^4.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@multiplatform.one/config": "8.6.0",
66
- "@multiplatform.one/logger": "8.6.0",
67
- "@multiplatform.one/platform": "8.6.0",
68
- "@multiplatform.one/test-utils": "8.6.0",
65
+ "@multiplatform.one/config": "9.0.0",
66
+ "@multiplatform.one/logger": "9.0.0",
67
+ "@multiplatform.one/platform": "9.0.0",
68
+ "@multiplatform.one/test-utils": "9.0.0",
69
69
  "@tamagui/build": "2.7.6",
70
70
  "@testing-library/jest-dom": "^7.0.1",
71
71
  "@testing-library/react": "^16.3.3",
@@ -79,8 +79,8 @@
79
79
  "vitest": "^4.1.12"
80
80
  },
81
81
  "peerDependencies": {
82
- "@multiplatform.one/logger": "^8.6.0",
83
- "@multiplatform.one/platform": "^8.6.0",
82
+ "@multiplatform.one/logger": "^9.0.0",
83
+ "@multiplatform.one/platform": "^9.0.0",
84
84
  "react": "^19.1.0",
85
85
  "react-native": ">=0.83.0"
86
86
  },