Skip to content

Version 1.0.0 馃帀

Latest
Compare
Choose a tag to compare
@dxinteractive dxinteractive released this 25 Sep 01:40
· 38 commits to master since this release

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()
  • BREAKING CHANGE remove ParcelShape and asShape
    • Use asNode and asChildNodes instead
  • 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 into useParcelState and useParcelForm using promises
  • Add asyncChange for saving data asynchronously from calls to useParcelState.onChange
  • Add onChangeUseResult option to useParcelState
  • Add react-dataparcels/asNode
  • Add react-dataparcels/asChildNodes
  • Add react-dataparcels/ParcelNode
  • Added ability for useParcelState and useParcelForm 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 on useParcelState and useParcelForm
    • 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 by onSubmit resolves. Only affects cases where onSubmitUseResult is not used. If onSubmitUseResult then replacing the value is the right behaviour.