Skip to content

Releases: danieldiekmeier/stimulus-controller-resolver

v.3.1.0

25 Nov 15:29
Compare
Choose a tag to compare

Thanks for using StimulusControllerResolver! In this version, we have one new feature:

Many thanks to @drjayvee for contributing this feature!

v3.0.0...v3.1.0

v3.0.0

25 Mar 21:39
Compare
Choose a tag to compare

No changes from v3.0.0-beta.2, just removing the beta tag!

v3.0.0-beta.2

25 Mar 15:53
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release
  • Remove accidental console.log ff79de2

v3.0.0-beta.1...v3.0.0-beta.2

v3.0.0-beta.1

25 Mar 15:45
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

This version adds a new createViteGlobResolver function, which allows you to use Vite's Glob Import:

import { Application } from "@hotwired/stimulus"
import StimulusControllerResolver, { createViteGlobResolver } from 'stimulus-controller-resolver'

const application = Application.start()

StimulusControllerResolver.install(application, createViteGlobResolver(
  import.meta.glob('../controllers/*-controller.js'),
  import.meta.glob('../../components/**/*-controller.js')
))

We're also no longer using microbundle, so going forward this package is ESM only. I think this should be fine because I think this package is only used in conjunction with bundlers, anyway? We'll see!

v2.0.1...v3.0.0-beta.1

v2.0.1

14 Oct 22:36
Compare
Choose a tag to compare
  • Update README.md to reflect the latest changes ecbbdbf

v2.0.0...v2.0.1

v2.0.0: Update to @hotwired/stimulus v3

14 Oct 22:35
Compare
Choose a tag to compare

This is a major update, because this package now only supports the new @hotwired/stimulus package. It no longer supports the legacy package that was called @stimulus/mutation-observers, as this package has been rolled into Stimulus itself.

This means, you should

  • Read the Stimulus v3 Announcement: https://world.hey.com/hotwired/stimulus-3-c438d432
  • npm uninstall stimulus @stimulus/mutation-observers
  • npm install @hotwired/stimulus
  • Update your imports to import from '@hotwired/stimulus' instead of 'stimulus', for example:
- import { Application } from '@stimulus'
+ import { Application } from '@hotwired/stimulus'
  import StimulusControllerResolver from 'stimulus-controller-resolver'

  const application = Application.start()

v1.1.1...v2.0.0

v1.1.1

10 Apr 20:13
Compare
Choose a tag to compare

This is a tiny upgrade that fixes the version of @stimulus/mutation-observers that is allowed as a peer dependency. It now allows 1.x and 2.x, so it works with Stimulus v2. Thanks to @brendon for bringing this to my attention in #5. I encourage everyone to upgrade.

Thanks for using Stimulus Controller Resolver!

Skip Controllers

27 Aug 08:29
Compare
Choose a tag to compare

If you return a falsy value from your resolver function, we won't try to register it. This behavior resulted in some weird edge cases. I hope the new behavior makes this library a bit more flexible. (This is a result of the discussion at #4)

469c4fe...v1.1.0