Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Latest commit

 

History

History
126 lines (83 loc) · 3.69 KB

CHANGELOG.md

File metadata and controls

126 lines (83 loc) · 3.69 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.2.0 - 25-03-2020

Changed

  • Bumped idb from 4.0.5 to 5.0.1
  • Changes the onSubmit prop for SubmitType to return a boolean status

Fixed

  • Stopped saving hidden answers immediately after deleting them
  • Now consider empty arrays and objects without properties as "missing" for required values

0.1.0 - 12-03-2020

Changed

  • Made steps clear hidden answers when persisting to the store

0.0.7 - 11-02-2020

Changed

  • Simplified StepDefinition.key

0.0.6 - 06-02-2020

Fixed

  • Fixed errors accessing structured data that is missing from a Store

0.0.5 - 06-02-2020

Added

  • Support for steps to navigate to different slugs depending on the state of the step
  • Support for specifying dynamic keys for ComponentDatabaseMaps
  • Support for marking DynamicComponents as required

Changed

  • Simplified some generic types

Fixed

  • Stopped trying to persist data in Step, when the step has no DynamicComponents

0.0.4 - 02-01-2020

Added

  • Store to wrap IndexedDB's store
  • Support for storing non-primitive objects in Stores

Changed

  • Renamed DatabaseMap to ComponentDatabaseMap
  • Made defaultValue required for DynamicComponents
  • Improved prop type inference for StaticComponents
  • Removed the empty string from types that will never handle the artificial empty value
  • Made emptyValue required for DynamicComponents

0.0.3 - 18-12-2019

Added

  • renderWhen to components to support conditional renders

Fixed

  • Connected the data fetched by WrappedComponent to the Step's representation of that data to prevent deleting values that are unchanged

0.0.2 - 17-12-2019

Changed

  • Added provideDatabase to Orchestrator's props to support manually wrapping steps with a DatabaseProvider

Fixed

  • Stopped throwing an error when attempting to transition to slugs that aren't in the managed steps while onNextSlug is provided
  • Changed to correctly using a read-write transition when persisting data to a Database

0.0.1 - 05-12-2019

Added

  • TypeScript support
  • StepDefinition for defining a single step in the multipage form
  • Orchestrator to orchestrate rendering the appropriate StepDefinition
  • next-kittens example
  • Database and Upgrade to wrap IndexedDB's database
  • DatabaseContext, DatabaseProvider, and useDatabase for passing Database to components via context
  • StaticComponent, DynamicComponent, DatabaseMap, ComponentWrapper, and WrappedComponent for wrapping components and connecting them to a Database
  • makeDatabase, a Higher Order Component to make wrapping dynamic components more straightforward