Skip to content

Commit

Permalink
[add] OAuth 2 signer & GitHub provider middlewares
Browse files Browse the repository at this point in the history
[optimize] upgrade to PNPM 9 & other latest Upstream packages
  • Loading branch information
TechQuery committed Jun 5, 2024
1 parent 56606ee commit 40b71b9
Show file tree
Hide file tree
Showing 8 changed files with 931 additions and 654 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: pnpm/action-setup@v2
with:
version: 8
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/
.husky/
.github/
.github/
.vscode/
13 changes: 13 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
| `>=0.7` | ✅developing | `>=6.11` | `>=0.5` |
| `<0.7` | ❌deprecated | `>=4 <6.11` | `<0.5` |

## Middlewares

1. Router
2. Error logger
3. JWT verifier
4. Props cache
5. i18n loader
6. OAuth 2 signer (with common providers)
1. GitHub

## Usage

### `pages/user/[id].tsx`
Expand Down Expand Up @@ -67,6 +77,9 @@ export default function UserDetailPage({
## Cases

1. https://github.com/idea2app/Next-Bootstrap-ts
2. https://github.com/kaiyuanshe/kaiyuanshe.github.io
3. https://github.com/kaiyuanshe/OpenHackathon-Web
4. https://github.com/kaiyuanshe/OSS-toolbox

[1]: https://koajs.com/
[2]: https://nextjs.org/
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-ssr-middleware",
"version": "0.7.0",
"version": "0.8.0",
"license": "LGPL-3.0-or-later",
"author": "[email protected]",
"description": "Koa-like middlewares for Next.js Server Side Rendering",
Expand All @@ -25,22 +25,22 @@
"jsonwebtoken": "^9.0.2",
"mobx-i18n": "^0.5.0",
"tslib": "^2.6.2",
"web-utility": "^4.1.3"
"web-utility": "^4.4.0"
},
"peerDependencies": {
"next": ">=9.3"
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^18.19.10",
"husky": "^9.0.7",
"koajax": "^0.9.6",
"lint-staged": "^15.2.0",
"next": "^14.1.0",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^18.19.33",
"husky": "^9.0.11",
"koajax": "^1.1.1",
"lint-staged": "^15.2.5",
"next": "^14.2.3",
"open-cli": "^8.0.0",
"prettier": "^3.2.4",
"typedoc": "^0.25.7",
"typescript": "~5.3.3"
"prettier": "^3.3.0",
"typedoc": "^0.25.13",
"typescript": "~5.4.5"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

0 comments on commit 40b71b9

Please sign in to comment.