Skip to content

Commit

Permalink
Prepare v0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tsandall committed Jan 25, 2017
1 parent d65ccff commit 4ea2b27
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 9 deletions.
47 changes: 46 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,52 @@
All notable changes to this project will be documented in this file. This
project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
## 0.4.0

### REST API changes

This release contains a few non-backwards compatible changes to the REST API:

- The `request` document has been renamed to `input`. If you were calling the
GET /data[/path]?request=value you should update to use [POST
requests](http://www.openpolicyagent.org/documentation/references/rest#get-a-document-with-input)
(see below).

- The API responses have been updated to return results embedded inside a
wrapper object: `{"result": value}`. This will allow OPA to return unambiguous
metadata in future (e.g., pagination, analysis, etc.) If you were previously
consuming Data API GET responses, you should update your code to access the
value under the `"result"` key of the response object.

- The API models have been updated to use snake_case
([#222](https://github.com/open-policy-agent/opa/issues/222)). This would only
affect you if you were previously consuming error responses or policy ASTs.

The Data API has been updated to support the [POST
requests](http://www.openpolicyagent.org/documentation/references/rest#get-a-document-with-input).
This is the recommended way of supplying query inputs.

### Built-in Function changes

The built-in framework has been extended to support simplified built-in
implementations:

- Refactor topdown built-in functions
([#205](https://github.com/open-policy-agent/opa/issues/205))

### Fixes

- Add cURL note to REST API docs ([#211](https://github.com/open-policy-agent/opa/issues/211))
- Fix empty request parameter parsing ([#212](https://github.com/open-policy-agent/opa/issues/212))
- Fix handling of missing input document ([#227](https://github.com/open-policy-agent/opa/issues/227))
- Improve floating point literal support ([#215](https://github.com/open-policy-agent/opa/issues/215))
- Improve module parsing errors ([#213](https://github.com/open-policy-agent/opa/issues/213))
- Fix ast.Number hash and equality
- Fix parsing of escaped strings

### Miscellaneous

- Improve evaluation error messages

## 0.3.1

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Use of this source code is governed by an Apache2
# license that can be found in the LICENSE file.

VERSION := 0.3.2-dev
VERSION := 0.4.0

PACKAGES := \
github.com/open-policy-agent/opa/ast/.../ \
Expand Down
2 changes: 1 addition & 1 deletion site/examples/docker-authorization/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ mkdir -p policies
### 2. Download the latest version of OPA.

```shell
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64 > opa
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64 > opa
$ chmod u+x opa
```

Expand Down
12 changes: 6 additions & 6 deletions site/get-opa/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ title: Get Open Policy Agent
The binary releases for 64-bit Linux and Mac are available for download here. For other releases of OPA see the [GitHub Releases](https://github.com/open-policy-agent/opa/releases) page.
{: .opa-header--text}

* [64-bit Linux](https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64){: .opa-header--download-list--link}
* [64-bit Mac OS X](https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_darwin_amd64){: .opa-header--download-list--link}
* [Go Source](https://github.com/open-policy-agent/opa/archive/v0.3.1.tar.gz){: .opa-header--download-list--link}
* [64-bit Linux](https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64){: .opa-header--download-list--link}
* [64-bit Mac OS X](https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_darwin_amd64){: .opa-header--download-list--link}
* [Go Source](https://github.com/open-policy-agent/opa/archive/v0.4.0.tar.gz){: .opa-header--download-list--link}
{: .opa-header--download-list}

{% endcontentfor %}
Expand All @@ -25,22 +25,22 @@ The binary releases for 64-bit Linux and Mac are available for download here. Fo
## 64-bit Linux

```shell
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_linux_amd64 > opa
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_linux_amd64 > opa
$ chmod u+x opa
$ ./opa version
```

## 64-bit Mac OS X

```shell
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.3.1/opa_darwin_amd64 > opa
$ curl -L https://github.com/open-policy-agent/opa/releases/download/v0.4.0/opa_darwin_amd64 > opa
$ chmod u+x opa
$ ./opa version
```

## Docker Image (64-bit Linux)
```shell
$ docker run openpolicyagent/opa:0.3.1 version
$ docker run openpolicyagent/opa:0.4.0 version
```

{% endcontentfor %}

0 comments on commit 4ea2b27

Please sign in to comment.