Releases: hotwired/stimulus
v3.2.2
What's Changed
- Add
PageUp
andPageDown
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 aPartial
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) toregisterActionOption
callbacks by @lb- in #692 - Pass the
Controller
instance toregisterActionOption
callback by @lb- in #691
New Contributors
- @drjayvee made their first contribution in #616
- @devcamke made their first contribution in #655
- @frederfred made their first contribution in #664
- @ThomasLandauer made their first contribution in #675
- @seb-jean made their first contribution in #677
- @shouichi made their first contribution in #665
- @dnlgrv made their first contribution in #679
- @benoittgt made their first contribution in #663
- @swh-tropic made their first contribution in #696
- @tellodaniel made their first contribution in #705
Full Changelog: v3.2.1...v3.2.2
v3.2.1
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
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
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 forstimulus
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
What's Changed
- Adds new Action Options, namely
:stop
and:prevent
by @radiantshaw in #535 - Adds new Action Option
:self
by @radiantshaw in #546 - Allow action params for global events by @rik in #495
- move shouldLoad check from register to load function by @adrienpoly in #493
- Boolean decoding is not case-sensitive by @vastray in #472
- Fire Value Change Callbacks consistently by @seanpdoyle in #499
- Allow refining the type of Controller elements by @rik in #529
- Fix
stimulus
glue package for cdn use by @marcoroth in #468
Full Changelog: v3.0.1...v3.1.0
v3.0.1
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
instimulus
glue/proxy package by @marcoroth in #453
Full Changelog: v3.0.0...v3.0.1
v3.0.0
v3.0.0-rc.1
- 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
- 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
- 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.