Releases: morrys/wora
netinfo@1.0.1
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
Fixed
- fixed the return value of the
publish
function
relay-offline@0.1.1
Fixed
- fix network parameter in offline options, use of the RelayModernEnvironment network as default, issue in react-relay-offline
detect-network@1.2.0
Improved
- useIsConnected hook for react-native
relay-offline@0.1.0
Improved
- update of the @wora/cache-persist library version
cache-persist@1.1.0
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
Improved
- update of the @wora/cache-persist library version
relay-store@0.0.6
Improved
- persist relay store and relay record source
- ttl
relay-offline@0.0.8
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
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
-