Migrating from an Older Version
Migrating to 0.3.x
0.3.0
represented a big change for the SDK, with lots of changes meant to
bring in new functionality, increase stability and security, and improve
usability.
In particular, the following are breaking changes:
window.Flux
was renamed towindow.FluxSdk
, and has a new signatureFlux.login
has been deprecated and split into two methods,getAuthorizeUrl
andexchangeCredentials
. You are now responsible for storing credentials yourself.- Please see the Implicit Flow guide for more details on how to set this up
User.getwhoami
is nowUser.fetchProfile
Datatable
has been renamed toDataTable
. Similarly named methods have also been renamed to match, e.g., fromProject.getDatable
toProject.getDataTable
Datatable.capability
is nowDataTable.fetchCapability
Datatable.project
has been deprecated with no new equivalentCell
-related methods have been renamed and, in some cases, have new signatures:Datatable.cells
is nowDataTable.listCells
Datatable.get
is nowDataTable.fetchCell
Datatable.delete
is nowDataTable.deleteCell
Datatable.create
is nowDataTable.createCell
Datatable.set
is nowDataTable.updateCell
- Web socket handling has been changed, so that accessing a data table no longer
automatically opens a web socket. Please see
DataTable.openWebSocket
andDataTable.addWebSocketHandler
for more details.
Note that there may be additional breaking changes.
Questions? Please let us know!