Skip to content
Merged

Next #29

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
5 changes: 5 additions & 0 deletions .changeset/cuddly-badgers-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@depjack/react': patch
---

Specify expected react peer dependencies (>= 19.0.0)
6 changes: 6 additions & 0 deletions .changeset/many-hoops-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@depjack/react': patch
'@depjack/core': patch
---

Update dependencies
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
name: Lint
strategy:
matrix:
workdir: [packages/core, packages/react, examples/standalone, examples/react]
workdir: [., packages/core, packages/react, examples/standalone, examples/react]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
issues: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down
13 changes: 8 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
// @ts-check

import globals from 'globals';
import eslintJs from '@eslint/js';
import typescriptEslint from 'typescript-eslint';
import eslintPluginImport from 'eslint-plugin-import';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import eslintPluginVitest from '@vitest/eslint-plugin';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import { defineConfig, globalIgnores } from 'eslint/config';

const project = ['tsconfig.base.json', './packages/*/tsconfig.json', './examples/*/tsconfig.json'];

export default typescriptEslint.config(
{
ignores: ['**/dist/**'],
},
export default defineConfig(
globalIgnores(['**/dist']),
eslintJs.configs.recommended,
typescriptEslint.configs.recommendedTypeChecked,
{
languageOptions: {
ecmaVersion: 2022,
globals: globals.browser,
parserOptions: {
project,
tsconfigRootDir: import.meta.dirname,
Expand All @@ -23,7 +27,6 @@ export default typescriptEslint.config(
},
{
files: ['**/*.{ts,tsx}'],
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
extends: [eslintPluginImport.flatConfigs.recommended, eslintPluginImport.flatConfigs.typescript],
settings: {
'import/resolver': {
Expand Down
22 changes: 11 additions & 11 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
"dependencies": {
"@depjack/core": "workspace:*",
"@depjack/react": "workspace:*",
"react": "19.0.0",
"react-dom": "19.0.0"
"react": "19.1.1",
"react-dom": "19.1.1"
},
"devDependencies": {
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.2.0",
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"@vitejs/plugin-react-swc": "3.8.0",
"@vitest/coverage-v8": "3.0.8",
"jsdom": "26.0.0",
"vite": "6.2.1",
"@testing-library/dom": "10.4.1",
"@testing-library/react": "16.3.0",
"@types/react": "19.1.12",
"@types/react-dom": "19.1.9",
"@vitejs/plugin-react-swc": "4.0.1",
"@vitest/coverage-v8": "3.2.4",
"jsdom": "26.1.0",
"vite": "7.1.4",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.8"
"vitest": "3.2.4"
}
}
2 changes: 0 additions & 2 deletions examples/react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* eslint-disable unicorn/no-abusive-eslint-disable */
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import Bootstrap from '~/react/bootstrap/presentation/bootstrap';

// eslint-disable-next-line
createRoot(document.querySelector('#root')!).render(
<StrictMode>
<Bootstrap />
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
/* React */
"jsx": "react-jsx",
"lib": ["ES2020", "DOM", "DOM.Iterable"]
"lib": ["ES2022", "DOM", "DOM.Iterable"]
},
"include": ["src/**/*"]
}
8 changes: 4 additions & 4 deletions examples/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"build": "tsc && vite build"
},
"devDependencies": {
"@types/node": "22.13.10",
"@vitest/coverage-v8": "3.0.8",
"vite": "6.2.1",
"@types/node": "24.3.0",
"@vitest/coverage-v8": "3.2.4",
"vite": "7.1.4",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"dependencies": {
"@depjack/core": "workspace:*"
Expand Down
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,33 @@
"scripts": {
"changeset": "changeset",
"release": "./scripts/release.sh",
"lint:all": "pnpm --filter './**' lint",
"test:all": "pnpm --filter './**' test",
"build:all": "pnpm --filter './**' build",
"outdated:all": "pnpm --filter './**' outdated"
"lint:all": "pnpm --recursiverun lint && pnpm lint",
"test:all": "pnpm --recursive test",
"build:all": "pnpm --recursive build",
"outdated:all": "pnpm --recursive outdated",
"lint": "eslint eslint.config.js prettier.config.js --max-warnings 0"
},
"devDependencies": {
"@changesets/cli": "2.28.1",
"@eslint/js": "9.22.0",
"@vitest/eslint-plugin": "1.1.36",
"eslint": "9.22.0",
"eslint-config-prettier": "10.1.1",
"eslint-import-resolver-typescript": "3.8.3",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.3",
"eslint-plugin-unicorn": "57.0.0",
"prettier": "3.5.3",
"@changesets/cli": "2.29.6",
"@eslint/js": "9.34.0",
"@vitest/eslint-plugin": "1.3.7",
"eslint": "9.34.0",
"eslint-config-prettier": "10.1.8",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-unicorn": "60.0.0",
"globals": "16.3.0",
"prettier": "3.6.2",
"ts-node": "10.9.2",
"typescript": "5.8.2",
"typescript-eslint": "8.26.0"
"typescript": "5.9.2",
"typescript-eslint": "8.42.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core",
"esbuild"
"esbuild",
"unrs-resolver"
]
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@vitest/coverage-v8": "3.0.8",
"vite": "6.2.1",
"vite-plugin-dts": "4.5.3",
"@vitest/coverage-v8": "3.2.4",
"vite": "7.1.4",
"vite-plugin-dts": "4.5.4",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.8"
"vitest": "3.2.4"
}
}
24 changes: 12 additions & 12 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@
},
"peerDependencies": {
"@depjack/core": "workspace:*",
"react": "19.0.0",
"react-dom": "19.0.0"
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0"
},
"devDependencies": {
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.2.0",
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"@vitejs/plugin-react": "4.3.4",
"@vitest/coverage-v8": "3.0.8",
"jsdom": "26.0.0",
"vite": "6.2.1",
"vite-plugin-dts": "4.5.3",
"@testing-library/dom": "10.4.1",
"@testing-library/react": "16.3.0",
"@types/react": "19.0.14",
"@types/react-dom": "19.0.6",
"@vitejs/plugin-react": "5.0.2",
"@vitest/coverage-v8": "3.2.4",
"jsdom": "26.1.0",
"vite": "7.1.4",
"vite-plugin-dts": "4.5.4",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.8"
"vitest": "3.2.4"
}
}
Loading