memorio 5.1.3 → 5.1.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/AGENTS.md +1 -1
- package/CHANGELOG.md +9 -6
- package/README.md +18 -13
- package/examples/sqlite-batched-writes.ts +60 -60
- package/global.cjs +73 -33
- package/global.js +73 -33
- package/index.cjs +73 -33
- package/index.js +73 -33
- package/llms.txt +13 -0
- package/markdown/MEMORY.md +27 -0
- package/markdown/SQLITE.md +2 -2
- package/markdown/SYNC.md +1 -1
- package/modules/redux.cjs +29 -6
- package/modules/redux.cjs.map +1 -1
- package/modules/redux.js +29 -6
- package/modules/redux.js.map +1 -1
- package/package.json +1 -1
- package/types/state.d.ts +19 -5
- package/vsix/memorio.vsix +0 -0
package/package.json
CHANGED
package/types/state.d.ts
CHANGED
|
@@ -54,13 +54,27 @@ interface _state {
|
|
|
54
54
|
readonly list?: () => object
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
* Generate a message for "memorio"
|
|
58
|
+
* Note: FOR INTERNAL USE ONLY.
|
|
59
|
+
* @since memorio 0.0.1
|
|
60
|
+
*/
|
|
61
61
|
readonly mex?: any
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Persist a state path to the store and keep it synced.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* const stop = state.persist('state.user')
|
|
68
|
+
* // ... mutations to state.user are mirrored to store automatically
|
|
69
|
+
* stop() // call to stop mirroring
|
|
70
|
+
*
|
|
71
|
+
* @param path A `state.`-prefixed path (e.g. `'state.user'`). A bare key
|
|
72
|
+
* like `'user'` is normalized.
|
|
73
|
+
* @return An unsubscribe function; call it to stop mirroring.
|
|
74
|
+
*/
|
|
75
|
+
readonly persist: (path: string) => (() => void)
|
|
76
|
+
|
|
77
|
+
}
|
|
64
78
|
|
|
65
79
|
declare var state: _state
|
|
66
80
|
type state = _state
|
package/vsix/memorio.vsix
CHANGED
|
Binary file
|