Skip to content

Commit

Permalink
fix: make @docusaurus/theme-common as peer
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jun 21, 2022
1 parent 0bfbbb2 commit 68dc812
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 29 deletions.
8 changes: 5 additions & 3 deletions docusaurus-search-local/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easyops-cn/docusaurus-search-local",
"version": "0.27.0",
"version": "0.28.0-alpha.1",
"description": "An offline/local search plugin for Docusaurus v2",
"repository": "https://github.com/easyops-cn/docusaurus-search-local",
"homepage": "https://github.com/easyops-cn/docusaurus-search-local",
Expand All @@ -24,7 +24,6 @@
"license": "MIT",
"dependencies": {
"@docusaurus/plugin-content-docs": "^2.0.0-beta.20",
"@docusaurus/theme-common": "^2.0.0-beta.20",
"@docusaurus/theme-translations": "^2.0.0-beta.20",
"@docusaurus/utils": "^2.0.0-beta.20",
"@docusaurus/utils-common": "^2.0.0-beta.20",
Expand All @@ -43,6 +42,7 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.0.0-beta.20",
"@docusaurus/theme-common": "^2.0.0-beta.20",
"@docusaurus/types": "^2.0.0-beta.20",
"@tsconfig/docusaurus": "^1.0.2",
"@types/cheerio": "^0.22.31",
Expand All @@ -61,6 +61,8 @@
"typescript": "^4.6.4"
},
"peerDependencies": {
"react": "^16.14.0 || 17 || 18"
"@docusaurus/theme-common": "^2.0.0-beta.20",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
}
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@
"docusaurus-search-local",
"website"
],
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"resolutions": {
"@docusaurus/core": "2.0.0-beta.20",
"@docusaurus/preset-classic": "2.0.0-beta.20",
"@docusaurus/theme-classic": "2.0.0-beta.20",
"@docusaurus/theme-common": "2.0.0-beta.20"
}
}
6 changes: 4 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.20",
"@docusaurus/preset-classic": "^2.0.0-beta.20",
"@docusaurus/theme-classic": "^2.0.0-beta.20",
"@docusaurus/theme-common": "^2.0.0-beta.20",
"@easyops-cn/docusaurus-search-local": "workspace:*",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"browserslist": {
"production": [
Expand Down
165 changes: 142 additions & 23 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ __metadata:
languageName: node
linkType: hard

"@docusaurus/core@npm:2.0.0-beta.20, @docusaurus/core@npm:^2.0.0-beta.20":
"@docusaurus/core@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@docusaurus/core@npm:2.0.0-beta.20"
dependencies:
Expand Down Expand Up @@ -1931,7 +1931,7 @@ __metadata:
languageName: node
linkType: hard

"@docusaurus/preset-classic@npm:^2.0.0-beta.20":
"@docusaurus/preset-classic@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@docusaurus/preset-classic@npm:2.0.0-beta.20"
dependencies:
Expand Down Expand Up @@ -1996,7 +1996,7 @@ __metadata:
languageName: node
linkType: hard

"@docusaurus/theme-common@npm:2.0.0-beta.20, @docusaurus/theme-common@npm:^2.0.0-beta.20":
"@docusaurus/theme-common@npm:2.0.0-beta.20":
version: 2.0.0-beta.20
resolution: "@docusaurus/theme-common@npm:2.0.0-beta.20"
dependencies:
Expand Down Expand Up @@ -2162,7 +2162,9 @@ __metadata:
tslib: ^2.4.0
typescript: ^4.6.4
peerDependencies:
react: ^16.14.0 || 17 || 18
"@docusaurus/theme-common": ^2.0.0-beta.20
react: ^16.14.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.14.0 || ^17.0.0 || ^18.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -4801,6 +4803,20 @@ __metadata:
languageName: node
linkType: hard

"cheerio-select@npm:^2.1.0":
version: 2.1.0
resolution: "cheerio-select@npm:2.1.0"
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
checksum: 843d6d479922f28a6c5342c935aff1347491156814de63c585a6eb73baf7bb4185c1b4383a1195dca0f12e3946d737c7763bcef0b9544c515d905c5c44c5308b
languageName: node
linkType: hard

"cheerio@npm:^0.22.0":
version: 0.22.0
resolution: "cheerio@npm:0.22.0"
Expand All @@ -4825,7 +4841,23 @@ __metadata:
languageName: node
linkType: hard

"cheerio@npm:^1.0.0-rc.10, cheerio@npm:^1.0.0-rc.3":
"cheerio@npm:^1.0.0-rc.10":
version: 1.0.0-rc.11
resolution: "cheerio@npm:1.0.0-rc.11"
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
tslib: ^2.4.0
checksum: 7619edcbecafb70ca6ca842ce149307a84e8d451432a888d82959b2aa04e2090701658f25eac75821e0832cc1305bdbcf02f17175102fc1723f119f3c9ece17a
languageName: node
linkType: hard

"cheerio@npm:^1.0.0-rc.3":
version: 1.0.0-rc.10
resolution: "cheerio@npm:1.0.0-rc.10"
dependencies:
Expand Down Expand Up @@ -5482,6 +5514,19 @@ __metadata:
languageName: node
linkType: hard

"css-select@npm:^5.1.0":
version: 5.1.0
resolution: "css-select@npm:5.1.0"
dependencies:
boolbase: ^1.0.0
css-what: ^6.1.0
domhandler: ^5.0.2
domutils: ^3.0.1
nth-check: ^2.0.1
checksum: 2772c049b188d3b8a8159907192e926e11824aea525b8282981f72ba3f349cf9ecd523fdf7734875ee2cb772246c22117fc062da105b6d59afe8dcd5c99c9bda
languageName: node
linkType: hard

"css-select@npm:~1.2.0":
version: 1.2.0
resolution: "css-select@npm:1.2.0"
Expand Down Expand Up @@ -5511,7 +5556,7 @@ __metadata:
languageName: node
linkType: hard

"css-what@npm:^6.0.1":
"css-what@npm:^6.0.1, css-what@npm:^6.1.0":
version: 6.1.0
resolution: "css-what@npm:6.1.0"
checksum: b975e547e1e90b79625918f84e67db5d33d896e6de846c9b584094e529f0c63e2ab85ee33b9daffd05bff3a146a1916bec664e18bb76dd5f66cbff9fc13b2bbe
Expand Down Expand Up @@ -5979,6 +6024,17 @@ __metadata:
languageName: node
linkType: hard

"dom-serializer@npm:^2.0.0":
version: 2.0.0
resolution: "dom-serializer@npm:2.0.0"
dependencies:
domelementtype: ^2.3.0
domhandler: ^5.0.2
entities: ^4.2.0
checksum: cd1810544fd8cdfbd51fa2c0c1128ec3a13ba92f14e61b7650b5de421b88205fd2e3f0cc6ace82f13334114addb90ed1c2f23074a51770a8e9c1273acbc7f3e6
languageName: node
linkType: hard

"dom-serializer@npm:~0.1.0":
version: 0.1.1
resolution: "dom-serializer@npm:0.1.1"
Expand All @@ -5996,7 +6052,7 @@ __metadata:
languageName: node
linkType: hard

"domelementtype@npm:^2.0.1, domelementtype@npm:^2.2.0":
"domelementtype@npm:^2.0.1, domelementtype@npm:^2.2.0, domelementtype@npm:^2.3.0":
version: 2.3.0
resolution: "domelementtype@npm:2.3.0"
checksum: ee837a318ff702622f383409d1f5b25dd1024b692ef64d3096ff702e26339f8e345820f29a68bcdcea8cfee3531776b3382651232fbeae95612d6f0a75efb4f6
Expand Down Expand Up @@ -6030,6 +6086,15 @@ __metadata:
languageName: node
linkType: hard

"domhandler@npm:^5.0.1, domhandler@npm:^5.0.2, domhandler@npm:^5.0.3":
version: 5.0.3
resolution: "domhandler@npm:5.0.3"
dependencies:
domelementtype: ^2.3.0
checksum: 0f58f4a6af63e6f3a4320aa446d28b5790a009018707bce2859dcb1d21144c7876482b5188395a188dfa974238c019e0a1e610d2fc269a12b2c192ea2b0b131c
languageName: node
linkType: hard

"domutils@npm:1.5.1":
version: 1.5.1
resolution: "domutils@npm:1.5.1"
Expand Down Expand Up @@ -6061,6 +6126,17 @@ __metadata:
languageName: node
linkType: hard

"domutils@npm:^3.0.1":
version: 3.0.1
resolution: "domutils@npm:3.0.1"
dependencies:
dom-serializer: ^2.0.0
domelementtype: ^2.3.0
domhandler: ^5.0.1
checksum: 23aa7a840572d395220e173cb6263b0d028596e3950100520870a125af33ff819e6f609e1606d6f7d73bd9e7feb03bb404286e57a39063b5384c62b724d987b3
languageName: node
linkType: hard

"dot-case@npm:^3.0.4":
version: 3.0.4
resolution: "dot-case@npm:3.0.4"
Expand Down Expand Up @@ -6206,6 +6282,13 @@ __metadata:
languageName: node
linkType: hard

"entities@npm:^4.2.0, entities@npm:^4.3.0":
version: 4.3.0
resolution: "entities@npm:4.3.0"
checksum: f6abacfe1f4ee06a98aae713ed0b97d4dbd1fcd4c90840d16c6c7535a4e34df1445614c987b7b359ab8362823f050158b8fd435652f0ac18c45683174cbec6ce
languageName: node
linkType: hard

"env-paths@npm:^2.2.0":
version: 2.2.1
resolution: "env-paths@npm:2.2.1"
Expand Down Expand Up @@ -7670,6 +7753,18 @@ __metadata:
languageName: node
linkType: hard

"htmlparser2@npm:^8.0.1":
version: 8.0.1
resolution: "htmlparser2@npm:8.0.1"
dependencies:
domelementtype: ^2.3.0
domhandler: ^5.0.2
domutils: ^3.0.1
entities: ^4.3.0
checksum: 06d5c71e8313597722bc429ae2a7a8333d77bd3ab07ccb916628384b37332027b047f8619448d8f4a3312b6609c6ea3302a4e77435d859e9e686999e6699ca39
languageName: node
linkType: hard

"http-cache-semantics@npm:^4.0.0, http-cache-semantics@npm:^4.1.0":
version: 4.1.0
resolution: "http-cache-semantics@npm:4.1.0"
Expand Down Expand Up @@ -10449,6 +10544,16 @@ __metadata:
languageName: node
linkType: hard

"parse5-htmlparser2-tree-adapter@npm:^7.0.0":
version: 7.0.0
resolution: "parse5-htmlparser2-tree-adapter@npm:7.0.0"
dependencies:
domhandler: ^5.0.2
parse5: ^7.0.0
checksum: fc5d01e07733142a1baf81de5c2a9c41426c04b7ab29dd218acb80cd34a63177c90aff4a4aee66cf9f1d0aeecff1389adb7452ad6f8af0a5888e3e9ad6ef733d
languageName: node
linkType: hard

"parse5@npm:6.0.1, parse5@npm:^6.0.0, parse5@npm:^6.0.1":
version: 6.0.1
resolution: "parse5@npm:6.0.1"
Expand All @@ -10463,6 +10568,15 @@ __metadata:
languageName: node
linkType: hard

"parse5@npm:^7.0.0":
version: 7.0.0
resolution: "parse5@npm:7.0.0"
dependencies:
entities: ^4.3.0
checksum: 7da5d61cc18eb36ffa71fc861e65cbfd1f23d96483a6631254e627be667dbc9c93ac0b0e6cb17a13a2e4033dab19bfb2f76f38e5936cfb57240ed49036a83fcc
languageName: node
linkType: hard

"parseurl@npm:~1.3.2, parseurl@npm:~1.3.3":
version: 1.3.3
resolution: "parseurl@npm:1.3.3"
Expand Down Expand Up @@ -11362,15 +11476,16 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:^18.0.0":
version: 18.1.0
resolution: "react-dom@npm:18.1.0"
"react-dom@npm:^17.0.2":
version: 17.0.2
resolution: "react-dom@npm:17.0.2"
dependencies:
loose-envify: ^1.1.0
scheduler: ^0.22.0
object-assign: ^4.1.1
scheduler: ^0.20.2
peerDependencies:
react: ^18.1.0
checksum: bb0d48eeb0b297c79c2a03978baa29f5b3ff7ba3d070b21e34c9af1a6e7fdf0ca8b8d73e41f9214d91ad40eeb6d1f3559f884cbbc338713374a51320637c23df
react: 17.0.2
checksum: 1c1eaa3bca7c7228d24b70932e3d7c99e70d1d04e13bb0843bbf321582bc25d7961d6b8a6978a58a598af2af496d1cedcfb1bf65f6b0960a0a8161cb8dab743c
languageName: node
linkType: hard

Expand Down Expand Up @@ -11521,12 +11636,13 @@ __metadata:
languageName: node
linkType: hard

"react@npm:^18.0.0":
version: 18.1.0
resolution: "react@npm:18.1.0"
"react@npm:^17.0.2":
version: 17.0.2
resolution: "react@npm:17.0.2"
dependencies:
loose-envify: ^1.1.0
checksum: 5bb296b561b43ef2220395da4faac86c14a087c8c80e1a7598a5740f01ee605c11eaf249985c1e2000971c4cd32ccb46d40f00479bbd9fb6b1c7cf857393b7d4
object-assign: ^4.1.1
checksum: b254cc17ce3011788330f7bbf383ab653c6848902d7936a87b09d835d091e3f295f7e9dd1597c6daac5dc80f90e778c8230218ba8ad599f74adcc11e33b9d61b
languageName: node
linkType: hard

Expand Down Expand Up @@ -12077,12 +12193,13 @@ __metadata:
languageName: node
linkType: hard

"scheduler@npm:^0.22.0":
version: 0.22.0
resolution: "scheduler@npm:0.22.0"
"scheduler@npm:^0.20.2":
version: 0.20.2
resolution: "scheduler@npm:0.20.2"
dependencies:
loose-envify: ^1.1.0
checksum: a8ef5cab769c020cd6382ad9ecc3f72dbde56a50a36639b3a42ad9c11f7724f03700bcad373044059b8067d4a6365154dc7c0ca8027ef20ff4900cf58a0fc2c5
object-assign: ^4.1.1
checksum: c4b35cf967c8f0d3e65753252d0f260271f81a81e427241295c5a7b783abf4ea9e905f22f815ab66676f5313be0a25f47be582254db8f9241b259213e999b8fc
languageName: node
linkType: hard

Expand Down Expand Up @@ -13948,11 +14065,13 @@ __metadata:
dependencies:
"@docusaurus/core": ^2.0.0-beta.20
"@docusaurus/preset-classic": ^2.0.0-beta.20
"@docusaurus/theme-classic": ^2.0.0-beta.20
"@docusaurus/theme-common": ^2.0.0-beta.20
"@easyops-cn/docusaurus-search-local": "workspace:*"
"@mdx-js/react": ^1.6.22
clsx: ^1.1.1
react: ^18.0.0
react-dom: ^18.0.0
react: ^17.0.2
react-dom: ^17.0.2
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 68dc812

Please sign in to comment.