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

Bump ably from 1.2.48 to 2.0.4 in /front-end #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 6, 2024

Bumps ably from 1.2.48 to 2.0.4.

Release notes

Sourced from ably's releases.

v2.0.4

  • Fix invalid accessToken when using REST API Client in React Native #1730, #1749
  • Fix docstring for Channels.release method #1752

v2.0.3

  • Improve error message displayed when trying to use Ably.Realtime instance in the Vercel Edge runtime #1736
  • Fix to allow ErrorInfo export to be accessed as a named export in ESM and when using commonjs interop #1741
  • Fix ReferenceError: self is not defined error when running Jest tests in React Native using ably-js #1738
  • Fix httpMaxRetryDuration client option didn't actually limit max elapsed time for rest fallback host retries #1721
  • Fix default value for httpRequestTimeout client option was wrongly 15 seconds instead of expected 10 seconds #1721

v2.0.2

  • Fix an issue with realtime connections using the bun runtime #1716

v2.0.1

  • Fix Unable to resolve "ably" in React Native for ably-js v2.0.0 #1711
  • Fix TextEncoder/TextDecoder are not defined in React Native for ably-js v2.0.0 #1712

v2.0.0

The 2.0.0 release introduces a number of new features and QoL improvements, including a new way to remove bloat and reduce the bundle size of your ably-js client, first-class support for Promises, a more idiomatic approach to using ably-js' React Hooks, enhancements to TypeScript typings, and more.

Below is an overview of the major changes in this release.

Please refer to the ably-js v2 lib migration guide and React Hooks migration guide for the full details, including a list of all breaking changes and instructions on how to address them.

Bundle Size Reduction

The default bundle size for the web has been reduced by ~32% compared to v1 - from 234.11 KiB to 159.32 KiB. When calculated with gzip compression, the reduction is ~30%, from 82.54 KiB to 57.9 KiB.

Additionally, by utilizing the new modular variant of the library (see below) and JavaScript tree shaking, you can create your own minimal useful Realtime client and achieve a bundle size reduction of ~60.5% compared to v1 - from 234.11 KiB to 92.38 KiB (or ~66% for gzip: from 82.54 KiB to 28.18 KiB).

Modular variant of the library

An ESM variant of the library is now available for browsers (but not for Node.js) via import from ably/modular. This modular variant of the library supports tree shaking, allowing for a reduction in the Ably bundle size within your application and improving the user experience. It can also be used by Web Workers.

React Hooks changes

React Hooks, exported at ably/react, now require the new ChannelProvider component to define the channels you wish to use and the options for them. This addresses the complexities previously encountered with useChannel and usePresence hooks when attempting to dynamically change options for a channel and provides a more straightforward approach to set and manage these options.

The functionality of the usePresence hook has been split into two separate hooks: usePresence, which is now used only to enter presence, and usePresenceListener, which is used to listen for presence updates. These new hooks offer better control over the desired presence behavior in your React components.

First-class support for Promises

The callbacks API has been entirely removed, and the library now supports promises for all its asynchronous operations by default.

TypeScript typings

The Types namespace has been removed. All types it contained are now exported at the top level.

Browser and Web Worker bundles

... (truncated)

Changelog

Sourced from ably's changelog.

2.0.4 (2024-05-03)

  • Fix invalid accessToken when using REST API Client in React Native #1730, #1749
  • Fix docstring for Channels.release method #1752

2.0.3 (2024-04-18)

  • Improve error message displayed when trying to use Ably.Realtime instance in the Vercel Edge runtime #1736
  • Fix to allow ErrorInfo export to be accessed as a named export in ESM and when using commonjs interop #1741
  • Fix ReferenceError: self is not defined error when running Jest tests in React Native using ably-js #1738
  • Fix httpMaxRetryDuration client option didn't actually limit max elapsed time for rest fallback host retries #1721
  • Fix default value for httpRequestTimeout client option was wrongly 15 seconds instead of expected 10 seconds #1721

2.0.2 (2024-04-08)

  • Fix an issue with realtime connections using the bun runtime #1716

2.0.1 (2024-03-25)

  • Fix Unable to resolve "ably" in React Native for ably-js v2.0.0 #1711
  • Fix TextEncoder/TextDecoder are not defined in React Native for ably-js v2.0.0 #1712

2.0.0 (2024-03-22)

The 2.0.0 release introduces a number of new features and QoL improvements, including a new way to remove bloat and reduce the bundle size of your ably-js client, first-class support for Promises, a more idiomatic approach to using ably-js' React Hooks, enhancements to TypeScript typings, and more.

Below is an overview of the major changes in this release.

Please refer to the ably-js v2 lib migration guide and React Hooks migration guide for the full details, including a list of all breaking changes and instructions on how to address them.

Bundle Size Reduction

The default bundle size for the web has been reduced by ~32% compared to v1 - from 234.11 KiB to 159.32 KiB. When calculated with gzip compression, the reduction is ~30%, from 82.54 KiB to 57.9 KiB.

Additionally, by utilizing the new modular variant of the library (see below) and JavaScript tree shaking, you can create your own minimal useful Realtime client and achieve a bundle size reduction of ~60.5% compared to v1 - from 234.11 KiB to 92.38 KiB (or ~66% for gzip: from 82.54 KiB to 28.18 KiB).

Modular variant of the library

An ESM variant of the library is now available for browsers (but not for Node.js) via import from ably/modular. This modular variant of the library supports tree shaking, allowing for a reduction in the Ably bundle size within your application and improving the user experience. It can also be used by Web Workers.

React Hooks changes

React Hooks, exported at ably/react, now require the new ChannelProvider component to define the channels you wish to use and the options for them. This addresses the complexities previously encountered with useChannel and usePresence hooks when attempting to dynamically change options for a channel and provides a more straightforward approach to set and manage these options.

The functionality of the usePresence hook has been split into two separate hooks: usePresence, which is now used only to enter presence, and usePresenceListener, which is used to listen for presence updates. These new hooks offer better control over the desired presence behavior in your React components.

First-class support for Promises

The callbacks API has been entirely removed, and the library now supports promises for all its asynchronous operations by default.

... (truncated)

Commits
  • cee64bd Merge pull request #1757 from ably/release/2.0.4
  • 6b2fd26 chore: update changelog for 2.0.4 release
  • 6fcfe48 chore: bump version for 2.0.4 release
  • 961daa5 Merge pull request #1750 from ably/1749/fix-invalid-auth-token-react-native
  • bebe0cd Improve comments in BufferUtils
  • 3317106 Remove unnecessary .buffer call in node.js BufferUtils
  • a20f20b Update web BufferUtils to always use dedicated toArrayBuffer method when co...
  • f38ee28 Add return types to all methods in web BufferUtils
  • aa2cb16 Add private modifiers for method in web BufferUtils
  • 4397c82 Merge pull request #1743 from ably/ECO-4749/improve-chrome-manifest-section
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by andrii.bulat.ably, a new releaser for ably since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ably](https://github.com/ably/ably-js) from 1.2.48 to 2.0.4.
- [Release notes](https://github.com/ably/ably-js/releases)
- [Changelog](https://github.com/ably/ably-js/blob/main/CHANGELOG.md)
- [Commits](ably/ably-js@1.2.48...2.0.4)

---
updated-dependencies:
- dependency-name: ably
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 6, 2024
Copy link

vercel bot commented May 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-pizza-demo ❌ Failed (Inspect) May 6, 2024 7:51am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants