Skip to content

chore(deps): bump @hocuspocus/extension-redis from 3.4.4 to 4.0.0#2487

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/main/hocuspocus/extension-redis-4.0.0
Closed

chore(deps): bump @hocuspocus/extension-redis from 3.4.4 to 4.0.0#2487
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/main/hocuspocus/extension-redis-4.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 24, 2026

Bumps @hocuspocus/extension-redis from 3.4.4 to 4.0.0.

Release notes

Sourced from @​hocuspocus/extension-redis's releases.

v4.0.0

Hocuspocus v4.0 Release Notes

Hocuspocus v4 is a major release that brings cross-runtime support, improved type safety, and important bug fixes. This release focuses on making Hocuspocus run beyond Node.js -- on Bun, Deno, Cloudflare Workers, and Node with uWebSockets -- while improving the developer experience with generic Context typing and structured transaction origins.

Backward Compatibility

A v3 provider can connect to a v4 server, and a v4 provider can connect to a v3 server. The wire protocol remains compatible in both directions:

  • v3 provider -> v4 server: The server accepts plain document names (no session routing key), does not require Pong responses, and handles auth messages without a provider version string.
  • v4 provider -> v3 server: The provider defaults to sessionAwareness: false, so it sends plain document names. The extra version string in the auth message is ignored by the v3 server as trailing data. The provider does not require server-initiated Ping messages.
  • Session awareness caveat: If sessionAwareness: true is explicitly enabled on a v4 provider connecting to a v3 server, the server will treat the composite routing key (documentName\0sessionId) as a literal document name, creating unintended documents. Keep sessionAwareness: false (the default) when connecting to a v3 server.

Highlights

Cross-Runtime Support

Hocuspocus is no longer tied to the Node.js ws library. The server now uses crossws, a universal WebSocket adapter, enabling Hocuspocus to run on:

  • Node.js (with ws or uWebSockets.js)
  • Bun
  • Deno
  • Cloudflare Workers

The built-in Server class continues to work as before for Node.js users. For other runtimes, use Hocuspocus directly with handleConnection(), which now accepts any WebSocketLike object and a web-standard Request.

Generic Context Type

All core classes and hook payloads now accept a generic Context type parameter, enabling end-to-end type safety:

interface MyContext {
  userId: string;
  permissions: string[];
}
const server = Server.configure<MyContext>({
async onAuthenticate({ context, token }) {
// context is typed as MyContext
return { userId: '123', permissions: ['read', 'write'] };
},
async onChange({ context }) {
// context.userId is typed as string
console.log(context.userId);
},
});

The generic defaults to any, so existing code without explicit typing continues to work.

... (truncated)

Changelog

Sourced from @​hocuspocus/extension-redis's changelog.

4.0.0 (2026-04-23)

Note: Version bump only for package hocuspocus

4.0.0-rc.7 (2026-04-22)

Bug Fixes

  • provider-react ESM now emits a clean import { jsx } from "react/jsx-runtime" and zero CJS shims (e40afd9)

4.0.0-rc.6 (2026-04-20)

Bug Fixes

  • react provider in strict mode (4f27b7f)

4.0.0-rc.5 (2026-04-16)

Features

4.0.0-rc.4 (2026-04-16)

Bug Fixes

  • publishConfig for provider-react (376765f)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 24, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/main/hocuspocus/extension-redis-4.0.0 branch from 00eb2d8 to e6eb04a Compare May 6, 2026 09:31
Bumps [@hocuspocus/extension-redis](https://github.com/ueberdosis/hocuspocus) from 3.4.4 to 4.0.0.
- [Release notes](https://github.com/ueberdosis/hocuspocus/releases)
- [Changelog](https://github.com/ueberdosis/hocuspocus/blob/main/CHANGELOG.md)
- [Commits](ueberdosis/hocuspocus@v3.4.4...v4.0.0)

---
updated-dependencies:
- dependency-name: "@hocuspocus/extension-redis"
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/main/hocuspocus/extension-redis-4.0.0 branch from e6eb04a to 7a8f2be Compare May 13, 2026 08:22
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 21, 2026

Superseded by #2631.

@dependabot dependabot Bot closed this May 21, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/main/hocuspocus/extension-redis-4.0.0 branch May 21, 2026 03:44
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