Skip to content

Commit 3f374ad

Browse files
committed
Merge branch 'master' into update-examples
2 parents 108dc1f + 19d53b4 commit 3f374ad

File tree

7 files changed

+845
-762
lines changed

7 files changed

+845
-762
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
A component to integrate [P5.js](https://p5js.org/) sketches into
66
[React](https://reactjs.org/) apps.
77

8-
> Note: Version 5 is still in development, currently 5.0.0-rc.0 has been
9-
> released for internal development testing ONLY. It is recommended to continue
10-
> utilising version 4.4.0 until it is out of the `rc` versioning scheme.
8+
> Note: Version 5 is still in development, currently the `5.0.0-rc.x` range has been
9+
> released for internal development or experimental testing ONLY. It is recommended to continue
10+
> utilising version `4.4.1` until version `5.0.0` is out of the `rc` versioning scheme.
1111
1212
## Installation
1313

config/eslint/eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-expect-error The react team don't expose types for the eslint plugin currently
21
import * as reactCompiler from "eslint-plugin-react-compiler";
32
import * as tseslint from "typescript-eslint";
43
import { includeIgnoreFile } from "@eslint/compat";

config/vite/vite.component.config.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ import { resolve } from "node:path";
33
import dts from "vite-plugin-dts";
44
import { defineConfig } from "vitest/config";
55

6-
const rootDir = resolve(__dirname, "..", "..");
7-
const outputDirectory = resolve(rootDir, "dist", "component");
8-
const tsConfigPath = resolve(rootDir, "tsconfig.json");
9-
const config = defineConfig({
6+
const root = resolve(__dirname, "..", "..");
7+
const dist = resolve(root, "dist", "component");
8+
const tsConfig = resolve(root, "tsconfig.json");
9+
10+
export default defineConfig({
1011
plugins: [
1112
dts({
1213
rollupTypes: true,
13-
tsconfigPath: tsConfigPath,
14-
outDir: outputDirectory
14+
tsconfigPath: tsConfig,
15+
outDir: dist
1516
}),
1617
react({
1718
babel: {
@@ -25,7 +26,7 @@ const config = defineConfig({
2526
build: {
2627
emptyOutDir: true,
2728
lib: {
28-
entry: resolve(rootDir, "src", "main.tsx"),
29+
entry: resolve(root, "src", "main.tsx"),
2930
name: "ReactP5Wrapper",
3031
fileName: "ReactP5Wrapper",
3132
formats: ["es", "cjs"]
@@ -35,7 +36,7 @@ const config = defineConfig({
3536
output: {
3637
assetFileNames: "assets/[name][extname]",
3738
entryFileNames: "[name].[format].js",
38-
dir: outputDirectory,
39+
dir: dist,
3940
globals: {
4041
p5: "p5",
4142
react: "React",
@@ -51,7 +52,7 @@ const config = defineConfig({
5152
coverage: {
5253
include: ["src"]
5354
},
54-
setupFiles: resolve(rootDir, "tests", "setup.ts"),
55+
setupFiles: resolve(root, "tests", "setup.ts"),
5556
deps: {
5657
optimizer: {
5758
web: {
@@ -61,5 +62,3 @@ const config = defineConfig({
6162
}
6263
}
6364
});
64-
65-
export default config;

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@p5-wrapper/react",
33
"description": "A wrapper component that allows you to utilise P5 sketches within React apps.",
4-
"version": "5.0.0-rc.2",
4+
"version": "5.0.0-rc.3",
55
"type": "module",
66
"homepage": "https://github.com/P5-wrapper/react",
77
"license": "MIT",
@@ -87,39 +87,39 @@
8787
"react-dom": ">= 19.0.0"
8888
},
8989
"devDependencies": {
90-
"@babel/eslint-plugin": "^7.25.9",
91-
"@eslint/compat": "^1.2.6",
92-
"@eslint/js": "^9.20.0",
90+
"@babel/eslint-plugin": "^7.27.1",
91+
"@eslint/compat": "^1.3.1",
92+
"@eslint/js": "^9.30.1",
9393
"@testing-library/jest-dom": "6.6.3",
94-
"@testing-library/react": "^16.2.0",
94+
"@testing-library/react": "^16.3.0",
9595
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
96-
"@types/jest": "^29.5.14",
97-
"@types/node": "^22.13.4",
96+
"@types/jest": "^30.0.0",
97+
"@types/node": "^24.0.10",
9898
"@types/p5": "^1.7.6",
99-
"@types/react": "^19.0.8",
100-
"@types/react-dom": "^19.0.3",
101-
"@typescript-eslint/eslint-plugin": "^8.24.0",
102-
"@vitejs/plugin-react": "^4.3.4",
103-
"@vitest/coverage-v8": "^3.0.5",
104-
"babel-plugin-react-compiler": "19.0.0-beta-30d8a17-20250209",
105-
"eslint": "^9.20.1",
106-
"eslint-plugin-react": "^7.37.4",
107-
"eslint-plugin-react-compiler": "19.0.0-beta-30d8a17-20250209",
108-
"eslint-plugin-react-hooks": "^5.1.0",
99+
"@types/react": "^19.1.8",
100+
"@types/react-dom": "^19.1.6",
101+
"@typescript-eslint/eslint-plugin": "^8.35.1",
102+
"@vitejs/plugin-react": "^4.6.0",
103+
"@vitest/coverage-v8": "^3.2.4",
104+
"babel-plugin-react-compiler": "19.1.0-rc.2",
105+
"eslint": "^9.30.1",
106+
"eslint-plugin-react": "^7.37.5",
107+
"eslint-plugin-react-compiler": "19.1.0-rc.2",
108+
"eslint-plugin-react-hooks": "^5.2.0",
109109
"gh-pages": "^6.3.0",
110110
"jiti": "^2.4.2",
111111
"js": "^0.1.0",
112-
"jsdom": "^26.0.0",
112+
"jsdom": "^26.1.0",
113113
"p5.capture": "^1.6.0",
114-
"prettier": "^3.5.1",
114+
"prettier": "^3.6.2",
115115
"react": "19.1.0",
116116
"react-dom": "19.1.0",
117117
"rimraf": "^6.0.1",
118-
"typescript": "^5.7.3",
119-
"typescript-eslint": "^8.24.0",
120-
"vite": "^6.1.0",
121-
"vite-plugin-dts": "^4.5.0",
122-
"vitest": "^3.0.5",
118+
"typescript": "^5.8.3",
119+
"typescript-eslint": "^8.35.1",
120+
"vite": "^7.0.2",
121+
"vite-plugin-dts": "^4.5.4",
122+
"vitest": "^3.2.4",
123123
"vitest-canvas-mock": "^0.3.3"
124124
}
125125
}

0 commit comments

Comments
 (0)