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
- Bumped
idb
from4.0.5
to5.0.1
- Changes the
onSubmit
prop forSubmitType
to return a boolean status
- 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
- Made steps clear hidden answers when persisting to the store
0.0.7 - 11-02-2020
- Simplified
StepDefinition.key
0.0.6 - 06-02-2020
- Fixed errors accessing structured data that is missing from a
Store
0.0.5 - 06-02-2020
- Support for steps to navigate to different slugs depending on the state of the step
- Support for specifying dynamic keys for
ComponentDatabaseMap
s - Support for marking
DynamicComponent
s as required
- Simplified some generic types
- Stopped trying to persist data in
Step
, when the step has noDynamicComponent
s
0.0.4 - 02-01-2020
Store
to wrap IndexedDB's store- Support for storing non-primitive objects in
Store
s
- Renamed
DatabaseMap
toComponentDatabaseMap
- Made
defaultValue
required forDynamicComponent
s - Improved prop type inference for
StaticComponent
s - Removed the empty string from types that will never handle the artificial empty value
- Made
emptyValue
required forDynamicComponent
s
0.0.3 - 18-12-2019
renderWhen
to components to support conditional renders
- Connected the data fetched by
WrappedComponent
to theStep
's representation of that data to prevent deleting values that are unchanged
0.0.2 - 17-12-2019
- Added
provideDatabase
toOrchestrator
's props to support manually wrapping steps with aDatabaseProvider
- 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
- TypeScript support
StepDefinition
for defining a single step in the multipage formOrchestrator
to orchestrate rendering the appropriateStepDefinition
next-kittens
exampleDatabase
andUpgrade
to wrap IndexedDB's databaseDatabaseContext
,DatabaseProvider
, anduseDatabase
for passingDatabase
to components via contextStaticComponent
,DynamicComponent
,DatabaseMap
,ComponentWrapper
, andWrappedComponent
for wrapping components and connecting them to aDatabase
makeDatabase
, a Higher Order Component to make wrapping dynamic components more straightforward