Skip to content

Releases: hotwired/stimulus

v3.2.2

07 Aug 09:33
@dhh dhh
Compare
Choose a tag to compare

What's Changed

  • Add PageUp and PageDown to keyMappings by @seb-jean in #677
  • Adding @window by @ThomasLandauer in #676
  • Add support for number values with underscores by @lb- in #693
  • Support keyboard modifier for click events by @shouichi in #665
  • Outlets: Add observers for controller element attributes by @seanpdoyle in #624
  • Fixed error message in outlet_properties by @drjayvee in #616
  • Explicitly type options of Controller.dispatch() method by @marcoroth in #643
  • Allow ValueTypeObject to be provided as a Partial by @marcoroth in #650
  • Ensure the afterLoad method gets called bound to controller by @lb- in #658
  • Ensure Scope is connected before accessing outlets by @marcoroth in #648
  • Pass the ActionEvent (with params) to registerActionOption callbacks by @lb- in #692
  • Pass the Controller instance to registerActionOption callback by @lb- in #691

New Contributors

Full Changelog: v3.2.1...v3.2.2

v3.2.1

30 Nov 08:06
@dhh dhh
Compare
Choose a tag to compare

What's Changed

  • Fix compatibility with new hotkey syntax and jQuery/Bootstrap events by @NakajimaTakuya in #613

Full Changelog: v3.2.0...v3.2.1

v3.2.0

28 Nov 15:11
@dhh dhh
Compare
Choose a tag to compare

What's Changed

  • Add modifier to filter keyboard events by @NakajimaTakuya in #442
  • Outlets API by @marcoroth in #576
  • Add ability to set afterLoad static methods on Controllers by @lb- in #579
  • Ensure that the Application.start static method uses overridden class by @lb- in #603

Full Changelog: v3.1.1...v3.2.0

v3.1.1

31 Oct 13:43
@dhh dhh
Compare
Choose a tag to compare

What's Changed

  • Clear dangling EventListeners and Detached Nodes when a controller is removed from the DOM by @intrip in #592
  • Support custom Action Options by @seanpdoyle in #567
  • Fix exports field for stimulus package and Webpack 5 by @glaszig in #569
  • Make Action Parameters attributes case-insensitive by @marcoroth in #571
  • Retain backtrace for TypeErrors in value change callback by @elliotcm in #584

Full Changelog: v3.1.0...v3.1.1

v3.1.0

18 Jul 21:37
@dhh dhh
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.1.0

v3.0.1

07 Oct 07:35
@dhh dhh
Compare
Choose a tag to compare

What's Changed

  • Default to toggle event on details HTML element by @rik in #464
  • Prevent infinite looping in target callbacks by @seanpdoyle in #459
  • Include webpack-helpers in stimulus glue/proxy package by @marcoroth in #453

Full Changelog: v3.0.0...v3.0.1

v3.0.0

24 Sep 08:31
@dhh dhh
Compare
Choose a tag to compare

v3.0.0-rc.1

23 Sep 17:42
@dhh dhh
Compare
Choose a tag to compare
  • ADDED: Static shouldLoad function can be used to prevent a controller from registering based on environmental circumstances [#448]
  • REMOVED: Warnings were not working in a number of common instances, so will need to wait for 3.1.
  • REMOVED: Color highlighting for debug mode had problems with dark mode and accessibility.

v3.0.0-beta.2

11 Sep 09:57
@dhh dhh
Compare
Choose a tag to compare
  • FIXED: New dispatch function wasn't in the right scope [70c98de]
  • REMOVED: webpacker-helpers and definitionsFromContext [#444]

Instead of webpack-helpers, use either stimulus-rails with import maps or the new rake task + generator to keep a manifest up to date (or maintain a manifest by hand).

v3.0.0-beta.1

30 Aug 15:19
@dhh dhh
Compare
Choose a tag to compare
  • NEW: Pass action method params [#249]
  • NEW: Fire callbacks when targets are added or removed [#367]
  • NEW: Declare custom default values [#350]
  • NEW: Add [key]Classes method to better handle multiple CSS classes [#344]
  • NEW: Introduce a Debug mode [#354]
  • NEW: Emit warnings for undefined controllers, actions and targets [#413]
  • NEW: Add a convenience method for dispatching DOM events inside a controller [#302]

Stimulus is moving package location on npm from stimulus to @hotwired/stimulus. The new package is an all-in-one, so no more individual packages for core, multi map, mutation-observers, etc.

Stimulus 3 will no longer support IE11. Our compile target is now ES6+.

Note: This release was built from the branch single-package, which will be merged to main as soon as a few issues regarding tests and examples are resolved. But that has no impact on the use of this beta release.

Rails users: You can use this release via stimulus-rails 0.3.10 with the new importmap-rails approach.