oso-cloud
Version:
Oso Cloud Node.js Client SDK
122 lines (67 loc) • 4.19 kB
Markdown
# Changelog
## 2.5.3
- Fix bug concerning undefined `dnsServerEndpoints`
## 2.5.2
- Stable release with `ParityHandle` and support for custom DNS servers using the `dnsServerEndpoints` option.
## 2.5.2-experimental
- Add support for custom DNS servers using the `dnsServerEndpoints` option.
## 2.5.1-experimental
- Fix bug that prevented normal usage of `.expect()` calls.
## 2.5.0-experimental
- Add `ParityHandle` for use with `Oso Migrate`.
## 2.4.7
- feat: 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".
## 2.4.6
- Deduplicate results when evaluating on a variable or list of variables in the QueryBuilder.
## 2.4.5
- feat: Added optional `fetchTimeoutMillis` argument to the `Oso` constructor. Timeout applies to requests to Oso Cloud.
## 2.4.4
- Bump dependencies.
## 2.4.3
- Fix "Type instantiation is excessively deep and possibly infinite" error in generated TypeScript declarations.
## 2.4.2
- Raise a more helpful error on invalid fact syntax.
## 2.4.1
- Return entire response body in event of malformed error payload.
## 2.4.0
- Add support for custom debug logger in client options.
## 2.3.0
- Add support for context facts to the `authorizeLocal`, `actionsLocal`, and `listLocal` functions.
## 2.2.0
- 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, for supported endpoints if Oso Cloud returns an
HTTP 400 error
## 2.1.0
- Add `.evaluateLocalSelect` and `.evaluateLocalFilter` functions to the Query Builder to support querying with local authorization.
## 2.0.2
- Internal changes: remove deprecated API method.
## 2.0.1
- Improve error message when using a Local Authorization method without providing a
valid Local Authorization config YAML file.
- More defensively handle non-JSON responses.
## 2.0.0
See the [changelog entry][nodejs-2.0.0] and [migration guide][] for details.
[nodejs-2.0.0]: https://www.osohq.com/docs/changelog/nodejs#nodejs-2.0.0
[migration guide]: https://www.osohq.com/docs/app-integration/client-apis/node/migrating-to-v2
## 1.7.1
- Add `X-Request-ID` header to uniquely identify individual API requests; include this ID in error messages for better debugging.
## 1.7.0
- Add new [`oso.actionsLocal()`](https://www.osohq.com/docs/app-integration/client-apis/node#list-authorized-actions-with-distributed-data-osoactionslocalactor-resource) method.
- Accept `boolean`, `bigint`, and `number` as fact args. These are converted to the appropriate Polar type.
## 1.6.2
- Return an error if the request body is too large without sending a request to Oso Cloud.
## 1.6.1
- Update error message wording: add "Oso Cloud error" prefix.
## 1.6.0
Add support for the [distributed check api](https://www.osohq.com/docs/app-integration/client-apis/node#distributed-check-api):
- feat: Added new [`oso.listLocal()`](https://www.osohq.com/docs/app-integration/client-apis/node#list-authorized-resources-with-distributed-data-osolistlocalactor-action-resource_type-column) method.
- feat: Added new [`oso.authorizeLocal()`](https://www.osohq.com/docs/app-integration/client-apis/node#check-a-permission-with-distributed-data-osoauthorizelocalactor-action-resource) method.
- feat: Added optional [`dataBindings`](https://www.osohq.com/docs/app-integration/client-apis/node#distributed-check-api) argument to the `Oso` constructor.
## 1.5.0
- feat: Add new `oso.bulkActions()` API: <https://www.osohq.com/docs/app-integration/client-apis/node#in-bulk-osobulkactionsactor-resources>
## 1.0.3
- fix: Update user agent string to include package version
- fix: Print server time when it is 0ms
- fix: Use correct StatsResult type definition