Contains #233 #245 #248 #249 #251 #256
Addresses #235 #236 #239 #241, #246, part of #242, #254 #255
dataparcels
Size of default import was 13.1KB
, now 10.3KB
(21% decrease)
- BREAKING CHANGES
- Removed
parentParcel.toObject()
- Removed
parentParcel.set(key, value)
(parcel.set(value)
still exists) - Removed
parentParcel.update(key, updater)
(parcel.update(updater)
still exists) - Removed
parentParcel.delete(key)
(childParcel.delete()
still exists) - Removed
parentParcel.setIn()
completely - Removed
parentParcel.updateIn()
completely - Removed
parentParcel.deleteIn()
completely - Removed
parentParcel.insertAfter(key, value)
(childParcel.insertAfter(value)
still exists) - Removed
parentParcel.insertBefore(key, value)
(childParcel.insertBefore(value)
still exists) - Removed
move()
completely - Removed
elementParcel.swap(otherKey)
(parentParcel.swap(keyA, keyB)
still exists) - Removed
parentParcel.swapNext(otherKey)
(elementParcel.swapNext()
still exists) - Removed
parentParcel.swapPrev(otherKey)
(elementParcel.swapPrev()
still exists) - Removed
shape.toObject()
- Removed
shape.move()
completely - Removed
swap()
completely - Removed
swapNext()
completely - Removed
swapPrev()
completely - Removed
changeRequest.toJS()
- Removed
action.toJS()
- Removed
- BREAKING CHANGE remove
ParcelShape
andasShape
- Use
asNode
andasChildNodes
instead
- Use
- Added
dataparcels/asNode
for changing meta easily in an updater - Added
dataparcels/asChildNodes
- Added
dataparcels/ParcelNode
- Added
ChangeRequest.hasDataChanged(keyPath)
- Temporarily disabled runtime type checking
- Stopped showing warning about not changing shape in a value updater
react-dataparcels
- fix: issue where debounced buffer hooks didnt rebase properly
- fix: upgrade unmutable to fix useParcelBuffer infinite rerender NaN bug
- Add
asyncValue
for loading an initial value intouseParcelState
anduseParcelForm
using promises - Add
asyncChange
for saving data asynchronously from calls touseParcelState.onChange
- Add
onChangeUseResult
option touseParcelState
- Add
react-dataparcels/asNode
- Add
react-dataparcels/asChildNodes
- Add
react-dataparcels/ParcelNode
- Added ability for
useParcelState
anduseParcelForm
to accept parcel updaters as their values. This allows previous values to be accessed, and allows meta to be set from props or set based upon previous data. - add:
rebase
option onuseParcelState
anduseParcelForm
- this will allow changes from props to slide in underneath changes in useParcelBuffer hooks and ParcelBoundaries, so data can change without losing unsaved changes.
- add: post-sideeffecthook changes now rebase underneath buffered changes
- almost more of a fix than a feature... this allows changes made after a
submit()
to not get replaced once a promise returned byonSubmit
resolves. Only affects cases whereonSubmitUseResult
is not used. IfonSubmitUseResult
then replacing the value is the right behaviour.
- almost more of a fix than a feature... this allows changes made after a