Stimulus v2.0.0 Release Notes

Release Date: 2020-12-04 // 6 months ago
    • ๐Ÿ†• NEW: Values and CSS classes APIs (#202)
    • ๐Ÿ†• NEW: Support for DOM event listener options (#232)
    • ๐Ÿ”„ CHANGED: Target attributes are now scoped by identifier (2235047)
    • ๐Ÿ”„ CHANGED: Default event for text inputs from change to input (14ba2ab, #248)
    • ๐Ÿ›  FIXED: Invoking actions for events dispatched during connect (6129975, #222)
    • ๐Ÿ›  FIXED: Error using SVG elements in IE 11 (aa76e25, #274)
    • ๐Ÿ›  FIXED: Nested global action binding (2b6facc, #307)

    โฌ†๏ธ If you're upgrading from a previous version of Stimulus, note that the syntax for target attributes has changed to move the controller identifier into the attribute's name. The new format is data-[identifier]-target="[name]" instead of data-target="[identifier].[name]". You can still use the old syntax, but you will see a warning in the console, and support will be removed in a future version.

    The data map API from Stimulus 1.0 will continue to work but is no longer documented and should be considered internal. We suggest migrating to the new values API.


Previous changes from v1.1.1

    • ๐Ÿ”„ CHANGED : Various documentation improvements (#190, #193, #206)
    • ๐Ÿ›  FIXED : Type declarations for webpack helpers in the stimulus package (#214)
    • ๐Ÿ›  FIXED : Pin @stimulus/polyfills dependencies to work around upstream changes (0251c87)