@react-three/fiber 8.15.11 → 8.15.13

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 (28) hide show
  1. package/CHANGELOG.md +913 -901
  2. package/dist/declarations/src/core/events.d.ts +93 -93
  3. package/dist/declarations/src/core/hooks.d.ts +57 -54
  4. package/dist/declarations/src/core/index.d.ts +87 -87
  5. package/dist/declarations/src/core/loop.d.ts +33 -33
  6. package/dist/declarations/src/core/renderer.d.ts +58 -58
  7. package/dist/declarations/src/core/store.d.ts +137 -137
  8. package/dist/declarations/src/core/utils.d.ts +125 -124
  9. package/dist/declarations/src/index.d.ts +12 -12
  10. package/dist/declarations/src/native/Canvas.d.ts +14 -14
  11. package/dist/declarations/src/native/events.d.ts +5 -5
  12. package/dist/declarations/src/native/polyfills.d.ts +1 -1
  13. package/dist/declarations/src/native.d.ts +12 -12
  14. package/dist/declarations/src/three-types.d.ts +392 -392
  15. package/dist/declarations/src/web/Canvas.d.ts +24 -24
  16. package/dist/declarations/src/web/events.d.ts +5 -5
  17. package/dist/{index-b3e44f21.cjs.dev.js → index-0ee5ddc9.cjs.dev.js} +75 -76
  18. package/dist/{index-e462a173.cjs.prod.js → index-2003c0bb.cjs.prod.js} +75 -76
  19. package/dist/{index-db8af450.esm.js → index-710fb441.esm.js} +75 -76
  20. package/dist/react-three-fiber.cjs.dev.js +4 -4
  21. package/dist/react-three-fiber.cjs.prod.js +4 -4
  22. package/dist/react-three-fiber.esm.js +5 -5
  23. package/native/dist/react-three-fiber-native.cjs.dev.js +15 -9
  24. package/native/dist/react-three-fiber-native.cjs.prod.js +15 -9
  25. package/native/dist/react-three-fiber-native.esm.js +16 -10
  26. package/native/package.json +5 -5
  27. package/package.json +1 -1
  28. package/readme.md +253 -253
package/CHANGELOG.md CHANGED
@@ -1,901 +1,913 @@
1
- # @react-three/fiber
2
-
3
- ## 8.15.11
4
-
5
- ### Patch Changes
6
-
7
- - 3d9af04d: fix: update import from three examples
8
-
9
- ## 8.15.10
10
-
11
- ### Patch Changes
12
-
13
- - 49158164: fix: don't recursively dispose primitives
14
-
15
- ## 8.15.9
16
-
17
- ### Patch Changes
18
-
19
- - 4cbc5530: fix(native): deopt iOS blob URI path
20
-
21
- ## 8.15.8
22
-
23
- ### Patch Changes
24
-
25
- - 70680832: fix: revert stable sort
26
-
27
- ## 8.15.7
28
-
29
- ### Patch Changes
30
-
31
- - 07e39e2e: fix(types): remove use of Object3D generic
32
-
33
- ## 8.15.6
34
-
35
- ### Patch Changes
36
-
37
- - 7bb2950b: experiment: stable object sort
38
-
39
- ## 8.15.5
40
-
41
- ### Patch Changes
42
-
43
- - 0e44fd8b: fix(types): preserve deprecated JSX annotations
44
-
45
- ## 8.15.4
46
-
47
- ### Patch Changes
48
-
49
- - 634e5db5: fix(native): harden Blob URI check for Android
50
-
51
- ## 8.15.3
52
-
53
- ### Patch Changes
54
-
55
- - beab4344: fix(native): workaround Android content policy for Blob URI
56
-
57
- ## 8.15.2
58
-
59
- ### Patch Changes
60
-
61
- - 086d3932: fix: size check and raycaster camera
62
-
63
- ## 8.15.1
64
-
65
- ### Patch Changes
66
-
67
- - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
68
-
69
- ## 8.15.0
70
-
71
- ### Minor Changes
72
-
73
- - cca8b6bb: feat: export buildGraph
74
-
75
- ## 8.14.7
76
-
77
- ### Patch Changes
78
-
79
- - 0f63a287: fix(native): restore polyfill conversions, drop networking
80
-
81
- ## 8.14.6
82
-
83
- ### Patch Changes
84
-
85
- - 465fa0fb: fix(native): revert usage of networking stack
86
-
87
- ## 8.14.5
88
-
89
- ### Patch Changes
90
-
91
- - f372a5b5: fix(applyProps): loosen copy identity in dev
92
-
93
- ## 8.14.4
94
-
95
- ### Patch Changes
96
-
97
- - dc7e5739: fix(native): amend BlobManager over globals
98
-
99
- ## 8.14.3
100
-
101
- ### Patch Changes
102
-
103
- - d77b0990: fix(native): drop fsstat for react-native-web
104
-
105
- ## 8.14.2
106
-
107
- ### Patch Changes
108
-
109
- - 33e8baef: fix: native perf, loader types
110
-
111
- ## 8.14.1
112
-
113
- ### Patch Changes
114
-
115
- - c99907bf: fix(native): prefer local uri for fs
116
-
117
- ## 8.14.0
118
-
119
- ### Minor Changes
120
-
121
- - 89e96bf4: feat: react-native-web, native globals fixes
122
-
123
- ## 8.13.9
124
-
125
- ### Patch Changes
126
-
127
- - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
128
-
129
- ## 8.13.8
130
-
131
- ### Patch Changes
132
-
133
- - 5da26d52: fix(useLoader): dispose loaders
134
-
135
- ## 8.13.7
136
-
137
- ### Patch Changes
138
-
139
- - 37b9502a: fix(Canvas): pass scene prop
140
-
141
- ## 8.13.6
142
-
143
- ### Patch Changes
144
-
145
- - 0597495c: fix: harden XR init against Renderer shim
146
-
147
- ## 8.13.5
148
-
149
- ### Patch Changes
150
-
151
- - 7a3b543b: fix: three type regressions
152
-
153
- ## 8.13.4
154
-
155
- ### Patch Changes
156
-
157
- - 824ee0f7: fix: safely diff instances
158
-
159
- ## 8.13.3
160
-
161
- ### Patch Changes
162
-
163
- - ffdb5fc4: revert nested portals, up suspend-react
164
-
165
- ## 8.13.2
166
-
167
- ### Patch Changes
168
-
169
- - bbabdf07: update suspend-react
170
-
171
- ## 8.13.1
172
-
173
- ### Patch Changes
174
-
175
- - c9fe03ba: fix: primitive swap and reactive portals
176
-
177
- ## 8.13.0
178
-
179
- ### Minor Changes
180
-
181
- - ecfc48b7: feat: CanvasProps alias, respect r152 color management
182
-
183
- ## 8.12.2
184
-
185
- ### Patch Changes
186
-
187
- - c5193468: fix: safeguard window.devicePixelRatio
188
-
189
- ## 8.12.1
190
-
191
- ### Patch Changes
192
-
193
- - 571f07ac: fix: safeguard window.devicePixelRatio
194
-
195
- ## 8.12.0
196
-
197
- ### Minor Changes
198
-
199
- - 1928d095: feat: `scene` render prop for custom THREE.Scene
200
-
201
- ## 8.11.11
202
-
203
- ### Patch Changes
204
-
205
- - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
206
-
207
- ## 8.11.10
208
-
209
- ### Patch Changes
210
-
211
- - 12907836: fix onpointerlostcapture which fired before pointerup
212
-
213
- ## 8.11.9
214
-
215
- ### Patch Changes
216
-
217
- - 6b5f572c: fix: treeshake THREE.ColorManagement
218
-
219
- ## 8.11.8
220
-
221
- ### Patch Changes
222
-
223
- - 350cd3f3: fix(Canvas): inline render-effect
224
-
225
- ## 8.11.7
226
-
227
- ### Patch Changes
228
-
229
- - 96af62d5: fix: don't overwrite public cameras
230
-
231
- ## 8.11.6
232
-
233
- ### Patch Changes
234
-
235
- - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
236
-
237
- ## 8.11.5
238
-
239
- ### Patch Changes
240
-
241
- - c658f763: fix: update canvas prop types
242
-
243
- ## 8.11.4
244
-
245
- ### Patch Changes
246
-
247
- - 970aa58b: fix: play nice with offscreencanvas
248
-
249
- ## 8.11.3
250
-
251
- ### Patch Changes
252
-
253
- - 2bce569c: fix: progressively set colormanagement
254
-
255
- ## 8.11.2
256
-
257
- ### Patch Changes
258
-
259
- - 41d655cd: fix: hmr, srgb encode
260
-
261
- ## 8.11.1
262
-
263
- ### Patch Changes
264
-
265
- - 58cadeff: fix: skip circular onUpdate calls
266
-
267
- ## 8.11.0
268
-
269
- ### Minor Changes
270
-
271
- - 2917a47b: events.update, allow raycast w/o user interaction
272
- - 521bfb07: events.update, allow raycast w/o user interaction
273
-
274
- ## 8.10.4
275
-
276
- ### Patch Changes
277
-
278
- - d9e6316d: fix: transpile class properties
279
-
280
- ## 8.10.3
281
-
282
- ### Patch Changes
283
-
284
- - d06d2879: fix: align useLoader type, public fields from builds
285
-
286
- ## 8.10.2
287
-
288
- ### Patch Changes
289
-
290
- - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
291
-
292
- ## 8.10.1
293
-
294
- ### Patch Changes
295
-
296
- - bfa0298f: fix memoized identity
297
-
298
- ## 8.10.0
299
-
300
- ### Minor Changes
301
-
302
- - 24c4dba4: shortcut for shadow type
303
-
304
- ## 8.9.2
305
-
306
- ### Patch Changes
307
-
308
- - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
309
-
310
- ## 8.9.1
311
-
312
- ### Patch Changes
313
-
314
- - 0cf11797: fix(events): type spread event props
315
-
316
- ## 8.9.0
317
-
318
- ### Minor Changes
319
-
320
- - a458b4dd: fix(loop): export flush methods and types
321
-
322
- ## 8.8.11
323
-
324
- ### Patch Changes
325
-
326
- - 2068f0cc: fix: events pointerlock, useLoader extension types
327
-
328
- ## 8.8.10
329
-
330
- ### Patch Changes
331
-
332
- - 00c24718: fix: invalidate pierced props
333
-
334
- ## 8.8.9
335
-
336
- ### Patch Changes
337
-
338
- - 4254400e: fix(createPortal): use correct JSX type
339
-
340
- ## 8.8.8
341
-
342
- ### Patch Changes
343
-
344
- - fcb183e3: fix: call onUpdate for attached children prop update
345
-
346
- ## 8.8.7
347
-
348
- ### Patch Changes
349
-
350
- - bedb16e7: fix: prefer named functions, for loops in hot paths
351
-
352
- ## 8.8.6
353
-
354
- ### Patch Changes
355
-
356
- - 02a558bb: fix: upgrade deps
357
-
358
- ## 8.8.5
359
-
360
- ### Patch Changes
361
-
362
- - 530a06d6: fix: upgrade deps to work-around CRA
363
-
364
- ## 8.8.4
365
-
366
- ### Patch Changes
367
-
368
- - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
369
-
370
- ## 8.8.3
371
-
372
- ### Patch Changes
373
-
374
- - 9f571239: fix #2506, events should fall back to rootstate"
375
-
376
- ## 8.8.2
377
-
378
- ### Patch Changes
379
-
380
- - dc389ed6: fix(Canvas): prevent remount on context update
381
-
382
- ## 8.8.1
383
-
384
- ### Patch Changes
385
-
386
- - 370d3ae5: refactor: pull context bridge from its-fine
387
-
388
- ## 8.8.0
389
-
390
- ### Minor Changes
391
-
392
- - 46d8b440: bridge cross-container context
393
-
394
- ## 8.7.4
395
-
396
- ### Patch Changes
397
-
398
- - 259c8895: fix: use self to get global context before window
399
-
400
- ## 8.7.3
401
-
402
- ### Patch Changes
403
-
404
- - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
405
-
406
- ## 8.7.2
407
-
408
- ### Patch Changes
409
-
410
- - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
411
-
412
- ## 8.7.1
413
-
414
- ### Patch Changes
415
-
416
- - 962cc270: fix: allow canvas eventsource to be a ref
417
-
418
- ## 8.7.0
419
-
420
- ### Minor Changes
421
-
422
- - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
423
-
424
- ## 8.6.2
425
-
426
- ### Patch Changes
427
-
428
- - 57c12e9c: fix(types): @react-three/drei declaration files
429
-
430
- ## 8.6.1
431
-
432
- ### Patch Changes
433
-
434
- - 7a0b5670: fix(core): don't append to unmounted containers
435
-
436
- ## 8.6.0
437
-
438
- ### Minor Changes
439
-
440
- - 85c80e70: eventsource and eventprefix on the canvas component
441
-
442
- ## 8.5.1
443
-
444
- ### Patch Changes
445
-
446
- - 87821d9: fix: null-check instance.children on reconstruct
447
-
448
- ## 8.5.0
449
-
450
- ### Minor Changes
451
-
452
- - edc8252: feat: handle primitive children, auto-attach via instanceof
453
-
454
- ## 8.3.1
455
-
456
- ### Patch Changes
457
-
458
- - aaeb2b8: fix(types): accept readonly arrays for vector props
459
-
460
- ## 8.3.0
461
-
462
- ### Minor Changes
463
-
464
- - 9c450ec: feat: improve errors
465
-
466
- ## 8.2.3
467
-
468
- ### Patch Changes
469
-
470
- - b8d2eab: fix: improve useLoader signature, initial size on createRoot
471
-
472
- ## 8.2.2
473
-
474
- ### Patch Changes
475
-
476
- - acd6f04: fix: warn on stray text
477
-
478
- ## 8.2.1
479
-
480
- ### Patch Changes
481
-
482
- - 25e35a1: fix: prefer useLayoutEffect in react-native
483
-
484
- ## 8.2.0
485
-
486
- ### Minor Changes
487
-
488
- - 9770d7d: feat: expose ThreeElements interface for JSX elements
489
-
490
- ## 8.1.0
491
-
492
- ### Minor Changes
493
-
494
- - 8d0f708c: Expose position information in state.size
495
-
496
- ## 8.0.27
497
-
498
- ### Patch Changes
499
-
500
- - 7940995: fix: resume on xrsession end, export internal events
501
-
502
- ## 8.0.26
503
-
504
- ### Patch Changes
505
-
506
- - 7b6df9df: fix: infinite loop updating cam viewport
507
-
508
- ## 8.0.25
509
-
510
- ### Patch Changes
511
-
512
- - b7cd0f42: update viewport on camera changes
513
-
514
- ## 8.0.24
515
-
516
- ### Patch Changes
517
-
518
- - ee8e785: fix: attach timings
519
-
520
- ## 8.0.23
521
-
522
- ### Patch Changes
523
-
524
- - 29d03c64: revert multi attach
525
-
526
- ## 8.0.22
527
-
528
- ### Patch Changes
529
-
530
- - 419e854: fix: always prepare primitives
531
-
532
- ## 8.0.21
533
-
534
- ### Patch Changes
535
-
536
- - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
537
-
538
- ## 8.0.20
539
-
540
- ### Patch Changes
541
-
542
- - 4c87bce: fix: attach, devtools, and perf fixes
543
-
544
- ## 8.0.19
545
-
546
- ### Patch Changes
547
-
548
- - 360b45a: fix: handle attach on reconstruct
549
-
550
- ## 8.0.18
551
-
552
- ### Patch Changes
553
-
554
- - be567c1: fix: suspense attach and three compat in webpack
555
-
556
- ## 8.0.17
557
-
558
- ### Patch Changes
559
-
560
- - 9e3369e: fix dom resize, improve native tree shaking
561
-
562
- ## 8.0.16
563
-
564
- ### Patch Changes
565
-
566
- - 669c45c: correctly type useLoader results
567
-
568
- ## 8.0.15
569
-
570
- ### Patch Changes
571
-
572
- - c4715d5f: allow invalidate to preempt more than 1 frame
573
-
574
- ## 8.0.14
575
-
576
- ### Patch Changes
577
-
578
- - 5559a119: Add support for recoverable errors
579
-
580
- ## 8.0.13
581
-
582
- ### Patch Changes
583
-
584
- - 9d77d8e2: fix: detach attribute removal
585
-
586
- ## 8.0.12
587
-
588
- ### Patch Changes
589
-
590
- - 3d10413f: fix portal layers
591
-
592
- ## 8.0.11
593
-
594
- ### Patch Changes
595
-
596
- - 5167b1e4: memoized.args can be undefined
597
-
598
- ## 8.0.10
599
-
600
- ### Patch Changes
601
-
602
- - eb321afd: fix: remount bug, allow portals to inject custom size
603
-
604
- ## 8.0.9
605
-
606
- ### Patch Changes
607
-
608
- - 624df949: fix: canvas unmount race condition"
609
-
610
- ## 8.0.8
611
-
612
- ### Patch Changes
613
-
614
- - 952a566: fix: react SSR
615
-
616
- ## 8.0.7
617
-
618
- ### Patch Changes
619
-
620
- - f63806b: fix: react SSR
621
-
622
- ## 8.0.6
623
-
624
- ### Patch Changes
625
-
626
- - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
627
-
628
- ## 8.0.5
629
-
630
- ### Patch Changes
631
-
632
- - 227c328: fix pointer for root and portals
633
-
634
- ## 8.0.4
635
-
636
- ### Patch Changes
637
-
638
- - e981a72: fix: mock three color management, loosen peer dep
639
-
640
- ## 8.0.3
641
-
642
- ### Patch Changes
643
-
644
- - 3252aed: setevents needs to spread and be mirrored in portals
645
-
646
- ## 8.0.2
647
-
648
- ### Patch Changes
649
-
650
- - 8035d1f: fix: legacy mode
651
-
652
- ## 8.0.1
653
-
654
- ### Patch Changes
655
-
656
- - 26db195: add legacy flag to turn of three.colormanagement
657
-
658
- ## 8.0.0
659
-
660
- ### Major Changes
661
-
662
- - 385ba9c: v8 major, react-18 compat
663
- - 04c07b8: v8 major, react-18 compat
664
-
665
- ### Patch Changes
666
-
667
- - 347ea79: new beta for library testing
668
-
669
- ## 8.0.0-beta.0
670
-
671
- ### Major Changes
672
-
673
- - 385ba9c: v8 major, react-18 compat
674
-
675
- ## 8.0.0-beta.0
676
-
677
- ### Patch Changes
678
-
679
- - cf6316c: new beta for library testing
680
-
681
- ## 7.0.25
682
-
683
- ### Patch Changes
684
-
685
- - 8698734: Release latest patches
686
-
687
- ## 7.0.24
688
-
689
- ### Patch Changes
690
-
691
- - 7f46ddf: cleanup captured pointers when released (#1914)
692
-
693
- ## 7.0.23
694
-
695
- ### Patch Changes
696
-
697
- - 30d38b1: remove logs
698
-
699
- ## 7.0.22
700
-
701
- ### Patch Changes
702
-
703
- - 259e1fa: add camera:manual
704
-
705
- ## 7.0.21
706
-
707
- ### Patch Changes
708
-
709
- - 65e4147: up usemeasure, add last event to internals"
710
-
711
- ## 7.0.20
712
-
713
- ### Patch Changes
714
-
715
- - 54cb0fd: update react-use-measure, allow it to use the offsetSize
716
-
717
- ## 7.0.19
718
-
719
- ### Patch Changes
720
-
721
- - 7aa2eab: fix: remove zustand subcribe selector
722
-
723
- ## 7.0.18
724
-
725
- ### Patch Changes
726
-
727
- - 6780f58: fix unmount pointer capture
728
-
729
- ## 7.0.17
730
-
731
- ### Patch Changes
732
-
733
- - 894c550: fix: event count
734
-
735
- ## 7.0.16
736
-
737
- ### Patch Changes
738
-
739
- - c7a4220: patch: applyprops returns the same instance
740
-
741
- ## 7.0.15
742
-
743
- ### Patch Changes
744
-
745
- - c5645e8: fix primitve leftovers on switch
746
-
747
- ## 7.0.14
748
-
749
- ### Patch Changes
750
-
751
- - 05af996: fix: revert the is function
752
-
753
- ## 7.0.13
754
-
755
- ### Patch Changes
756
-
757
- - f256558: fix(core): don't overwrite camera rotation
758
- - 51e6fc9: fix(core): safely handle external instances
759
-
760
- ## 7.0.12
761
-
762
- ### Patch Changes
763
-
764
- - 0df6073: fix: missed events
765
-
766
- ## 7.0.11
767
-
768
- ### Patch Changes
769
-
770
- - 62b0a3a: fix: event order of missed pointers
771
-
772
- ## 7.0.10
773
-
774
- ### Patch Changes
775
-
776
- - e019dd4: fixes
777
-
778
- ## 7.0.9
779
-
780
- ### Patch Changes
781
-
782
- - cd266e4: Fix diffProps dashed keys
783
-
784
- ## 7.0.8
785
-
786
- ### Patch Changes
787
-
788
- - 6f68406: Allow getCurrentViewport to receive an array
789
-
790
- ## 7.0.7
791
-
792
- ### Patch Changes
793
-
794
- - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
795
-
796
- ## 7.0.6
797
-
798
- ### Patch Changes
799
-
800
- - fb052ad: Fix babel-env browserslist transpiling into old code"
801
-
802
- ## 7.0.5
803
-
804
- ### Patch Changes
805
-
806
- - c97794a: Add useLoader.clear(Loader, input)
807
-
808
- ## 7.0.4
809
-
810
- ### Patch Changes
811
-
812
- - 974ecfb: Allow elements to define attachFns for specific mount/unmount
813
-
814
- ## 7.0.2
815
-
816
- ### Patch Changes
817
-
818
- - a97aca3: Add controls state field
819
- - 4c703d6: fix rttr didn't work with r130
820
-
821
- ## 7.0.0
822
-
823
- ### Major Changes
824
-
825
- - 96ae1ad: fix javascript interpreting negative renderpriority as positive
826
-
827
- This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
828
-
829
- ```jsx
830
- useFrame(..., -1)
831
- ```
832
-
833
- Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
834
-
835
- ```jsx
836
- function Render() {
837
- // Takes over the render-loop, the user has the responsibility to render
838
- useFrame(({ gl, scene, camera }) => {
839
- gl.render(scene, camera)
840
- }, 1)
841
-
842
- function RenderOnTop() {
843
- // This will render on top of the previous call
844
- useFrame(({ gl, ... }) => {
845
- gl.render(...)
846
- }, 2)
847
-
848
- function A() {
849
- // Will *not* take over the render-loop, negative indices can still be useful for sorting
850
- useFrame(() => ..., -1)
851
-
852
- function B() {
853
- // B's useFrame will execute *after* A's
854
- useFrame(() => ..., -2)
855
- ```
856
-
857
- ## 6.2.3
858
-
859
- ### Patch Changes
860
-
861
- - 26bc7eb: typescript changes
862
-
863
- ## 6.2.2
864
-
865
- ### Patch Changes
866
-
867
- - 4f44a2c: use more helpful name with event handling in rttr
868
-
869
- ## 6.2.1
870
-
871
- ### Patch Changes
872
-
873
- - Fix stopPropagation logic
874
-
875
- ## 6.2.0
876
-
877
- ### Minor Changes
878
-
879
- - Allow object3d instances to be attached
880
-
881
- ## 6.1.5
882
-
883
- ### Patch Changes
884
-
885
- - fix(rttr): if children is undefined return an array to map with
886
-
887
- ## 6.1.4
888
-
889
- ### Patch Changes
890
-
891
- - 6faa090: Add shape to types, exclude event functions from event data
892
-
893
- ## 6.1.3
894
-
895
- ### Patch Changes
896
-
897
- - 71e72c0: Fix constructor args with attached children (#1348)
898
- - 015fc03: Only set up pointer/wheel events as passive
899
- - a160e08: Fix event setPointerCapture and stopPropagation.
900
-
901
- ## 6.1.2
1
+ # @react-three/fiber
2
+
3
+ ## 8.15.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 0a399f6d: fix(native): use MSAA for antialias on iOS
8
+
9
+ ## 8.15.12
10
+
11
+ ### Patch Changes
12
+
13
+ - 496d6f0d: fix: useLoader and XRFrame type fixes
14
+
15
+ ## 8.15.11
16
+
17
+ ### Patch Changes
18
+
19
+ - 3d9af04d: fix: update import from three examples
20
+
21
+ ## 8.15.10
22
+
23
+ ### Patch Changes
24
+
25
+ - 49158164: fix: don't recursively dispose primitives
26
+
27
+ ## 8.15.9
28
+
29
+ ### Patch Changes
30
+
31
+ - 4cbc5530: fix(native): deopt iOS blob URI path
32
+
33
+ ## 8.15.8
34
+
35
+ ### Patch Changes
36
+
37
+ - 70680832: fix: revert stable sort
38
+
39
+ ## 8.15.7
40
+
41
+ ### Patch Changes
42
+
43
+ - 07e39e2e: fix(types): remove use of Object3D generic
44
+
45
+ ## 8.15.6
46
+
47
+ ### Patch Changes
48
+
49
+ - 7bb2950b: experiment: stable object sort
50
+
51
+ ## 8.15.5
52
+
53
+ ### Patch Changes
54
+
55
+ - 0e44fd8b: fix(types): preserve deprecated JSX annotations
56
+
57
+ ## 8.15.4
58
+
59
+ ### Patch Changes
60
+
61
+ - 634e5db5: fix(native): harden Blob URI check for Android
62
+
63
+ ## 8.15.3
64
+
65
+ ### Patch Changes
66
+
67
+ - beab4344: fix(native): workaround Android content policy for Blob URI
68
+
69
+ ## 8.15.2
70
+
71
+ ### Patch Changes
72
+
73
+ - 086d3932: fix: size check and raycaster camera
74
+
75
+ ## 8.15.1
76
+
77
+ ### Patch Changes
78
+
79
+ - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
80
+
81
+ ## 8.15.0
82
+
83
+ ### Minor Changes
84
+
85
+ - cca8b6bb: feat: export buildGraph
86
+
87
+ ## 8.14.7
88
+
89
+ ### Patch Changes
90
+
91
+ - 0f63a287: fix(native): restore polyfill conversions, drop networking
92
+
93
+ ## 8.14.6
94
+
95
+ ### Patch Changes
96
+
97
+ - 465fa0fb: fix(native): revert usage of networking stack
98
+
99
+ ## 8.14.5
100
+
101
+ ### Patch Changes
102
+
103
+ - f372a5b5: fix(applyProps): loosen copy identity in dev
104
+
105
+ ## 8.14.4
106
+
107
+ ### Patch Changes
108
+
109
+ - dc7e5739: fix(native): amend BlobManager over globals
110
+
111
+ ## 8.14.3
112
+
113
+ ### Patch Changes
114
+
115
+ - d77b0990: fix(native): drop fsstat for react-native-web
116
+
117
+ ## 8.14.2
118
+
119
+ ### Patch Changes
120
+
121
+ - 33e8baef: fix: native perf, loader types
122
+
123
+ ## 8.14.1
124
+
125
+ ### Patch Changes
126
+
127
+ - c99907bf: fix(native): prefer local uri for fs
128
+
129
+ ## 8.14.0
130
+
131
+ ### Minor Changes
132
+
133
+ - 89e96bf4: feat: react-native-web, native globals fixes
134
+
135
+ ## 8.13.9
136
+
137
+ ### Patch Changes
138
+
139
+ - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
140
+
141
+ ## 8.13.8
142
+
143
+ ### Patch Changes
144
+
145
+ - 5da26d52: fix(useLoader): dispose loaders
146
+
147
+ ## 8.13.7
148
+
149
+ ### Patch Changes
150
+
151
+ - 37b9502a: fix(Canvas): pass scene prop
152
+
153
+ ## 8.13.6
154
+
155
+ ### Patch Changes
156
+
157
+ - 0597495c: fix: harden XR init against Renderer shim
158
+
159
+ ## 8.13.5
160
+
161
+ ### Patch Changes
162
+
163
+ - 7a3b543b: fix: three type regressions
164
+
165
+ ## 8.13.4
166
+
167
+ ### Patch Changes
168
+
169
+ - 824ee0f7: fix: safely diff instances
170
+
171
+ ## 8.13.3
172
+
173
+ ### Patch Changes
174
+
175
+ - ffdb5fc4: revert nested portals, up suspend-react
176
+
177
+ ## 8.13.2
178
+
179
+ ### Patch Changes
180
+
181
+ - bbabdf07: update suspend-react
182
+
183
+ ## 8.13.1
184
+
185
+ ### Patch Changes
186
+
187
+ - c9fe03ba: fix: primitive swap and reactive portals
188
+
189
+ ## 8.13.0
190
+
191
+ ### Minor Changes
192
+
193
+ - ecfc48b7: feat: CanvasProps alias, respect r152 color management
194
+
195
+ ## 8.12.2
196
+
197
+ ### Patch Changes
198
+
199
+ - c5193468: fix: safeguard window.devicePixelRatio
200
+
201
+ ## 8.12.1
202
+
203
+ ### Patch Changes
204
+
205
+ - 571f07ac: fix: safeguard window.devicePixelRatio
206
+
207
+ ## 8.12.0
208
+
209
+ ### Minor Changes
210
+
211
+ - 1928d095: feat: `scene` render prop for custom THREE.Scene
212
+
213
+ ## 8.11.11
214
+
215
+ ### Patch Changes
216
+
217
+ - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
218
+
219
+ ## 8.11.10
220
+
221
+ ### Patch Changes
222
+
223
+ - 12907836: fix onpointerlostcapture which fired before pointerup
224
+
225
+ ## 8.11.9
226
+
227
+ ### Patch Changes
228
+
229
+ - 6b5f572c: fix: treeshake THREE.ColorManagement
230
+
231
+ ## 8.11.8
232
+
233
+ ### Patch Changes
234
+
235
+ - 350cd3f3: fix(Canvas): inline render-effect
236
+
237
+ ## 8.11.7
238
+
239
+ ### Patch Changes
240
+
241
+ - 96af62d5: fix: don't overwrite public cameras
242
+
243
+ ## 8.11.6
244
+
245
+ ### Patch Changes
246
+
247
+ - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
248
+
249
+ ## 8.11.5
250
+
251
+ ### Patch Changes
252
+
253
+ - c658f763: fix: update canvas prop types
254
+
255
+ ## 8.11.4
256
+
257
+ ### Patch Changes
258
+
259
+ - 970aa58b: fix: play nice with offscreencanvas
260
+
261
+ ## 8.11.3
262
+
263
+ ### Patch Changes
264
+
265
+ - 2bce569c: fix: progressively set colormanagement
266
+
267
+ ## 8.11.2
268
+
269
+ ### Patch Changes
270
+
271
+ - 41d655cd: fix: hmr, srgb encode
272
+
273
+ ## 8.11.1
274
+
275
+ ### Patch Changes
276
+
277
+ - 58cadeff: fix: skip circular onUpdate calls
278
+
279
+ ## 8.11.0
280
+
281
+ ### Minor Changes
282
+
283
+ - 2917a47b: events.update, allow raycast w/o user interaction
284
+ - 521bfb07: events.update, allow raycast w/o user interaction
285
+
286
+ ## 8.10.4
287
+
288
+ ### Patch Changes
289
+
290
+ - d9e6316d: fix: transpile class properties
291
+
292
+ ## 8.10.3
293
+
294
+ ### Patch Changes
295
+
296
+ - d06d2879: fix: align useLoader type, public fields from builds
297
+
298
+ ## 8.10.2
299
+
300
+ ### Patch Changes
301
+
302
+ - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
303
+
304
+ ## 8.10.1
305
+
306
+ ### Patch Changes
307
+
308
+ - bfa0298f: fix memoized identity
309
+
310
+ ## 8.10.0
311
+
312
+ ### Minor Changes
313
+
314
+ - 24c4dba4: shortcut for shadow type
315
+
316
+ ## 8.9.2
317
+
318
+ ### Patch Changes
319
+
320
+ - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
321
+
322
+ ## 8.9.1
323
+
324
+ ### Patch Changes
325
+
326
+ - 0cf11797: fix(events): type spread event props
327
+
328
+ ## 8.9.0
329
+
330
+ ### Minor Changes
331
+
332
+ - a458b4dd: fix(loop): export flush methods and types
333
+
334
+ ## 8.8.11
335
+
336
+ ### Patch Changes
337
+
338
+ - 2068f0cc: fix: events pointerlock, useLoader extension types
339
+
340
+ ## 8.8.10
341
+
342
+ ### Patch Changes
343
+
344
+ - 00c24718: fix: invalidate pierced props
345
+
346
+ ## 8.8.9
347
+
348
+ ### Patch Changes
349
+
350
+ - 4254400e: fix(createPortal): use correct JSX type
351
+
352
+ ## 8.8.8
353
+
354
+ ### Patch Changes
355
+
356
+ - fcb183e3: fix: call onUpdate for attached children prop update
357
+
358
+ ## 8.8.7
359
+
360
+ ### Patch Changes
361
+
362
+ - bedb16e7: fix: prefer named functions, for loops in hot paths
363
+
364
+ ## 8.8.6
365
+
366
+ ### Patch Changes
367
+
368
+ - 02a558bb: fix: upgrade deps
369
+
370
+ ## 8.8.5
371
+
372
+ ### Patch Changes
373
+
374
+ - 530a06d6: fix: upgrade deps to work-around CRA
375
+
376
+ ## 8.8.4
377
+
378
+ ### Patch Changes
379
+
380
+ - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
381
+
382
+ ## 8.8.3
383
+
384
+ ### Patch Changes
385
+
386
+ - 9f571239: fix #2506, events should fall back to rootstate"
387
+
388
+ ## 8.8.2
389
+
390
+ ### Patch Changes
391
+
392
+ - dc389ed6: fix(Canvas): prevent remount on context update
393
+
394
+ ## 8.8.1
395
+
396
+ ### Patch Changes
397
+
398
+ - 370d3ae5: refactor: pull context bridge from its-fine
399
+
400
+ ## 8.8.0
401
+
402
+ ### Minor Changes
403
+
404
+ - 46d8b440: bridge cross-container context
405
+
406
+ ## 8.7.4
407
+
408
+ ### Patch Changes
409
+
410
+ - 259c8895: fix: use self to get global context before window
411
+
412
+ ## 8.7.3
413
+
414
+ ### Patch Changes
415
+
416
+ - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
417
+
418
+ ## 8.7.2
419
+
420
+ ### Patch Changes
421
+
422
+ - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
423
+
424
+ ## 8.7.1
425
+
426
+ ### Patch Changes
427
+
428
+ - 962cc270: fix: allow canvas eventsource to be a ref
429
+
430
+ ## 8.7.0
431
+
432
+ ### Minor Changes
433
+
434
+ - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
435
+
436
+ ## 8.6.2
437
+
438
+ ### Patch Changes
439
+
440
+ - 57c12e9c: fix(types): @react-three/drei declaration files
441
+
442
+ ## 8.6.1
443
+
444
+ ### Patch Changes
445
+
446
+ - 7a0b5670: fix(core): don't append to unmounted containers
447
+
448
+ ## 8.6.0
449
+
450
+ ### Minor Changes
451
+
452
+ - 85c80e70: eventsource and eventprefix on the canvas component
453
+
454
+ ## 8.5.1
455
+
456
+ ### Patch Changes
457
+
458
+ - 87821d9: fix: null-check instance.children on reconstruct
459
+
460
+ ## 8.5.0
461
+
462
+ ### Minor Changes
463
+
464
+ - edc8252: feat: handle primitive children, auto-attach via instanceof
465
+
466
+ ## 8.3.1
467
+
468
+ ### Patch Changes
469
+
470
+ - aaeb2b8: fix(types): accept readonly arrays for vector props
471
+
472
+ ## 8.3.0
473
+
474
+ ### Minor Changes
475
+
476
+ - 9c450ec: feat: improve errors
477
+
478
+ ## 8.2.3
479
+
480
+ ### Patch Changes
481
+
482
+ - b8d2eab: fix: improve useLoader signature, initial size on createRoot
483
+
484
+ ## 8.2.2
485
+
486
+ ### Patch Changes
487
+
488
+ - acd6f04: fix: warn on stray text
489
+
490
+ ## 8.2.1
491
+
492
+ ### Patch Changes
493
+
494
+ - 25e35a1: fix: prefer useLayoutEffect in react-native
495
+
496
+ ## 8.2.0
497
+
498
+ ### Minor Changes
499
+
500
+ - 9770d7d: feat: expose ThreeElements interface for JSX elements
501
+
502
+ ## 8.1.0
503
+
504
+ ### Minor Changes
505
+
506
+ - 8d0f708c: Expose position information in state.size
507
+
508
+ ## 8.0.27
509
+
510
+ ### Patch Changes
511
+
512
+ - 7940995: fix: resume on xrsession end, export internal events
513
+
514
+ ## 8.0.26
515
+
516
+ ### Patch Changes
517
+
518
+ - 7b6df9df: fix: infinite loop updating cam viewport
519
+
520
+ ## 8.0.25
521
+
522
+ ### Patch Changes
523
+
524
+ - b7cd0f42: update viewport on camera changes
525
+
526
+ ## 8.0.24
527
+
528
+ ### Patch Changes
529
+
530
+ - ee8e785: fix: attach timings
531
+
532
+ ## 8.0.23
533
+
534
+ ### Patch Changes
535
+
536
+ - 29d03c64: revert multi attach
537
+
538
+ ## 8.0.22
539
+
540
+ ### Patch Changes
541
+
542
+ - 419e854: fix: always prepare primitives
543
+
544
+ ## 8.0.21
545
+
546
+ ### Patch Changes
547
+
548
+ - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
549
+
550
+ ## 8.0.20
551
+
552
+ ### Patch Changes
553
+
554
+ - 4c87bce: fix: attach, devtools, and perf fixes
555
+
556
+ ## 8.0.19
557
+
558
+ ### Patch Changes
559
+
560
+ - 360b45a: fix: handle attach on reconstruct
561
+
562
+ ## 8.0.18
563
+
564
+ ### Patch Changes
565
+
566
+ - be567c1: fix: suspense attach and three compat in webpack
567
+
568
+ ## 8.0.17
569
+
570
+ ### Patch Changes
571
+
572
+ - 9e3369e: fix dom resize, improve native tree shaking
573
+
574
+ ## 8.0.16
575
+
576
+ ### Patch Changes
577
+
578
+ - 669c45c: correctly type useLoader results
579
+
580
+ ## 8.0.15
581
+
582
+ ### Patch Changes
583
+
584
+ - c4715d5f: allow invalidate to preempt more than 1 frame
585
+
586
+ ## 8.0.14
587
+
588
+ ### Patch Changes
589
+
590
+ - 5559a119: Add support for recoverable errors
591
+
592
+ ## 8.0.13
593
+
594
+ ### Patch Changes
595
+
596
+ - 9d77d8e2: fix: detach attribute removal
597
+
598
+ ## 8.0.12
599
+
600
+ ### Patch Changes
601
+
602
+ - 3d10413f: fix portal layers
603
+
604
+ ## 8.0.11
605
+
606
+ ### Patch Changes
607
+
608
+ - 5167b1e4: memoized.args can be undefined
609
+
610
+ ## 8.0.10
611
+
612
+ ### Patch Changes
613
+
614
+ - eb321afd: fix: remount bug, allow portals to inject custom size
615
+
616
+ ## 8.0.9
617
+
618
+ ### Patch Changes
619
+
620
+ - 624df949: fix: canvas unmount race condition"
621
+
622
+ ## 8.0.8
623
+
624
+ ### Patch Changes
625
+
626
+ - 952a566: fix: react SSR
627
+
628
+ ## 8.0.7
629
+
630
+ ### Patch Changes
631
+
632
+ - f63806b: fix: react SSR
633
+
634
+ ## 8.0.6
635
+
636
+ ### Patch Changes
637
+
638
+ - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
639
+
640
+ ## 8.0.5
641
+
642
+ ### Patch Changes
643
+
644
+ - 227c328: fix pointer for root and portals
645
+
646
+ ## 8.0.4
647
+
648
+ ### Patch Changes
649
+
650
+ - e981a72: fix: mock three color management, loosen peer dep
651
+
652
+ ## 8.0.3
653
+
654
+ ### Patch Changes
655
+
656
+ - 3252aed: setevents needs to spread and be mirrored in portals
657
+
658
+ ## 8.0.2
659
+
660
+ ### Patch Changes
661
+
662
+ - 8035d1f: fix: legacy mode
663
+
664
+ ## 8.0.1
665
+
666
+ ### Patch Changes
667
+
668
+ - 26db195: add legacy flag to turn of three.colormanagement
669
+
670
+ ## 8.0.0
671
+
672
+ ### Major Changes
673
+
674
+ - 385ba9c: v8 major, react-18 compat
675
+ - 04c07b8: v8 major, react-18 compat
676
+
677
+ ### Patch Changes
678
+
679
+ - 347ea79: new beta for library testing
680
+
681
+ ## 8.0.0-beta.0
682
+
683
+ ### Major Changes
684
+
685
+ - 385ba9c: v8 major, react-18 compat
686
+
687
+ ## 8.0.0-beta.0
688
+
689
+ ### Patch Changes
690
+
691
+ - cf6316c: new beta for library testing
692
+
693
+ ## 7.0.25
694
+
695
+ ### Patch Changes
696
+
697
+ - 8698734: Release latest patches
698
+
699
+ ## 7.0.24
700
+
701
+ ### Patch Changes
702
+
703
+ - 7f46ddf: cleanup captured pointers when released (#1914)
704
+
705
+ ## 7.0.23
706
+
707
+ ### Patch Changes
708
+
709
+ - 30d38b1: remove logs
710
+
711
+ ## 7.0.22
712
+
713
+ ### Patch Changes
714
+
715
+ - 259e1fa: add camera:manual
716
+
717
+ ## 7.0.21
718
+
719
+ ### Patch Changes
720
+
721
+ - 65e4147: up usemeasure, add last event to internals"
722
+
723
+ ## 7.0.20
724
+
725
+ ### Patch Changes
726
+
727
+ - 54cb0fd: update react-use-measure, allow it to use the offsetSize
728
+
729
+ ## 7.0.19
730
+
731
+ ### Patch Changes
732
+
733
+ - 7aa2eab: fix: remove zustand subcribe selector
734
+
735
+ ## 7.0.18
736
+
737
+ ### Patch Changes
738
+
739
+ - 6780f58: fix unmount pointer capture
740
+
741
+ ## 7.0.17
742
+
743
+ ### Patch Changes
744
+
745
+ - 894c550: fix: event count
746
+
747
+ ## 7.0.16
748
+
749
+ ### Patch Changes
750
+
751
+ - c7a4220: patch: applyprops returns the same instance
752
+
753
+ ## 7.0.15
754
+
755
+ ### Patch Changes
756
+
757
+ - c5645e8: fix primitve leftovers on switch
758
+
759
+ ## 7.0.14
760
+
761
+ ### Patch Changes
762
+
763
+ - 05af996: fix: revert the is function
764
+
765
+ ## 7.0.13
766
+
767
+ ### Patch Changes
768
+
769
+ - f256558: fix(core): don't overwrite camera rotation
770
+ - 51e6fc9: fix(core): safely handle external instances
771
+
772
+ ## 7.0.12
773
+
774
+ ### Patch Changes
775
+
776
+ - 0df6073: fix: missed events
777
+
778
+ ## 7.0.11
779
+
780
+ ### Patch Changes
781
+
782
+ - 62b0a3a: fix: event order of missed pointers
783
+
784
+ ## 7.0.10
785
+
786
+ ### Patch Changes
787
+
788
+ - e019dd4: fixes
789
+
790
+ ## 7.0.9
791
+
792
+ ### Patch Changes
793
+
794
+ - cd266e4: Fix diffProps dashed keys
795
+
796
+ ## 7.0.8
797
+
798
+ ### Patch Changes
799
+
800
+ - 6f68406: Allow getCurrentViewport to receive an array
801
+
802
+ ## 7.0.7
803
+
804
+ ### Patch Changes
805
+
806
+ - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
807
+
808
+ ## 7.0.6
809
+
810
+ ### Patch Changes
811
+
812
+ - fb052ad: Fix babel-env browserslist transpiling into old code"
813
+
814
+ ## 7.0.5
815
+
816
+ ### Patch Changes
817
+
818
+ - c97794a: Add useLoader.clear(Loader, input)
819
+
820
+ ## 7.0.4
821
+
822
+ ### Patch Changes
823
+
824
+ - 974ecfb: Allow elements to define attachFns for specific mount/unmount
825
+
826
+ ## 7.0.2
827
+
828
+ ### Patch Changes
829
+
830
+ - a97aca3: Add controls state field
831
+ - 4c703d6: fix rttr didn't work with r130
832
+
833
+ ## 7.0.0
834
+
835
+ ### Major Changes
836
+
837
+ - 96ae1ad: fix javascript interpreting negative renderpriority as positive
838
+
839
+ This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
840
+
841
+ ```jsx
842
+ useFrame(..., -1)
843
+ ```
844
+
845
+ Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
846
+
847
+ ```jsx
848
+ function Render() {
849
+ // Takes over the render-loop, the user has the responsibility to render
850
+ useFrame(({ gl, scene, camera }) => {
851
+ gl.render(scene, camera)
852
+ }, 1)
853
+
854
+ function RenderOnTop() {
855
+ // This will render on top of the previous call
856
+ useFrame(({ gl, ... }) => {
857
+ gl.render(...)
858
+ }, 2)
859
+
860
+ function A() {
861
+ // Will *not* take over the render-loop, negative indices can still be useful for sorting
862
+ useFrame(() => ..., -1)
863
+
864
+ function B() {
865
+ // B's useFrame will execute *after* A's
866
+ useFrame(() => ..., -2)
867
+ ```
868
+
869
+ ## 6.2.3
870
+
871
+ ### Patch Changes
872
+
873
+ - 26bc7eb: typescript changes
874
+
875
+ ## 6.2.2
876
+
877
+ ### Patch Changes
878
+
879
+ - 4f44a2c: use more helpful name with event handling in rttr
880
+
881
+ ## 6.2.1
882
+
883
+ ### Patch Changes
884
+
885
+ - Fix stopPropagation logic
886
+
887
+ ## 6.2.0
888
+
889
+ ### Minor Changes
890
+
891
+ - Allow object3d instances to be attached
892
+
893
+ ## 6.1.5
894
+
895
+ ### Patch Changes
896
+
897
+ - fix(rttr): if children is undefined return an array to map with
898
+
899
+ ## 6.1.4
900
+
901
+ ### Patch Changes
902
+
903
+ - 6faa090: Add shape to types, exclude event functions from event data
904
+
905
+ ## 6.1.3
906
+
907
+ ### Patch Changes
908
+
909
+ - 71e72c0: Fix constructor args with attached children (#1348)
910
+ - 015fc03: Only set up pointer/wheel events as passive
911
+ - a160e08: Fix event setPointerCapture and stopPropagation.
912
+
913
+ ## 6.1.2