Skip to content

Commit 72bde0b

Browse files
committed
@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
1 parent 15cd257 commit 72bde0b

File tree

8 files changed

+29
-6
lines changed

8 files changed

+29
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @pmndrs/use-cannon Changelog
22

3+
## v2.1.0 - 2022-04-02
4+
5+
- [@pmndrs/cannon-worker-api] v2.0.0
6+
- [@react-three/cannon] v6.0.0
7+
- [@react-three/cannon-examples] v2.0.0
8+
- Set monorepo package type to module
9+
310
## v2.0.0 - 2022-04-01
411

512
- [@pmndrs/cannon-worker-api] v2.0.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pmndrs/use-cannon",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "monorepo for @pmndrs/use-cannon",
55
"keywords": [
66
"cannon",

packages/cannon-worker-api/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @pmndrs/cannon-worker-api Changelog
22

3+
## v2.1.0 - 2022-04-02
4+
5+
- New private method `postMessage` that queues the messages if there is no worker
6+
- New public method: `connect`, we instantiate the worker, add the onmessage handler and flush the messageQueue
7+
- New public method: `disconnect`, removes the onmessage handler (probably unnecessary)
8+
- `init` now takes `world` instead of `state`
9+
310
## v2.0.0 - 2022-04-01
411

512
- `three.js` is now a `peerDependency` and requires r139 or higher

packages/cannon-worker-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pmndrs/cannon-worker-api",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "An API to use cannon-es in a web worker",
55
"keywords": [
66
"cannon",

packages/react-three-cannon-examples/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @react-three/cannon-examples Changelog
22

3+
## v2.1.0 - 2022-04-02
4+
5+
- Update `@react-three/cannon` to v6.1.0
6+
37
## v2.0.0 - 2022-04-01
48

59
- Updated `react` to v18

packages/react-three-cannon-examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/cannon-examples",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Examples for @react-three/cannon",
55
"private": true,
66
"scripts": {
@@ -20,7 +20,7 @@
2020
"not op_mini all"
2121
],
2222
"devDependencies": {
23-
"@react-three/cannon": "^6.0.0",
23+
"@react-three/cannon": "^6.1.0",
2424
"@react-three/drei": "^9.0.1",
2525
"@react-three/fiber": "^8.0.4",
2626
"@types/lodash-es": "^4.17.6",

packages/react-three-cannon/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# @react-three/cannon Changelog
22

3+
## v6.1.0 - 2022-04-02
4+
5+
- Now calls `connect` before `init` in a useEffect (instead of useLayoutEffect)
6+
- Update `@pmndrs/cannon-worker-api` to v2.1.0
7+
38
## v6.0.0 - 2022-04-01
49

510
- Removed the Suspense wrapper around Physics, you will need to provide your own suspense boundary from now on

packages/react-three-cannon/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/cannon",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"description": "physics based hooks for react-three-fiber",
55
"keywords": [
66
"cannon",
@@ -30,7 +30,7 @@
3030
"prettier-fix": "prettier --write ."
3131
},
3232
"dependencies": {
33-
"@pmndrs/cannon-worker-api": "^2.0.0",
33+
"@pmndrs/cannon-worker-api": "^2.1.0",
3434
"cannon-es": "^0.19.0",
3535
"cannon-es-debugger": "^1.0.0"
3636
},

0 commit comments

Comments
 (0)