1.6.0
This release brings API and infrastructure updates to the framework.
API changes
- The JS
Client
now supports multitenancy [#141].
The Client
factory API now accepts a TenantProvider
as an element of the passed client options.
The TenantProvider
defines the current tenant ID to be used for all requests done with the client.
The current tenant ID can be dynamically updated with the help of TenantProvider.update(tenantId)
. For single-tenant applications, the TenantProvider
can be omitted in the options.
Multitenant client usage example:
let tenantProvider = new TenantProvider(initialTenantId());
let client = spineWeb.init({
protoIndexFiles: [protoIndex],
endpointUrl: endpointUrl,
firebaseDatabase: firebaseDatabase,
actorProvider: new ActorProvider(),
tenantProvider: tenantProvider
});
// …
tenantProvider.update(newTenantId());
-
The
FirebaseCredentials
are now constructed fromGoogleCrendetials
rather than the deprecatedGoogleCredential
. The factory method acceptingGoogleCredential
is deprecated [#137]. -
Breaking: the
onRejection
callback ofCommandRequest
is renamed toonImmediateRejection
to better reflect its purpose [#151]. See also the corresponding changes incore-java
.