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