Releases: atelier-saulx/based-universal
Releases · atelier-saulx/based-universal
v2.1.6
v2.1.5
What's Changed
- add host and discoveryUrl options to BasedOpt struct in #16. You can now pass a custom host and/or a discoveryUrl to the client, to connect to on-premise instances of the Based server.
- Make TLS a runtime flag in #17. When creating a new Based Client you now have to pass a boolean to enable or disable TLS.
Full Changelog: v2.1.4...v2.1.5
v2.1.4
What's changed
- When subscribing to a live observable, send cache contents immediately, instead of only firing on next update.
Full Changelog: v2.1.3...v2.1.4
v2.1.3
What's changed
- Fixed an issue where if the client lost connection, it would not correctly set the previous authState on reconnect
- Fixed an issue where the library would crash if discovery didn't return a valid url
- Downgraded c++ version to
c++14
fromc++17
in order to support Android API level 24 - Add logging function for Android builds
- Several improvements to the build system
Full Changelog: v2.1.2...v2.1.3
v2.1.2
What's changed
- Fixed a bug with observables being closed too early if they received an error message
- Fixed a bug with unsubscribing from channels
- Added special header for the server handshake
- Several bug fixes and improvements thanks to the new
based-node-addon
, which allowed to port our existing js test suite.
Full Changelog: v2.1.1...v2.1.2
v2.1.1
What's changed
- Correctly support multi-hub configurations
- Only fire
set_auth
callback withAuthState
type objects
Full Changelog: v2.1.0...v2.1.1
v2.1.0
v2.0.0
What's new
This release implements service_discovery
for the new Based Infrastructure which is about to go live.
In addition, it supports the new channels
feature, with three new endpoints:
int Based__channel_subscribe(based_id client_id,
char* name,
char* payload,
void (*cb)(const char* /* Data */,
const char* /* Error */,
int /*request_id*/));
void Based__channel_unsubscribe(based_id client_id, int id);
void Based__channel_publish(based_id client_id,
char* name,
char* payload,
char* message);
Channels are stateless observables that a user can publish or subscribe to.
What's changed
- This version is no longer compatible with the current Based infrastructure (neither
@based/hub
nor@based/edge
) - The
Based__function
method has been renamed toBased__call
, to more closely align with the JS client. - The
Based__auth
method has been renamed toBased__set_auth_state
, to more closely align with the JS client, and reflect more accurately what it does.
Full Changelog: v1.1.0...v2.0.0
v1.1.0
This version implements the get_service
endpoint, which is used to get the url to which a POST request can be made for things such as file-upload.
Full Changelog: v1.0.2...v1.1.0
v1.0.2
This release fixes a bug with the auth
logic, and adds support for older versions of MacOS (Intel)
Full Changelog: v1.0.1...v1.0.2