Repository navigation
Releases
v11.4.23
What's Changed
π Bug Fixes
- fix(vue-i18n-core): remove local composer when Suspense discards a pending branch by @FADL285 in #2796
- fix(vue-i18n-core): also clean up useI18n() after await, the Legacy API mixin and v-t when Suspense discards a pending branch by @kazupon in #2799
New Contributors
Full Changelog: v11.4.22...v11.4.23
v12.0.0-alpha.13
escapeParameter: The sanitizer now closes the elements that a translation leaves open, and removes end tags that close no element of the translation, in the same way as browsers do when the translation is rendered on the client. A <form> that the translation does not close, and <foreignObject>, <desc>, <mi> and similar SVG and MathML elements outside SVG and MathML, are turned into text. Well-formed translations are not changed. (a3b3d0a8) See GHSA-786j-gfwp-vhm5.
What's Changed
π Security Fixes
- fix(shared): close the elements that a translation leaves open in sanitizeTranslatedHtml (a3b3d0a8)
Full Changelog: v12.0.0-alpha.12...v12.0.0-alpha.13
v12.0.0-alpha.12
escapeParameter: A parameter that is not a string, such as an array or an object, is now escaped after it is turned into text, in the same way as a string parameter. Message functions still receive the parameters as they are passed. (945f0b54) See GHSA-4fx6-3h3f-fh66.
What's Changed
π Security Fixes
- fix(core-base): escape the text of non-string parameters with escapeParameter (945f0b54)
Full Changelog: v12.0.0-alpha.11...v12.0.0-alpha.12
v11.4.22
escapeParameter: The sanitizer now closes the elements that a translation leaves open, and removes end tags that close no element of the translation, in the same way as browsers do when the translation is rendered on the client. A <form> that the translation does not close, and <foreignObject>, <desc>, <mi> and similar SVG and MathML elements outside SVG and MathML, are turned into text. Well-formed translations are not changed. (#2793) See GHSA-786j-gfwp-vhm5.
What's Changed
π Security Fixes
- fix(shared): close the elements that a translation leaves open in sanitizeTranslatedHtml by @kazupon in #2793
Full Changelog: v11.4.21...v11.4.22
v11.4.21
escapeParameter: A parameter that is not a string, such as an array or an object, is now escaped after it is turned into text, in the same way as a string parameter. Message functions still receive the parameters as they are passed. (#2792) See GHSA-4fx6-3h3f-fh66.
What's Changed
π Security Fixes
Full Changelog: v11.4.20...v11.4.21
v12.0.0-alpha.11
Behavior change: a line break or a tab right after a linked key (@:key) now ends the key, as a space does. Such messages now render the linked message, and a line break that was dropped after a linked message is kept. Messages compiled at build time get this when they are compiled again with the new @intlify/message-compiler. (#2779)
What's Changed
π Bug Fixes
ποΈ Documentations
Full Changelog: v12.0.0-alpha.10...v12.0.0-alpha.11
v11.4.20
Behavior change: a line break or a tab right after a linked key (@:key) now ends the key, as a space does. Such messages now render the linked message, and a line break that was dropped after a linked message is kept. Messages compiled at build time get this when they are compiled again with the new @intlify/message-compiler. (#2780)
What's Changed
π Bug Fixes
ποΈ Documentations
Full Changelog: v11.4.19...v11.4.20
v12.0.0-alpha.10
escapeParameter: The sanitizer now reads tags and attributes in the same way as browsers do, and checks every attribute. A tag, a comment, or an element like <textarea> that is not closed at the end of a translation is turned into text, and so is <plaintext>. Some outputs change their form with the same result in the browser: < that does not start a tag becomes <, and onclick= inside an attribute value is kept as it is. < in the content of <textarea>, <style> and similar elements also becomes <: it looks the same in <textarea> and <title>, but stays as < in <style> and <xmp>. (addbc3aa) See GHSA-9qc3-h48f-7h96 and GHSA-7356-3q55-jvxm.
What's Changed
π Security Fixes
- fix(shared): read tags with the rules of the HTML tokenizer in sanitizeTranslatedHtml (addbc3aa)
ποΈ Documentations
- docs: add I18n Support Plus to third-party tooling by @IBRAHIMDANS in #2763
New Contributors
- @IBRAHIMDANS made their first contribution in #2763
Full Changelog: v12.0.0-alpha.9...v12.0.0-alpha.10
v11.4.19
escapeParameter: The sanitizer now reads tags and attributes in the same way as browsers do, and checks every attribute. A tag, a comment, or an element like <textarea> that is not closed at the end of a translation is turned into text, and so is <plaintext>. Some outputs change their form with the same result in the browser: < that does not start a tag becomes <, and onclick= inside an attribute value is kept as it is. < in the content of <textarea>, <style> and similar elements also becomes <: it looks the same in <textarea> and <title>, but stays as < in <style> and <xmp>. (#2769) See GHSA-9qc3-h48f-7h96 and GHSA-7356-3q55-jvxm.
What's Changed
π Security Fixes
- fix(shared): read tags with the rules of the HTML tokenizer in sanitizeTranslatedHtml by @kazupon in #2769
Full Changelog: v11.4.18...v11.4.19
v12.0.0-alpha.9
escapeParameter: The sanitizer now also turns <script> in translations into text. A <script> does not run with v-html in the browser, but it runs when the translation is rendered on the server (SSR). (a66ace0a) See GHSA-jrxq-gc2q-9357.
What's Changed
π Security Fixes
- fix(shared): neutralize script elements in sanitizeTranslatedHtml (a66ace0a)
Full Changelog: v12.0.0-alpha.8...v12.0.0-alpha.9