normalize 0.4.3-alpha normalize: ^0.4.3-alpha copied to clipboard
Normalization and denormalization of GraphQL responses in Dart
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.
[Unreleased] #
[0.4.3-alpha] - 2020-11-06 #
Added #
- add a
path
toPartialDataException
to surface invalid paths - add
acceptPartialData
option tonormalizeFragment
andnormalizeOperation
for rejecting partialdata
- add
handleException
option todenormalizeFragment
anddenormalizeOperation
for throwing aPartialDataException
instead of returningnull
on partialdata
- add a
validateOperationDataStructure
utility for validating structure against a document
[0.4.2] - 2020-10-07 #
[0.3.3] - 2020-09-09 #
[0.3.0] - 2020-09-05 #
Changed #
- rename
normalize
tonormalizeOperation
- rename
denormalize
todenormalizeOperation
- rename
query
todocument
innormalizeOperation
anddenormalizeOperation
- rename
fragment
todocument
innormalizeFragment
anddenormalizeFragment
- rename
reader
toread
in denormalize functions - rename
writer
withwrite
in normalize functions - require
read
callback in normalize functions - denormalize methods now filter out dangling references
[0.2.1] - 2020-06-15 #
Changed #
- fix bug with fragments on same object with different fields
- fix issue when using a fragment spread on an interface type
[0.0.7] - 2020-01-25 #
Added #
- allow user to specify whether partial data should be returned (defaults to false)