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.
1.3.6 - 2020-01-07
- Type
NormalizedObject
should support plain objects, see issue #55.
1.3.5 - 2019-10-15
- Include typescript source from
src/
in published npm package. See PR #52 for more info. - Versions 1.3.1 to 1.3.4 are unsuccessful attememtps to publish and have been unpublished.
1.3.0 - 2019-10-15
- If denormalize() could not be fulfill a query, data will be
undefined
andfields
will contain the first field that could not be resolved.
1.2.0 - 2019-09-20
- Upgrade peer deps. The graphql package now has built-in types so no peer dependency is required for the @types/graphql package.
1.1.0 - 2019-08-20
- Fix for union types. Introduces new optional argument
typeResolver
tonormalize()
anddenormalize()
functions. See issue #49 and PR #50.
1.0.0 - 2019-07-21
- Removed the
partial
property from thedenormalize()
return object. Partial results was not implemented and instead we can check if thedata
is undefined instead. See issue #47 and PR #48.
0.14.0 - 2019-07-21
0.13.0 - 2019-07-18
- Use colon as default ID separator. See issue #42 and PR #43.
- Genearate fallback IDs using the nearest parent as base. See issue #27 and PR #41.
- Removed staleness checking from denormalize(). See issue #38 and PR #40. Staleness checking is now available in the external package graphql-norm-stale.
0.12.2 - 2019-07-16
- Remove invalid dependency.
0.12.1 - 2019-07-16
- Add missing export for type
FieldsMap
.
0.12.0 - 2019-07-16
- Return used fields per key of normalized object used during denormalization in
fields
props in denormalize() result. See #30, PR #36 and additional work in PR #39 - Rename
EntityCache
toNormMap
,Entity
toNormObj
,EntityFieldVlue
toNormFieldVlue
, and associated renames. See #16 and PR #35. normalize
directly take thedata
from a GraphQL response as argument instead of an object with adata
property. See #34.denormalize
returnsdata
directly instead of an object with adata
property. See #34.
0.11.0 - 2019-07-06
- Update peer dependencies.
0.10.1 - 2019-07-06
- Update readme with new package name.
0.10.0 - 2019-07-06
-
Renamed the package from
gql-cache
tographql-norm
to indicate that it focus is on normalization only, not providing a full caching solution. -
Renamed mergeEntityCache function to merge, see See #29. Thanks to @drejohnson for this PR.
-
Consolidated and cleaned up readme documentation.
0.9.2 - 2019-01-16
- Remove console.log.
0.9.1 - 2019-01-16
- Fix null in result arrays. See #25
0.9.0 - 2018-09-28
0.8.0 - 2018-09-27
- Invalid response when a query contains multiple subtrees of same node
0.7.0 - 2018-09-14
- Fix partial bug when only scalar is missing in cache. #19
0.6.0 - 2018-08-26
- Make the
graphql
package a peer dependency. See #18.
0.5.0 - 2018-08-24
- Rename
updateStaleEntities()
toupdateStale()
. - Fix bug in
updateStaleEntities()
which caused the inputs to be mutated.
0.4.0 - 2018-08-23
- Support for
@skip
and@include
directives. See #14.
0.3.0 - 2018-08-17
- The
graphql
and@types/graphql
packages are now a regular dependencies. See #12.
0.2.0 - 2018-08-08
- Support for fallback id when
GetObjectToId
returns undefined.GetObjectToId
can now returnstring | undefined
0.1.3 - 2018-06-28
- Add missing exports for types
Variables
,GraphQLResponse
.
0.1.2 - 2018-06-27
- Export
DenormalizationResult
, see PR #4.
0.1.1 - 2018-06-08
- Initial version.