Releases: romellem/yamodal
Releases · romellem/yamodal
v1.0.1
v1.0.0
BREAKING CHANGE
- When opening/closing via the API, the custom event names are now
'open.yamodal'
and'close.yamodal'
, respectively. They were previously'yamodal.open'
and'yamodal.close'
(d238175).
Fixes
- When working a dynamic modal without a close selector specified, we now check for the default close selector each time the modal is created. This fixes a rare edge-case bug where the default close selector is present when the modal is first created, but not present in subsequent creations (52c4630).
Tests
- Expands tests to 100% code coverage
Chore
- Upgrades deps to latest version
v0.2.1
v0.2.0
Lots of new things here, this release included a bit more than I was intending.
Features
- Dynamic
context()
is now called with thetrigger_node
andevent
that opened the modal. - Allows for
null
to be passed in for thetrigger_selector
orclose_selector
. For the former, anull
trigger means no 'click' event is delegated to open the modal. For the latter, anull
close means the modal itself will be closed when clicked.
Tests
- Adds initial tests!
Fixes
- Passes a
CustomEvent
to callbacks when modal is called via its API (as opposed to an object). - Bumps some dependencies, removes some security warnings (e.g. e965b62).
v0.1.1
- Adds repository and site info to package.json so it shows up on NPM's side bar
- Updates some docs