diff --git a/package-lock.json b/package-lock.json index 3ebb51ae..714aa6b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,6 @@ "@testing-library/react": "^16.1.0", "@testing-library/user-event": "^14.5.2", "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0", "@types/react-reconciler": "^0.28.9", "@vitejs/plugin-react": "^4.3.1", "@vitest/browser": "^2.0.4", @@ -29,7 +28,6 @@ "pixi.js": "8.2.6", "playwright": "^1.45.3", "react": "^19.0.0", - "react-dom": "^19.0.0", "rollup": "^4.18.0", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-sourcemaps": "^0.6.3", @@ -38,13 +36,7 @@ }, "peerDependencies": { "pixi.js": "^8.2.6", - "react": ">=19.0.0", - "react-dom": ">=19.0.0" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - } + "react": ">=19.0.0" } }, "node_modules/@adobe/css-tools": { @@ -4123,6 +4115,7 @@ "version": "19.0.2", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.2.tgz", "integrity": "sha512-USU8ZI/xyKJwFTpjSVIrSeHBVAGagkHQKPNbxeWwql/vDmnTIBgx+TJnhFnj1NXgz8XfprU0egV2dROLGpsBEg==", + "dev": true, "license": "MIT", "dependencies": { "csstype": "^3.0.2" @@ -4134,6 +4127,8 @@ "integrity": "sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "peerDependencies": { "@types/react": "^19.0.0" } @@ -4142,6 +4137,7 @@ "version": "0.28.9", "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz", "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==", + "dev": true, "license": "MIT", "peerDependencies": { "@types/react": "*" @@ -7592,6 +7588,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "dev": true, "license": "MIT" }, "node_modules/data-urls": { @@ -16477,6 +16474,7 @@ "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.25.0" }, @@ -20586,35 +20584,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/zustand": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.2.tgz", - "integrity": "sha512-8qNdnJVJlHlrKXi50LDqqUNmUbuBjoKLrYQBnoChIbVph7vni+sY+YpvdjXG9YLd/Bxr6scMcR+rm5H3aSqPaw==", - "license": "MIT", - "engines": { - "node": ">=12.20.0" - }, - "peerDependencies": { - "@types/react": ">=18.0.0", - "immer": ">=9.0.6", - "react": ">=18.0.0", - "use-sync-external-store": ">=1.2.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "immer": { - "optional": true - }, - "react": { - "optional": true - }, - "use-sync-external-store": { - "optional": true - } - } } } } diff --git a/package.json b/package.json index 6d8ec4ed..1ef27424 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,6 @@ "@testing-library/react": "^16.1.0", "@testing-library/user-event": "^14.5.2", "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0", "@types/react-reconciler": "^0.28.9", "@vitejs/plugin-react": "^4.3.1", "@vitest/browser": "^2.0.4", @@ -81,7 +80,6 @@ "pixi.js": "8.2.6", "playwright": "^1.45.3", "react": "^19.0.0", - "react-dom": "^19.0.0", "rollup": "^4.18.0", "rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-sourcemaps": "^0.6.3", @@ -90,13 +88,7 @@ }, "peerDependencies": { "pixi.js": "^8.2.6", - "react": ">=19.0.0", - "react-dom": ">=19.0.0" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - } + "react": ">=19.0.0" }, "overrides": { "rollup": "^4.18.0" diff --git a/test/e2e/hooks/useApplication.test.tsx b/test/e2e/hooks/useApplication.test.tsx index ee83b521..1cff66dc 100644 --- a/test/e2e/hooks/useApplication.test.tsx +++ b/test/e2e/hooks/useApplication.test.tsx @@ -1,17 +1,18 @@ import { type Application as PixiApplication } from 'pixi.js'; -import { type ReactNode } from 'react'; import { describe, expect, it, } from 'vitest'; -import { Application } from '../../../src/components/Application'; -import { useApplication } from '../../../src/hooks/useApplication'; +import { Application } from '../../../src/components/Application.ts'; +import { useApplication } from '../../../src/hooks/useApplication.ts'; import { render, renderHook, } from '@testing-library/react'; +import type { ReactNode } from 'react'; + describe('useApplication', () => { it('returns the nearest application', async () =>