Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into gwen/sqlalch-opt-map
  • Loading branch information
gw authored Dec 10, 2021
commit 6dac551134c81a1c049982fd883389a8775929ec
32 changes: 32 additions & 0 deletions docs/content/any/project/changelogs/NEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,38 @@ draft: true
- Fixed a variable scope bug affecting the `forall` operator that caused affected
queries to fail with an `UnhandledPartial` error.

### Node.js

#### Breaking changes

{{% callout "Warning" "orange" %}}
This release contains breaking changes. Be sure to follow migration steps
before upgrading.
{{% /callout %}}

##### Second parameter of Oso.query() API changed from bindings to options

Pre-seeding the Polar VM with bindings for a query is a bit of an advanced use
case, but if you were previously passing bindings to `Oso.query()`:

```js
const bindings = new Map([['x', 1]]);
oso.query('f(x)', bindings);
```

You'll need to update that call to pass `bindings` as a key in the new
`QueryOpts` object:

```js
const bindings = new Map([['x', 1]]);
oso.query('f(x)', { bindings });
```

#### Other bugs & improvements

- Thanks to [`@Kn99HN`](https://github.com/Kn99HN) for adding the
`acceptExpression` query flag to the Node.js lib!

## `sqlalchemy-oso` `NEW_VERSION`

### Other bugs & improvements
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.