Releases: adonisjs/transmit
Compatibility with AdonisJS 7
This major release brings compatibility with AdonisJS 7 and upgrades the underlying @boringnode/transmit package to version 0.4.0.
Highlights
- AdonisJS 7 Support: This version is designed to work with AdonisJS 7.
- Updated Core Dependency: Upgraded
@boringnode/transmitfrom0.3.xto0.4.0.
Breaking Changes (from @boringnode/transmit 0.4.0)
- Transport Synchronization Removal: The transport layer no longer broadcasts subscribe/unsubscribe events across server instances.
- Default Broadcast Payload: The system now sends
nullas the default payload instead of an empty object when broadcasting without explicit data.
Bug Fixes (from @boringnode/transmit 0.4.0)
- Falsy Value Preservation: Broadcasting now correctly preserves falsy values (
0,false,'',null) instead of converting them to empty objects. - Subscribe Callback Correction: The
onSubscribecallback is now only called when the subscription actually succeeds, preventing callbacks from triggering when stream UIDs don't exist.
Fix returning function on unsubscribe
What's Changed
- fix: returning function on unsubscribe by @diogo-nogueira in #28
New Contributors
- @diogo-nogueira made their first contribution in #28
Full Changelog: v2.0.1...v2.0.2
Inject headers from adonis object
Commits
Full Changelog: v2.0.0...v2.0.1
v2.0.0
This release updates Transmit to use the new framework-agnostic library developed by the BoringNode Team.
We have also changed the way routes are defined, providing more customization options for our users.
In this version, routes are not automatically registered when a provider is registered. You can now either:
- Call
transmit.registerRoutes()in your routes file, or - Manually define the route using the exported controller from
@adonisjs/transmit/controllers.
Please, refer to the updated documentation at https://docs.adonisjs.com/guides/digging-deeper/transmit.
Breaking Changes
- Routes are no longer registered by default. You have to call
transmit.registerRoutes()in yourstart/routes.tsfile; - The
routeHandlerModifierconfig option no longer exists, pass a callback totransmit.registerRoutesinstead; - The
authorizeChannelmethod has been renamedauthorize.
Commits
- chore: release under latest tag (60ed810)
Full Changelog: v1.0.2...v2.0.0
Properly type HttpContext
Commits
- chore: point this branch to the next tag (db06cf2)
- chore: update dependencies (a4ef110)
- fix(package): correct controllers export (d57d8af)
Full Changelog: v2.0.0-0...v2.0.0-1
Migrate to @boringnode/transmit and change how we define routes
This release updates Transmit to use the new framework-agnostic library developed by the BoringNode Team.
We have also changed the way routes are defined, providing more customization options for our users.
In this version, routes are not automatically registered when a provider is registered. You can now either:
- Call
transmit.registerRoutes()in your routes file, or - Manually define the route using the exported controller from
@adonisjs/transmit/controllers.
Note: This release is for testing purposes only. Please do not use it in production yet.
Commits
- refactor: use @boringnode/transmit and change how we define routes (9f04004)
Full Changelog: v1.0.2...v2.0.0-0
Correct Broadcastable type
What's Changed
- Fix - fixing typing issue for Broadcastable, now it's possible to have a payload with an array. by @EvanPerreau in #24
New Contributors
- @EvanPerreau made their first contribution in #24
Full Changelog: v1.0.1...v1.0.2
Do not send "false" if stream is not store in the same instance
- fix: do not send "false" if stream is not store in the same instance (4820ae9)
Full Changelog: v1.0.0...v1.0.1
Stable release
Nothing change since last version
Move from @rlanz/bus to @boringnode/bus
- refactor: migrate from @rlanz/bus to @boringnode/bus (ab4ef45)
Full Changelog: v0.6.0...v0.7.0