Skip to content

Commit

Permalink
Merge pull request #758 from nextcloud-libraries/chore/3-1-0
Browse files Browse the repository at this point in the history
chore: Prepare 3.1.0 release
  • Loading branch information
susnux authored May 6, 2024
2 parents 558a387 + a0e1f86 commit e0b16b5
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 e0b16b5

Please sign in to comment.