Skip to content

Commit

Permalink
[migrate] move Downloader models to MobX-downloader package
Browse files Browse the repository at this point in the history
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Oct 29, 2024
1 parent 7d38ffc commit f33ba5a
Show file tree
Hide file tree
Showing 13 changed files with 852 additions and 992 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
- name: Build & Publish the core package
run: |
echo GITHUB_PAT=${{ secrets.PAT }} > .env
npm publish
npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build & Publish the Strapi package
run: |
cd wrapper/Strapi
pnpm i --frozen-lockfile
npm publish || true
npm publish --access public --provenance || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
provenance = true
auto-install-peers = false
19 changes: 4 additions & 15 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,12 @@ Just define your **Data models** & **Client HTTP methods**, then leave rest of t
{
"dependencies": {
"koajax": "^3.0.0",
"mobx": "^6.13.1",
"mobx-restful": "^1.0.1"
},
"resolutions": {
"native-file-system-adapter": "npm:@tech_query/native-file-system-adapter@^3.0.1"
"mobx": "^6.13.5",
"mobx-restful": "^2.0.0"
}
}
```

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

```json
Expand Down Expand Up @@ -228,10 +219,7 @@ export default new MultipleRepository();

### File Downloader

Here is an example:

- [Downloader component](https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/component/Downloader.tsx)
- [Downloader view](https://github.com/idea2app/React-MobX-Bootstrap-ts/blob/master/src/page/Downloader.tsx)
This module has been moved to [MobX-downloader][12] since MobX-RESTful v2.

## Wrapper

Expand Down Expand Up @@ -264,3 +252,4 @@ Here is an example:
[9]: https://joyeecheung.github.io/blog/2024/03/18/require-esm-in-node-js/
[10]: https://github.com/EasyWebApp/WebCell
[11]: https://github.com/microsoft/TypeScript/issues/39752#issuecomment-1239810720
[12]: https://github.com/idea2app/MobX-downloader
24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "mobx-restful",
"version": "1.0.1",
"version": "2.0.0",
"license": "LGPL-3.0",
"author": "shiy2008@gmail.com",
"description": "MobX SDK for RESTful API",
"description": "Common MobX abstract base Class & Decorator utilities for RESTful API",
"keywords": [
"restful",
"api",
Expand All @@ -29,11 +29,9 @@
"dependencies": {
"@swc/helpers": "^0.5.13",
"idb-keyval": "^6.2.1",
"koajax": ">=1 <4",
"native-file-system-adapter": "^3.0.1",
"koajax": "^3.0.3",
"regenerator-runtime": "^0.14.1",
"web-streams-polyfill": "^4.0.0",
"web-utility": "^4.4.0"
"web-utility": "^4.4.1"
},
"peerDependencies": {
"mobx": ">=6.11"
Expand All @@ -44,21 +42,21 @@
"@parcel/packager-ts": "~2.12.0",
"@parcel/transformer-typescript-tsc": "~2.12.0",
"@parcel/transformer-typescript-types": "~2.12.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.16.3",
"@types/jest": "^29.5.14",
"@types/node": "^20.17.2",
"dotenv": "^16.4.5",
"husky": "^9.1.5",
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"mobx": "^6.13.1",
"mobx": "^6.13.5",
"open-cli": "^8.0.0",
"parcel": "~2.12.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typedoc": "^0.26.6",
"typedoc-plugin-mdn-links": "^3.2.11",
"typescript": "~5.5.4"
"typedoc": "^0.26.10",
"typedoc-plugin-mdn-links": "^3.3.5",
"typescript": "~5.6.3"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

0 comments on commit f33ba5a

Please sign in to comment.