Skip to content

Commit

Permalink
Add webpack define for DEBUG and upgrade dependencies (#369)
Browse files Browse the repository at this point in the history
* add define for DEBUG

* fix build.yml CI

* upgrade dependencies

* fix missing peer dep
  • Loading branch information
rohit-gohri authored Jun 29, 2024
1 parent 8d70e4b commit 45483d8
Show file tree
Hide file tree
Showing 10 changed files with 2,141 additions and 2,338 deletions.
7 changes: 7 additions & 0 deletions .changeset/thin-houses-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"docusaurus-plugin-redoc": patch
"docusaurus-theme-redoc": patch
"redocusaurus": patch
---

update dependencies
5 changes: 5 additions & 0 deletions .changeset/twelve-donkeys-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docusaurus-theme-redoc": patch
---

Add webpack define for DEBUG env var
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
contents: read
pages: write
id-token: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -31,7 +32,9 @@ jobs:
cache: 'yarn'

- name: Install Dependencies 📦
run: yarn install --immutable
run: |
yarn install --immutable
yarn manypkg check
- name: Build Packages 🔨
run: yarn build:packages
Expand Down Expand Up @@ -105,5 +108,5 @@ jobs:
For commit [${{ github.sha }}](https://github.com/rohit-gohri/redocusaurus/commit/${{ github.sha }}).
comment_includes: 'This pull request is automatically built and it is testable by installing'
comment_tag: 'automatically-publish'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
"url": "https://github.com/rohit-gohri/redocusaurus/issues"
},
"homepage": "https://github.com/rohit-gohri/redocusaurus#readme",
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"dependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.6",
"@manypkg/cli": "^0.21.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"concurrently": "^8.2.2",
Expand All @@ -53,7 +54,7 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "3.0.3",
"typescript": "5.3.3"
"typescript": "^5.5.2"
},
"engines": {
"node": ">=18"
Expand Down
20 changes: 10 additions & 10 deletions packages/docusaurus-plugin-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
},
"homepage": "https://github.com/rohit-gohri/redocusaurus/tree/main/packages/docusaurus-plugin-redoc#readme",
"dependencies": {
"@redocly/openapi-core": "1.10.3",
"redoc": "2.1.3"
"@redocly/openapi-core": "1.16.0",
"redoc": "2.1.5"
},
"devDependencies": {
"@docusaurus/types": "^3.1.1",
"@docusaurus/utils": "^3.1.1",
"@docusaurus/types": "^3.4.0",
"@docusaurus/utils": "^3.4.0",
"core-js": "^3.36.0",
"mobx": "^6.12.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"styled-components": "^6.1.8",
"typescript": "^5.4.2"
"mobx": "^6.12.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"styled-components": "^6.1.11",
"typescript": "^5.5.2"
},
"peerDependencies": {
"@docusaurus/utils": "^3.0.0"
Expand Down
31 changes: 16 additions & 15 deletions packages/docusaurus-theme-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,32 @@
},
"homepage": "https://github.com/rohit-gohri/redocusaurus/tree/main/packages/docusaurus-theme-redoc#readme",
"dependencies": {
"@redocly/openapi-core": "1.10.3",
"@redocly/openapi-core": "1.16.0",
"clsx": "^1.2.1",
"lodash": "^4.17.21",
"mobx": "^6.0.4",
"redoc": "2.1.3",
"styled-components": "^6.0.5"
"mobx": "^6.12.4",
"redoc": "2.1.5",
"styled-components": "^6.1.11"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.1.1",
"@docusaurus/theme-classic": "^3.1.1",
"@docusaurus/theme-common": "^3.1.1",
"@docusaurus/types": "^3.1.1",
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/theme-classic": "^3.4.0",
"@docusaurus/theme-common": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"@types/lodash": "^4.14.200",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@types/react-is": "^18.2.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.3.0",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.34",
"copyfiles": "^2.4.1",
"core-js": "^3.36.0",
"nodemon": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"typescript": "^5.4.2"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"typescript": "^5.5.2",
"webpack": "^5.92.1"
},
"peerDependencies": {
"@docusaurus/theme-common": "^3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/docusaurus-theme-redoc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default function redocTheme(
process.versions.node || '0.0.0',
),
'process.platform': JSON.stringify(''),
// IMPORTANT: To fix debug library‘s bug #236
// {}.DEBUG = namespaces; // SyntaxError: Unexpected token '.'
'process.env.DEBUG': JSON.stringify(process.env.DEBUG),
'process.env': JSON.stringify({}),
}),
...(isServer
Expand Down
10 changes: 8 additions & 2 deletions packages/redocusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@
"node": ">=14"
},
"devDependencies": {
"typescript": "^5.4.2",
"webpack": "^5.90.3"
"@docusaurus/theme-common": "^3.4.0",
"@docusaurus/utils": "^3.4.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.5.2",
"webpack": "^5.92.1"
}
}
16 changes: 8 additions & 8 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
"test": "percy snapshot snapshots.js"
},
"dependencies": {
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@docusaurus/theme-common": "^3.1.1",
"@docusaurus/utils": "^3.1.1",
"@docusaurus/core": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/theme-common": "^3.4.0",
"@docusaurus/utils": "^3.4.0",
"clsx": "^1.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"redocusaurus": "^2.1.0"
},
"devDependencies": {
"@percy/cli": "^1.27.4",
"@types/react": "^18.2.64"
"@percy/cli": "^1.28.8",
"@types/react": "^18.3.3"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 45483d8

Please sign in to comment.