v1.0.0-preview.12 release - major features, major breaking changes!!! #558
ryanbliss
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
This is a big change which includes breaking changes and some exciting new features. This release makes the final set of major changes before our v1.0.0 release this May.
@microsoft/live-share changes
fluid-framework: ^1.2.3
and@fluidframework/azure-client: ^1.0.0
in aspeerDependencies
. If this results in a build error for your application, please include those dependencies in yourdependencies
within yourpackage.json
.LivePresence
initialize()
function no longer acceptsuserId
as the first prop, which will be a breaking change for apps that use this class in their applications. To fix this issue, remove this prop. If you still want to broadcast a custom userId withLivePresence
, then you can simply include it in the optional customdata
object.LivePresence
which made it possible to "hijack" another user'sLivePresenceUser
record simply by claiming theiruserId
.LivePresenceUser
now includes adisplayName
field. For now, this field will only be populated up to Teams Developer Preview, but will be generally available by May 24th. Until then, regular Teams usersdisplayName
field will appear asundefined
. This display name is un-spoofable, making it ideal for sensitive situations where you want accountability & visibility into whom is taking what action in your app.LivePresenceUser
now has aroles
field, which replaces the asynchronousgetRoles()
API. This should make it easier to know which user has what role, without the additional complexity caused by that async API. For apps using thegetRoles()
API, this is a breaking change. Replaceawait user.getRoles()
withuser.roles
.LivePresence
'supdatePresence()
method was deprecated in favor ofupdate()
. This is more aligned with our other DDS naming. We've had feedback thatdata
is more commonly set than thestate
prop, so in this new method the order goesupdate(data?: TData, state?: PresenceState)
. The old API will continue to work until we remove it in v1.0.0.LiveEvent
'ssendEvent()
method was deprecated in favor ofsend()
, which is more aligned with other DDS naming.LiveEvent.setTimestampProvider()
andLiveEvent.setRoleVerifier()
were moved toLiveShareClient
. If you use these static methods in your application, this will be a breaking change..toArray()
method inLivePresence
, such asconst onlineUsers = presence.toArray(PresenceState.online)
.UserMeetingRole
changes, that will now be updated in our cache much faster than before. The role cache is set to expire every 4 seconds.@microsoft/live-share-canvas changes
fluid-framework: ^1.2.3
and@microsoft/live-share: 1.0.0-preview.12
in aspeerDependencies
. If this results in a build error for your application, please include those dependencies in yourdependencies
within yourpackage.json
.LiveCanvas
now supports un-spoofable names in cursors by default.onGetLocalUserInfo(): IUserInfo | undefined
method inLiveCanvas
was replaced withonGetLocalUserPictureUrl(): string | undefined
.LiveCanvas
in a regular Fluid container (e.g., not usingLiveShareClient
), this will result in thedisplayName
appearing as the first 4 characters of the user'sclientId
. We are working on a workaround for this that we will release before our v1.0.0 release.@microsoft/live-share-media
fluid-framework: ^1.2.3
and@microsoft/live-share: 1.0.0-preview.12
in aspeerDependencies
. If this results in a build error for your application, please include those dependencies in yourdependencies
within yourpackage.json
.@microsoft/live-share-react
fluid-framework: ^1.2.3
,@fluidframework/azure-client: ^1.0.0
,@microsoft/live-share: 1.0.0-preview.12
,@microsoft/live-share-media: 1.0.0-preview.12
, and@microsoft/live-share-canvas: 1.0.0-preview.12
in aspeerDependencies
. If this results in a build error for your application, please include those dependencies in yourdependencies
within yourpackage.json
.userId
is no longer a prop inuseLivePresence
.updatePresence
callback returned byuseLivePresence
now hasdata
as first prop andstate
as second prop, to align with newLivePresence
changes.localUserCursor
prop was replaced withlocalUserProfilePictureUrl
.@microsoft/live-share-turbo
fluid-framework: ^1.2.3
,@fluidframework/azure-client: ^1.0.0
, and@microsoft/live-share: 1.0.0-preview.12
in aspeerDependencies
. If this results in a build error for your application, please include those dependencies in yourdependencies
within yourpackage.json
.Workspace changes
node_modules
before you try to re-build any packages or samples.npm run:packages
.Known issues
@fluidframework/azure-client
version^1.1.0
while using your app in Teams. This is because of a breaking change they released in that version. We have a server-side fix coming soon that will address this issue. Until then, you can use~1.0.2
in yourpackage.json
.LivePresence
dependencies are merged into the Teams client ahead of May 24th, regular Teams users (not in developer preview) will appear with auserId
equal to theirclientId
. If they join from multiple devices, that means they will appear as separate users. This will be fixed automatically once our Teams client dependency becomes generally available.Commits
Full Changelog: v1.0.0-preview.10...v1.0.0-preview.12
This discussion was created from the release v1.0.0-preview.12 release - major features, major breaking changes!!!.
Beta Was this translation helpful? Give feedback.
All reactions