From 72bde0bd262b8cd53771ae1a46ef8dbe095762f5 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sat, 2 Apr 2022 21:16:22 +0200 Subject: [PATCH] @pmndrs/use-cannon v2.1.0 @react-three/cannon v6.1.0 @pmndrs/cannon-worker-api v2.1.0 @react-three/cannon-examples v2.1.0 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- packages/cannon-worker-api/CHANGELOG.md | 7 +++++++ packages/cannon-worker-api/package.json | 2 +- packages/react-three-cannon-examples/CHANGELOG.md | 4 ++++ packages/react-three-cannon-examples/package.json | 4 ++-- packages/react-three-cannon/CHANGELOG.md | 5 +++++ packages/react-three-cannon/package.json | 4 ++-- 8 files changed, 29 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index feb35f15..f26a7bcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # @pmndrs/use-cannon Changelog +## v2.1.0 - 2022-04-02 + +- [@pmndrs/cannon-worker-api] v2.0.0 +- [@react-three/cannon] v6.0.0 +- [@react-three/cannon-examples] v2.0.0 +- Set monorepo package type to module + ## v2.0.0 - 2022-04-01 - [@pmndrs/cannon-worker-api] v2.0.0 diff --git a/package.json b/package.json index a4e718cf..e7bc4c84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pmndrs/use-cannon", - "version": "2.0.0", + "version": "2.1.0", "description": "monorepo for @pmndrs/use-cannon", "keywords": [ "cannon", diff --git a/packages/cannon-worker-api/CHANGELOG.md b/packages/cannon-worker-api/CHANGELOG.md index 04a29fa7..e58c4f4b 100644 --- a/packages/cannon-worker-api/CHANGELOG.md +++ b/packages/cannon-worker-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @pmndrs/cannon-worker-api Changelog +## v2.1.0 - 2022-04-02 + +- New private method `postMessage` that queues the messages if there is no worker +- New public method: `connect`, we instantiate the worker, add the onmessage handler and flush the messageQueue +- New public method: `disconnect`, removes the onmessage handler (probably unnecessary) +- `init` now takes `world` instead of `state` + ## v2.0.0 - 2022-04-01 - `three.js` is now a `peerDependency` and requires r139 or higher diff --git a/packages/cannon-worker-api/package.json b/packages/cannon-worker-api/package.json index 8e1d8479..0714a6c9 100644 --- a/packages/cannon-worker-api/package.json +++ b/packages/cannon-worker-api/package.json @@ -1,6 +1,6 @@ { "name": "@pmndrs/cannon-worker-api", - "version": "2.0.0", + "version": "2.1.0", "description": "An API to use cannon-es in a web worker", "keywords": [ "cannon", diff --git a/packages/react-three-cannon-examples/CHANGELOG.md b/packages/react-three-cannon-examples/CHANGELOG.md index a7b864ae..84ade26d 100644 --- a/packages/react-three-cannon-examples/CHANGELOG.md +++ b/packages/react-three-cannon-examples/CHANGELOG.md @@ -1,5 +1,9 @@ # @react-three/cannon-examples Changelog +## v2.1.0 - 2022-04-02 + +- Update `@react-three/cannon` to v6.1.0 + ## v2.0.0 - 2022-04-01 - Updated `react` to v18 diff --git a/packages/react-three-cannon-examples/package.json b/packages/react-three-cannon-examples/package.json index beb9c7c3..73ef4948 100755 --- a/packages/react-three-cannon-examples/package.json +++ b/packages/react-three-cannon-examples/package.json @@ -1,6 +1,6 @@ { "name": "@react-three/cannon-examples", - "version": "2.0.0", + "version": "2.1.0", "description": "Examples for @react-three/cannon", "private": true, "scripts": { @@ -20,7 +20,7 @@ "not op_mini all" ], "devDependencies": { - "@react-three/cannon": "^6.0.0", + "@react-three/cannon": "^6.1.0", "@react-three/drei": "^9.0.1", "@react-three/fiber": "^8.0.4", "@types/lodash-es": "^4.17.6", diff --git a/packages/react-three-cannon/CHANGELOG.md b/packages/react-three-cannon/CHANGELOG.md index 1e8f7af0..e2e28b6c 100644 --- a/packages/react-three-cannon/CHANGELOG.md +++ b/packages/react-three-cannon/CHANGELOG.md @@ -1,5 +1,10 @@ # @react-three/cannon Changelog +## v6.1.0 - 2022-04-02 + +- Now calls `connect` before `init` in a useEffect (instead of useLayoutEffect) +- Update `@pmndrs/cannon-worker-api` to v2.1.0 + ## v6.0.0 - 2022-04-01 - Removed the Suspense wrapper around Physics, you will need to provide your own suspense boundary from now on diff --git a/packages/react-three-cannon/package.json b/packages/react-three-cannon/package.json index aa36fe85..14ffedae 100644 --- a/packages/react-three-cannon/package.json +++ b/packages/react-three-cannon/package.json @@ -1,6 +1,6 @@ { "name": "@react-three/cannon", - "version": "6.0.0", + "version": "6.1.0", "description": "physics based hooks for react-three-fiber", "keywords": [ "cannon", @@ -30,7 +30,7 @@ "prettier-fix": "prettier --write ." }, "dependencies": { - "@pmndrs/cannon-worker-api": "^2.0.0", + "@pmndrs/cannon-worker-api": "^2.1.0", "cannon-es": "^0.19.0", "cannon-es-debugger": "^1.0.0" },