Skip to content

Commit e8a8d04

Browse files
committed
@pmndrs/use-cannon v1.1.0 - 2022-03-19
1 parent ed5ad2a commit e8a8d04

File tree

8 files changed

+45
-5
lines changed

8 files changed

+45
-5
lines changed

CHANGELOG.md

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

3+
## v1.1.0 - 2022-03-19
4+
5+
- [`package.json`] Add .json, .jsx, & .tsx to lint-staged files (@bjornstar)
6+
- [`yarn.lock`] Updated dependencies (@bjornstar)
7+
38
## v1.0.1 - 2022-03-14
49

510
- [`README.md`] Fix examples link (@discosultan)

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": "1.0.1",
3+
"version": "1.1.0",
44
"description": "monorepo for @pmndrs/use-cannon",
55
"keywords": [
66
"cannon",

packages/cannon-worker-api/CHANGELOG.md

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

3+
## v1.1.0 - 2022-03-19
4+
5+
- [WorkerRayHitEvent] from & to are optional (@bjornstar)
6+
- [WorkerRayHitEvent] Omit methods from shape type (@bjornstar)
7+
- [`src/worker`] self.postMessage should be typed to ensure we match API types (@bjornstar)
8+
- [`src/worker`] Stop using non-null assertions (@bjornstar)
9+
- [`addBodies`] If the body or target does not have a uuid, don't process the event (@bjornstar)
10+
- [`addRay`] If the body does not have a uuid, don't process the event (@bjornstar)
11+
- [`package.json`] Has one dependency: `three` (@bjornstar)
12+
- [`.eslintrc.json`] Clean up (@bjornstar)
13+
- [`.eslintrc.json`] Disallow non-null assertions (@bjornstar)
14+
315
## v1.0.1 - 2022-03-14
416

517
- Specify targetPlatform: 'browser' (@isaac-mason)

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": "1.0.1",
3+
"version": "1.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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @react-three/cannon-examples Changelog
22

3+
## v1.1.0 - 2022-03-19
4+
5+
- [MondayMorning] Don't use non-null assertions (@bjornstar)
6+
- [`.eslintrc.json`] Clean up (@bjornstar)
7+
- [`.eslintrc.json`] Disallow non-null assertions (@bjornstar)
8+
- [`package.json`] Only devDependencies (@bjornstar)
9+
- [`tsconfig.json`] Alphabetize (@bjornstar)
10+
311
## v1.0.1 - 2022-03-14
412

513
- @react-three/cannon should always be the latest (@bjornstar)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/cannon-examples",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "Examples for @react-three/cannon",
55
"private": true,
66
"scripts": {

packages/react-three-cannon/CHANGELOG.md

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

3+
## v5.1.0 - 2022-03-19
4+
5+
- Access the physics context with the `usePhysicsContext` hook, which immediately gives you a clear error message when trying to access physics components or hooks outside of a Physics provider (@bjornstar)
6+
- Renamed `context` to `physicsContext` (@bjornstar)
7+
- Added a `useDebugContext` hook for consistency (@bjornstar)
8+
- [`Provider.tsx`] Renamed to `physics-provider.tsx` (@bjornstar)
9+
- [`Debug.tsx`] Renamed to `debug-provider.tsx` (Still exported as Debug & DebugProps) (@bjornstar)
10+
- [`physics-provider.tsx`] One useState call that contains the whole context (@bjornstar)
11+
- [`physics-provider.tsx`] bodies is not a ref, no need to access current (@bjornstar)
12+
- [`setup.ts`] Removed, split into more appropriately named modules (@bjornstar)
13+
- [`worker.d.ts`] Removed, belongs in cannon-worker-api (@bjornstar)
14+
- [`package.json`] Use dependencies rather than peerDependencies (@bjornstar)
15+
- [`.eslintrc.json`] Clean up (@bjornstar)
16+
- [`.eslintrc.json`] Disallow non-null assertions (@bjornstar)
17+
318
## v5.0.1 - 2022-03-14
419

520
- Bump @pmndrs/cannon-worker-api to v1.0.1 (@bjornstar)

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": "5.0.1",
3+
"version": "5.1.0",
44
"description": "physics based hooks for react-three-fiber",
55
"keywords": [
66
"cannon",
@@ -40,7 +40,7 @@
4040
"@babel/preset-env": "^7.16.5",
4141
"@babel/preset-react": "^7.16.5",
4242
"@babel/preset-typescript": "^7.16.5",
43-
"@pmndrs/cannon-worker-api": "^1.0.1",
43+
"@pmndrs/cannon-worker-api": "^1.1.0",
4444
"@rollup/plugin-babel": "^5.3.0",
4545
"@rollup/plugin-node-resolve": "^13.1.3",
4646
"@types/react": "^17.0.37",

0 commit comments

Comments
 (0)