Comparing version 1.0.0-rc.6 to 1.0.0-rc.7
{ | ||
"name": "cheerio", | ||
"version": "1.0.0-rc.6", | ||
"version": "1.0.0-rc.7", | ||
"description": "Tiny, fast, and elegant implementation of core jQuery designed specifically for the server", | ||
"author": "Matt Mueller <mattmuelle@gmail.com> (mat.io)", | ||
"funding": "https://github.com/cheeriojs/cheerio?sponsor=1", | ||
"license": "MIT", | ||
@@ -23,28 +24,35 @@ "keywords": [ | ||
"homepage": "https://cheerio.js.org/", | ||
"main": "./index.js", | ||
"types": "types/index.d.ts", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"types/index.d.ts", | ||
"lib" | ||
], | ||
"engines": { | ||
"node": ">= 0.12" | ||
"node": ">= 6" | ||
}, | ||
"dependencies": { | ||
"cheerio-select": "^1.3.0", | ||
"cheerio-select": "^1.4.0", | ||
"dom-serializer": "^1.3.1", | ||
"domhandler": "^4.1.0", | ||
"domhandler": "^4.2.0", | ||
"htmlparser2": "^6.1.0", | ||
"parse5": "^6.0.1", | ||
"parse5-htmlparser2-tree-adapter": "^6.0.1" | ||
"parse5-htmlparser2-tree-adapter": "^6.0.1", | ||
"tslib": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.14.37", | ||
"@octokit/graphql": "^4.6.1", | ||
"@types/benchmark": "^2.1.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/jsdom": "^16.2.10", | ||
"@types/node": "^15.0.2", | ||
"@types/node-fetch": "^2.5.10", | ||
"@types/parse5": "^6.0.0", | ||
"@types/parse5-htmlparser2-tree-adapter": "^6.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.22.1", | ||
"@typescript-eslint/parser": "^4.22.1", | ||
"benchmark": "^2.1.4", | ||
"clean-jsdoc-theme": "^3.1.2", | ||
"eslint": "^7.23.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-jest": "^24.3.4", | ||
"eslint-plugin-jsdoc": "^32.3.0", | ||
"eslint": "^7.25.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"eslint-plugin-jsdoc": "^33.1.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
@@ -54,14 +62,16 @@ "husky": "^4.3.8", | ||
"jquery": "^3.6.0", | ||
"jsdoc": "^3.6.6", | ||
"jsdom": "^16.5.2", | ||
"jsdom": "^16.5.3", | ||
"lint-staged": "^10.5.4", | ||
"node-fetch": "^2.6.1", | ||
"prettier": "^2.2.1", | ||
"prettier-plugin-jsdoc": "0.3.14", | ||
"tsd": "^0.14.0" | ||
"prettier-plugin-jsdoc": "0.3.22", | ||
"ts-jest": "^26.5.6", | ||
"ts-node": "^9.1.1", | ||
"typedoc": "^0.20.36", | ||
"typescript": "^4.2.4" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && npm run test:jest && npm run test:types", | ||
"test": "npm run lint && npm run test:jest", | ||
"test:jest": "jest", | ||
"test:jest:cov": "npm run test:jest -- --coverage", | ||
"test:types": "tsd", | ||
"lint": "npm run lint:es && npm run lint:prettier", | ||
@@ -74,4 +84,5 @@ "lint:es": "eslint --ignore-path .gitignore .", | ||
"format:prettier:raw": "prettier \"**/*.{js,ts,md,json,yml}\" --ignore-path .gitignore", | ||
"build:docs": "jsdoc --configure jsdoc-config.json", | ||
"benchmark": "node benchmark/benchmark.js --regex \"^(?!.*highmem)\"", | ||
"build:docs": "typedoc --hideGenerator src/index.ts", | ||
"benchmark": "ts-node benchmark/benchmark.ts --regex \"^(?!.*highmem)\"", | ||
"update-sponsors": "ts-node scripts/fetch-sponsors.ts", | ||
"bench": "npm run benchmark", | ||
@@ -82,3 +93,4 @@ "pre-commit": "lint-staged" | ||
"singleQuote": true, | ||
"tabWidth": 2 | ||
"tabWidth": 2, | ||
"tsdoc": true | ||
}, | ||
@@ -95,6 +107,4 @@ "lint-staged": { | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"testMatch": [ | ||
"<rootDir>/test/**/*.js" | ||
], | ||
"testPathIgnorePatterns": [ | ||
@@ -101,0 +111,0 @@ "/__fixtures__/" |
@@ -12,5 +12,2 @@ <h1 align="center">cheerio</h1> | ||
</a> | ||
<a href="https://gitter.im/cheeriojs/cheerio"> | ||
<img src="https://img.shields.io/gitter/room/cheeriojs/cheerio?color=%2348b293" alt="Join the chat at https://gitter.im/cheeriojs/cheerio"> | ||
</a> | ||
<a href="#backers"> | ||
@@ -60,3 +57,3 @@ <img src="https://img.shields.io/opencollective/backers/cheerio" alt="OpenCollective backers"> | ||
Cheerio parses markup and provides an API for traversing/manipulating the resulting data structure. It does not interpret the result as a web browser does. Specifically, it does _not_ produce a visual rendering, apply CSS, load external resources, or execute JavaScript. If your use case requires any of this functionality, you should consider projects like [Puppeteer](https://github.com/puppeteer/puppeteer) or [JSDom](https://github.com/jsdom/jsdom). | ||
Cheerio parses markup and provides an API for traversing/manipulating the resulting data structure. It does not interpret the result as a web browser does. Specifically, it does _not_ produce a visual rendering, apply CSS, load external resources, or execute JavaScript. This makes Cheerio **much, much faster than other solutions**. If your use case requires any of this functionality, you should consider projects like [Puppeteer](https://github.com/puppeteer/puppeteer) or [JSDom](https://github.com/jsdom/jsdom). | ||
@@ -84,3 +81,8 @@ ## API | ||
```js | ||
// ES6 or TypeScript: | ||
import * as cheerio from 'cheerio'; | ||
// In other environments: | ||
const cheerio = require('cheerio'); | ||
const $ = cheerio.load('<ul id="fruits">...</ul>'); | ||
@@ -137,3 +139,3 @@ | ||
For a full list of options and their effects, see [this](https://github.com/fb55/DomHandler) and | ||
For a full list of options and their effects, see [domhandler](https://github.com/fb55/DomHandler) and | ||
[htmlparser2's options](https://github.com/fb55/htmlparser2/wiki/Parser-options). | ||
@@ -156,5 +158,5 @@ | ||
```js | ||
// Usage as of htmlparser2 version 3: | ||
// Usage as of htmlparser2 version 6: | ||
const htmlparser2 = require('htmlparser2'); | ||
const dom = htmlparser2.parseDOM(document, options); | ||
const dom = htmlparser2.parseDocument(document, options); | ||
@@ -288,70 +290,22 @@ const $ = cheerio.load(dom); | ||
Does your company use Cheerio in production? Please consider [sponsoring this project](https://opencollective.com/cheerio#sponsor). Your help will allow maintainers to dedicate more time and resources to its development and support. | ||
Does your company use Cheerio in production? Please consider [sponsoring this project](https://github.com/cheeriojs/cheerio?sponsor=1)! Your help will allow maintainers to dedicate more time and resources to its development and support. | ||
<a href="https://opencollective.com/cheerio/sponsor/0/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/1/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/2/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/3/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/4/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/5/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/6/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/7/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/8/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/9/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/9/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/10/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/10/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/11/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/11/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/12/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/12/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/13/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/13/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/14/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/14/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/15/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/15/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/16/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/16/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/17/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/17/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/18/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/18/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/19/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/19/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/20/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/20/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/21/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/21/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/22/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/22/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/23/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/23/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/24/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/24/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/25/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/25/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/26/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/26/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/27/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/27/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/28/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/28/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/sponsor/29/website" target="_blank"><img src="https://opencollective.com/cheerio/sponsor/29/avatar.svg"></a> | ||
<!-- BEGIN SPONSORS: sponsor --> | ||
<a href="https://substack.com/" target="_blank">![Substack](https://avatars.githubusercontent.com/u/53023767?v=4&s=128)</a> | ||
<a href="https://www.airbnb.com/" target="_blank">![Airbnb](https://images.opencollective.com/airbnb/d327d66/logo.png)</a> | ||
<!-- END SPONSORS --> | ||
## Backers | ||
[Become a backer](https://opencollective.com/cheerio#backer) to show your support for Cheerio and help us maintain and improve this open source project. | ||
[Become a backer](https://github.com/cheeriojs/cheerio?sponsor=1) to show your support for Cheerio and help us maintain and improve this open source project. | ||
<a href="https://opencollective.com/cheerio/backer/0/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/1/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/2/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/3/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/4/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/5/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/6/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/7/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/8/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/9/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/9/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/10/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/10/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/11/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/11/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/12/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/12/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/13/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/13/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/14/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/14/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/15/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/15/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/16/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/16/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/17/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/17/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/18/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/18/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/19/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/19/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/20/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/20/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/21/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/21/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/22/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/22/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/23/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/23/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/24/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/24/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/25/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/25/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/26/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/26/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/27/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/27/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/28/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/28/avatar.svg"></a> | ||
<a href="https://opencollective.com/cheerio/backer/29/website" target="_blank"><img src="https://opencollective.com/cheerio/backer/29/avatar.svg"></a> | ||
<!-- BEGIN SPONSORS: backer --> | ||
<a href="https://medium.com/norch" target="_blank">![Espen Klem](https://images.opencollective.com/espenklem/6075b19/avatar.png)</a> | ||
<a href="https://nishant-singh.com" target="_blank">![Nishant Singh](https://avatars.githubusercontent.com/u/10304344?u=9cd1389a1a8211b64979ca3693f96d90f5bf0be9&v=4&s=128)</a> | ||
<!-- END SPONSORS --> | ||
## Special Thanks | ||
@@ -358,0 +312,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41956
7
28
4
0
321
2
+ Addedtslib@^2.2.0
+ Addedtslib@2.8.1(transitive)
Updatedcheerio-select@^1.4.0
Updateddomhandler@^4.2.0