@react-three/fiber 9.5.0 → 9.6.0

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