Skip to content

Commit bee4195

Browse files
committed
fix: fix react 19 support
1 parent 87f8b3a commit bee4195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+366
-1223
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"react/no-did-update-set-state": 1,
3636
"react/no-unknown-property": 1,
3737
"react/prop-types": 0,
38-
"react/react-in-jsx-scope": 1,
38+
"react/react-in-jsx-scope": 0,
3939
"react/self-closing-comp": 1,
4040
"semi": [2, "always"],
4141
"strict": 0,

.github/workflows/release.yml

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,44 @@
11
name: Release
22
on:
3-
release:
4-
types: [created]
3+
issue_comment:
4+
types: [created, deleted]
5+
push:
6+
branches:
7+
- master
58
jobs:
6-
build:
9+
check:
710
runs-on: ubuntu-latest
8-
name: Publish package
11+
name: Context check
12+
outputs:
13+
continue: ${{ steps.check.outputs.continue }}
14+
workflow: ${{ steps.check.outputs.workflow }}
15+
steps:
16+
- name: Checkout the repository
17+
uses: actions/checkout@v5
18+
- name: Context check
19+
id: check
20+
uses: trigensoftware/simple-release-action@latest
21+
with:
22+
workflow: check
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
pull-request:
25+
runs-on: ubuntu-latest
26+
name: Pull request
27+
needs: check
28+
if: needs.check.outputs.workflow == 'pull-request'
29+
steps:
30+
- name: Checkout the repository
31+
uses: actions/checkout@v5
32+
- name: Create or update pull request
33+
uses: trigensoftware/simple-release-action@latest
34+
with:
35+
workflow: pull-request
36+
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
release:
38+
runs-on: ubuntu-latest
39+
name: Release
40+
needs: check
41+
if: needs.check.outputs.workflow == 'release'
942
steps:
1043
- name: Checkout the repository
1144
uses: actions/checkout@v5
@@ -21,7 +54,9 @@ jobs:
2154
registry-url: 'https://registry.npmjs.org'
2255
- name: Install dependencies
2356
run: pnpm install
24-
- name: Publish
25-
run: pnpm publish --no-git-checks
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
- name: Release
58+
uses: trigensoftware/simple-release-action@latest
59+
with:
60+
workflow: release
61+
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
npm-token: ${{ secrets.NPM_TOKEN }}

.simple-release.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"project": "@simple-release/pnpm#PnpmProject",
3+
"releaser": {
4+
"verbose": true
5+
},
6+
"publish": {
7+
"access": "public"
8+
}
9+
}

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
"test": "pnpm test:lint && pnpm test:unit",
5353
"format": "prettier --write src",
5454
"commit": "cz",
55-
"bumpVersion": "standard-version",
56-
"createGithubRelease": "simple-github-release",
57-
"release": "pnpm bumpVersion && git push origin master --tags && pnpm createGithubRelease",
5855
"updateGitHooks": "simple-git-hooks"
5956
},
6057
"peerDependencies": {
@@ -65,7 +62,7 @@
6562
"@commitlint/cli": "^17.0.0",
6663
"@commitlint/config-conventional": "^17.0.0",
6764
"@commitlint/cz-commitlint": "^17.0.0",
68-
"@rollup/plugin-node-resolve": "^16.0.0",
65+
"@rollup/plugin-node-resolve": "^16.0.3",
6966
"@size-limit/preset-big-lib": "^11.1.6",
7067
"@storybook/addon-actions": "^8.4.7",
7168
"@storybook/addon-controls": "^8.4.7",
@@ -76,15 +73,15 @@
7673
"@storybook/react": "^8.4.7",
7774
"@storybook/react-vite": "^8.4.7",
7875
"@storybook/theming": "^8.4.7",
79-
"@swc/core": "^1.10.1",
80-
"@swc/helpers": "^0.5.15",
76+
"@swc/core": "^1.13.5",
77+
"@swc/helpers": "^0.5.17",
8178
"@testing-library/dom": "^10.4.0",
8279
"@testing-library/jest-dom": "^6.6.3",
8380
"@testing-library/react": "^16.1.0",
8481
"@types/faker": "^5.5.8",
8582
"@types/node": "^18.0.0",
86-
"@types/react": "^19.0.2",
87-
"@types/react-dom": "^19.0.2",
83+
"@types/react": "^19.2.2",
84+
"@types/react-dom": "^19.2.2",
8885
"@typescript-eslint/eslint-plugin": "^8.18.0",
8986
"@typescript-eslint/parser": "^8.18.0",
9087
"@vitejs/plugin-react": "^5.0.0",
@@ -116,9 +113,7 @@
116113
"rollup": "^4.0.0",
117114
"rollup-plugin-swc3": "^0.12.0",
118115
"simple-git-hooks": "^2.6.1",
119-
"simple-github-release": "^1.0.0",
120116
"size-limit": "^11.1.6",
121-
"standard-version": "^9.3.1",
122117
"storybook": "^8.4.7",
123118
"tsd": "^0.33.0",
124119
"typescript": "^5.7.2",

0 commit comments

Comments
 (0)