@needle-tools/engine 3.25.3 → 3.25.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/needle-engine.js +4328 -4309
  3. package/dist/needle-engine.light.js +4221 -4202
  4. package/dist/needle-engine.light.min.js +167 -167
  5. package/dist/needle-engine.light.umd.cjs +168 -168
  6. package/dist/needle-engine.min.js +165 -165
  7. package/dist/needle-engine.umd.cjs +167 -167
  8. package/lib/engine/engine_context.js +1 -0
  9. package/lib/engine/engine_context.js.map +1 -1
  10. package/lib/engine/engine_lifecycle_api.d.ts +9 -2
  11. package/lib/engine/engine_lifecycle_api.js +14 -2
  12. package/lib/engine/engine_lifecycle_api.js.map +1 -1
  13. package/lib/engine/engine_lifecycle_functions_internal.d.ts +4 -2
  14. package/lib/engine/engine_lifecycle_functions_internal.js.map +1 -1
  15. package/lib/engine/engine_physics_rapier.d.ts +3 -0
  16. package/lib/engine/engine_physics_rapier.js +16 -8
  17. package/lib/engine/engine_physics_rapier.js.map +1 -1
  18. package/lib/engine-components/Camera.d.ts +6 -0
  19. package/lib/engine-components/Camera.js +8 -0
  20. package/lib/engine-components/Camera.js.map +1 -1
  21. package/package.json +1 -1
  22. package/plugins/types/needleConfig.d.ts +11 -1
  23. package/plugins/types/userconfig.d.ts +1 -0
  24. package/plugins/vite/config.js +11 -3
  25. package/plugins/vite/facebook-instant-games.js +100 -0
  26. package/plugins/vite/index.js +5 -1
  27. package/src/engine/codegen/register_types.ts +2 -2
  28. package/src/engine/engine_context.ts +1 -0
  29. package/src/engine/engine_lifecycle_api.ts +16 -2
  30. package/src/engine/engine_lifecycle_functions_internal.ts +5 -3
  31. package/src/engine/engine_physics_rapier.ts +16 -8
  32. package/src/engine-components/Camera.ts +9 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.25.5] - 2023-11-24
8
+ - Add: vite plugin for facebook deployment
9
+ - Fix: Physics collider center being not applied correctly with rotated parent
10
+
11
+ ## [3.25.4] - 2023-11-23
12
+ - Add: `onInitialized(ctx => {...})` and `onBeforeRender` event functions
13
+ - Add: `Camera.cullingLayer` property
14
+ - Fix: Physics collider center being modified causing rapier runtime error
15
+
7
16
  ## [3.25.3] - 2023-11-23
8
17
  - Add: `onStart((ctx)=>{})` and `onUpdate((ctx)=>{})` functions API
9
18
  - Fix: AudioSource not starting autoplay anymore after registered user interaction (which is necessary to playback audio in the browser)