Pick a language:

oso 0.11.2

Core

Other bugs & improvements

  • Error messages for failing inline queries now contain location information indicating which inline query failed.

Rust

Other bugs & improvements

Oso.query and others no longer require mutable reference

Thank you Fisher Darling for pointing out that many methods on oso::Oso do not require a mutable reference.

With this small change, it is no longer necessary to wrap oso::Oso in a mutex in order to use across threads.

Node.js

Other bugs & improvements

It’s now possible to use Oso in Web Workers

Big thanks to @togmund for submitting a patch that enables Oso to run in Web Worker contexts like Cloudflare Workers.

Fixed POLAR_LOG logging

The Web Assembly runtime doesn’t have access to the Node.js process environment, so previously it wasn’t possible to view query evaluation logs by setting the POLAR_LOG=1 environment variable.

That’s now fixed, and setting POLAR_LOG=1 will behave as expected:

$ POLAR_LOG=1 yarn oso
query> 1 = 1
[debug]   QUERY: 1 = 1, BINDINGS: {}
true

For more on the POLAR_LOG environment variable, see Tracing.

Set up a 1x1 with an Oso Engineer

Our team is happy to help you get started with Oso. If you'd like to learn more about using Oso in your app or have any questions about this guide, schedule a 1x1 with an Oso engineer.


Was this page useful?