Skip to content

Latest commit

 

History

History
187 lines (98 loc) · 7.67 KB

CHANGELOG.md

File metadata and controls

187 lines (98 loc) · 7.67 KB

Change Log

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

Fixed

  • Type NormalizedObject should support plain objects, see issue #55.

1.3.5 - 2019-10-15

Added

  • 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 and fields will contain the first field that could not be resolved.

1.2.0 - 2019-09-20

Added

  • 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

Added

  • Fix for union types. Introduces new optional argument typeResolver to normalize() and denormalize() functions. See issue #49 and PR #50.

1.0.0 - 2019-07-21

Changed

  • Removed the partial property from the denormalize() return object. Partial results was not implemented and instead we can check if the data is undefined instead. See issue #47 and PR #48.

0.14.0 - 2019-07-21

Added

  • Include an UMD bundle. See issue #37 and PR #46.

0.13.0 - 2019-07-18

Changed

  • 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

  • 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

Fixed

  • Remove invalid dependency.

0.12.1 - 2019-07-16

Fixed

  • Add missing export for type FieldsMap.

0.12.0 - 2019-07-16

Changes

  • 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 to NormMap, Entity to NormObj, EntityFieldVlue to NormFieldVlue, and associated renames. See #16 and PR #35.
  • normalize directly take the data from a GraphQL response as argument instead of an object with a data property. See #34.
  • denormalize returns data directly instead of an object with a data property. See #34.

0.11.0 - 2019-07-06

Fixed

  • Update peer dependencies.

0.10.1 - 2019-07-06

Fixed

  • Update readme with new package name.

0.10.0 - 2019-07-06

Changed

  • Renamed the package from gql-cache to graphql-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

Fixed

  • Remove console.log.

0.9.1 - 2019-01-16

Fixed

  • Fix null in result arrays. See #25

0.9.0 - 2018-09-28

Fixed

  • Trees with array. See #23
  • With reserved words See #24

0.8.0 - 2018-09-27

Fixed

  • Invalid response when a query contains multiple subtrees of same node

0.7.0 - 2018-09-14

Fixed

  • Fix partial bug when only scalar is missing in cache. #19

0.6.0 - 2018-08-26

Changed

  • Make the graphql package a peer dependency. See #18.

0.5.0 - 2018-08-24

Changed

  • Rename updateStaleEntities() to updateStale().
  • Fix bug in updateStaleEntities() which caused the inputs to be mutated.

0.4.0 - 2018-08-23

Added

  • Support for @skip and @include directives. See #14.

0.3.0 - 2018-08-17

Added

  • The graphql and @types/graphql packages are now a regular dependencies. See #12.

0.2.0 - 2018-08-08

Added

  • Support for fallback id when GetObjectToId returns undefined. GetObjectToId can now return string | undefined

0.1.3 - 2018-06-28

Fixed

  • Add missing exports for types Variables, GraphQLResponse.

0.1.2 - 2018-06-27

Added

  • Export DenormalizationResult, see PR #4.

Fixed

  • Remove redundant typing, see PR #1. Thanks to @Jontem for this fix!

0.1.1 - 2018-06-08

Added

  • Initial version.