Skip to content

Releases: romellem/yamodal

v1.0.1

31 Aug 23:30
Compare
Choose a tag to compare

Chore

  • Bumps various deps for security fixes, and babel + rollup + testing libs.

v1.0.0...v1.0.1

v1.0.0

03 Oct 13:48
Compare
Choose a tag to compare

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...v1.0.0

v0.2.1

22 Aug 17:56
Compare
Choose a tag to compare

Fixes

  • Fixes CustomEvent polyfill for browsers that don't support it, aka, IE (6fc46da).

Chore

  • Upgrades deps, adds globalThis to UMD wrapper (See #4).

v0.2.0...v0.2.1

v0.2.0

01 Aug 18:08
Compare
Choose a tag to compare

Lots of new things here, this release included a bit more than I was intending.

Features

  • Dynamic context() is now called with the trigger_node and event that opened the modal.
  • Allows for null to be passed in for the trigger_selector or close_selector. For the former, a null trigger means no 'click' event is delegated to open the modal. For the latter, a null 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...v0.2.0

v0.1.1

05 Jun 01:05
Compare
Choose a tag to compare
  • Adds repository and site info to package.json so it shows up on NPM's side bar
  • Updates some docs

v0.1.0...v0.1.1

v0.1.0

05 Jun 00:57
Compare
Choose a tag to compare

Initial version!

  • Core Library
    • Function to initialize instance.
    • API for before/after callbacks.
    • Return object to interact with modal instance afterward.
  • Documentation
  • Examples
    • Examples on Github Pages site.