Skip to content

Commit e695c9e

Browse files
committed
Patch release v1.18.2
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
1 parent d473969 commit e695c9e

4 files changed

Lines changed: 5176 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
All notable changes to this project will be documented in this file. This
44
project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## 1.18.2
7+
8+
This release includes a bug fix for a `opa fmt` regression introduced in v1.18.0.
9+
10+
The original fix for #8557 had the formatter enforce newlines in single-item
11+
collections (arrays, objects, sets) rather than merely honoring existing ones.
12+
As a result, running `opa fmt` on already-formatted policies could introduce
13+
a large number of unwanted changes. This patch release restores the intended
14+
behavior: only newlines already present in the source determine whether a
15+
single-item collection is formatted on one line or across multiple lines.
16+
17+
### Fixes
18+
19+
- Fix regression in fix of #8557 (#8845) (authored by @anderseknert)
20+
621
## 1.18.1
722

823
This release fixes a memory leak introduced in OPA v1.17.0.

0 commit comments

Comments
 (0)