Skip to content

Releases: daily-co/daily-react

0.15.0

26 Oct 16:51
Compare
Choose a tag to compare

Bugfixes

  • useParticipantIds: Fixed an issue that caused temporary CPU spikes and potential memory leaks when handling participant events

We recommend updating from any version from 0.11.0 and upwards to this version.

0.14.1

19 Oct 09:58
Compare
Choose a tag to compare

Bugfixes

0.14.0

16 Oct 15:39
Compare
Choose a tag to compare

Improvements

  • Improved type inference for useThrottledDailyEvent callback event objects
  • Improved state management for useParticipantProperty: instead of looking up participant state properties from entire participant objects, we'll now store participant properties in separate state atoms, as recommended by Recoil. This means that participant state properties returned from useParticipantProperty don't subscribe to the entire participant object anymore, which leads to more targeted and fewer render cycles.

Bugfixes

  • Fixed an issue in useNetwork where returned network state information could be stale
  • Fixed an issue where participant audio tracks might not have been assigned to an <audio> tag in DailyAudio
  • Fixed checks in usePermissions to avoid potential property lookups on undefined

0.13.0

09 Oct 18:55
Compare
Choose a tag to compare

Features

  • New hook useDailyError: this hook returns a stateful representation of the last meetingError (emitted per error event) and nonFatalError (emitted per nonfatal-error event)

Improvements

  • Improved type inference for useDailyEvent event objects: when passing a memoized callback you don't have to specify the event object types yourself anymore! (Thanks @HegarGarcia)
  • New callback onError for useScreenShare: maps to nonfatal-error of type 'screen-share-error'
  • New callback onError for useMeetingSessionState: maps to nonfatal-error of type 'meeting-session-data-error'
  • New callback onLiveStreamingWarning for useLiveStreaming: maps to nonfatal-error of type 'live-streaming-warning'
  • Improved type inference for onError callback for useInputSettings
  • Improved state management for useScreenShare: before this release every instance of useScreenShare maintained its own version of state representing screen shares. This state management has now moved into an internal wrapper component, so screen share state is only managed once. Every instance of useScreenShare now returns the same state.
  • Improved state management for useParticipantIds: recent refactors of this hook unveiled some complexities originating from different variations for the filter and sort options. We've updated useParticipantIds to always return optimized states from Recoil when using a string-based filter and/or sort option. This also means that instances of useParticipantIds with optimized filter/sort options will return the correct list of ids on first render. A custom function filter and/or sort will fall back to a manual state and remain the same behavior as introduced in 0.11.0.
  • Improved state management for useParticipantProperty: we restructured our internal recoil selectors for participant properties to better handle arrays of properties.

0.12.0

13 Sep 07:06
Compare
Choose a tag to compare

Features

  • DailyAudio now has an option autoSubscribeActiveSpeaker to automatically subscribe to the active speaker (only relevant when using manual track subscriptions)

Improvements

Bugfixes

  • Fixed an issue where some hooks were potentially returning stale state information after switching to a different Daily room.
  • Fixed an issue where useThrottledDailyEvent potentially handled events for a session that was already left or destroyed.

0.11.6

29 Aug 17:19
Compare
Choose a tag to compare

Bugfixes

  • Fixed an issue where useRecording would return stale state when leaving and joining a new meeting
  • Fixed TypeScript definition for useAudioLevel hook (thanks @joakimgrr!)

Maintenance

  • Simplified object comparison checks in our customDeepEqual method

0.11.5

14 Aug 11:37
Compare
Choose a tag to compare

Bugfixes

  • Fixed an issue where comparing Maps and Sets internally inside the usePermissions would lead to an infinite recursive loop.

0.11.4

09 Aug 08:38
Compare
Choose a tag to compare

Bugfixes

  • useParticipantProperty: fixed an issue where useParticipantProperty returned undefined on first render, despite the correct value being available in store already.

0.11.3

04 Aug 12:14
Compare
Choose a tag to compare

Bugfixes

  • useScreenShare: Fixes an issue where optimized render cycles in useParticipantIds (see 0.11.0) could lead to stale screens returned from useScreenShare

0.11.2

03 Aug 15:28
Compare
Choose a tag to compare

Bugfixes

  • useParticipantProperty: fixed an issue introduced in 0.11.1 where changes to tracks and permissions were not picked up correctly by useParticipantProperty.