Releases: thiervoj/cartapus
Releases · thiervoj/cartapus
v1.3.2
v1.3.1
v1.3.0
🐛 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-thresholdis not between 0 and 1.
🔧 CHORES
- Switch from
microbundletoVitewhich 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
✨ 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
🐛 BUGS
- Prevent a bug related to
MutationObserverhappening when adding/removing elements that are not Nodes.
Full Changelog: v1.2.1...v1.2.3
v1.2.2
🐛 BUGS
- Fix bug with
onceparameter not being taken into account when used in the constructor options.
Full Changelog: v1.2.0...v1.2.2
v1.2.1
🐛 BUGS
- Fix bug with new
MutationObserverfunctionality when adding / removing elements that are containingdata-cartapuselements.
Full Changelog: v1.2.0...v1.2.1
v1.2.0
❗ BREAKING
- The
reset()method has been removed as it is now useless thanks to the newMutationObserversupport.
✨ FEATURES
- Use
MutationObserverto watch for DOM modifications : when a new element with adata-cartapusattribute is added into thebody(or into therootevent if given), Cartapus will directly start to observe its visibility. - The
data-cartapus-onceattribute can now used without any value.
🔧 CHORES
- The
eventparameter has been removed. Events are now automatically dispatched. - Updated
eslintconfiguration. - Updated
microbundletov0.15.1. - New website folder to help developing and testing easily.
Full Changelog: v1.1.2...v1.2.0
v1.1.2
v1.1.0
✨ FEATURES
- Add
data-cartapus-root-marginoption.
🔧 OPTIONS
- Improve eslint options.
- Change EOL of all files to LF.
Full Changelog: v1.0.6...v1.1.0