@react-three/fiber 9.1.0 → 9.1.1

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