@quereus/plugin-react-native-leveldb 4.19.0 → 4.19.4
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/README.md +9 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -90,6 +90,15 @@ if (typeof Symbol.asyncIterator === 'undefined') {
|
|
|
90
90
|
}
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
## Babel Helper Version
|
|
94
|
+
|
|
95
|
+
Metro compiles async generators through Babel's `wrapAsyncGenerator` helper (from `@babel/helpers`, or `@babel/runtime` under `transform-runtime`). Before **7.29.2** that helper drops everything after the first `await` in a `finally` block when iteration stops early, so an early `break` out of `db.eval(...)` would leave Quereus's execution lock held and hang the next statement. Quereus detects this before running any statement and throws an `UNSUPPORTED` error; the fix is on the app side:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
yarn up '@babel/runtime@^7.29.2' '@babel/helpers@^7.29.2' # stays on Babel 7; a bare `yarn up` would jump to 8.x
|
|
99
|
+
npx react-native start --reset-cache # Metro caches transformed modules with the old helper inlined
|
|
100
|
+
```
|
|
101
|
+
|
|
93
102
|
## Quick Start
|
|
94
103
|
|
|
95
104
|
### With registerPlugin (Recommended)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quereus/plugin-react-native-leveldb",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native LevelDB storage plugin for Quereus - mobile persistent storage",
|
|
6
6
|
"keywords": [
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@quereus/isolation": "^4.19.
|
|
45
|
-
"@quereus/quereus": "^4.19.
|
|
46
|
-
"@quereus/store": "^4.19.
|
|
44
|
+
"@quereus/isolation": "^4.19.4",
|
|
45
|
+
"@quereus/quereus": "^4.19.4",
|
|
46
|
+
"@quereus/store": "^4.19.4",
|
|
47
47
|
"rn-leveldb": "^3.11.0"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"test": "cd ../.. && node --import ./packages/quereus-plugin-react-native-leveldb/register.mjs node_modules/mocha/bin/mocha.js \"packages/quereus-plugin-react-native-leveldb/test/**/*.spec.ts\" --reporter min --colors"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@quereus/quereus": "^4.19.
|
|
91
|
-
"@quereus/store": "^4.19.
|
|
90
|
+
"@quereus/quereus": "^4.19.4",
|
|
91
|
+
"@quereus/store": "^4.19.4"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@quereus/isolation": "*",
|