@xh/hoist 80.0.0-SNAPSHOT.1768931272469 → 80.0.0-SNAPSHOT.1769000829579
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 +4 -0
- package/data/Store.ts +4 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
* `View.isView`
|
|
21
21
|
* `Filter.isFilter`
|
|
22
22
|
|
|
23
|
+
### 🐞 Bug Fixes
|
|
24
|
+
|
|
25
|
+
* Fixed error encountered when attempting to `store.revert()` on a store with summary records.
|
|
26
|
+
|
|
23
27
|
### 🎁 New Features
|
|
24
28
|
|
|
25
29
|
* Enhanced `Field.rules` to support `warning` and `info` severity. Useful for non-blocking
|
package/data/Store.ts
CHANGED
|
@@ -1221,12 +1221,14 @@ export class Store
|
|
|
1221
1221
|
const recToRevert = records.find(it => it.id === summaryRec.id);
|
|
1222
1222
|
if (!recToRevert) return summaryRec;
|
|
1223
1223
|
|
|
1224
|
+
// StoreRecordConfig requires data to be a "new object dedicated to this StoreRecord".
|
|
1225
|
+
const data = {...recToRevert.committedData};
|
|
1224
1226
|
const ret = new StoreRecord({
|
|
1225
1227
|
id: recToRevert.id,
|
|
1226
1228
|
store: this,
|
|
1227
1229
|
raw: recToRevert.raw,
|
|
1228
|
-
data
|
|
1229
|
-
committedData:
|
|
1230
|
+
data,
|
|
1231
|
+
committedData: data,
|
|
1230
1232
|
parent: null,
|
|
1231
1233
|
isSummary: true
|
|
1232
1234
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "80.0.0-SNAPSHOT.
|
|
3
|
+
"version": "80.0.0-SNAPSHOT.1769000829579",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|