You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-three-cannon/CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,20 @@
1
1
# @react-three/cannon Changelog
2
2
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)
0 commit comments