Skip to content

Commit 81d5e2c

Browse files
authored
[add] rewritten Session model in MobX-Strapi 0.2.x (#19)
1 parent 31524ab commit 81d5e2c

File tree

9 files changed

+2434
-2456
lines changed

9 files changed

+2434
-2456
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: pnpm/action-setup@v4
1616
with:
17-
version: 9
17+
version: 10
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version: 22

ReadMe.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,10 @@ Just define your **Data models** & **Client HTTP methods**, then leave rest of t
1919

2020
## Usage
2121

22-
### `package.json`
22+
### Installation
2323

24-
```json
25-
{
26-
"dependencies": {
27-
"koajax": "^3.1.0",
28-
"mobx": "^6.13.5",
29-
"mobx-restful": "^2.1.0"
30-
}
31-
}
24+
```bash
25+
npm install koajax mobx mobx-restful
3226
```
3327

3428
### `tsconfig.json`
@@ -343,7 +337,7 @@ export class PartyGiftPage extends HTMLElement {
343337

344338
## Wrapper
345339

346-
1. [Strapi v4](https://github.com/idea2app/MobX-RESTful/blob/main/wrapper/Strapi)
340+
1. [Strapi v4/5](https://github.com/idea2app/MobX-RESTful/blob/main/wrapper/Strapi)
347341
2. [GitHub](https://github.com/idea2app/MobX-GitHub)
348342
3. [Lark/FeiShu](https://github.com/idea2app/MobX-Lark)
349343

package.json

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,49 @@
2727
"module": "dist/index.esm.js",
2828
"main": "dist/index.js",
2929
"dependencies": {
30-
"@swc/helpers": "^0.5.15",
31-
"idb-keyval": "^6.2.1",
32-
"koajax": "^3.1.1",
30+
"@swc/helpers": "^0.5.17",
31+
"idb-keyval": "^6.2.2",
32+
"koajax": "^3.1.2",
3333
"regenerator-runtime": "^0.14.1",
34-
"web-utility": "^4.4.2"
34+
"web-utility": "^4.4.3"
3535
},
3636
"peerDependencies": {
3737
"mobx": ">=6.11"
3838
},
3939
"devDependencies": {
40-
"@octokit/openapi-types": "^23.0.1",
41-
"@parcel/config-default": "~2.13.3",
42-
"@parcel/packager-ts": "~2.13.3",
43-
"@parcel/transformer-typescript-tsc": "~2.13.3",
44-
"@parcel/transformer-typescript-types": "~2.13.3",
40+
"@octokit/openapi-types": "^25.1.0",
41+
"@parcel/config-default": "~2.15.4",
42+
"@parcel/packager-ts": "~2.15.4",
43+
"@parcel/transformer-typescript-tsc": "~2.15.4",
44+
"@parcel/transformer-typescript-types": "~2.15.4",
4545
"@types/jest": "^29.5.14",
46-
"@types/node": "^22.12.0",
47-
"core-js": "^3.40.0",
48-
"dotenv": "^16.4.7",
49-
"fake-indexeddb": "^6.0.0",
46+
"@types/node": "^22.15.32",
47+
"core-js": "^3.43.0",
48+
"dotenv": "^16.5.0",
49+
"fake-indexeddb": "^6.0.1",
5050
"husky": "^9.1.7",
5151
"jest": "^29.7.0",
5252
"jest-environment-jsdom": "^29.7.0",
53-
"lint-staged": "^15.4.3",
54-
"mobx": "^6.13.5",
53+
"lint-staged": "^16.1.2",
54+
"mobx": "^6.13.7",
5555
"open-cli": "^8.0.0",
56-
"parcel": "~2.13.3",
57-
"prettier": "^3.4.2",
58-
"ts-jest": "^29.2.5",
59-
"typedoc": "^0.27.6",
60-
"typedoc-plugin-mdn-links": "^4.0.10",
61-
"typescript": "~5.7.3",
56+
"parcel": "~2.15.4",
57+
"prettier": "^3.5.3",
58+
"ts-jest": "^29.4.0",
59+
"typedoc": "^0.28.5",
60+
"typedoc-plugin-mdn-links": "^5.0.2",
61+
"typescript": "~5.8.3",
6262
"web-streams-polyfill": "^4.1.0"
6363
},
64+
"pnpm": {
65+
"onlyBuiltDependencies": [
66+
"@parcel/watcher",
67+
"@swc/core",
68+
"core-js",
69+
"lmdb",
70+
"msgpackr-extract"
71+
]
72+
},
6473
"prettier": {
6574
"singleQuote": true,
6675
"trailingComma": "none",

0 commit comments

Comments
 (0)