diff --git a/package-lock.json b/package-lock.json index 50120e54..711339f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,16 @@ { "name": "@readyplayerme/visage", - "version": "5.2.0", + "version": "5.3.0-rc.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@readyplayerme/visage", - "version": "5.2.0", + "version": "5.3.0-rc.1", "license": "MIT", "dependencies": { "gltfpack": "^0.21.0", + "jest-canvas-mock": "^2.5.2", "jotai": "^2.2.2" }, "devDependencies": { @@ -12781,8 +12782,7 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/colord": { "version": "2.9.3", @@ -13560,6 +13560,11 @@ "node": ">=4" } }, + "node_modules/cssfontparser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/cssfontparser/-/cssfontparser-1.2.1.tgz", + "integrity": "sha512-6tun4LoZnj7VN6YeegOVb67KBX/7JJsqvj+pv3ZA7F878/eN33AbGa5b/S/wXxS/tcp8nc40xRUrsPlxIyNUPg==" + }, "node_modules/cssnano": { "version": "5.1.15", "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", @@ -19266,6 +19271,15 @@ } } }, + "node_modules/jest-canvas-mock": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jest-canvas-mock/-/jest-canvas-mock-2.5.2.tgz", + "integrity": "sha512-vgnpPupjOL6+L5oJXzxTxFrlGEIbHdZqFU+LFNdtLxZ3lRDCl17FlTMM7IatoRQkrcyOTMlDinjUguqmQ6bR2A==", + "dependencies": { + "cssfontparser": "^1.2.1", + "moo-color": "^1.0.2" + } + }, "node_modules/jest-changed-files": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", @@ -24010,6 +24024,14 @@ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true }, + "node_modules/moo-color": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/moo-color/-/moo-color-1.0.3.tgz", + "integrity": "sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==", + "dependencies": { + "color-name": "^1.1.4" + } + }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", @@ -41625,8 +41647,7 @@ "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "colord": { "version": "2.9.3", @@ -42194,6 +42215,11 @@ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true }, + "cssfontparser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/cssfontparser/-/cssfontparser-1.2.1.tgz", + "integrity": "sha512-6tun4LoZnj7VN6YeegOVb67KBX/7JJsqvj+pv3ZA7F878/eN33AbGa5b/S/wXxS/tcp8nc40xRUrsPlxIyNUPg==" + }, "cssnano": { "version": "5.1.15", "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz", @@ -46365,6 +46391,15 @@ "jest-cli": "^27.5.1" } }, + "jest-canvas-mock": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jest-canvas-mock/-/jest-canvas-mock-2.5.2.tgz", + "integrity": "sha512-vgnpPupjOL6+L5oJXzxTxFrlGEIbHdZqFU+LFNdtLxZ3lRDCl17FlTMM7IatoRQkrcyOTMlDinjUguqmQ6bR2A==", + "requires": { + "cssfontparser": "^1.2.1", + "moo-color": "^1.0.2" + } + }, "jest-changed-files": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", @@ -50003,6 +50038,14 @@ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true }, + "moo-color": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/moo-color/-/moo-color-1.0.3.tgz", + "integrity": "sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==", + "requires": { + "color-name": "^1.1.4" + } + }, "mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", diff --git a/package.json b/package.json index 536cf7f9..274dc170 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@readyplayerme/visage", - "version": "5.2.0", + "version": "5.3.0-rc.1", "description": "Easily display Ready Player Me avatars and 3D on the web.", "author": "Ready Player Me", "keywords": [ @@ -65,26 +65,23 @@ ] }, "peerDependencies": { + "@react-three/drei": "9.108.4", + "@react-three/fiber": "8.16.8", + "@react-three/postprocessing": "2.16.2", "postprocessing": "6.35.6", "react": ">=18.2.0", "react-dom": ">=18.2.0", "suspend-react": ">=0.1.3", - "@react-three/drei": "9.108.4", - "@react-three/fiber": "8.16.8", - "@react-three/postprocessing": "2.16.2", "three": "0.166.1", "three-stdlib": "2.30.4" }, "devDependencies": { - "postprocessing": "6.35.6", - "@react-three/drei": "9.108.4", - "@react-three/fiber": "8.16.8", - "@react-three/postprocessing": "2.16.2", - "three": "0.166.1", - "three-stdlib": "2.30.4", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@commitlint/cli": "^17.6.7", "@commitlint/config-conventional": "^17.6.7", + "@react-three/drei": "9.108.4", + "@react-three/fiber": "8.16.8", + "@react-three/postprocessing": "2.16.2", "@react-three/test-renderer": "^8.2.0", "@rollup/plugin-commonjs": "^25.0.3", "@rollup/plugin-node-resolve": "^15.1.0", @@ -121,6 +118,7 @@ "eslint-plugin-storybook": "^0.6.13", "husky": "^8.0.0", "identity-obj-proxy": "^3.0.0", + "postprocessing": "6.35.6", "prettier": "^3.0.0", "r3f-perf": "^7.1.2", "react": "^18.2.0", @@ -134,6 +132,8 @@ "rollup-plugin-terser": "^7.0.2", "storybook": "7.3.2", "suspend-react": "0.1.3", + "three": "0.166.1", + "three-stdlib": "2.30.4", "typescript": "^4.1.6", "typescript-plugin-css-modules": "^5.0.1", "webpack": "^5.88.2" @@ -151,6 +151,7 @@ }, "dependencies": { "gltfpack": "^0.21.0", + "jest-canvas-mock": "^2.5.2", "jotai": "^2.2.2" } } diff --git a/src/setupTests.ts b/src/setupTests.ts index d06790e0..dad9d0b6 100644 --- a/src/setupTests.ts +++ b/src/setupTests.ts @@ -1,3 +1,5 @@ +import 'jest-canvas-mock'; + // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i)