All Versions
11
Latest Version
Avg Release Cycle
131 days
Latest Release
153 days ago

Changelog History
Page 1

  • v2.0.0 Changes

    December 04, 2020
    • πŸ†• 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.

  • v1.1.1 Changes

    January 07, 2019
    • πŸ”„ 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)
  • v1.1.0 Changes

    August 23, 2018
    • πŸ†• NEW: Stimulus Reference documentation
    • πŸ†• NEW: Ordered actions (#149)
    • πŸ†• NEW: @stimulus/polyfills package for legacy browser support (#134, #147, #170)
    • πŸ”„ CHANGED: Applications now start when the DOM is interactive (#131)
    • πŸ”„ CHANGED: Unminified UMD module for easier debugging (#151)
    • πŸ›  FIXED: Stimulus now accounts for missing mutation notifications from nodes removed by innerHTML assignment in IE 11 (#133) and, in rare cases, when annotating elements synchronously after removing them from an observed tree (#161)
    • INTERNAL: Upgraded to TypeScript 2.8.1 and Lerna 3.0.0-rc.0
    • INTERNAL: New build system (#155)
  • v1.1.0-beta.1 Changes

    August 01, 2018
    • πŸ†• NEW: Ordered actions (#149)
    • πŸ†• NEW: @stimulus/polyfills package for legacy browser support (#134, #147, #170)
    • πŸ”„ CHANGED: Applications now start when the DOM is interactive (#131)
    • πŸ”„ CHANGED: Unminified UMD module for easier debugging (#151)
    • πŸ›  FIXED: Stimulus now accounts for missing mutation notifications from nodes removed by innerHTML assignment in IE 11 (#133) and, in rare cases, when annotating elements synchronously after removing them from an observed tree (#161)
    • INTERNAL: Upgraded to TypeScript 2.8.1 and Lerna 3.0.0-rc.0
    • INTERNAL: New build system (#155)
  • v1.0.1 Changes

    February 02, 2018
    • πŸ›  Fix inconsistent this.has*Target property names in different locales (#93)
  • v1.0.0 Changes

    January 30, 2018

    πŸ†• NEW : Linked target properties (#61, #68)

    Define a controller's target names and Stimulus automatically creates properties for accessing them:

    export default class extends Controller {static targets = ["source"]initialize() {this.sourceTarget// Elementthis.sourceTargets// Element[]this.hasSourceTarget // boolean}}
    

    πŸ†• NEW : Configurable error handler (#53)

    const application = Application.start()application.handleError = (error, message, detail) =\> {console.warn(message, detail)Raven.captureException(error)}
    

    πŸ†• NEW : Namespaced identifiers (#65)

    If your controller file is named… its identifier will be…
    list_item_controller.js list-item
    users/list_item_controller.js users--list-item

    πŸ”„ CHANGED : Controller autoloading with webpack (#46)

    A new definitionsFromContext helper replaces the old autoload helper:

    const application = Application.start()-const context = require.context("./controllers", true, /\.js$/)-autoload(context, application)+const context = require.context("./controllers", true, /\.js$/)+application.load(definitionsFromContext(context))
    

    βœ‚ REMOVED : Action method event target argument (#55)

    Previously, action methods were invoked with two arguments: event, eventTarget. Now, only the event is passed:

    -greet(event, eventTarget) {- console.log(event, eventTarget)+greet(event) {+ console.log(event, event.target) }
    

    βœ‚ REMOVED : Controller#{add,remove}Action (#50)

    Noted for posterity since these methods were undocumented.

  • v1.0.0-beta.4

    January 25, 2018
  • v1.0.0-beta.3

    January 24, 2018
  • v1.0.0-beta.2

    January 23, 2018
  • v1.0.0-beta.1

    January 18, 2018