@rozenite/storage-plugin 1.7.0 → 1.8.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.
- package/CHANGELOG.md +21 -0
- package/README.md +6 -0
- package/dist/devtools/assets/{panel-9uIwTlU4.js → panel-eGOuOVos.js} +6 -6
- package/dist/devtools/panel.html +1 -1
- package/dist/react-native/chunks/async-storage.require.cjs +1 -0
- package/dist/react-native/chunks/async-storage.require.js +52 -0
- package/dist/react-native/chunks/index.require.cjs +1 -1
- package/dist/react-native/chunks/index.require.js +76 -159
- package/dist/react-native/chunks/secure-storage.require.cjs +1 -0
- package/dist/react-native/chunks/secure-storage.require.js +42 -0
- package/dist/react-native/chunks/useRozeniteStoragePlugin.require.cjs +1 -1
- package/dist/react-native/chunks/useRozeniteStoragePlugin.require.js +148 -135
- package/dist/react-native/index.cjs +1 -1
- package/dist/react-native/index.d.ts +1 -1
- package/dist/react-native/index.js +20 -19
- package/dist/rozenite.json +1 -1
- package/dist/sdk/index.cjs +1 -0
- package/dist/sdk/index.d.ts +197 -0
- package/dist/sdk/index.js +113 -0
- package/package.json +14 -6
- package/react-native.ts +33 -21
- package/sdk.ts +44 -0
- package/src/react-native/useStorageAgentTools.ts +24 -146
- package/src/shared/agent-tools.ts +213 -0
- package/tsconfig.json +3 -1
- package/vite.config.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @rozenite/storage-plugin
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#222](https://github.com/callstackincubator/rozenite/pull/222) [`404244b`](https://github.com/callstackincubator/rozenite/commit/404244bab0600761ed82e5a7e8072b933c46f80a) Thanks [@manapard](https://github.com/manapard)! - Add plugin `./sdk` entrypoints for typed agent tool descriptors backed by the
|
|
8
|
+
same tool contracts used at runtime.
|
|
9
|
+
|
|
10
|
+
The storage plugin now ships `@rozenite/storage-plugin/sdk` with typed
|
|
11
|
+
`storageTools` descriptors and shared tool contract exports, and the Rozenite
|
|
12
|
+
build pipeline now bundles per-target SDK declarations so plugin SDK entrypoints
|
|
13
|
+
publish clean `dist/sdk/index.d.ts` files.
|
|
14
|
+
|
|
15
|
+
- [#228](https://github.com/callstackincubator/rozenite/pull/228) [`0b373c7`](https://github.com/callstackincubator/rozenite/commit/0b373c7e1b3ebf0a80f87f0a7871d55dcf300992) Thanks [@V3RON](https://github.com/V3RON)! - The Storage plugin now runs in **development on web** (React Native for Web) when using Rozenite for Web. AsyncStorage and Expo SecureStore adapters work as on native; **MMKV** stays unavailable in the browser, so the MMKV adapter resolves to an **empty inspector** (same as production) without loading `react-native-mmkv` in your web bundle.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`404244b`](https://github.com/callstackincubator/rozenite/commit/404244bab0600761ed82e5a7e8072b933c46f80a), [`404244b`](https://github.com/callstackincubator/rozenite/commit/404244bab0600761ed82e5a7e8072b933c46f80a)]:
|
|
20
|
+
- @rozenite/agent-bridge@1.8.0
|
|
21
|
+
- @rozenite/agent-shared@1.8.0
|
|
22
|
+
- @rozenite/plugin-bridge@1.8.0
|
|
23
|
+
|
|
3
24
|
## 1.7.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -69,6 +69,12 @@ createAsyncStorageAdapter({
|
|
|
69
69
|
|
|
70
70
|
`createExpoAsyncStorageAdapter` is still exported as a backward-compatible alias.
|
|
71
71
|
|
|
72
|
+
## Web (React Native for Web)
|
|
73
|
+
|
|
74
|
+
When you use [Rozenite for Web](https://rozenite.dev/docs/rozenite-for-web) in development, this plugin loads in the browser like on native. **AsyncStorage** and **Expo SecureStore** adapters work on web when the underlying libraries do.
|
|
75
|
+
|
|
76
|
+
**MMKV** is not available in typical web bundles. In development on web, `createMMKVStorageAdapter` returns an adapter with **empty `storages`** (same behavior as production builds), so you can keep shared setup code without importing `react-native-mmkv` in the web bundle.
|
|
77
|
+
|
|
72
78
|
## Notes
|
|
73
79
|
|
|
74
80
|
- Unsupported value types are disabled in UI create/edit flows.
|