[Snyk] Upgrade @fluent/bundle from 0.13.0 to 0.16.0 #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @fluent/bundle from 0.13.0 to 0.16.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @fluent/bundle
Remove the
compat.js
build and compile everything to ES2018. (#472)TypeScript source code is now compiled to ES2018 files in the
esm/
directory. These files are then bundled into a single
index.js
UMD filewithout any further transpilation.
The
compat.js
build (available as@ fluent/syntax/compat
) was removed.Please use your own transpilation pipeline if ES2018 is too recent for
your project.
Refer to https://github.com/projectfluent/fluent.js/wiki/Compatibility
for more information.
Allow only some formatting options to
NUMBER
andDATETIME
. (#464)The builtin functions available to translations were liberal in terms of the options they accepted. This could lead to undesired results, e.g. when for the same number value, a translation would specify a different currency than the source language.
The
NUMBER
builtin now only recognizes the following options:The
DATETIME
builtin now only recognizes the following options:All other options are ignored.
Add the
useLocalization
hook. (#467, #475)The hook can be used to get a reference to the current
ReactLocalization
instance, for example in order to format atranslation with the imperative
getString
API.Remove
compat.js
builds and compile everything to ES2018. (#472)TypeScript source code is now compiled to ES2018 files in the
esm/
directory. These files are then bundled into a single
index.js
UMD filewithout any further transpilation.
The
compat.js
build (available as@ fluent/react/compat
) was removed.Please use your own transpilation pipeline if ES2018 is too recent for
your project.
Refer to https://github.com/projectfluent/fluent.js/wiki/Compatibility
for more information.
Require
@ fluent/bundle
0.16.0 as peer dependency.In
@ fluent/bundle
0.16.0FluentArgument
was renamed toFluentVariable
.Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs