Skip to content

Releases: morrys/wora

netinfo@1.0.1

22 Aug 10:12
Compare
Choose a tag to compare

Fixed

  • ssr
  • bump dependencies
    • @wora/apollo-offline@0.1.3
    • @wora/detect-network@1.2.1
    • @wora/offline-first@0.0.6
    • @wora/relay-offline@0.1.2

apollo-offline@0.1.2

09 Aug 16:38
Compare
Choose a tag to compare

Fixed

  • fixed the return value of the publish function

relay-offline@0.1.1

06 Aug 10:53
Compare
Choose a tag to compare

Fixed

detect-network@1.2.0

04 Aug 17:34
Compare
Choose a tag to compare

Improved

  • useIsConnected hook for react-native

relay-offline@0.1.0

26 Jul 18:37
Compare
Choose a tag to compare

Improved

  • update of the @wora/cache-persist library version

cache-persist@1.1.0

26 Jul 18:35
Compare
Choose a tag to compare

Improved

  • Now the cache no longer interfaces directly with the storage but with the StorageProxy

  • Added management of cache items processing layer during the process of saving, reading and removing items in the storage.

  • Added the possibility of using session storage

  • Added the property to use the cache without persistence (implementation of a fake storage, usable in case you don't want to persist)

  • Added the first layer to allow filtering of keys to persist in storage

import filterKeys  from '@wora/cache-persist/lib/layers/filterKeys';

const filterPersistAuth: Layer<any> = filterKeys(key => key.includes("auth"));

const filterNoPersistAuth: Layer<any> = filterKeys(key => !key.includes("auth"));

const CacheLocal1 = new Cache({
    layers: [filterNoPersistAuth],
    prefix: 'cache1',
});

const CacheLocal2 = new Cache({
    layers: [filterPersistAuth],
    prefix: 'cache2',
});
  • Added two new properties in the idbstorage constructor: onUpgrade & version to allow versioning and upgrade of storage

apollo-offline@0.1.0

26 Jul 18:36
Compare
Choose a tag to compare

Improved

  • update of the @wora/cache-persist library version

relay-store@0.0.6

20 Jul 15:09
4028244
Compare
Choose a tag to compare

Improved

  • persist relay store and relay record source
  • ttl

relay-offline@0.0.8

20 Jul 15:10
4028244
Compare
Choose a tag to compare

Improved

  • integration of the offline engine within the client logic and not at the network level. with much possibility of configuration and extension (@wora/offline-first)

For more information React Relay Offline

offline-first@0.0.5

15 Jul 13:36
497e65f
Compare
Choose a tag to compare

Improved

  • adding both the serial and parallel execution of offline mutations and also the possibility of mixing them, default serial

  • added function addNetInfoListener

  • added offlineOptions

    • execute: this is the only mandatory parameter. In this function, communications with the server must be implemented.

    • finish: function that is called once the request queue has been processed.

    • manualExecution: if set to true, requests in the queue are no longer performed automatically as soon as you go back online. invoke manually: offlineFirst.process();

    • onPublish: function that is called before saving the mutation in the store

    • onComplete: function that is called once the request has been successfully completed. Only if the function returns the value true, the request is deleted from the queue.

    • onDiscard: function that is called when the request returns an error. Only if the function returns the value true, the mutation is deleted from the queue