This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
Releases: stimulus-components/stimulus-content-loader
Releases · stimulus-components/stimulus-content-loader
5.0.0
Chore
- Renaming the component from
stimulus-content-loader
to@stimulus-components/content-loader
- Upgrading dependencies
- Exporting Typescript Types
- Updating demo UI
- Add Stimulus LSP compatibility
4.2.0
Added
- The controller now dispatches two events
success
anderror
so you can trigger actions accordingly.
Example:
// On `document` or on the element directly.
document.addEventListener('content-loader:success', () => {
console.log('Content loaded successfully.')
})
document.addEventListener('content-loader:error', (e) => {
console.error('Something went wrong.', e.detail.error)
})
4.1.0
Added
- Adding
name
in library export to use the package with CDN, Sprockets andimport-maps
.
Chore
- Upgrading to Node
18
. - Bump dependencies.
- Upgrading to Vite
4.x
. - Docs new UI.
4.0.1
Chore
- Upgrading dependencies
- Setting Stimulus as external dependency reducing bundle size from
2.20 KiB
to0.70 KiB
.
4.0.0
Chore
- Breaking Upgrading Stimulus to
3.x
and change namespace fromstimulus
to@hotwired/stimulus
. - Upgrading dependencies
- Upgrading Node to
14.18.0
v3.0.0
v2.1.0
v2.0.0
[2.0.0] - 2020-12-05
Added
- Support for Stimulus 2.0
- Prevent error if the url is empty.
Changed
- Breaking Using the new
values
static property
- <div data-controller="content-loader" data-content-loader-url="/message.html"></div>
+ <div data-controller="content-loader" data-content-loader-url-value="/message.html"></div>
v1.0.0
v1.0.0
Added
- Adding the controller