Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Releases: aerogear/aerogear-js-sdk

2.8.0

25 Nov 12:57
aa024d5
Compare
Choose a tag to compare

Note This is the final release of the aerogear-js-sdk. Moving forward there will be several changes.

The following packages are being moved.

  • @aerogear/push will continue to be published but will be found at a new repo.
  • @aerogear/voyager-client will be deprecated in favour of a new package under the Offix project.

The following packages will be deprecated.

  • @aerogear/security will be deprecated
  • @aerogear/app will be deprecated
  • @aerogear/metrics will be deprecated
  • @aerogear/core will be deprecated

Note: version 2.8.0 of these packages will be available on npm, but they will no longer be maintained.

2.8.0-rc1

04 Nov 12:20
Compare
Choose a tag to compare
2.8.0-rc1 Pre-release
Pre-release
chore: release 2.8.0-rc1

2.7.0

02 Oct 16:54
2.7.0
Compare
Choose a tag to compare

JS-SDK 2.7.0

Push

Support WebPush

  • WebPush Variants in mobile-services.json are now supported
  • Compatible browsers such as Chrome can register for and receive webpush push messages sent from UPS
  • Framework for connecting custom service-workers to notification APIs
  • Permissions for Notifications are handled by JS-SDK

2.6.3

23 Sep 15:44
f64036e
Compare
Choose a tag to compare

JS-SDK 2.6.3

Push

Support iOS 13

2.6.2

09 Aug 13:54
Compare
Choose a tag to compare

JS-SDK 2.6.2

DataSync

Dependency package updates

2.6.1

09 Aug 08:58
Compare
Choose a tag to compare

DataSync

Fixed problem with the client conflicting with its own changes.
Users can now many subsequent changes when offline without conflicts

Mobile Security Service

Fixed problem with obtaining service URL.
serviceInstance.config.url was always undefined.

2.6.0

23 Jul 13:58
Compare
Choose a tag to compare

DataSync

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

Cache Helper Interface

Cache Helper interface now will now accept object instead of individual parameters:

const updateFunction = getUpdateFunction({
           mutationName,
           idField,
           operationType,
           updateQuery
});
AuthContext Interface

Refactored the Auth interfaces defined in the auth and sync packages to accept a map of headers. token is no longer required.

OfflineClient Interface

offlineMutation has been renamed to offlineMutate. Please review if you are using offlineMutation in your app.

Push

Registration:

A bug was fixed with the registration process which made the sdk unable to receive notifications from UPS without using the alias criteria. That problem was fixed and now devices are able to receive notifications using all criteria provided by UPS (variant, alias, category)

The new registration process doesn’t use the phonegap-push-plugin/Ionic Push anymore. Now all the steps needed to receive push notification are handled by the push JS SDK itself.

import { PushRegistration } from "@aerogear/push";

new PushRegistration(new ConfigurationService(config)).register()
.then(() => {
  console.log('Push registration successful');
}).catch((err) => {
  console.error('Push registration unsuccessful ', err);
});

Unregistration:

We have added an unregister method to the SDK to unregister devices from UPS

new PushRegistration(new ConfigurationService(config))
.unregister()
.then(() => {
  console.log('Successfully unregistered');
}).catch((err) => {
  console.error('Error unregistering', err);
});

Handle notification:

We replaced the Cordova/Ionic notification handler APIs with APIs provided by the push JS SDK:

PushRegistration.onMessageReceived((notification: any) => {
  console.log('Received a push notification', notification);
});

2.6.0-rc1

11 Jul 14:45
Compare
Choose a tag to compare

2.5.0

27 May 09:55
Compare
Choose a tag to compare

Release notes

🚀 Voyager Client

  • 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.

  • FEAT: Minor bugfixes and improvements

  • CHORE: Updates for the latest and greatest Apollo and related libraries

🔑Auth

  • FIX: Improved header provider interface now provides client id.

2.5.0-rc1

15 May 10:29
Compare
Choose a tag to compare

Release notes

🚀 Voyager Client

  • 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.

  • FEAT: Minor bugfixes and improvements

  • CHORE: Updates for the latest and greatest Apollo and related libraries