Skip to content

Commit

Permalink
[optimize] upgrade MobX i18n & Husky
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Jan 29, 2024
1 parent 0faf389 commit 56606ee
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 89 deletions.
4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm test
4 changes: 0 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

npm run build
8 changes: 8 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

[![NPM](https://nodei.co/npm/next-ssr-middleware.png?downloads=true&downloadRank=true&stars=true)][5]

## Versions

| SemVer | status | MobX | [MobX i18n][6] |
| :-----: | :----------: | :---------: | :------------: |
| `>=0.7` | ✅developing | `>=6.11` | `>=0.5` |
| `<0.7` | ❌deprecated | `>=4 <6.11` | `<0.5` |

## Usage

### `pages/user/[id].tsx`
Expand Down Expand Up @@ -66,3 +73,4 @@ export default function UserDetailPage({
[3]: https://libraries.io/npm/next-ssr-middleware
[4]: https://github.com/idea2app/Next-SSR-middleware/actions/workflows/main.yml
[5]: https://nodei.co/npm/next-ssr-middleware/
[6]: https://github.com/idea2app/MobX-i18n
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-ssr-middleware",
"version": "0.6.2",
"version": "0.7.0",
"license": "LGPL-3.0-or-later",
"author": "[email protected]",
"description": "Koa-like middlewares for Next.js Server Side Rendering",
Expand All @@ -23,7 +23,7 @@
"main": "dist/index.js",
"dependencies": {
"jsonwebtoken": "^9.0.2",
"mobx-i18n": "^0.4.2",
"mobx-i18n": "^0.5.0",
"tslib": "^2.6.2",
"web-utility": "^4.1.3"
},
Expand All @@ -32,14 +32,14 @@
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^18.19.3",
"husky": "^8.0.3",
"@types/node": "^18.19.10",
"husky": "^9.0.7",
"koajax": "^0.9.6",
"lint-staged": "^15.2.0",
"next": "^14.0.4",
"next": "^14.1.0",
"open-cli": "^8.0.0",
"prettier": "^3.1.1",
"typedoc": "^0.25.4",
"prettier": "^3.2.4",
"typedoc": "^0.25.7",
"typescript": "~5.3.3"
},
"prettier": {
Expand All @@ -52,7 +52,7 @@
"*.{md,json,yml,ts}": "prettier --write"
},
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"test": "lint-staged",
"build": "rm -rf dist/ docs/ && typedoc source/ && tsc",
"start": "typedoc && open-cli docs/index.html",
Expand Down
133 changes: 60 additions & 73 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56606ee

Please sign in to comment.