Use Cannon Versions Save

👋💣 physics based hooks for @react-three/fiber

@react-three/[email protected]

2 years ago
  • 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)
  • Renamed context to physicsContext (@bjornstar)
  • Added a useDebugContext hook for consistency (@bjornstar)
  • [Provider.tsx] Renamed to physics-provider.tsx (@bjornstar)
  • [Debug.tsx] Renamed to debug-provider.tsx (Still exported as Debug & DebugProps) (@bjornstar)
  • [physics-provider.tsx] One useState call that contains the whole context (@bjornstar)
  • [physics-provider.tsx] bodies is not a ref, no need to access current (@bjornstar)
  • [setup.ts] Removed, split into more appropriately named modules (@bjornstar)
  • [worker.d.ts] Removed, belongs in cannon-worker-api (@bjornstar)
  • [package.json] Use dependencies rather than peerDependencies (@bjornstar)
  • [.eslintrc.json] Clean up (@bjornstar)
  • [.eslintrc.json] Disallow non-null assertions (@bjornstar)

@react-three/[email protected]

2 years ago
  • 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)
  • Renamed context to physicsContext (@bjornstar)
  • Added a useDebugContext hook for consistency (@bjornstar)
  • [Provider.tsx] Renamed to physics-provider.tsx (@bjornstar)
  • [Debug.tsx] Renamed to debug-provider.tsx (Still exported as Debug & DebugProps) (@bjornstar)
  • [physics-provider.tsx] One useState call that contains the whole context (@bjornstar)
  • [physics-provider.tsx] bodies is not a ref, no need to access current (@bjornstar)
  • [setup.ts] Removed, split into more appropriately named modules (@bjornstar)
  • [worker.d.ts] Removed, belongs in cannon-worker-api (@bjornstar)
  • [package.json] Use dependencies rather than peerDependencies (@bjornstar)
  • [.eslintrc.json] Clean up (@bjornstar)
  • [.eslintrc.json] Disallow non-null assertions (@bjornstar)

@pmndrs/[email protected]

2 years ago
  • [@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

@react-three/[email protected]

2 years ago
  • Bump @pmndrs/cannon-worker-api to v1.0.1 (@bjornstar)

@react-three/[email protected]

2 years ago
  • Bump @pmndrs/cannon-worker-api to v1.0.1 (@bjornstar)

@pmndrs/[email protected]

2 years ago
  • Specify targetPlatform: 'browser' (@isaac-mason)

@pmndrs/[email protected]

2 years ago
  • Specify targetPlatform: 'browser' (@isaac-mason)

@pmndrs/[email protected]

2 years ago
  • Initial Release (@isaac-mason & @bjornstar)

@pmndrs/[email protected]

2 years ago
  • Initial Release (@isaac-mason & @bjornstar)

@react-three/[email protected]

2 years ago
  • Use newly isolated @pmndrs/cannon-worker-api (@isaac-mason)
  • Removed useUpdateWorldPropsEffect (@bjornstar)
  • [package.json] Added homepage property to go directly to the package (@bjornstar)
  • [rollup.config.js] Specify targetPlatform: 'browser' (@bjornstar)
  • [tsconfig.json] Alphabetize contents (@bjornstar)