Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ember/jquery

emberjs148.6kMIT2.0.0

The default blueprint for ember-cli addons.

ember-addon

readme

ember-jquery

Ember has been historically coupled to jQuery. As part of RFC294, jQuery has been made optional.

This addon makes jQuery available in an Ember project. It also provides the mechanism that implements jQuery integration when that feature is enabled.

Compatibility

  • Ember.js v2.16 or above
  • Ember CLI v2.13 or above
  • Node.js v12 or above

Installation

ember install @ember/jquery

If you also wish to enable Ember's jQuery integration, you must do so explicitly:

ember install @ember/optional-features
ember feature:enable jquery-integration

Usage

import jQuery from 'jquery'
const element = jQuery('#special');

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

changelog

Changelog

v2.0.0 (2021-06-10)

:boom: Breaking Change

:rocket: Enhancement

  • #347 Include Ember.Component.prototype.$ deprecation regardless of Ember version (@rwjblue)

:bug: Bug Fix

  • #345 Update ember-cli-babel to latest for Ember 3.27 compatibility (@rwjblue)
  • #326 Avoid triggering Component reopen deprecation (@mixonic)
  • #321 Remove reference to global Ember API (@mixonic)

:house: Internal

Committers: 4

v1.1.0 (2019-10-04)

:rocket: Enhancement

  • #153 Add missing deprecation message for this.$() (@Turbo87)

Committers: 3

v1.0.0 (2019-10-02)

:boom: Breaking Change

:rocket: Enhancement

  • #148 Allow addon to provide jQuery to final build, but not include Ember <-> jQuery integration. (@lupestro)

:memo: Documentation

Committers: 4

v0.6.1 (2019-06-06)

:bug: Bug Fix

Committers: 1

v0.6.0 (2019-01-25)

:boom: Breaking Change

:rocket: Enhancement

  • #27 Add support for Component.prototype.$() to avoid the deprecation added as part of RFC386 (@simonihmig)
  • #33 Add jQuery shim as part of RFC386 (@simonihmig)

:bug: Bug Fix

  • #37 Update ember-cli-babel to include support for skipping jQuery import transpilation (@simonihmig)

:memo: Documentation

  • #7 Add repo to package.json (@ef4)

Committers: 2

v0.5.2 (2018-06-07)

:bug: Bug Fix

  • #6 Fix logic around warning instructing to remove @ember/jquery. (@rwjblue)

Committers: 1

v0.5.1 (2018-05-23)

:bug: Bug Fix

  • #4 Avoid double import of jQuery when ember-cli has already included it. (@rwjblue)

Committers: 1