1.6.0
This release brings API and infrastructure updates to the framework.
API changes
- The JS
Clientnow 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
FirebaseCredentialsare now constructed fromGoogleCrendetialsrather than the deprecatedGoogleCredential. The factory method acceptingGoogleCredentialis deprecated [#137]. -
Breaking: the
onRejectioncallback ofCommandRequestis renamed toonImmediateRejectionto better reflect its purpose [#151]. See also the corresponding changes incore-java.