Skip to content

Releases: putyourlightson/craft-sprig-core

2.12.3

19 Sep 17:54
2.12.3
f125ae3
Compare
Choose a tag to compare

Fixed

  • Fixed a missing import (#16.

2.12.2

17 Sep 06:00
2.12.2
52ff31a
Compare
Choose a tag to compare

Changed

  • Reverted the removal of the sprig.script function (#391.

3.5.1

11 Sep 11:53
3.5.1
2f6e18f
Compare
Choose a tag to compare

Fixed

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

2.12.1

11 Sep 11:53
2.12.1
5db7e78
Compare
Choose a tag to compare

Fixed

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

3.5.0

29 Aug 07:37
3.5.0
cdf6e05
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.12.0

29 Aug 11:34
2.12.0
513f544
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.1

20 Aug 18:31
3.4.1
8dc409c
Compare
Choose a tag to compare

Fixed

  • Fixed a bug that was breaking the Sprig variable in the browser console with devMode enabled.

3.4.0

20 Aug 18:04
3.4.0
e0363b4
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.11.1

20 Aug 18:33
2.11.1
0dfe5db
Compare
Choose a tag to compare

Fixed

  • Fixed a bug that was breaking the Sprig variable in the browser console with devMode enabled.

2.11.0

20 Aug 18:24
2.11.0
7a1d138
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.