Skip to content

Commit

Permalink
[migrate] upgrade to ES Decorator stage-3 & Husky 9
Browse files Browse the repository at this point in the history
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Jan 29, 2024
1 parent 5947c5e commit d9a13ee
Show file tree
Hide file tree
Showing 12 changed files with 906 additions and 823 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
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.parcel-cache/
.parcel*
docs/
.husky/
.github/
Expand Down
8 changes: 8 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": [
"@parcel/transformer-typescript-tsc"
]
}
}
15 changes: 11 additions & 4 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@

A **Pagination Table** & **Scroll List** component suite for [CRUD operation][1], which is based on [MobX RESTful][2] & [React][3].

[![MobX compatibility](https://img.shields.io/badge/Compatible-1?logo=mobx&label=MobX%204%2F5%2F6)][4]
[![MobX compatibility](https://img.shields.io/badge/Compatible-1?logo=mobx&label=MobX%206%2F7)][4]
[![NPM Dependency](https://img.shields.io/librariesio/github/idea2app/MobX-RESTful-table.svg)][5]
[![CI & CD](https://github.com/idea2app/MobX-RESTful-table/actions/workflows/main.yml/badge.svg)][6]

[![NPM](https://nodei.co/npm/mobx-restful-table.png?downloads=true&downloadRank=true&stars=true)][7]

## Versions

| SemVer | status | ES decorator | MobX |
| :----: | :----------: | :----------: | :---------: |
| `>=2` | ✅developing | stage-3 | `>=6.11` |
| `<2` | ❌deprecated | stage-2 | `>=4 <6.11` |

## Components

1. [Image Preview](https://idea2app.github.io/MobX-RESTful-table/classes/ImagePreview.html)
Expand Down Expand Up @@ -41,13 +48,13 @@ npm i react \
```json
{
"compilerOptions": {
"target": "ES5",
"target": "ES6",
"module": "ES6",
"moduleResolution": "Node",
"experimentalDecorators": true,
"useDefineForClassFields": true,
"jsx": "react-jsx",
"skipLibCheck": true,
"lib": ["ES2022", "DOM"]
"lib": ["ES2023", "DOM"]
}
}
```
Expand Down
52 changes: 27 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-restful-table",
"version": "1.2.2",
"version": "2.0.0-rc.0",
"license": "LGPL-3.0",
"author": "shiy2008@gmail.com",
"description": "A Pagination Table & Scroll List component suite for CRUD operation, which is based on MobX RESTful & React.",
Expand All @@ -26,37 +26,39 @@
"main": "dist/index.js",
"dependencies": {
"@swc/helpers": "^0.5.3",
"classnames": "^2.3.2",
"classnames": "^2.5.1",
"lodash": "^4.17.21",
"mobx-react-helper": "^0.2.7",
"react-bootstrap": "^2.9.1",
"regenerator-runtime": "^0.14.0",
"mobx-react-helper": "^0.3.1",
"react-bootstrap": "^2.10.0",
"regenerator-runtime": "^0.14.1",
"web-utility": "^4.1.3"
},
"peerDependencies": {
"mobx": ">=4",
"mobx-i18n": "^0.4",
"mobx-react": ">=6",
"mobx-restful": "^0.6",
"mobx": ">=6.11",
"mobx-i18n": "^0.5",
"mobx-react": ">=9.1",
"mobx-restful": "^0.7.0-rc.0",
"react": ">=16.8"
},
"devDependencies": {
"@parcel/packager-ts": "~2.10.1",
"@parcel/transformer-typescript-types": "~2.10.1",
"@types/lodash": "^4.14.199",
"@types/react": "^18.2.33",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
"mobx": "^6.10.2",
"mobx-i18n": "^0.4.1",
"mobx-react": "^9.0.1",
"mobx-restful": "^0.6.12",
"parcel": "~2.10.1",
"prettier": "^3.0.3",
"@parcel/config-default": "~2.11.0",
"@parcel/packager-ts": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-typescript-types": "~2.11.0",
"@types/lodash": "^4.14.202",
"@types/react": "^18.2.48",
"husky": "^9.0.7",
"lint-staged": "^15.2.0",
"mobx": "^6.12.0",
"mobx-i18n": "^0.5.0",
"mobx-react": "^9.1.0",
"mobx-restful": "^0.7.0-rc.0",
"parcel": "~2.11.0",
"prettier": "^3.2.4",
"react": "^18.2.0",
"typedoc": "^0.25.3",
"typedoc-plugin-mdn-links": "^3.1.0",
"typescript": "~5.2.2"
"typedoc": "^0.25.7",
"typedoc-plugin-mdn-links": "^3.1.14",
"typescript": "~5.3.3"
},
"prettier": {
"singleQuote": true,
Expand All @@ -74,7 +76,7 @@
}
},
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"test": "lint-staged",
"build": "rm -rf dist/ docs/ && parcel build && typedoc source/",
"prepublishOnly": "npm test && npm run build"
Expand Down

0 comments on commit d9a13ee

Please sign in to comment.