diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d09f64..1b405a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 6.0.1 + +- Avoid window reference if absolute url is provided [#77](https://github.com/kaisalmen/WWOBJLoader/pull/77) +- Added [Offscreen canvas example](https://github.com/kaisalmen/WWOBJLoader/blob/main/packages/examples/obj2_basic_offscreen.html) +- Updated dependencies and aligned code with type definitions of three.js release 156. + ## 6.0.0 - Converted all code to TypeScript diff --git a/package-lock.json b/package-lock.json index b9e8a0b..4f8ef3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3659,7 +3659,7 @@ "react-dom": "~18.2.0", "wtd-core": "2.2.0", "wtd-three-ext": "2.2.0", - "wwobjloader2": "6.0.1-next.2" + "wwobjloader2": "~6.0.1" }, "devDependencies": { "@types/react": "~18.2.23", @@ -3668,7 +3668,7 @@ }, "packages/objloader2": { "name": "wwobjloader2", - "version": "6.0.1-next.2", + "version": "6.0.1", "dependencies": { "three": "~0.156.0", "wtd-core": "2.2.0", diff --git a/packages/examples/package.json b/packages/examples/package.json index aaf7c10..e9097a2 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -26,7 +26,7 @@ }, "dependencies": { "@react-three/fiber": "~8.14.3", - "wwobjloader2": "6.0.1-next.2", + "wwobjloader2": "~6.0.1", "wtd-core": "2.2.0", "wtd-three-ext": "2.2.0", "lil-gui": "~0.18.2", diff --git a/packages/examples/src/examples/OBJLoader2BasicExampleOffscreen.ts b/packages/examples/src/examples/OBJLoader2BasicExampleOffscreen.ts index 3eb9f85..823fc0b 100644 --- a/packages/examples/src/examples/OBJLoader2BasicExampleOffscreen.ts +++ b/packages/examples/src/examples/OBJLoader2BasicExampleOffscreen.ts @@ -42,14 +42,8 @@ export class OBJLoader2BasicExampleOffscreen { taskTypeName: execMessage.name, message: execMessage, transferables: [offscreen], - // decouple result evaluation ... onComplete: (m: WorkerTaskMessageType) => { - const wtm = WorkerTaskMessage.unpack(m, false); - console.log(wtm); - if (wtm.payloads.length === 1) { - console.log(wtm.payloads[0]); - } - console.log('Received final command: ' + wtm.cmd); + console.log('Received final command: ' + m.cmd); } }); console.log(`enqueueWorkerExecutionPlan finished: ${resultExec}`); diff --git a/packages/objloader2/package.json b/packages/objloader2/package.json index e516811..d527b1f 100644 --- a/packages/objloader2/package.json +++ b/packages/objloader2/package.json @@ -1,6 +1,6 @@ { "name": "wwobjloader2", - "version": "6.0.1-next.2", + "version": "6.0.1", "type": "module", "main": "./dist/index.js", "module": "./dist/index.js",