- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- REFACTOR(normalize): Add const constructor to visitors.
Note: This release has breaking changes.
- BREAKING CHORE(deps): upgrade rxdart to v0.28.0 (#612).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- Bump "normalize" to
0.9.1-dev.0.
- DOCS: add topics (#548).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
Note: This release has breaking changes.
- BREAKING REFACTOR(normalize): Add const constructors to
FieldPolicyandTypePolicy(#526).
Note: This release has breaking changes.
- DOCS: cleanup buggy autogenerated CHANGELOG from melos (#523).
- BREAKING REFACTOR(normalize): Add const constructors to
FieldPolicyandTypePolicy(#526).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- DOCS: cleanup buggy autogenerated CHANGELOG from melos (#523).
- Bump "normalize" to
0.8.2.
- Bump "normalize" to
0.8.1.
- FIX: When there are dangling references in child objects of a list, by default do not treat the whole entity as partial data, but remove it from the list. This can be configured using the allowDanglingReference parameter.
- DOCS: add basic documentation for field policy (#494).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- REFACTOR: apply lints fixes (#479).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
Note: This release has breaking changes.
- BREAKING FIX: properly generate nullable types for nullable elements in Lists (#445).
Note: This release has breaking changes.
- BREAKING FEAT: respect skip/include directives when checking for partial data (#433).
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- FEAT: generate possibleTypesMap in ferry_generator (#371).
- FEAT: generate possibleTypesMap in ferry_generator (#371).
- FIX: Streamline typename handling #359
- FIX: Preserve backwards compatibility with dataIdFromObject (#368).
- FIX: Streamline typename handling (#359).
- FIX: Streamline typename handling.
- FIX: Streamline typename handling (#359).
- FIX: Streamline typename handling.
- TEST: add fragment variable test.
- FIX: Broken fragment spreads.
- CHORE: publish packages.
- CHORE: publish packages.
- Require possible types map to correctly disambiguate fragments
- FIX: add dispose method to TypedLinks (#272).
- FEAT: add Reviews subscription to test graphql.
- CHORE: publish packages.
- CHORE: publish packages.
- CHORE: restructure repo (#269).
- DOCS: remove stale code (#271).
- FIX: add dispose method to TypedLinks (#272).
- FIX: add missing dependencies (#268).
- FIX: add missing dependencies (#267).
- FIX: add missing override annotations (#261).
- FEAT: add github action for validating formatting (#260).
- FEAT: add extensions to response (#259).
Note: This release has breaking changes.
- BREAKING FEAT: build generated files to generated subdirectory.
- FIX: move pedantic to dependency (#257).
- FIX: allow inline fragments for subtypes without passing possibleTypes.
- FEAT: update dependences.
- FEAT: update dependences.
- CHORE: publish packages.
- CHORE: publish packages.
- FEAT: update dependences.
- CHORE: publish packages.
- CHORE: publish packages.
- FEAT: Add support for better fragment type resolution.
- CHORE: publish packages.
- CHORE: publish packages.
- allow overriding of
__typenamewhen reading fragments
- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
- FEAT: migrate to null safety.
- CHORE: bump versions to match melos style.
- CHORE: publish packages.
- CHORE: prepare changelogs for melos.
- FEAT: migrate to null safety.
- CHORE: prepare changelogs for melos.
- add
reachableIdsFromDataIdutil
- handle type mismatch in
identifyutil
- update dependencies
- fix
reachableIdsutility when data has circular references
- add
deepMergemethod - add a
pathtoPartialDataExceptionto surface invalid paths - add
acceptPartialDataoption tonormalizeFragmentandnormalizeOperationfor rejecting partialdata - add
handleExceptionoption todenormalizeFragmentanddenormalizeOperationfor throwing aPartialDataExceptioninstead of returningnullon partialdata - add a
validateOperationDataStructureutility for validating structure against a document
- fix: merge existing data before writing
- add a
pathtoPartialDataExceptionto surface invalid paths - add
acceptPartialDataoption tonormalizeFragmentandnormalizeOperationfor rejecting partialdata - add
handleExceptionoption todenormalizeFragmentanddenormalizeOperationfor throwing aPartialDataExceptioninstead of returningnullon partialdata - add a
validateOperationDataStructureutility for validating structure against a document
- rename
reachableDataIdstoreachableIds
- add
operationFieldNamesmethod
- prevent subscription from adding
__typename
- update
TypePolicy.keyFieldsAPI to allow subfields
- export policies seperately
- add
identifymethod - export utils seperately
- add
reachableDataIdsmethod
- updates to
FieldKey - fix null bug in denormalize_node
- export
resolveDataIdfunction
- add
FieldKeyclass
- rename
normalizetonormalizeOperation - rename
denormalizetodenormalizeOperation - rename
querytodocumentinnormalizeOperationanddenormalizeOperation - rename
fragmenttodocumentinnormalizeFragmentanddenormalizeFragment - rename
readertoreadin denormalize functions - rename
writerwithwritein normalize functions - require
readcallback in normalize functions - denormalize methods now filter out dangling references
- fix type casting of nested map in denormalizeFragment.
- expose
getOperationDefinitionhelper method.
- include addTypename in normalize & normalizeFragment
- fix bug with fragments on same object with different fields
- fix issue when using a fragment spread on an interface type
- add to ferry monorepo
- transfer to gql-dart org
- fix issue with unmodifiable lists
- fix map type issue
- update readme
- use
readerandwriterinstead of passing objects directly
- make normalization agnostic to argument order
- allow user to specify whether partial data should be returned (defaults to false)
- use standart Json type
- update
gqldependency
denormalizeanddenormalizeFragmentnow return null if there is a existing data with different variables in the map (they previously returned an empty object).
- operationName parameter for multi-operation documents
- normalizeFragment function
- denormalizeFragment function
- Optionally add typenames when denormalizing
- Initial normalize and denormalize implementations 🚀
- Support for variables
- Support for fragments (definitions and inline)
- Support for Apollo-style TypePolicies
- Support for Aliases
- Support for interface & union types
- Tests (for all of the above)