Skip to content

Releases: ember-polyfills/ember-on-modifier

v1.0.1

16 Apr 23:10
Compare
Choose a tag to compare

v1.0.0

13 Jul 07:28
Compare
Choose a tag to compare

This release contains no breaking changes, compared to the previous release v0.12.4. We just solidified the API as v1.0.0. 🎉

Commits

  • test: [>=3.11] fix CI when the polyfill is inert (#73) 12a0240
Dependabot Updates
  • Merge pull request #88 from buschtoens/dependabot/npm_and_yarn/lodash-4.17.14 be75e0a
  • chore(deps): [security] bump lodash from 4.17.11 to 4.17.14 920483e
  • Merge pull request #87 from buschtoens/dependabot/npm_and_yarn/lodash.merge-4.6.2 c34666d
  • chore(deps): [security] bump lodash.merge from 4.6.1 to 4.6.2 f053a4d
  • Merge pull request #86 from buschtoens/dependabot/npm_and_yarn/lodash.defaultsdeep-4.6.1 68c7466
  • chore(deps): [security] bump lodash.defaultsdeep from 4.6.0 to 4.6.1 cfc4705
  • Merge pull request #85 from buschtoens/dependabot/npm_and_yarn/ember-cli-htmlbars-3.1.0 7400fe2
  • chore(deps-dev): bump ember-cli-htmlbars from 3.0.1 to 3.1.0 4ce0894
  • Merge pull request #84 from buschtoens/dependabot/npm_and_yarn/ember-source-3.11.1 2b7028a
  • chore(deps-dev): bump ember-source from 3.11.0 to 3.11.1 6e56439
  • Merge pull request #82 from buschtoens/dependabot/npm_and_yarn/@clark/eslint-config-ember-1.4.1 f8684c9
  • chore(deps-dev): bump @clark/eslint-config-ember from 1.3.1 to 1.4.1 abe8e55
  • Merge pull request #81 from buschtoens/dependabot/npm_and_yarn/@clark/eslint-config-node-1.4.1 bbc25d3
  • chore(deps-dev): bump @clark/eslint-config-node from 1.3.0 to 1.4.1 8e95394
  • Merge pull request #80 from buschtoens/dependabot/npm_and_yarn/ember-source-3.11.0 f524dd5
  • chore(deps-dev): bump ember-source from 3.10.2 to 3.11.0 32ed933
  • Merge pull request #79 from buschtoens/dependabot/npm_and_yarn/eslint-6.0.1 08100f7
  • chore(deps-dev): bump eslint from 6.0.0 to 6.0.1 1fa9b47
  • Merge pull request #78 from buschtoens/dependabot/npm_and_yarn/eslint-6.0.0 9515856
  • chore(deps-dev): bump eslint from 5.16.0 to 6.0.0 ec2b1f9
  • Merge pull request #77 from buschtoens/dependabot/npm_and_yarn/ember-template-lint-1.3.0 1f4dc54
  • chore(deps-dev): bump ember-template-lint from 1.2.0 to 1.3.0 53937ff
  • Merge pull request #76 from buschtoens/dependabot/npm_and_yarn/ember-source-3.10.2 98b6047
  • chore(deps-dev): bump ember-source from 3.10.1 to 3.10.2 a5ef068
  • Merge pull request #75 from buschtoens/dependabot/npm_and_yarn/ember-cli-babel-7.8.0 b183aa0
  • chore(deps): bump ember-cli-babel from 7.7.3 to 7.8.0 ca9eb58
  • Merge pull request #64 from buschtoens/dependabot/npm_and_yarn/ember-source-3.10.1 502e322
  • Merge pull request #70 from buschtoens/dependabot/npm_and_yarn/@clark/eslint-config-node-1.3.0 5808146
  • chore(deps-dev): bump ember-source from 3.9.1 to 3.10.1 8263044
  • Merge pull request #61 from buschtoens/dependabot/npm_and_yarn/ember-source-channel-url-2.0.1 aa673cd
  • chore(deps-dev): bump @clark/eslint-config-node from 1.1.1 to 1.3.0 d95bb16
  • Merge pull request #71 from buschtoens/dependabot/npm_and_yarn/@clark/eslint-config-ember-1.3.1 eef912a
  • Merge pull request #63 from buschtoens/dependabot/npm_and_yarn/ember-cli-dependency-checker-3.2.0 4862dae
  • chore(deps-dev): bump ember-source-channel-url from 1.1.0 to 2.0.1 dc3c95f
  • Merge pull request #72 from buschtoens/dependabot/npm_and_yarn/ember-template-lint-1.2.0 d112159
  • chore(deps-dev): bump @clark/eslint-config-ember from 1.1.1 to 1.3.1 f57735f
  • chore(deps-dev): bump ember-cli-dependency-checker from 3.1.0 to 3.2.0 5f46140
  • Merge pull request #62 from buschtoens/dependabot/npm_and_yarn/ember-cli-3.10.1 73fbf37
  • chore(deps-dev): bump ember-template-lint from 1.1.0 to 1.2.0 b3316c1
  • chore(deps-dev): bump ember-cli from 3.9.0 to 3.10.1 aed126e
  • Merge pull request #60 from buschtoens/dependabot/npm_and_yarn/ember-try-1.2.1 35697d4
  • chore(deps-dev): bump ember-try from 1.1.0 to 1.2.1 9abbada
  • Merge pull request #74 from buschtoens/dependabot/npm_and_yarn/qunit-dom-0.9.0 0fb7086
  • chore(deps-dev): bump qunit-dom from 0.8.5 to 0.9.0 ff946a6

v0.12.4...v1.0.0

v0.12.4

07 Jun 11:15
Compare
Choose a tag to compare
  • docs(deprecation): use correct ember-fn-helepr-polyfill fa19a4d
  • docs(README): add link to ember-on-helper ff8c01b
  • chore(deps): upgrade dependencies 66b17c5

v0.12.3...v0.12.4

v0.12.3

07 Jun 11:16
Compare
Choose a tag to compare

Thanks to @gmurphey, ember-on-modifier is now a true polyfill and is completely inert for Ember versions >=3.11.0-beta.1.

Pull Requests

  • #57 feat: making ember-on-modifier a true polyfill by @gmurphey 👏
    • Closes #50 Disable polyfill for Ember 3.11
    • Closes #45 Make a "true" polyfill

v0.12.2

29 Apr 11:58
Compare
Choose a tag to compare

#48: This release deprecates the included (prevent-default) template helper. Please use ember-event-helpers instead.

v0.12.1

20 Apr 09:56
Compare
Choose a tag to compare

Fixes

#41: SUPPORTS_EVENT_OPTIONS is never true (even on Chrome)

Since all options were polyfilled, this did not cause any bugs, but a slight performance degradation. This is now fixed and covered with tests! Thanks to @rwjblue for reporting it.

v0.12.0

15 Apr 15:31
Compare
Choose a tag to compare

Together with v0.11.0, ember-on-modifier is now an RFC-compliant polyfill.

  • refactor: use setModifierManager from @ember/modifier 735d639
  • feat: assert against preventDefault for passive events 2a1110f #40

v0.11.0

15 Apr 14:43
Compare
Choose a tag to compare
  • fix: scope event options to those allowed in the RFC 79a9340 #36
  • feat: [IE11] polyfill capture option 53de1b3 #37
  • fix: deprecate partial application 5b337d4 #38
  • docs(README): reference RFC and {{fn}} helper 0299e67
  • fix: assert correct param types 3167d92 #39
  • docs(README): update IE11 support and event options 1ca3b9d

v0.8.0

15 Mar 10:11
Compare
Choose a tag to compare

Description

This release adds support for passing through parameters to the event listener, just like with {{action}}.

<button {{on "click" this.onClick "foo" "bar"}}>Click me</button>
export default class extends Component {
  @action
  onClick(foo: string, bar: string, event: MouseEvent) {
    console.log({ foo, bar, event }); // => { foo: "foo", bar: "bar", event: Event { ... } }
  }
}

Features

  • #19: feat: pass through additional parameters (#20)

Changes

v0.7.0...v0.8.0

v0.7.0

06 Mar 08:21
Compare
Choose a tag to compare

Description

This release adds a prevent-default template helper, that you can use like this:

<a href="/" {{on "click" (prevent-default this.someAction)}}>Click me</a>
<a href="/" {{on "click" this.someAction}} {{on "click" (prevent-default)}}>Click me</a>

This is effectively the same as calling event.preventDefault() in your event handler or using the {{action}} modifier like this:

<a href="/" {{action this.someAction preventDefault=true}}>Click me</a>

Features

  • #5: feat(prevent-default): add prevent-default template helper (#8) d7e3fd1

Changes

v0.6.0...v0.7.0