Skip to content

Releases: klis87/normy

@normy/react-query v0.9.0

22 Jul 21:50
Compare
Choose a tag to compare

Added a new way to initialize normalized store. Now you do this with QueryNormalizerProvider, for example:

<QueryNormalizerProvider
  queryClient={queryClient}
  normalizerConfig={{ devLogging: true }}
>
  <QueryClientProvider client={queryClient}>
    <App />
  </QueryClientProvider>
</QueryNormalizerProvider>

The new way has the advantage that normalized store is cleared automatically after QueryNormalizerProvider is unmounted.

Another advantage is that next release will get a new normalized method to update data, for which new context reader to get normalized store instance anywhere will become handy.

@normy/react-query v0.8.0

24 Jun 20:12
Compare
Choose a tag to compare

Renamed getNormalisationObjectKey option into getNormalizationObjectKey.

@normy/core v0.7.0

24 Jun 20:10
Compare
Choose a tag to compare

Renamed getNormalisationObjectKey option into getNormalizationObjectKey.

@normy/react-query v0.7.0

30 Mar 20:41
Compare
Choose a tag to compare
  • refactored createNormalizedQueryClient into createQueryNormalizer - it is not only about the name, but mostly createQueryNormalizer does not create react-query client for you, you need to do it yourself and pass instance to createQueryNormalizer, for example:

    const queryClient = new QueryClient();
    
    createQueryNormalizer(queryClient);
  • added possibility to clear normalized data and unsubscribe from future updates, for example:

    const normalizer = createQueryNormalizer(queryClient);
    
    normalizer.clear();

@normy/core v0.6.0

30 Mar 20:35
Compare
Choose a tag to compare

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

22 Mar 22:40
Compare
Choose a tag to compare

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

17 Mar 22:05
Compare
Choose a tag to compare
  • updated core to version 0.5.0 to use new devLogging option

@normy/core v0.5.0

17 Mar 22:04
Compare
Choose a tag to compare
  • added devLogging option to turn on logging in development
  • tech: updated lerna to version 6, utilize nx cache and switch from yarn to pnpm

@normy/react-query v0.5.0

09 Mar 21:39
Compare
Choose a tag to compare
  • fix createNormalizedQueryClient types, now both arguments are optional
  • add normalize option to createNormalizedQueryClient, true by default, when you pass false, 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

04 Mar 22:12
Compare
Choose a tag to compare
  • rewritten to Typescript
  • updated @normy/core dependency to 0.4.0