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-threshold
is not between 0 and 1.
🔧 CHORES
- Switch from
microbundle
toVite
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
✨ 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
MutationObserver
happening when adding/removing elements that are not Nodes.
Full Changelog: v1.2.1...v1.2.3
v1.2.2
🐛 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
🐛 BUGS
- Fix bug with new
MutationObserver
functionality when adding / removing elements that are containingdata-cartapus
elements.
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 newMutationObserver
support.
✨ FEATURES
- Use
MutationObserver
to watch for DOM modifications : when a new element with adata-cartapus
attribute is added into thebody
(or into theroot
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
tov0.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-margin
option.
🔧 OPTIONS
- Improve eslint options.
- Change EOL of all files to LF.
Full Changelog: v1.0.6...v1.1.0