@wordpress/data 10.0.2 → 10.2.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 +17 -13
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 10.2.0 (2024-06-26)
|
|
6
|
+
|
|
7
|
+
## 10.1.0 (2024-06-15)
|
|
8
|
+
|
|
5
9
|
## 10.0.0 (2024-05-31)
|
|
6
10
|
|
|
7
11
|
### Breaking Changes
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
|
|
45
49
|
## 9.13.1 (2023-10-12)
|
|
46
50
|
|
|
47
|
-
### Bug
|
|
51
|
+
### Bug Fixes
|
|
48
52
|
|
|
49
53
|
- Fix `combineReducers()` types ([#55321](https://github.com/WordPress/gutenberg/pull/55321)).
|
|
50
54
|
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
|
|
67
71
|
## 9.9.0 (2023-08-10)
|
|
68
72
|
|
|
69
|
-
### Bug
|
|
73
|
+
### Bug Fixes
|
|
70
74
|
|
|
71
75
|
- Update the type definitions for dispatched actions by accounting for Promisified return values and thunks. Previously, a dispatched action's return type was the same as the return type of the original action creator, which did not account for how dispatch works internally. (Plain actions get wrapped in a Promise, and thunk actions ultimately resolve to the innermost function's return type).
|
|
72
76
|
- Update the type definition for dispatch() to handle string store descriptors correctly.
|
|
@@ -133,7 +137,7 @@
|
|
|
133
137
|
|
|
134
138
|
– Add TypeScript types to the built package (via "types": "build-types" in the package.json)
|
|
135
139
|
|
|
136
|
-
### Bug
|
|
140
|
+
### Bug Fixes
|
|
137
141
|
|
|
138
142
|
- Packages: Replace `is-plain-obj` with `is-plain-object` ([#43511](https://github.com/WordPress/gutenberg/pull/43511)).
|
|
139
143
|
|
|
@@ -175,13 +179,13 @@
|
|
|
175
179
|
|
|
176
180
|
## 6.2.1 (2022-02-10)
|
|
177
181
|
|
|
178
|
-
### Bug
|
|
182
|
+
### Bug Fixes
|
|
179
183
|
|
|
180
184
|
- Removed unused `memize` dependency ([#38388](https://github.com/WordPress/gutenberg/pull/38388)).
|
|
181
185
|
|
|
182
186
|
## 6.2.0 (2022-01-27)
|
|
183
187
|
|
|
184
|
-
### Bug
|
|
188
|
+
### Bug Fixes
|
|
185
189
|
|
|
186
190
|
- Corrected expect type of action creators and selectors in Redux store configuration type
|
|
187
191
|
- Move `redux` to regular dependencies and update it to version `^4.1.2`.
|
|
@@ -201,7 +205,7 @@
|
|
|
201
205
|
|
|
202
206
|
## 6.0.0 (2021-07-29)
|
|
203
207
|
|
|
204
|
-
### Breaking
|
|
208
|
+
### Breaking Changes
|
|
205
209
|
|
|
206
210
|
- Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
|
|
207
211
|
|
|
@@ -246,7 +250,7 @@
|
|
|
246
250
|
|
|
247
251
|
## 4.6.0 (2019-06-12)
|
|
248
252
|
|
|
249
|
-
### New
|
|
253
|
+
### New Features
|
|
250
254
|
|
|
251
255
|
- Expose `useSelect` hook for usage in functional components. ([#15737](https://github.com/WordPress/gutenberg/pull/15737))
|
|
252
256
|
- Expose `useDispatch` hook for usage in functional components. ([#15896](https://github.com/WordPress/gutenberg/pull/15896))
|
|
@@ -258,7 +262,7 @@
|
|
|
258
262
|
|
|
259
263
|
## 4.5.0 (2019-05-21)
|
|
260
264
|
|
|
261
|
-
### Bug
|
|
265
|
+
### Bug Fixes
|
|
262
266
|
|
|
263
267
|
- Restore functionality of action-generators returning a Promise. Clarify intent and behaviour for `dispatch` behaviour. Dispatch actions now always
|
|
264
268
|
return a promise ([#14830](https://github.com/WordPress/gutenberg/pull/14830)
|
|
@@ -275,7 +279,7 @@
|
|
|
275
279
|
- Introduce new `invalidateResolutionForStore` dispatch action for signalling to invalidate the resolution cache for an entire given store.
|
|
276
280
|
- Introduce new `invalidateResolutionForStoreSelector` dispatch action for signalling to invalidate the resolution cache for a store selector (and all variations of arguments on that selector).
|
|
277
281
|
|
|
278
|
-
### Bug
|
|
282
|
+
### Bug Fixes
|
|
279
283
|
|
|
280
284
|
- Resolves issue in the persistence plugin where passing `persist` as an array of reducer keys would wrongly replace state values for the unpersisted reducer keys.
|
|
281
285
|
- Restores a behavior in the persistence plugin where a default state provided as an object will be deeply merged as a base for the persisted value. This allows for a developer to include additional new keys in a persisted value default in future iterations of their store.
|
|
@@ -288,7 +292,7 @@
|
|
|
288
292
|
|
|
289
293
|
## 4.1.0 (2018-12-12)
|
|
290
294
|
|
|
291
|
-
### New
|
|
295
|
+
### New Features
|
|
292
296
|
|
|
293
297
|
- `withDispatch`'s `mapDispatchToProps` function takes the `registry` object as the 3rd param ([#11851](https://github.com/WordPress/gutenberg/pull/11851)).
|
|
294
298
|
- `withSelect`'s `mapSelectToProps` function takes the `registry` object as the 3rd param ([#11851](https://github.com/WordPress/gutenberg/pull/11851)).
|
|
@@ -304,7 +308,7 @@
|
|
|
304
308
|
- `registry.registerActions` has been removed. Use `registry.registerStore` instead.
|
|
305
309
|
- `registry.registerResolvers` has been removed. Use `registry.registerStore` instead.
|
|
306
310
|
|
|
307
|
-
### Bug
|
|
311
|
+
### Bug Fixes
|
|
308
312
|
|
|
309
313
|
- Resolve an issue where `withSelect`'s `mapSelectToProps` would not be rerun if the wrapped component had incurred a store change during its mount lifecycle.
|
|
310
314
|
|
|
@@ -347,7 +351,7 @@
|
|
|
347
351
|
|
|
348
352
|
- Adding support for using controls in resolvers using the controls plugin.
|
|
349
353
|
|
|
350
|
-
###
|
|
354
|
+
### Internal
|
|
351
355
|
|
|
352
356
|
- Updated `redux` dependency to the latest version.
|
|
353
357
|
|
|
@@ -361,7 +365,7 @@
|
|
|
361
365
|
|
|
362
366
|
## 2.0.0 (2018-09-05)
|
|
363
367
|
|
|
364
|
-
### Breaking
|
|
368
|
+
### Breaking Changes
|
|
365
369
|
|
|
366
370
|
- The `withRehdyration` function is removed. Use the persistence plugin instead.
|
|
367
371
|
- The `loadAndPersist` function is removed. Use the persistence plugin instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/data",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "Data module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.16.0",
|
|
33
|
-
"@wordpress/compose": "^7.0
|
|
34
|
-
"@wordpress/deprecated": "^4.0
|
|
35
|
-
"@wordpress/element": "^6.0
|
|
36
|
-
"@wordpress/is-shallow-equal": "^5.0
|
|
37
|
-
"@wordpress/priority-queue": "^3.0
|
|
38
|
-
"@wordpress/private-apis": "^1.0
|
|
39
|
-
"@wordpress/redux-routine": "^5.0
|
|
33
|
+
"@wordpress/compose": "^7.2.0",
|
|
34
|
+
"@wordpress/deprecated": "^4.2.0",
|
|
35
|
+
"@wordpress/element": "^6.2.0",
|
|
36
|
+
"@wordpress/is-shallow-equal": "^5.2.0",
|
|
37
|
+
"@wordpress/priority-queue": "^3.2.0",
|
|
38
|
+
"@wordpress/private-apis": "^1.2.0",
|
|
39
|
+
"@wordpress/redux-routine": "^5.2.0",
|
|
40
40
|
"deepmerge": "^4.3.0",
|
|
41
41
|
"equivalent-key-map": "^0.2.2",
|
|
42
42
|
"is-plain-object": "^5.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
|
|
55
55
|
}
|