Added optional fetchBuilder argument to the Oso constructor. Use it to modify arguments passed to the underlying “fetch” implementation and provide other logic, like retries. If provided, fetchBuilder replaces the Oso Cloud client’s default “fetch” wrapper, which is currently only responsible for retries.
N.B. If fetchBuilder is used together with fetchTimeoutMillis, fetchBuilder will be applied after the timeout logic is applied to “fetch”.
Use Fallback, if configured, for .get, .getPolicyMetadata, Query Builder, and
local check APIs if Oso Cloud returns an error (Requires Fallback 1.0.0 or later).
Use Fallback, if configured, if Oso Cloud returns an HTTP 400 error.
This release contains several breaking changes. There’s a migration guide for upgrading from version 1.x, and don’t hesitate to reach out if you run into any issues.