Stimulus Content Loader Versions Save

A Stimulus controller to asynchronously load HTML from an url.

v5.0.0

2 months ago

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

https://github.com/stimulus-components/stimulus-content-loader/compare/v4.2.0...v5.0.0

v4.2.0

9 months ago

Added

  • The controller now dispatches two events success and error 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)
})

https://github.com/stimulus-components/stimulus-content-loader/compare/v4.1.0...v4.2.0

v4.1.0

1 year ago

Added

  • Adding name in library export to use the package with CDN, Sprockets and import-maps.

Chore

  • Upgrading to Node 18.
  • Bump dependencies.
  • Upgrading to Vite 4.x.
  • Docs new UI.

https://github.com/stimulus-components/stimulus-content-loader/compare/v4.0.1...v4.1.0

v4.0.1

2 years ago

Chore

  • Upgrading dependencies
  • Setting Stimulus as external dependency reducing bundle size from 2.20 KiB to 0.70 KiB.

https://github.com/stimulus-components/stimulus-content-loader/compare/v4.0.0...v4.0.1

v4.0.0

2 years ago

Chore

  • Breaking Upgrading Stimulus to 3.x and change namespace from stimulus to @hotwired/stimulus.
  • Upgrading dependencies
  • Upgrading Node to 14.18.0

https://github.com/stimulus-components/stimulus-content-loader/compare/v3.0.0...v4.0.0

v3.0.0

3 years ago

Chore

  • Moving from Snowpack to Vite
  • Upgrading Node to 14.16.1
  • Moving to TypeScript

https://github.com/stimulus-components/stimulus-content-loader/compare/v2.1.0...v3.0.0

v2.1.0

3 years ago

v2.0.0

3 years ago

[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>

https://github.com/stimulus-components/stimulus-content-loader/compare/6505b6462a104c87c963e55685f097ab63f7fb3d...v2.0.0

v1.0.0

3 years ago

v1.0.0

Added

  • Adding the controller