Skip to content

Commit bdefac0

Browse files
committed
Bump all deps
1 parent 1178c37 commit bdefac0

38 files changed

+6518
-5263
lines changed

.changeset/famous-actors-obey.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ladle/react": major
3+
---
4+
5+
Major dependency updates - Vite v6, React v19, Node v22. It shouldn't impact most of Ladle users unless relying on unusal vite (outdated) settings and APIs.

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, windows-latest]
21-
node-version: [20.x]
21+
node-version: [22.x]
2222
steps:
2323
- name: Check out code
2424
uses: actions/checkout@v3
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: pnpm/action-setup@v4
2929
with:
30-
version: 9.1.4
30+
version: 9.15.1
3131

3232
- name: Setup Node.js environment
3333
uses: actions/setup-node@v3

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424

2525
- uses: pnpm/action-setup@v4
2626
with:
27-
version: 9.1.4
27+
version: 9.15.1
2828

2929
- name: Setup Node.js environment
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 20.14
32+
node-version: 20.11
3333
cache: "pnpm"
3434

3535
- name: Install dependencies

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
pnpm exec lint-staged

.lintstagedrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"*.{js,ts,tsx,css,scss,postcss,md,json}": [
3-
"prettier --write --plugin-search-dir=.",
4-
"prettier --check --plugin-search-dir=."
3+
"prettier --write",
4+
"prettier --check"
55
],
6-
"*.{js,ts,tsx}": "eslint"
6+
"*.{js,ts,tsx}": ["eslint --max-warnings=0 --fix"]
77
}

e2e/addons/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"dependencies": {
1717
"@ladle/playwright-config": "workspace:*",
1818
"@ladle/react": "workspace:*",
19-
"@playwright/test": "^1.44.1",
20-
"axe-playwright": "^2.0.1",
19+
"@playwright/test": "^1.49.1",
20+
"axe-playwright": "^2.0.3",
2121
"cross-env": "^7.0.3",
22-
"query-string": "^9.0.0",
23-
"react": "^18.3.1",
24-
"react-dom": "^18.3.1"
22+
"query-string": "^9.1.1",
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0"
2525
}
2626
}

e2e/addons/tests/query-parameters.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test("when directly open the story, remain non-ladle query parameters", async ({
55
}) => {
66
await page.goto("/?story=query-parameters--query-parameters");
77
await page.waitForSelector("[data-storyloaded]");
8+
await page.waitForTimeout(1000);
89
const url = page.url();
910
expect(url).toContain("story=query-parameters--query-parameters");
1011
expect(url).toContain("foo=bar");
@@ -17,6 +18,7 @@ test("when click the menu and open the story, remain non-ladle query parameters"
1718
await page.getByText("Query parameters").click(); // Open the accordion of query parameters stories
1819
await page.getByRole("link", { name: "Query parameters" }).click(); // Open the target story
1920
await page.waitForSelector("[data-storyloaded]");
21+
await page.waitForTimeout(1000);
2022
const url = page.url();
2123
expect(url).toContain("story=query-parameters--query-parameters");
2224
expect(url).toContain("foo=bar");
@@ -33,6 +35,7 @@ test("when move a story from the query parameters story, remove non-ladle query
3335
await page.getByText("A11y").click();
3436
await page.getByRole("link", { name: "Issues" }).click();
3537
await page.waitForSelector("[data-storyloaded]");
38+
await page.waitForTimeout(1000);
3639
const url = page.url();
3740
expect(url).toContain("story=a11y--issues");
3841
expect(url).not.toContain("foo=bar"); // The non-ladle query parameter is removed
@@ -47,12 +50,14 @@ test("preserve user query params after ladle query param update", async ({
4750
await button.click();
4851
const medium = page.locator("#width-medium");
4952
await medium.click();
53+
await page.waitForTimeout(1000);
5054
const url = page.url();
5155
expect(url).toContain("story=query-parameters--query-parameters");
5256
expect(url).toContain("foo=bar");
5357
expect(url).toContain("width=768");
5458
const unset = page.locator("#width-unset");
5559
await unset.click();
60+
await page.waitForTimeout(1000);
5661
const newUrl = page.url();
5762
expect(newUrl).toContain("foo=bar");
5863
expect(newUrl).not.toContain("width=768");

e2e/babel/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
19-
"@vitejs/plugin-react": "^4.3.0",
18+
"@playwright/test": "^1.49.1",
19+
"@vitejs/plugin-react": "^4.3.4",
2020
"cross-env": "^7.0.3",
21-
"react": "^18.3.1",
22-
"react-dom": "^18.3.1"
21+
"react": "^19.0.0",
22+
"react-dom": "^19.0.0"
2323
}
2424
}

e2e/baseweb/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
19-
"autoprefixer": "^10.4.19",
18+
"@playwright/test": "^1.49.1",
19+
"autoprefixer": "^10.4.20",
2020
"baseui": "^14.0.0",
2121
"cross-env": "^7.0.3",
22-
"postcss": "^8.4.38",
23-
"react": "^18.3.1",
24-
"react-dom": "^18.3.1",
22+
"postcss": "^8.4.49",
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0",
2525
"styletron-engine-monolithic": "^1.0.0",
2626
"styletron-react": "^6.1.1",
27-
"tailwindcss": "^3.4.3"
27+
"tailwindcss": "^3.4.17"
2828
}
2929
}

e2e/config-ts/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
18+
"@playwright/test": "^1.49.1",
1919
"cross-env": "^7.0.3",
20-
"react": "^18.3.1",
21-
"react-dom": "^18.3.1"
20+
"react": "^19.0.0",
21+
"react-dom": "^19.0.0"
2222
}
2323
}

e2e/config/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
18+
"@playwright/test": "^1.49.1",
1919
"cross-env": "^7.0.3",
20-
"react": "^18.3.1",
21-
"react-dom": "^18.3.1"
20+
"react": "^19.0.0",
21+
"react-dom": "^19.0.0"
2222
}
2323
}

e2e/css/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
19-
"autoprefixer": "^10.4.19",
18+
"@playwright/test": "^1.49.1",
19+
"autoprefixer": "^10.4.20",
2020
"cross-env": "^7.0.3",
21-
"postcss": "^8.4.38",
22-
"react": "^18.3.1",
23-
"react-dom": "^18.3.1",
24-
"tailwindcss": "^3.4.3"
21+
"postcss": "^8.4.49",
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0",
24+
"tailwindcss": "^3.4.17"
2525
}
2626
}

e2e/decorators/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
18+
"@playwright/test": "^1.49.1",
1919
"cross-env": "^7.0.3",
20-
"react": "^18.3.1",
21-
"react-dom": "^18.3.1"
20+
"react": "^19.0.0",
21+
"react-dom": "^19.0.0"
2222
}
2323
}

e2e/msw/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
19-
"autoprefixer": "^10.4.19",
18+
"@playwright/test": "^1.49.1",
19+
"autoprefixer": "^10.4.20",
2020
"baseui": "^14.0.0",
2121
"cross-env": "^7.0.3",
22-
"postcss": "^8.4.38",
23-
"react": "^18.3.1",
24-
"react-dom": "^18.3.1",
22+
"postcss": "^8.4.49",
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0",
2525
"styletron-engine-monolithic": "^1.0.0",
2626
"styletron-react": "^6.1.1",
27-
"tailwindcss": "^3.4.3"
27+
"tailwindcss": "^3.4.17"
2828
}
2929
}

e2e/playwright-config/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"version": "0.2.71",
44
"license": "MIT",
55
"private": true,
6+
"type": "module",
67
"main": "./src/index.ts",
78
"scripts": {
89
"build": "echo 'no build'",
910
"lint": "echo 'no lint'",
1011
"test": "echo 'no test'"
1112
},
1213
"dependencies": {
13-
"@playwright/test": "^1.44.1"
14+
"@playwright/test": "^1.49.1"
1415
}
1516
}

e2e/playwright/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"dependencies": {
1818
"@ladle/playwright-config": "workspace:*",
1919
"@ladle/react": "workspace:*",
20-
"@playwright/test": "^1.44.1",
20+
"@playwright/test": "^1.49.1",
2121
"@types/sync-fetch": "^0.4.3",
2222
"cross-env": "^7.0.3",
23-
"react": "^18.3.1",
24-
"react-dom": "^18.3.1",
25-
"start-server-and-test": "^2.0.3",
26-
"sync-fetch": "^0.5.2"
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0",
25+
"start-server-and-test": "^2.0.9",
26+
"sync-fetch": "0.6.0-2"
2727
}
2828
}

e2e/programmatic/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"dependencies": {
1818
"@ladle/playwright-config": "workspace:*",
1919
"@ladle/react": "workspace:*",
20-
"@playwright/test": "^1.44.1",
20+
"@playwright/test": "^1.49.1",
2121
"cross-env": "^7.0.3",
22-
"react": "^18.3.1",
23-
"react-dom": "^18.3.1"
22+
"react": "^19.0.0",
23+
"react-dom": "^19.0.0"
2424
}
2525
}

e2e/provider/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
"@ladle/playwright-config": "workspace:*",
1717
"@ladle/react": "workspace:*",
18-
"@playwright/test": "^1.44.1",
18+
"@playwright/test": "^1.49.1",
1919
"cross-env": "^7.0.3",
20-
"react": "^18.3.1",
21-
"react-dom": "^18.3.1"
20+
"react": "^19.0.0",
21+
"react-dom": "^19.0.0"
2222
}
2323
}

eslint.config.mjs

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import globals from "globals";
12
import react from "eslint-plugin-react/configs/recommended.js";
23
import prettier from "eslint-plugin-prettier/recommended";
34
import eslint from "@eslint/js";
@@ -9,12 +10,21 @@ export default tseslint.config(
910
prettier,
1011
react,
1112
{
12-
files: ["**/*.ts", "**/*.tsx"],
13+
languageOptions: {
14+
globals: {
15+
...globals.browser,
16+
...globals.node,
17+
}
18+
},
19+
files: ["**/*.ts", "**/*.tsx", "**/*.js"],
1320
rules: {
1421
"@typescript-eslint/no-explicit-any": "off",
1522
"@typescript-eslint/ban-types": "off",
1623
"@typescript-eslint/ban-ts-comment": "off",
1724
"@typescript-eslint/explicit-module-boundary-types": "off",
25+
"@typescript-eslint/no-empty-object-type": "off",
26+
"@typescript-eslint/no-unused-expressions": "off",
27+
"@typescript-eslint/no-unused-vars": "off",
1828
"react/prop-types": "off",
1929
"react/react-in-jsx-scope": "off",
2030
"no-useless-escape": "off",

package.json

+23-21
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"author": "Vojtech Miksu <[email protected]>",
77
"license": "MIT",
88
"private": true,
9-
"packageManager": "pnpm@9.1.4",
9+
"packageManager": "pnpm@9.15.1",
1010
"scripts": {
1111
"lint": "eslint \"./{packages,e2e}/*/{lib,src,tests}/**/*.{ts,tsx}\" --max-warnings=0",
1212
"test": "turbo run test --concurrency=1",
1313
"build": "turbo run build",
1414
"typecheck": "tsc",
15-
"prepare": "husky install",
15+
"prepare": "husky",
1616
"release": "./release.sh"
1717
},
1818
"workspaces": [
@@ -35,32 +35,34 @@
3535
],
3636
"devDependencies": {
3737
"@changesets/changelog-github": "^0.5.0",
38-
"@changesets/cli": "^2.27.5",
39-
"@commitlint/cli": "^19.3.0",
40-
"@commitlint/config-conventional": "^19.2.2",
41-
"@eslint/js": "^9.3.0",
42-
"@playwright/test": "^1.44.1",
38+
"@changesets/cli": "^2.27.11",
39+
"@commitlint/cli": "^19.6.1",
40+
"@commitlint/config-conventional": "^19.6.0",
41+
"@eslint/js": "^9.17.0",
42+
"@playwright/test": "^1.49.1",
4343
"@types/eslint__js": "^8.42.3",
44-
"@types/react": "^18.3.3",
45-
"@types/react-dom": "^18.3.0",
46-
"eslint": "^9.3.0",
47-
"eslint-plugin-prettier": "^5.1.3",
48-
"eslint-plugin-react": "^7.34.2",
49-
"husky": "^9.0.11",
50-
"lint-staged": "^15.2.5",
51-
"prettier": "^3.2.5",
52-
"turbo": "^1.13.3",
53-
"typescript": "^5.4.5",
54-
"typescript-eslint": "^7.11.0"
44+
"@types/react": "^19.0.2",
45+
"@types/react-dom": "^19.0.2",
46+
"eslint": "^9.17.0",
47+
"eslint-plugin-prettier": "^5.2.1",
48+
"eslint-plugin-react": "^7.37.2",
49+
"globals": "^15.14.0",
50+
"husky": "^9.1.7",
51+
"lint-staged": "^15.2.11",
52+
"prettier": "^3.4.2",
53+
"turbo": "^2.3.3",
54+
"typescript": "^5.7.2",
55+
"typescript-eslint": "^8.18.1"
5556
},
5657
"engines": {
57-
"node": ">=20.9.0"
58+
"node": ">=22.0.0"
5859
},
5960
"pnpm": {
6061
"peerDependencyRules": {
6162
"allowedVersions": {
62-
"react": "18",
63-
"react-dom": "18",
63+
"@types/react": "19",
64+
"react": "19",
65+
"react-dom": "19",
6466
"typescript": "5"
6567
}
6668
}

packages/example/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@ladle/react": "workspace:*",
14-
"react": "^18.3.1",
15-
"react-dom": "^18.3.1"
14+
"react": "^19.0.0",
15+
"react-dom": "^19.0.0"
1616
}
1717
}

0 commit comments

Comments
 (0)