Skip to content

Commit

Permalink
chore: Prepare 3.1.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed May 6, 2024
1 parent 558a387 commit a0e1f86
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
# Changelog
All notable changes to this project will be documented in this file.

## 3.1.0 - 2024-05-07

### Added

* Allow setting `escape` option per parameter replacing.\
For more security this should be used instead of disabling paramter escaping,
see [pull request #756](https://github.com/nextcloud-libraries/nextcloud-l10n/pull/756)
```js
// Example
t(
'my-app',
'{a}{userInput}{a_end}',
{
a: {
value: '<a>',
escape: false,
},
userInput: somePossiblyInsecureValue, // This will be escaped
a_end: {
value: '</a>',
escape: false,
}
},
)
```

## 3.0.1 - 2024-05-04

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextcloud/l10n",
"version": "3.0.1",
"version": "3.1.0",
"description": "Nextcloud L10n helpers for apps and libraries",
"type": "module",
"main": "dist/index.cjs",
Expand Down

0 comments on commit a0e1f86

Please sign in to comment.