chore(deps): update dependency @nextcloud/l10n to v3 #93

Merged
Xefir merged 1 commits from renovate/nextcloud-l10n-3.x into main 2024-05-03 16:32:04 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
@nextcloud/l10n dependencies major ^2.2.0 -> ^3.0.0

Release Notes

nextcloud-libraries/nextcloud-l10n (@​nextcloud/l10n)

v3.0.0

Compare Source

Full Changelog

Breaking changes

Instead of also sanitizing the replacing variables, now only the result is sanitized, see pull request #​648.

This will improve the performance if multiple placeholders are used and it allows this,
while the string is still sanitized:

t(
	'See {linkstart}documentation{linkend}',
	{
		linkstart: '<a ...>',
		linkend: '</a>',
	},
	// No number
	undefined,
	{
		// Do not escape the result as we want the HTML anchor element
		escape: false,
	}
)
Added
  • feat: export aliases t and n for translate and translatePlural
Fixed
  • fix!: Only sanitize the result string when replacing variables
Changed
  • Update NPM to latest LTS v10
  • Migrate to vite for transpiling and vitest for testing
  • chore: Added more tests for special cases on plural forms
  • chore(deps): Bump tough-cookie to 4.1.3
  • chore(deps): Bump postcss to 8.4.31
  • chore(deps): Bump @​nextcloud/typings to 1.8.0
  • chore(deps): Bump dompurify to 3.1.1
  • chore(deps): Bump @​nextcloud/router to 3.0.1

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@nextcloud/l10n](https://github.com/nextcloud-libraries/nextcloud-l10n) | dependencies | major | [`^2.2.0` -> `^3.0.0`](https://renovatebot.com/diffs/npm/@nextcloud%2fl10n/2.2.0/3.0.0) | --- ### Release Notes <details> <summary>nextcloud-libraries/nextcloud-l10n (@&#8203;nextcloud/l10n)</summary> ### [`v3.0.0`](https://github.com/nextcloud-libraries/nextcloud-l10n/blob/HEAD/CHANGELOG.md#300---2024-05-02) [Compare Source](https://github.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0) [Full Changelog](https://github.com/nextcloud-libraries/nextcloud-l10n/compare/v2.2.0...v3.0.0) ##### Breaking changes Instead of also sanitizing the replacing variables, now only the result is sanitized, see [pull request #&#8203;648](https://github.com/nextcloud-libraries/nextcloud-l10n/pull/648). This will improve the performance if multiple placeholders are used and it allows this, while the string is still sanitized: ```js t( 'See {linkstart}documentation{linkend}', { linkstart: '<a ...>', linkend: '</a>', }, // No number undefined, { // Do not escape the result as we want the HTML anchor element escape: false, } ) ``` ##### Added - feat: export aliases `t` and `n` for `translate` and `translatePlural` ##### Fixed - fix!: Only sanitize the result string when replacing variables ##### Changed - Update NPM to latest LTS v10 - Migrate to vite for transpiling and vitest for testing - chore: Added more tests for special cases on plural forms - chore(deps): Bump tough-cookie to 4.1.3 - chore(deps): Bump postcss to 8.4.31 - chore(deps): Bump [@&#8203;nextcloud/typings](https://github.com/nextcloud/typings) to 1.8.0 - chore(deps): Bump dompurify to 3.1.1 - chore(deps): Bump [@&#8203;nextcloud/router](https://github.com/nextcloud/router) to 3.0.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xODEuNiIsInVwZGF0ZWRJblZlciI6IjM3LjE4MS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Xefir added 1 commit 2024-05-03 06:44:15 +00:00
repod / xml (push) Successful in 25s Details
repod / php (push) Successful in 58s Details
repod / nodejs (push) Successful in 1m26s Details
repod / release (push) Has been skipped Details
3bd282a0c0
chore(deps): update dependency @nextcloud/l10n to v3
Xefir merged commit 25bddc5b31 into main 2024-05-03 16:32:04 +00:00
Xefir deleted branch renovate/nextcloud-l10n-3.x 2024-05-03 16:32:04 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Xefir/repod#93
No description provided.