From d271ab18498126d05e2cf746516c707d1fb42c47 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 13 Aug 2024 15:46:07 -0700 Subject: [PATCH] revert: "build(deps): remove unused cheerio package (#10049)" (#10057) ## Summary Revert the removal of `cheerio`, I missed its usage in the hidden directory when grepping. This reverts commit b6baa087f6f6e57e51c667cc23dbb2eda4cbdb39. --- package-lock.json | 49 ++++++++++++++++++++++++ package.json | 1 + packages/calcite-components/package.json | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 69ce6869f28..d32dea07139 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,6 +60,7 @@ "axe-core": "4.10.0", "babel-loader": "9.1.3", "change-case": "4.1.2", + "cheerio": "1.0.0-rc.12", "chokidar": "3.6.0", "chromatic": "11.7.0", "concurrently": "8.2.2", @@ -11563,6 +11564,42 @@ "node": "*" } }, + "node_modules/cheerio": { + "version": "1.0.0-rc.12", + "dev": true, + "license": "MIT", + "dependencies": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + }, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" + } + }, + "node_modules/cheerio-select": { + "version": "2.1.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, "node_modules/chokidar": { "version": "3.6.0", "dev": true, @@ -26233,6 +26270,18 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, "node_modules/parse5-sax-parser": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz", diff --git a/package.json b/package.json index 7d843193729..ff92e7d22d1 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "axe-core": "4.10.0", "babel-loader": "9.1.3", "change-case": "4.1.2", + "cheerio": "1.0.0-rc.12", "chokidar": "3.6.0", "chromatic": "11.7.0", "concurrently": "8.2.2", diff --git a/packages/calcite-components/package.json b/packages/calcite-components/package.json index f6396f97001..4572d72b062 100644 --- a/packages/calcite-components/package.json +++ b/packages/calcite-components/package.json @@ -25,7 +25,7 @@ "build:watch-dev": "npm run util:prep-build-reqs && stencil build --no-docs --dev --watch", "build-storybook": "npm run util:prep-storybook-build && NODE_OPTIONS=--openssl-legacy-provider storybook build --output-dir ./docs --quiet", "clean": "npm run util:clean-js-files && npm run util:clean-readmes && rimraf node_modules dist www hydrate docs .turbo", - "deps:update": "updtr --exclude chalk typescript @types/jest jest jest-cli ts-jest @whitespace/storybook-addon-html && npm audit fix", + "deps:update": "updtr --exclude chalk cheerio typescript @types/jest jest jest-cli ts-jest @whitespace/storybook-addon-html && npm audit fix", "lint": "concurrently npm:lint:*", "lint:html": "prettier --write \"**/*.html\" >/dev/null", "lint:json": "prettier --write \"**/*.json\" >/dev/null",