Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump @nextcloud/l10n from 1.6.0 to v3 #279

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 13, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@nextcloud/l10n ^1.4 || ^2.0 -> ^1.4 || ^2.0 || ^3.0.0 age adoption passing confidence

Release Notes

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

v3.1.0

Compare Source

Added
  • Allow setting escape option per parameter replacing.
    For more security this should be used instead of disabling paramter escaping,
    see pull request #​756
    // 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,
    		}
    	},
    )

v3.0.1

Compare Source

Fixed
  • Ensure that built type definitions are bundled with the release and located in the correct directory

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

v2.2.0

Compare Source

Full Changelog

Added
  • isRTL was added to check whether a given, or the current, language is read right-to-left #​639 (susnux)
Fixed
  • Add typings to the package exports to fix build for Typescript projects using node16 or nodenext module resolution #​633 (susnux)
  • Update exported NextcloudWindowWithRegistry type for Nextcloud 27 #​640 (susnux)
  • Harden loadTranslations by handling edge cases where invalid data is retrieved #​644 (susnux)
Changed
  • Update node engines to next LTS (Node 20 + NPM 9)
  • Dependency updates

v2.1.0

Compare Source

Full Changelog

Added
Fixed
  • Export the Translations type and add missing documentation #​566 (susnux)
  • Fix singular translation in edge cases where plural strings are provided #​570 (susnux)
  • Make loading translations use async XMLHttpRequest #​571 (susnux)
  • Removed warning "no app translation was registered" #​572 (ShGKme)
Changed
  • Added tests and increased code coverage
  • Dependency updates

v2.0.1

Compare Source

Full Changelog

Fixed
Changed
  • Dependency updates

v2.0.0

Compare Source

Full Changelog

Changed

From 2.0.0, this package is standalone and do not rely on window OC variables to function.

Fixed

Configuration

📅 Schedule: Branch creation - "before 3am on saturday" in timezone Europe/Berlin, 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 these updates again.


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

This PR has been generated by Mend Renovate. View repository job log here.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/nextcloud-l10n-3.x branch from a472857 to f63ab79 Compare June 14, 2024 16:25
@GVodyanov GVodyanov merged commit a8dbab2 into main Jun 20, 2024
7 checks passed
@GVodyanov GVodyanov deleted the renovate/nextcloud-l10n-3.x branch June 20, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant