Skip to content

Commit 7498556

Browse files
committed
[optimize] MobX 6 compatibility
[optimize] upgrade Node.js, PNPM & other Upstream packages [add] Dependency Badge based on Libraries.io
1 parent 384638c commit 7498556

9 files changed

Lines changed: 2542 additions & 2267 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11+
1112
- uses: pnpm/action-setup@v2
1213
with:
13-
version: 7
14+
version: 8
1415
- uses: actions/setup-node@v3
1516
with:
16-
node-version: 14
17+
node-version: 18
1718
registry-url: https://registry.npmjs.org
1819
cache: pnpm
1920
- name: Install Dependencies

ReadMe.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# MobX RESTful
22

3-
Common [MobX][1] 4/5 **abstract base Class & Decorator** utilities for [RESTful API][2].
3+
Common [MobX][1] **abstract base Class & Decorator** utilities for [RESTful API][2].
44

55
Just define your **Data models** & **Client HTTP methods**, then leave rest of things to MobX!
66

7-
[![CI & CD](https://github.com/idea2app/MobX-RESTful/actions/workflows/main.yml/badge.svg)][3]
7+
[![NPM Dependency](https://img.shields.io/librariesio/github/idea2app/MobX-RESTful.svg)][3]
8+
[![CI & CD](https://github.com/idea2app/MobX-RESTful/actions/workflows/main.yml/badge.svg)][4]
89

9-
[![NPM](https://nodei.co/npm/mobx-restful.png?downloads=true&downloadRank=true&stars=true)][4]
10+
[![NPM](https://nodei.co/npm/mobx-restful.png?downloads=true&downloadRank=true&stars=true)][5]
1011

1112
## Usage
1213

@@ -60,7 +61,7 @@ export default new RepositoryModel();
6061

6162
#### `page/Repository.tsx`
6263

63-
Use [WebCell][5] as an Example
64+
Use [WebCell][6] as an Example
6465

6566
```tsx
6667
import { WebCell, component, observer, createCell } from 'web-cell';
@@ -200,11 +201,12 @@ export default new MultipleRepository();
200201

201202
## Limitation
202203

203-
- [ ] [`abstract` hint of Mixin is missing][6]
204+
- [ ] [`abstract` hint of Mixin is missing][7]
204205

205206
[1]: https://mobx.js.org/
206207
[2]: https://en.wikipedia.org/wiki/Representational_state_transfer
207-
[3]: https://github.com/idea2app/MobX-RESTful/actions/workflows/main.yml
208-
[4]: https://nodei.co/npm/mobx-restful/
209-
[5]: https://github.com/EasyWebApp/WebCell
210-
[6]: https://github.com/microsoft/TypeScript/issues/39752#issuecomment-1239810720
208+
[3]: https://libraries.io/npm/mobx-restful
209+
[4]: https://github.com/idea2app/MobX-RESTful/actions/workflows/main.yml
210+
[5]: https://nodei.co/npm/mobx-restful/
211+
[6]: https://github.com/EasyWebApp/WebCell
212+
[7]: https://github.com/microsoft/TypeScript/issues/39752#issuecomment-1239810720

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobx-restful",
3-
"version": "0.6.5",
3+
"version": "0.6.6",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "MobX SDK for RESTful API",
@@ -27,35 +27,35 @@
2727
"module": "dist/index.esm.js",
2828
"main": "dist/index.js",
2929
"dependencies": {
30-
"@swc/helpers": "^0.4.14",
30+
"@swc/helpers": "^0.5.1",
3131
"class-validator": "^0.14.0",
32-
"koajax": "^0.8.4",
32+
"koajax": "^0.8.6",
3333
"reflect-metadata": "^0.1.13",
34-
"regenerator-runtime": "^0.13.11",
35-
"web-utility": "^4.0.0"
34+
"regenerator-runtime": "^0.14.0",
35+
"web-utility": "^4.1.0"
3636
},
3737
"peerDependencies": {
38-
"mobx": ">=4 <6"
38+
"mobx": ">=4"
3939
},
4040
"devDependencies": {
41-
"@octokit/openapi-types": "^17.2.0",
42-
"@parcel/packager-ts": "~2.8.3",
43-
"@parcel/transformer-typescript-types": "~2.8.3",
44-
"@types/jest": "^29.5.2",
45-
"@types/node": "^16.18.34",
46-
"dotenv": "^16.1.4",
41+
"@octokit/openapi-types": "^18.0.0",
42+
"@parcel/packager-ts": "~2.9.3",
43+
"@parcel/transformer-typescript-types": "~2.9.3",
44+
"@types/jest": "^29.5.3",
45+
"@types/node": "^18.17.6",
46+
"dotenv": "^16.3.1",
4747
"husky": "^8.0.3",
48-
"jest": "^29.5.0",
49-
"jest-environment-jsdom": "^29.5.0",
50-
"lint-staged": "^13.2.2",
51-
"mobx": "^5.15.7",
48+
"jest": "^29.6.2",
49+
"jest-environment-jsdom": "^29.6.2",
50+
"lint-staged": "^14.0.0",
51+
"mobx": "^6.10.0",
5252
"open-cli": "^7.2.0",
53-
"parcel": "~2.8.3",
54-
"prettier": "^2.8.8",
55-
"ts-jest": "^29.1.0",
53+
"parcel": "~2.9.3",
54+
"prettier": "^3.0.2",
55+
"ts-jest": "^29.1.1",
5656
"typedoc": "^0.24.8",
5757
"typedoc-plugin-mdn-links": "^3.0.3",
58-
"typescript": "~5.1.3"
58+
"typescript": "~5.1.6"
5959
},
6060
"prettier": {
6161
"singleQuote": true,

0 commit comments

Comments
 (0)