Skip to content

v5.0.0

Compare
Choose a tag to compare
@marcoroth marcoroth released this 13 Apr 13:44
· 47 commits to main since this release
f6d4cd2

Released: 2023-04-13

New Operations

Added

Fixed

  • Setup better finalizer by @hopsoft in #116
  • Fix updates for lazy loading by @julianrubisch in #150
  • Fix wrong CableReady import by @n-rodriguez in #146
  • Error handling for updates_for edge cases by @leastbad in #155
  • Query all eager loading turbo frames and patch their innerHTML by @julianrubisch in #164
  • Fix resolve error for webpack 5 by @acarpe in #169
  • Fix text_content operation for nullish values by @marcoroth in #176
  • Fix 0 value problem with null checks by @leastbad in #210
  • Fix documentElement doesn't have a parent by @leastbad in #218
  • Fix cable_ready_updates_for makes redundant calls by @leastbad in #225
  • Fix bug where using an array when calling add_css_class or remove_css_class didn't work by @binarygit in #232
  • Fix inverse_of resolution of associations used by CableReady::Updatable by @julianrubisch in #262
  • Remove unused url_helpers include from installer which causes the installer to fail and exit by @marcoroth in #267

Changed

  • Change default value of HTML in operations to empty string instead of undefined by @leastbad in #106
  • Use and export before, operate and after to build the operations by @leastbad in #110
  • The play_sound operation is now opt-in and can be triggered via the data-unlock-audio attribute on the <body> tag by @leastbad in #112
  • Improve install experience by @leastbad in #128
  • dom_id should always be lowercase by @leastbad in #129
  • Mark JavaScript bundle sideEffects free by @KonnorRogers in #138
  • Implement simplified JSON payload by @leastbad in #142
  • Add support for named operation batches by @leastbad in #142
  • Export StreamFromElement and UpdatesForElement custom elements by @julianrubisch in #156
  • Export CableReady ActionCable consumer by @julianrubisch in #158
  • Updated gemspec to specific Rails gems by @paul in #175
  • Ignore inner updates on a stimulus-reflex action or turbo submit by @julianrubisch in #174
  • updates_for should respect url and only params on each element by @leastbad in #186
  • Updates for Attachments by @andrewerlanger in #190
  • Ship prebuilt JavaScript with the cable_ready gem by @marcoroth in #191
  • Include changeset in class-level updates broadcast by @grncdr in #193
  • Register Single-Table-Inheritance descendants for collection updates when using enable_cable_ready_updates by @julianrubisch in #204
  • Explicit check for leaf parent element presence for cable_ready_updates_for by @rickbenavidez in #208
  • Make CableReady::Updatable aware of Turbo Boost Commands by @julianrubisch in #242
  • Change that CableReadyHelper doesn't raise when including the module by @marcoroth in #256

Removed

Renamed

  • Rename CableReadyHelper to CableReady::ViewHelper by @marcoroth in #220 and @erlingur in #224
  • Rename enable_updates to enable_cable_ready_updates by @marcoroth in #250
  • Rename <updates-for> to <cable-ready-updates-for> by @marcoroth in #252
  • Rename <stream-from> to <cable-ready-stream-from> by @marcoroth in #252
  • Rename stream_from(...) to cable_ready_stream_from(...) by @marcoroth in #252
  • Rename updates_for(...) to cable_ready_updates_for(...) by @marcoroth in #252
  • Rename updates_for_if(...) to cable_ready_updates_for_if(...) by @marcoroth in #252
  • Rename CableReadyBroadcastJob to CableReady::BroadcastJob by @julianrubisch in #259
  • Rework CableReady's ActionController::Renderers from operations to cable_ready by @marcoroth in #260
  • Rename cable_ready MIME type from application/vnd.cable-ready.json to text/vnd.cable-ready.json by @marcoroth in #260

Refactoring/Internals

Docs

New packages

@cable_ready/element

@cable_ready/invoke_operations

Dependencies

Details

New Contributors

Commits

Full Changelog: v4.5.0...v5.0.0