Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO-4868] Upgrade to ably-js v2 #325

Merged
merged 10 commits into from
Jul 17, 2024
Merged

[ECO-4868] Upgrade to ably-js v2 #325

merged 10 commits into from
Jul 17, 2024

Conversation

VeskeR
Copy link
Contributor

@VeskeR VeskeR commented Jul 17, 2024

Resolves #321

See commit messages for more details

@github-actions github-actions bot temporarily deployed to staging/pull/325/typedoc July 17, 2024 12:07 Inactive
@VeskeR VeskeR requested a review from ttypic July 17, 2024 12:12
@VeskeR VeskeR force-pushed the 321/upgrade-to-ably-js-v2 branch from d865c18 to 7a1c4f6 Compare July 17, 2024 12:21
@github-actions github-actions bot temporarily deployed to staging/pull/325/typedoc July 17, 2024 12:21 Inactive
@VeskeR VeskeR force-pushed the 321/upgrade-to-ably-js-v2 branch from 7a1c4f6 to 2b7aea7 Compare July 17, 2024 12:27
@github-actions github-actions bot temporarily deployed to staging/pull/325/typedoc July 17, 2024 12:27 Inactive
@VeskeR VeskeR force-pushed the 321/upgrade-to-ably-js-v2 branch from 2b7aea7 to 20f050b Compare July 17, 2024 14:00
Do not try to fix possible errors yet, just simply update every place
to use ably-js v2 API.
`clientId` prop was made optional in ably-js v2 [1] to be consistent
with the feature spec. However, spaces SDK requires `clientId` to be
always set, so we can expect it to be present.

[1] ably/ably-js@4e3733f
PaginatedResult.next() type was updated in ably-js v2 [1] to return null
in case of no page.

[1] ably/ably-js@8bd1706
`Message.data` was made optional in ably-js v2 [1]

[1] ably/ably-js@4e3733f
…whenState()

Callback API for RealtimeChannel.whenState() was removed in ably-js v2 [1]

[1] ably/ably-js@2a2ed49
Copy link
Collaborator

@ttypic ttypic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@VeskeR VeskeR merged commit 8a70ad8 into main Jul 17, 2024
7 checks passed
@VeskeR VeskeR deleted the 321/upgrade-to-ably-js-v2 branch July 17, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support ably-js v2
2 participants