Releases: aerogear/offix
0.7.1
Release Notes
0.7.0
0.7.0
Support Apollo 2.6.x
Apollo Client 2.6.x with new typings is now supported.
Extended conflict support
New conflict implementation requires changes on both client and server.
On server we have changed conflict detection mechanism to single method.
Server side conflict resolution was removed due to the fact that we could not provide
reliable diff source without separate store.
Server side implementation:
const conflictError = conflictHandler.checkForConflict(greeting, args);
if (conflictError) {
throw conflictError;
}
}
Client side implementation:
Client side implementation now requires users to apply returnType
to context when performing a mutation.
Conflict interface now has an additional method mergeOccured
that will be triggered when a conflict was resolved without data loss.
Please refer to documentation for more details.
Breaking changes
DataSync Config renamed
DataSyncConfig
interface was renamed to OffixClientConfig
.
Please review if your configuration still conforms to the new interface.
Cache Helper Interface
Cache Helper interface now will now accept object instead of individual parameters:
const updateFunction = getUpdateFunction({
mutationName,
idField,
operationType,
updateQuery
});
0.7.0-rc.2
fix: Release 0.7.0-rc.2
0.7.0-rc.1
0.7.0-rc1
Not for general use. It contains breaking changes that team will document in 0.7.0
0.6.1
0.6.0
Features
- FEAT: IndexedDB storage by default
Developers do not need to specify cache updates - FEAT: Cache helpers (out of the box cache updates)
client.offlineMutation
method can be used, use helpers. - FEAT: Allow to register multiple global listeners to client
- FEAT: Minor bugfixes and improvements
- FEAT: Sequential offline data replication is now supported
- FEAT: Added ability to retry offline data over time
- FEAT: Minor bugfixes and improvements
- CHORE: Updates for the latest and greatest Apollo and related libraries
- FIX: Allow to pass cache update functions for mutations.
Seeconfig.mutationCacheUpdates
for more information - BREAKING: Added new listener methods for offline queue events
- FEAT: Added retry operation for offline mutations that failed to contact the server
- FEAT: Added option to configure retry strategies
- FEAT: Enable offline processing when no optimistic response is passed
- FEAT: Network errors do not remove offline operations from the queue
- FEAT: Added sequential processing for offline mutations
- FIX: Offline queue is ignored when the application is online
- FIX: Conflict data is being updated for offline changes (users no longer can conflict with themselves)
- CHORE: Updates for the latest and greatest Apollo and related libraries