Skip to content

Commit f33ba5a

Browse files
committed
[migrate] move Downloader models to MobX-downloader package
[optimize] update Upstream packages
1 parent 7d38ffc commit f33ba5a

File tree

13 files changed

+852
-992
lines changed

13 files changed

+852
-992
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
- name: Build & Publish the core package
2727
run: |
2828
echo GITHUB_PAT=${{ secrets.PAT }} > .env
29-
npm publish
29+
npm publish --access public --provenance
3030
env:
3131
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3232

3333
- name: Build & Publish the Strapi package
3434
run: |
3535
cd wrapper/Strapi
3636
pnpm i --frozen-lockfile
37-
npm publish || true
37+
npm publish --access public --provenance || true
3838
env:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4040

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
provenance = true
21
auto-install-peers = false

ReadMe.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,12 @@ Just define your **Data models** & **Client HTTP methods**, then leave rest of t
2525
{
2626
"dependencies": {
2727
"koajax": "^3.0.0",
28-
"mobx": "^6.13.1",
29-
"mobx-restful": "^1.0.1"
30-
},
31-
"resolutions": {
32-
"native-file-system-adapter": "npm:@tech_query/native-file-system-adapter@^3.0.1"
28+
"mobx": "^6.13.5",
29+
"mobx-restful": "^2.0.0"
3330
}
3431
}
3532
```
3633

37-
> This `resolutions` configuration is used for **Node.js**, such Back-end API or Server-side Rendering.
38-
>
39-
> You should install your project with [Yarn][7] or [PNPM][8] to support this feature.
40-
>
41-
> It can be removed after [`require('esm')` shipped formally][9].
42-
4334
### `tsconfig.json`
4435

4536
```json
@@ -228,10 +219,7 @@ export default new MultipleRepository();
228219

229220
### File Downloader
230221

231-
Here is an example:
232-
233-
- [Downloader component](https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/component/Downloader.tsx)
234-
- [Downloader view](https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/page/Downloader.tsx)
222+
This module has been moved to [MobX-downloader][12] since MobX-RESTful v2.
235223

236224
## Wrapper
237225

@@ -264,3 +252,4 @@ Here is an example:
264252
[9]: https://joyeecheung.github.io/blog/2024/03/18/require-esm-in-node-js/
265253
[10]: https://github.com/EasyWebApp/WebCell
266254
[11]: https://github.com/microsoft/TypeScript/issues/39752#issuecomment-1239810720
255+
[12]: https://github.com/idea2app/MobX-downloader

package.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "mobx-restful",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
6-
"description": "MobX SDK for RESTful API",
6+
"description": "Common MobX abstract base Class & Decorator utilities for RESTful API",
77
"keywords": [
88
"restful",
99
"api",
@@ -29,11 +29,9 @@
2929
"dependencies": {
3030
"@swc/helpers": "^0.5.13",
3131
"idb-keyval": "^6.2.1",
32-
"koajax": ">=1 <4",
33-
"native-file-system-adapter": "^3.0.1",
32+
"koajax": "^3.0.3",
3433
"regenerator-runtime": "^0.14.1",
35-
"web-streams-polyfill": "^4.0.0",
36-
"web-utility": "^4.4.0"
34+
"web-utility": "^4.4.1"
3735
},
3836
"peerDependencies": {
3937
"mobx": ">=6.11"
@@ -44,21 +42,21 @@
4442
"@parcel/packager-ts": "~2.12.0",
4543
"@parcel/transformer-typescript-tsc": "~2.12.0",
4644
"@parcel/transformer-typescript-types": "~2.12.0",
47-
"@types/jest": "^29.5.12",
48-
"@types/node": "^20.16.3",
45+
"@types/jest": "^29.5.14",
46+
"@types/node": "^20.17.2",
4947
"dotenv": "^16.4.5",
50-
"husky": "^9.1.5",
48+
"husky": "^9.1.6",
5149
"jest": "^29.7.0",
5250
"jest-environment-jsdom": "^29.7.0",
5351
"lint-staged": "^15.2.10",
54-
"mobx": "^6.13.1",
52+
"mobx": "^6.13.5",
5553
"open-cli": "^8.0.0",
5654
"parcel": "~2.12.0",
5755
"prettier": "^3.3.3",
5856
"ts-jest": "^29.2.5",
59-
"typedoc": "^0.26.6",
60-
"typedoc-plugin-mdn-links": "^3.2.11",
61-
"typescript": "~5.5.4"
57+
"typedoc": "^0.26.10",
58+
"typedoc-plugin-mdn-links": "^3.3.5",
59+
"typescript": "~5.6.3"
6260
},
6361
"prettier": {
6462
"singleQuote": true,

0 commit comments

Comments
 (0)