@wordpress/preferences-persistence 2.55.0 → 2.55.1-next.v.202609171837.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/README.md +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -38,14 +38,14 @@ Creates a persistence layer that stores data in WordPress user meta via the REST
|
|
|
38
38
|
|
|
39
39
|
_Parameters_
|
|
40
40
|
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
41
|
+
- _options_ `Object`:
|
|
42
|
+
- _options.preloadedData_ `?Object`: Any persisted preferences data that should be preloaded. When set, the persistence layer will avoid fetching data from the REST API.
|
|
43
|
+
- _options.localStorageRestoreKey_ `?string`: The key to use for restoring the localStorage backup, used when the persistence layer calls `localStorage.getItem` or `localStorage.setItem`.
|
|
44
|
+
- _options.requestDebounceMS_ `?number`: Debounce requests to the API so that they only occur at minimum every `requestDebounceMS` milliseconds, and don't swamp the server. Defaults to 2500ms.
|
|
45
45
|
|
|
46
46
|
_Returns_
|
|
47
47
|
|
|
48
|
-
-
|
|
48
|
+
- `Object`: A persistence layer for WordPress user meta.
|
|
49
49
|
|
|
50
50
|
<!-- END TOKEN(Autogenerated Docs|src/index.js) -->
|
|
51
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/preferences-persistence",
|
|
3
|
-
"version": "2.55.0",
|
|
3
|
+
"version": "2.55.1-next.v.202609171837.0",
|
|
4
4
|
"description": "Persistence utilities for `wordpress/preferences`.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"wpScript": true,
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@wordpress/api-fetch": "^7.55.0"
|
|
46
|
+
"@wordpress/api-fetch": "^7.55.1-next.v.202609171837.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"vitest": "^5.0.0"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7fc9f6676debc888d2f071d17cb71837040d4b48"
|
|
55
55
|
}
|