This repository has been archived by the owner on May 3, 2021. It is now read-only.
Description
Follow-up to the v2.0.0
transitional release, this release (2.1.0
) presents the first version of the breaking 2.1.x
branch of the Bloombox JS SDK. In this version (and all future versions), gRPC will be used for underlying RPC dispatch, with the new service interface (which makes services available via api()
, rather than individual methods). Additionally, various bugfixes, improvements, and test coverage enhancements made it in.
Improvements
- Support for Bazel-based builds
- Binary gRPC dispatch for all unary methods/operations
- Text gRPC streaming dispatch support
- Removed older interfaces and dependencies (for
v0
APIs) - New caching via IndexedDB
Known Issues
This version must only be used directly as sources. Public callers of the library won't find it useful yet. It is, however, compilable via Closure compiler, using goog
primitives.
Feature list in detail
- Support for Bazel
- Binary gRPC dispatch for unary methods, text (base64) dispatch for streaming methods
- Major testing improvements and better coverage
- Local storage/caching of menu data in IndexedDB
Using this version
<!doctype html>
<html>
<head>
<script type="text/javascript" src="https://js.bloombox.cloud/client/v2.0.0.min.js"></script>
<script type="text/javascript">
bloombox.setup("<partner>", "<location>", "<apikey>", function() {
// use the library
});
</script>
[...]