From ca729d9c458cbdb773026878a2776d003a79c96e Mon Sep 17 00:00:00 2001 From: Christian Mahnke Date: Tue, 20 Aug 2024 00:32:05 +0200 Subject: [PATCH] Fix three js 167 imports --- eslint.config.mjs | 1 + package-lock.json | 18 +++++++++--------- package.json | 16 ++++++++-------- three/HDRWebGPUBackend.js | 4 ++-- three/HDRWebGPURenderer.js | 4 ++-- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 536ca51..460974d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -70,6 +70,7 @@ export default [ "no-warning-comments": ["warn", {}], "no-irregular-whitespace": ["warn", {}], "no-console": ["warn", {}], + "no-undef": ["warn", {}], }, }, { diff --git a/package-lock.json b/package-lock.json index 6797367..783d542 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hdr-canvas", - "version": "0.0.5", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hdr-canvas", - "version": "0.0.5", + "version": "0.0.7", "license": "MIT", "dependencies": { "colorjs.io": "^0.5.2" @@ -17,15 +17,15 @@ "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/eslint__js": "^8.42.3", - "eslint": "^9.6.0", - "prettier": "^3.3.2", - "rimraf": "^6.0.0", - "rollup": "^4.18.1", + "eslint": "^9.9.0", + "prettier": "^3.3.3", + "rimraf": "^6.0.1", + "rollup": "^4.21.0", "rollup-plugin-dts": "^6.1.1", - "three": "^0.167.0", + "three": "^0.167.1", "tslib": "^2.6.3", - "typescript": "^5.5.3", - "typescript-eslint": "^8.0.0-alpha.10" + "typescript": "^5.5.4", + "typescript-eslint": "^8.2.0" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 0afffe7..80afc80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hdr-canvas", - "version": "0.0.7", + "version": "0.0.8", "description": "HDR capable HTML canvas", "main": "dist/hdr-canvas.js", "files": [ @@ -44,15 +44,15 @@ "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@types/eslint__js": "^8.42.3", - "eslint": "^9.6.0", - "prettier": "^3.3.2", - "rimraf": "^6.0.0", - "rollup": "^4.18.1", + "eslint": "^9.9.0", + "prettier": "^3.3.3", + "rimraf": "^6.0.1", + "rollup": "^4.21.0", "rollup-plugin-dts": "^6.1.1", - "three": "^0.167.0", + "three": "^0.167.1", "tslib": "^2.6.3", - "typescript": "^5.5.3", - "typescript-eslint": "^8.0.0-alpha.10" + "typescript": "^5.5.4", + "typescript-eslint": "^8.2.0" }, "dependencies": { "colorjs.io": "^0.5.2" diff --git a/three/HDRWebGPUBackend.js b/three/HDRWebGPUBackend.js index 4359b19..936db72 100644 --- a/three/HDRWebGPUBackend.js +++ b/three/HDRWebGPUBackend.js @@ -1,5 +1,5 @@ -import WebGPUBackend from 'three/addons/renderers/webgpu/WebGPUBackend.js'; -import { GPUFeatureName, GPUTextureFormat } from 'three/addons/renderers/webgpu/utils/WebGPUConstants.js'; +import WebGPUBackend from 'three/renderers/webgpu/WebGPUBackend.js'; +import { GPUFeatureName, GPUTextureFormat } from 'three/renderers/webgpu/utils/WebGPUConstants.js'; class HDRWebGPUBackend extends WebGPUBackend { diff --git a/three/HDRWebGPURenderer.js b/three/HDRWebGPURenderer.js index f0558eb..438b7aa 100644 --- a/three/HDRWebGPURenderer.js +++ b/three/HDRWebGPURenderer.js @@ -1,7 +1,7 @@ import WebGPU from './WebGPU.js'; -import Renderer from 'three/addons/renderers/common/Renderer.js'; -import WebGLBackend from 'three/addons/renderers/webgl/WebGLBackend.js'; +import Renderer from 'three/renderers/common/Renderer.js'; +import WebGLBackend from 'three/renderers/webgl/WebGLBackend.js'; import HDRWebGPUBackend from './HDRWebGPUBackend.js'; class HDRWebGPURenderer extends Renderer {