Skip to content

Commit

Permalink
fix: fix several type issues and update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolun committed Jan 28, 2025
1 parent 17c51e6 commit 8520a20
Show file tree
Hide file tree
Showing 15 changed files with 2,104 additions and 1,665 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
Expand All @@ -29,14 +29,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
Expand All @@ -47,4 +47,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
run: pnpm semantic-release
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"formatter": {
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"useKeyWithClickEvents": "off"
}
}
}
}
4 changes: 2 additions & 2 deletions examples/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class Example extends Component<{}, ExampleState> {
};

public render(): JSX.Element {
let oldValue: string | object = ''
let newValue: string | object = '';
let oldValue: string | Record<string, unknown> = ''
let newValue: string | Record<string, unknown> = '';
if (this.state.dataType === 'json') {
oldValue = oldJson
newValue = newJson
Expand Down
48 changes: 28 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
"Pranesh Ravi<[email protected]>",
"Bart Riepe <[email protected]>"
],
"type": "module",
"exports": {
".": {
"types": "./lib/cjs/src/index.d.ts",
"import": "./lib/esm/src/index.js",
"require": "./lib/cjs/src/index.js"
}
},
"main": "lib/cjs/src/index",
"module": "lib/esm/src/index",
"typings": "lib/cjs/src/index",
Expand All @@ -28,43 +36,43 @@
"publish:examples": "NODE_ENV=production pnpm run build:examples && gh-pages -d examples/dist -r $GITHUB_REPO_URL",
"publish:examples:local": "NODE_ENV=production pnpm run build:examples && gh-pages -d examples/dist",
"start:examples": "vite examples",
"dev": "vite dev examples",
"test": "vitest",
"lint": "biome lint src/ test/",
"lint:fix": "biome lint --apply-unsafe src/ test/",
"prettier": "prettier --write ."
"check": "biome check src/ test/",
"check:fix": "biome check --write --unsafe src/ test/"
},
"dependencies": {
"@emotion/css": "^11.11.2",
"classnames": "^2.3.2",
"@emotion/css": "^11.13.5",
"@emotion/react": "^11.14.0",
"classnames": "^2.5.1",
"diff": "^5.2.0",
"memoize-one": "^6.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@biomejs/biome": "^1.9.4",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@testing-library/react": "^13.4.0",
"@types/diff": "^5.0.6",
"@types/memoize-one": "^5.1.2",
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@types/diff": "^5.2.3",
"@types/node": "^20.17.16",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"gh-pages": "^5.0.0",
"happy-dom": "^13.3.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.70.0",
"happy-dom": "^13.10.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sass": "^1.83.4",
"semantic-release": "^19.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vite": "^5.1.1",
"vitest": "^1.2.2"
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
"vite": "^5.4.14",
"vitest": "^3.0.4"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"engines": {
"node": ">= 8"
"node": ">= 16"
}
}
Loading

0 comments on commit 8520a20

Please sign in to comment.