Skip to content

Releases: thiervoj/cartapus

v1.3.2

10 Apr 14:21
Compare
Choose a tag to compare

🐛 BUGS

  • Fix path to js file in example file.

Full Changelog: v1.3.1...v1.3.2

v1.3.1

10 Apr 14:11
Compare
Choose a tag to compare

🔧 CHORES

  • Updated eslint to 9.0.0, now using flat config.

Full Changelog: v1.3.0...v1.3.1

v1.3.0

16 Feb 12:33
Compare
Choose a tag to compare

🐛 BUGS

  • In some cases, the configuration between two cartapus targets could not be correctly reset, resulting in the first configuration being applied to the second target's configuration.
  • Added a warning if the data-cartapus-threshold is not between 0 and 1.

🔧 CHORES

  • Switch from microbundle to Vite which makes the repo lighter by having less files and less folders.
  • Use private class methods and optional chaining.
  • Use postcss-nesting to nest the css of the dev page.

Full Changelog: v1.2.4...v1.3.0

v1.2.4

31 Jan 14:41
Compare
Choose a tag to compare

✨ FEATURES

  • New .add() method to start observing a new element manually.
  • New .triggerEvents() method to force an event trigger of all elements. You can provide a single element or an array of element to trigger events only for these targets.

Full Changelog: v1.2.3...v1.2.4

v1.2.3

31 Jan 13:58
Compare
Choose a tag to compare

🐛 BUGS

  • Prevent a bug related to MutationObserver happening when adding/removing elements that are not Nodes.

Full Changelog: v1.2.1...v1.2.3

v1.2.2

31 Jan 13:27
Compare
Choose a tag to compare

🐛 BUGS

  • Fix bug with once parameter not being taken into account when used in the constructor options.

Full Changelog: v1.2.0...v1.2.2

v1.2.1

31 Jan 08:47
Compare
Choose a tag to compare

🐛 BUGS

  • Fix bug with new MutationObserver functionality when adding / removing elements that are containing data-cartapus elements.

Full Changelog: v1.2.0...v1.2.1

v1.2.0

30 Jan 17:26
Compare
Choose a tag to compare

❗ BREAKING

  • The reset() method has been removed as it is now useless thanks to the new MutationObserver support.

✨ FEATURES

  • Use MutationObserver to watch for DOM modifications : when a new element with a data-cartapus attribute is added into the body (or into the root event if given), Cartapus will directly start to observe its visibility.
  • The data-cartapus-once attribute can now used without any value.

🔧 CHORES

  • The event parameter has been removed. Events are now automatically dispatched.
  • Updated eslint configuration.
  • Updated microbundle to v0.15.1.
  • New website folder to help developing and testing easily.

Full Changelog: v1.1.2...v1.2.0

v1.1.2

10 Jan 13:48
Compare
Choose a tag to compare

✨ FEATURES

  • Upgrade node_modules & build.

Full Changelog: v1.1.0...v1.1.2

v1.1.0

10 Jan 13:37
Compare
Choose a tag to compare

✨ FEATURES

  • Add data-cartapus-root-margin option.

🔧 OPTIONS

  • Improve eslint options.
  • Change EOL of all files to LF.

Full Changelog: v1.0.6...v1.1.0