Skip to content

Releases: putyourlightson/craft-sprig

3.5.1

23 Oct 19:02
3.5.1
61b0107
Compare
Choose a tag to compare

Changed

  • Updated htmx to version 2.0.3 (changelog).
  • The fetch function is now called inside an event listener when calling sprig.triggerRefreshOnLoad(), making it more robust.
  • Reverted some variable method name changes to improve autocompletion in PhpStorm.

Fixed

  • Fixed the ability to pass a JSON encoded string into the sprig.triggerEvents() function (#15).

2.13.1

23 Oct 19:21
2.13.1
33102bc
Compare
Choose a tag to compare

Changed

  • Updated htmx to version 2.0.3 (changelog).
  • The fetch function is now called inside an event listener when calling sprig.triggerRefreshOnLoad(), making it more robust.
  • Reverted some variable method name changes to improve autocompletion in PhpStorm.

3.5.0

29 Aug 11:38
3.5.0
f54ad7f
Compare
Choose a tag to compare

Added

  • Added the ability to assign an ID to a component by passing a string as the third argument to the sprig() function.

Changed

Fixed

  • Fixed the positioning of the JavaScript output by the sprig.triggerRefreshOnLoad function.

Deprecated

  • Deprecated sprig.getIsBoosted, sprig.getIsError, sprig.getIsHistoryRestoreRequest, sprig.getIsInclude, sprig.getIsRequest, sprig.getIsSuccess. Use sprig.isBoosted, sprig.isError, sprig.isHistoryRestoreRequest, sprig.isInclude, sprig.isRequest, sprig.isSuccess instead.

2.13.0

29 Aug 11:35
2.13.0
50de7c4
Compare
Choose a tag to compare

Added

  • Added the ability to assign an ID to a component by passing a string as the third argument to the sprig() function.

Changed

Fixed

  • Fixed the positioning of the JavaScript output by the sprig.triggerRefreshOnLoad function.

Deprecated

  • Deprecated sprig.getIsBoosted, sprig.getIsError, sprig.getIsHistoryRestoreRequest, sprig.getIsInclude, sprig.getIsRequest, sprig.getIsSuccess. Use sprig.isBoosted, sprig.isError, sprig.isHistoryRestoreRequest, sprig.isInclude, sprig.isRequest, sprig.isSuccess instead.

3.4.0

20 Aug 18:06
3.4.0
39adafa
Compare
Choose a tag to compare

Changed

  • The sprig.registerJs(js) function now executes the registered JavaScript after htmx settles, and is now the recommended way of outputting JavaScript in Sprig components.
  • Components no longer render markup added via {% html %}, {% css %} and {% js %} tags during Sprig requests.

2.12.0

20 Aug 18:25
2.12.0
c6ca31a
Compare
Choose a tag to compare

Changed

  • The sprig.registerJs(js) function now executes the registered JavaScript after htmx settles, and is now the recommended way of outputting JavaScript in Sprig components.
  • Components no longer render markup added via {% html %}, {% css %} and {% js %} tags during Sprig requests.

3.3.0

08 Aug 11:46
3.3.0
6c655bf
Compare
Choose a tag to compare

Added

  • Added the component configurations to a Sprig variable in the browser console when devMode is enabled.
  • Added the ability to pass any value into s-method, including the put, patch and delete verbs.
  • Added the sprig.registerJs(js) function.

Changed

  • The sprig.triggerRefresh(selector, variables) function now prevents cyclical requests.

2.11.0

08 Aug 11:40
2.11.0
d2fe2a4
Compare
Choose a tag to compare

Added

  • Added the component configurations to a Sprig variable in the browser console when devMode is enabled.
  • Added the ability to pass any value into s-method, including the put, patch and delete verbs.
  • Added the sprig.registerJs(js) function.

Changed

  • The sprig.triggerRefresh(selector, variables) function now prevents cyclical requests.

3.2.1

06 Aug 07:31
3.2.1
ec1f380
Compare
Choose a tag to compare

Changed

  • The sprig.swapOob() function now accepts a string in addition to a template to be rendered, in the second argument.

2.10.1

06 Aug 07:15
2.10.1
cea12ce
Compare
Choose a tag to compare

Changed

  • The sprig.swapOob() function now accepts a string in addition to a template to be rendered, in the second argument.