Skip to content

Releases: treagod/marten-turbo

`TurboStream` can now use `Marten::Model`

17 Jul 13:50
Compare
Choose a tag to compare

Bugfix

  • TurboStream can now correctly create target ids from a Marten::Model

Enhanced TurboStream Support and Improved TurboFrame Handling

13 Jul 01:23
Compare
Choose a tag to compare

Added

  • New MartenTurbo::TurboStream class: Introduced a new TurboStream class to streamline the creation of Turbo Streams. This class provides a convenient API to generate various Turbo Stream actions.
  • Turbo Handlers Enhancement: Turbo handlers now support a turbo_stream method. This method should return a string that will be rendered instead of a template. It takes precedence over the turbo_stream_name attribute, offering greater flexibility in handling Turbo Stream responses.
  • MartenTurbo::Handlers::TurboFrame concern: Added a new concern, TurboFrame, which can be included to track Turbo-Frame requests. This enhancement simplifies the detection and handling of Turbo Frame specific requests. This adds the turbo_frame_request? and turbo_frame_request_id methods to your handler.

Changed

  • RecordDelete Enhancement: The RecordDelete handler now forwards a DELETE request to post, improving consistency and reliability in handling delete operations.

Breaking Changes

  • End Tag Update: The end tag for Turbo Streams has been updated from {% end_turbostream %} to {% end_turbo_stream %}. This change aligns the syntax with Marten’s end tags, enhancing readability and consistency across the codebase.

Update shard name

20 Mar 15:20
Compare
Choose a tag to compare

Update shard name

Initial release

20 Mar 15:17
Compare
Choose a tag to compare

Introduces new Marten handlers which helps with handling turbo streams.