Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:

strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [22.x, 24.x]

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
contents: read
id-token: write # for npm provenance and trusted publishing
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
# npm Trusted Publishing requires Node >=22.14 and npm >=11.5.1.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
node-version: '22'
cache: 'yarn'

- name: Install dependencies
Expand Down
12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"serve": "vite preview"
},
"dependencies": {
"react": "^19.2.3",
"react": "^19.2.7",
"react-align": "link:..",
"@hello-pangea/dnd": "^18.0.1",
"react-dom": "^19.2.3"
"react-dom": "^19.2.7"
},
"devDependencies": {
"@types/react": "^19.2.7",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^2.1.0",
"typescript": "^4.8.4",
"vite": "^3.2.1"
"@vitejs/plugin-react": "^6.0.2",
"typescript": "^6.0.3",
"vite": "^8.0.16"
}
}
1 change: 1 addition & 0 deletions example/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
5 changes: 2 additions & 3 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
842 changes: 283 additions & 559 deletions example/yarn.lock

Large diffs are not rendered by default.

42 changes: 22 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/react-align.mjs",
"require": "./dist/react-align.umd.js"
}
Expand All @@ -29,7 +30,7 @@
"src"
],
"engines": {
"node": ">=20"
"node": ">=22.13.0"
},
"peerDependencies": {
"@hello-pangea/dnd": "*",
Expand All @@ -41,37 +42,38 @@
"trailingComma": "es5"
},
"resolutions": {
"@types/react": "19.2.14",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"**/@types/react": "19.2.14",
"**/@types/react": "19.2.17",
"**/@types/react-dom": "19.2.3",
"minimist": "^1.2.8",
"@babel/runtime": "^7.29.2",
"js-yaml": "^4.1.1"
"@babel/runtime": "^7.29.7",
"js-yaml": "^4.2.0"
},
"devDependencies": {
"@hello-pangea/dnd": "^18.0.1",
"@microsoft/api-extractor": "^7.58.9",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.2.14",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.2",
"eslint": "^9.39.4",
"eslint-config-reearth": "^0.3.8",
"@vitejs/plugin-react": "^6.0.2",
"eslint": "^10.5.0",
"eslint-config-reearth": "^0.4.0",
"husky": "^9.1.7",
"jsdom": "^27.4.0",
"postcss": "^8.5.14",
"prettier": "^3.8.3",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"jsdom": "^29.1.1",
"postcss": "^8.5.15",
"prettier": "^3.8.4",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-svgr": "^4.5.0",
"vitest": "^4.0.18"
"typescript": "^6.0.3",
"vite": "^8.0.16",
"vite-plugin-css-injected-by-js": "^5.0.1",
"vite-plugin-dts": "^5.0.2",
"vite-plugin-svgr": "^5.2.0",
"vitest": "^4.1.9"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts → vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export default defineConfig({
react(),
cssInjectedByJsPlugin(),
dts({
rollupTypes: true,
// vite-plugin-dts v5 (unplugin-dts) renamed `rollupTypes` to
// `bundleTypes`; it bundles all .d.ts into a single file via
// @microsoft/api-extractor.
bundleTypes: true,
}),
],
build: {
Expand Down
Loading
Loading