Skip to content

v1.2.0 release

Compare
Choose a tag to compare
@ryanbliss ryanbliss released this 09 Oct 18:41
· 24 commits to main since this release
5d5a9ca

@microsoft/live-share

  • Replay events from other clients that existed before registering DDS, which fixes a bug where LiveState, LivePresence, and LiveTimer may not have correct state when initialized late by @huntj88 in #719
  • New LiveFollowMode DDS for presenting to everyone & following specific users (beta) by @ryanbliss in #720
  • Exposed getClientInfo in LiveDataObject by @huntj88 in #722
  • canSendBackgroundUpdates setting in LiveShareClient / LiveShareRuntime for efficient signal usage in large meetings by @ryanbliss in #724

Warning

This update changed props of LiveShareRuntime constructor. This isn't something we expect external developers to use in normal circumstances, but it is technically a public class. If you use this and used some of the optional props in the constructor (non-normative), this will be a breaking change for you. Normally we wouldn't make a breaking change to a public class, but these optional props for the constructor were really only added for our unit tests, and this class is publicly exposed primarily for use in live-share-turbo. But in the off chance this does impact you, we are attaching a guide here for your convenience.

To fix this, change this:

// Create your host, such as AzureLiveShareHost
const host = AzureLiveShareHost.create();
// Create your timestampProvider (optional)
const timestampProvider = new CustomTimestampProvider();
// Create your role verifier (optional)
const roleVerifier = new CustomRoleVerifier();
// Create the LiveShareRuntime
const runtime = new LiveShareRuntime(this._host, timestampProvider, roleVerifier);

To this:

// Create your host, such as AzureLiveShareHost
const host = AzureLiveShareHost.create();
// Create your options (optional)
const options = {
  timestampProvider: new CustomTimestampProvider(),
  roleVerifier: new CustomRoleVerifier(),
};
// Create the LiveShareRuntime
const runtime = new LiveShareRuntime(this._host, options);

@microsoft/live-share-react

@microsoft/live-share-turbo

  • Cache dynamic DDS in memory so that multiple calls to getDDS do not return different instances by @ryanbliss in #718

Full Changelog: v1.1.0...v1.2.0