Dexus / translation-tools

Tools to translate json and md files via diverse translation apis like deepl, google, azure, etc.
1 stars 1 forks source link

Update dependency html-entities to v2 #5

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
html-entities ^1.2.0 -> ^2.0.0 age adoption passing confidence

Release Notes

mdevils/html-entities ### [`v2.3.2`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​232) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.3.1...v2.3.2) - Minimize data files, remove unnecessary files. ### [`v2.3.1`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​231) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.3.0...v2.3.1) - Improve performance of `encode()`, `decode()` and `decodeEntity()` by using function inlining. - Fix decoding HEX HTML entities in some cases. ### [`v2.3.0`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​230) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.2.0...v2.3.0) - Add flow types. ### [`v2.2.0`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​220) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.1.1...v2.2.0) - A fast `decodeEntity()` method to decode a single HTML entity. ### [`v2.1.1`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​211) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.1.0...v2.1.1) - Speed up both `encode()` and `decode()` methods. ### [`v2.1.0`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​210) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.6...v2.1.0) - Add `extensive` mode to `encode()` method. This mode encodes all non-printable characters, non-ASCII characters and all characters with named references. ### [`v2.0.6`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​206) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.5...v2.0.6) - Handle invalid numeric HTML entities: mimic browser behaviour. ### [`v2.0.5`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​205) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.4...v2.0.5) - Handling behaviour of ambiguous ampersands. ### [`v2.0.4`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​204) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.3...v2.0.4) - Fix webpack build warning. ### [`v2.0.3`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​203) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.2...v2.0.3) - Handle invalid numeric HTML entities. ### [`v2.0.2`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​202) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.1...v2.0.2) - Handle `null` and `undefined` text values. ### [`v2.0.1`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​201) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v2.0.0...v2.0.1) - Fix decoding numeric HTML entities. ### [`v2.0.0`](https://togithub.com/mdevils/html-entities/blob/HEAD/CHANGELOG.md#​200) [Compare Source](https://togithub.com/mdevils/html-entities/compare/v1.4.0...v2.0.0) - Performance was greatly improved. - New API: simpler and more flexible. `htmlEntitiesInstance.encode(text)` -> `encode(text)` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encode('') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('') ); ``` *** `instance.encodeNonASCII(text)` -> `encode(text, {mode: 'nonAscii'})` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encodeNonASCII('& © ∆') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('& © ∆', {mode: 'nonAscii'}) ); ``` *** `instance.encodeNonASCII(text)` -> `encode(text, {mode: 'nonAsciiPrintable'})` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.encodeNonASCII('& © ∆ \x01') ); ``` After: ```js import {encode} from 'html-entities'; console.log( encode('& © ∆ \x01', {mode: 'nonAsciiPrintable'}) ); ``` *** `instance.decode(text)` -> `decode(text)` Before: ```js import {AllHtmlEntities} from 'html-entities'; const entities = new AllHtmlEntities(); console.log( entities.decode('<>&') ); ``` After: ```js import {decode} from 'html-entities'; console.log( decode('<>&') ); ``` *** Different XML/HTML versions are now implemented via options instead of different classes. Before: ```js import {XmlEntities, Html4Entities, Html5Entities, AllHtmlEntities} from 'html-entities'; const xmlEntities = new XmlEntities(); const html4Entities = new Html4Entities(); const html5Entities = new Html5Entities(); const allHtmlEntities = new AllHtmlEntities(); console.log(xmlEntities.encode('<>&')); console.log(html4Entities.encode('<>&©')); console.log(html5Entities.encode('<>&©℞')); console.log(allHtmlEntities.encode('<>&©℞')); console.log(xmlEntities.decode('<>&')); console.log(html4Entities.decode('<>&©')); console.log(html5Entities.decode('<>&©℞')); console.log(allHtmlEntities.decode('<>&©℞')); ``` After: ```js import {encode, decode} from 'html-entities'; console.log(encode('<>&', {level: 'xml'})); console.log(encode('<>&©', {level: 'html4', mode: 'nonAscii'})); console.log(encode('<>&©℞', {level: 'html5', mode: 'nonAscii'})); console.log(encode('<>&©℞', {level: 'all', mode: 'nonAscii'})); console.log(decode('<>&', {level: 'xml'})); console.log(decode('<>&©', {level: 'html4'})); console.log(decode('<>&©℞', {level: 'html5'})); console.log(decode('<>&©℞', {level: 'all'})); ```

Configuration

📅 Schedule: "before 8am every weekday" in timezone Europe/Berlin.

🚦 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.



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