Skip to content

Conversation

@dmitrykuzmin
Copy link
Contributor

@dmitrykuzmin dmitrykuzmin commented Sep 8, 2020

This PR does the release of a library version 1.6.0.

This release brings API and infrastructure updates to the framework.

API changes

  1. The JS Client now supports multitenancy [Multitenancy support #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());
  1. The FirebaseCredentials are now constructed from GoogleCrendetials rather than the deprecated GoogleCredential. The factory method accepting GoogleCredential is deprecated [Allow to create FirebaseCredentials from GoogleCredentials #137].

  2. The onRejection callback of CommandRequest is renamed to onImmediateRejection to better reflect its purpose [Clarify the command request rejection callback API #151]. See also the corresponding changes in core-java.

Infrastructure

  1. The JS client docs are now published to spine.io [Publish JS docs to spine.io #136].
  2. The project build scripts are migrated to Kotlin [Kotlin Gradle scripts #142].

@dmitrykuzmin dmitrykuzmin self-assigned this Sep 8, 2020
@dmitrykuzmin dmitrykuzmin requested a review from armiol September 8, 2020 19:38
@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #152 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #152   +/-   ##
=========================================
  Coverage     61.79%   61.79%           
  Complexity      178      178           
=========================================
  Files            88       88           
  Lines          2188     2188           
  Branches         40       40           
=========================================
  Hits           1352     1352           
  Misses          827      827           
  Partials          9        9           

@dmitrykuzmin dmitrykuzmin merged commit 19dbb51 into master Sep 9, 2020
@dmitrykuzmin dmitrykuzmin deleted the release-1.6.0 branch September 9, 2020 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants