Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Releases: stimulus-components/stimulus-content-loader

5.0.0

20 Mar 12:11
Compare
Choose a tag to compare

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

v4.2.0...v5.0.0

4.2.0

09 Aug 03:21
Compare
Choose a tag to compare

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)
})

v4.1.0...v4.2.0

4.1.0

23 Dec 23:38
Compare
Choose a tag to compare

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.

v4.0.1...v4.1.0

4.0.1

03 Apr 20:07
Compare
Choose a tag to compare

Chore

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

v4.0.0...v4.0.1

4.0.0

28 Sep 22:32
Compare
Choose a tag to compare

Chore

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

v3.0.0...v4.0.0

v3.0.0

17 May 22:46
Compare
Choose a tag to compare

Chore

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

v2.1.0...v3.0.0

v2.1.0

05 Jan 13:28
Compare
Choose a tag to compare

Added

  • Adding option to load inline scripts

v2.0.0...v2.1.0

v2.0.0

05 Dec 17:25
Compare
Choose a tag to compare

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

6505b64...v2.0.0

v1.0.0

15 Oct 19:25
Compare
Choose a tag to compare

v1.0.0

Added

  • Adding the controller