Releases: klis87/normy
Releases · klis87/normy
@normy/core v0.6.0
Added clearNormalized, so it is possible now to clear all normalized data. You can use it like this:
const normalizer = createNormalizer(normalizerConfig);
normalizer.clearNormalizedData();@normy/react-query v0.6.1
Fixed the way queries keys are calculated. Before the fix, query key like ['book', { liked: true }], did not work. Now all keys are supported, including nested arrays and objects.
@normy/react-query v0.6.0
- updated core to version
0.5.0to use newdevLoggingoption
@normy/core v0.5.0
- added
devLoggingoption to turn on logging in development - tech: updated
lernato version 6, utilizenxcache and switch fromyarntopnpm
@normy/react-query v0.5.0
- fix
createNormalizedQueryClienttypes, now both arguments are optional - add
normalizeoption tocreateNormalizedQueryClient,trueby default, when you passfalse, it will disable normalization for queries and mutations, unless you explicitly turn it on for a given query or mutation
@normy/react-query v0.4.0
- rewritten to Typescript
- updated
@normy/coredependency to0.4.0
@normy/core v0.4.0
- rewritten to TypeScript - previously the library was written in JavaScript with just TypeScript types, now it is 100% Typescript with autogenerated types
- added tests to achieve 100% coverage
- removed
shouldObjectBeNormalized, havinggetNormalisationObjectKeyis enough, ifgetNormalisationObjectKeyreturnsundefinedit just means that an object should not be normalized
@normy/react-query v0.3.0
- added possibility to disable normalization per query and mutation
- added support for optimistic updates
- updated to use @normy/core v0.3.0 internally
@normy/core v0.3.0
API change - all methods to update normalized state were renamed.
@normy/react-query v0.2.0
Added onQueryRemoval call on queries garbage collection.