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:
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: Enabled.
♻️ 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.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
1.0.0-rc.6
->1.0.0-rc.9
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:Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻️ 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.
Codecov Report