react-native-onyx 1.0.119 → 1.0.121
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 +7 -0
- package/dist/web.development.js +408 -113
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/ActiveClientManager/index.d.ts +22 -0
- package/lib/ActiveClientManager/index.native.js +23 -0
- package/lib/ActiveClientManager/index.web.js +99 -0
- package/lib/Logger.js +1 -5
- package/lib/MDTable.js +11 -14
- package/lib/Onyx.d.ts +11 -4
- package/lib/Onyx.js +344 -232
- package/lib/OnyxCache.js +12 -3
- package/lib/Str.js +17 -4
- package/lib/broadcast/index.d.ts +17 -0
- package/lib/broadcast/index.native.js +14 -0
- package/lib/broadcast/index.web.js +35 -0
- package/lib/compose.js +6 -2
- package/lib/metrics/PerformanceUtils.js +2 -7
- package/lib/metrics/index.native.js +28 -41
- package/lib/metrics/index.web.js +4 -7
- package/lib/storage/WebStorage.js +6 -11
- package/lib/storage/__mocks__/index.js +2 -2
- package/lib/storage/providers/IDBKeyVal.js +27 -37
- package/lib/storage/providers/SQLiteStorage.js +58 -62
- package/lib/types.d.ts +1 -13
- package/lib/utils.d.ts +2 -6
- package/lib/utils.js +19 -22
- package/lib/withOnyx.d.ts +8 -32
- package/lib/withOnyx.js +37 -34
- package/package.json +15 -6
package/README.md
CHANGED
|
@@ -405,3 +405,10 @@ To continuously work on Onyx we have to set up a task that copies content to par
|
|
|
405
405
|
3. Optional: run `npm run build` (if you're working or want to test on a non react-native project)
|
|
406
406
|
- `npm link` would actually work outside of `react-native` and it can be used to link Onyx locally for a web only project
|
|
407
407
|
4. Copy Onyx to consumer project's `node_modules/react-native-onyx`
|
|
408
|
+
|
|
409
|
+
# Automated Tests
|
|
410
|
+
|
|
411
|
+
There are Playwright e2e tests implemented for the web. To run them:
|
|
412
|
+
|
|
413
|
+
- `npm run e2e` to run the e2e tests
|
|
414
|
+
- or `npm run e2e-ui` to run the e2e tests in UI mode
|