Skip to content

Releases: firstandthird/domodule

3.0.0

Choose a tag to compare

@dawnerd dawnerd released this 25 Nov 05:45

New Features

  • Nested modules are now supported

Maintenance

  • Added editorconfig

Breaking Changes

  • Nested modules are no longer parsed which may break existing code. Check to make sure your code doesn't have any nested modules, and if it does test before going to production.

2.1.0

Choose a tag to compare

@dawnerd dawnerd released this 08 Sep 10:25

Actions can be bound to module element.

1.1.2

Choose a tag to compare

@dawnerd dawnerd released this 03 Jun 02:44

Fixes bad if/else in discover method.

1.1.1

Choose a tag to compare

@dawnerd dawnerd released this 03 Jun 02:33

Fixes the discover method. Was still using the old id attribute as the ref.

1.1.0

Choose a tag to compare

@dawnerd dawnerd released this 31 May 23:57

Breaking changes:

getInstance Chances to no longer accept an id. You must pass a dom node going forward. Unique IDs are no longer needed for every module.

1.0.0

Choose a tag to compare

@dawnerd dawnerd released this 17 May 00:23

Adds:

  • separate methods for binding actions and elements
  • findOne
  • findByName
  • getOption
  • tests
  • data-module-global-/data-action-global-
  • refs to instance stored on Domodule
  • getInstance
  • discover

Breaking changes:

You must now call Domodule.discover(); for everything to work. The old dist/index.js is no more.