jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
536 stars 84 forks source link

fix(deps): update dependency cheerio to v1.0.0-rc.9 #86

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cheerio (source) 1.0.0-rc.6 -> 1.0.0-rc.9 age adoption passing confidence

Release Notes

cheeriojs/cheerio ### [`v1.0.0-rc.9`](https://togithub.com/cheeriojs/cheerio/releases/v1.0.0-rc.9) [Compare Source](https://togithub.com/cheeriojs/cheerio/compare/v1.0.0-rc.8...v1.0.0-rc.9) **Port to TypeScript** Cheerio has been ported entirely to TypeScript (in [#​1816](https://togithub.com/cheeriojs/cheerio/issues/1816))! This eliminates a lot of edge-cases within Cheerio and will allow you to use Cheerio with confidence. This release also features a new documentation website based on TypeDoc, allowing you to quickly navigate all available methods: https://cheerio.js.org *** **Breaking change:** If you were using the function exported by Cheerio directly instead of first `load()`ing a document, you will now have to update the `require` to use the `default` export. ```diff - const cheerio = require("cheerio"); + const cheerio = require("cheerio").default; cheerio('div', dom) ``` Please note that this way of using Cheerio is deprecated and might be removed in a future version. Please consider updating your code to: ```js const cheerio = require("cheerio"); const $ = cheerio.load(dom) $('div') ``` *** **Note:** Cheerio uses template literal types to determine return types. These are available starting with TypeScript 4.1, so you might have to bump your TypeScript version. For TypeScript types, Cheerio now implements the `ArrayLike` interface. That means that Cheerio instances can contain objects of arbitrary types, but not all methods can be called on them. The TypeScript compiler will figure out what structures you are operating on: - When calling a loaded Cheerio instance with an HTML string like `$('
')`, it will product a `Cheerio` type. - `Node` is the base class for DOM elements and includes eg. comment and text nodes. - When calling Cheerio with a selector like `$('.foo')`, it will produce a `Cheerio`, as only `Element`s can be part of the result set. - `Element` is the class representing tags. - You can still use `$('...').map()` to map to arbitrary values, and will get a compiler error when trying to call method that are not supported. - Eg. `$('.foo').map((i, el) => $(el).text()).attr('test')` will no longer be possible, as `.attr` is not allowed to be called on a `Cheerio`. *** This release does not contain other changes to functionality. Feedback is greatly appreciated; if you encounter a problem, please [file an issue](https://togithub.com/cheeriojs/cheerio/issues)! ### [`v1.0.0-rc.8`](https://togithub.com/cheeriojs/cheerio/releases/v1.0.0-rc.8) [Compare Source](https://togithub.com/cheeriojs/cheerio/compare/v1.0.0-rc.7...v1.0.0-rc.8) *Second botched release. Please use `v1.0.0-rc.9` instead.* ### [`v1.0.0-rc.7`](https://togithub.com/cheeriojs/cheerio/releases/v1.0.0-rc.7) [Compare Source](https://togithub.com/cheeriojs/cheerio/compare/v1.0.0-rc.6...v1.0.0-rc.7) *Published without a `lib` directory — please ignore.*

Configuration

📅 Schedule: 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.



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