Skip to content

Commit

Permalink
Merge pull request #121 from rwjblue/add-action-decorator-mapping
Browse files Browse the repository at this point in the history
Add `@action` decorator mapping.
  • Loading branch information
rwjblue authored Mar 14, 2019
2 parents 001dbc3 + 92287eb commit 40a2884
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 24 deletions.
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j

| Before | After |
| --- | --- |
| `Ember._action` | `import { action } from '@ember/object';` |
| `Ember._componentManagerCapabilities` | `import { capabilities } from '@ember/component';` |
| `Ember._setComponentManager` | `import { setComponentManager } from '@ember/component';` |
| `Ember._tracked` | `import { tracked } from '@glimmer/tracking';` |
| `Ember.$` | `import $ from 'jquery';` |
| `Ember.A` | `import { A } from '@ember/array';` |
| `Ember.addListener` | `import { addListener } from '@ember/object/events';` |
Expand Down Expand Up @@ -125,6 +129,7 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| `Ember.MutableArray` | `import MutableArray from '@ember/array/mutable';` |
| `Ember.Namespace` | `import Namespace from '@ember/application/namespace';` |
| `Ember.NoneLocation` | `import NoneLocation from '@ember/routing/none-location';` |
| `Ember.notifyPropertyChange` | `import { notifyPropertyChange } from '@ember/object';` |
| `Ember.Object` | `import EmberObject from '@ember/object';` |
| `Ember.ObjectProxy` | `import ObjectProxy from '@ember/object/proxy';` |
| `Ember.Observable` | `import Observable from '@ember/object/observable';` |
Expand Down Expand Up @@ -232,14 +237,16 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| `import { isEnabled } from '@ember/canary-features';` | `Ember.FEATURES.isEnabled` |

#### `@ember/component`
| Module | Global |
| --- | --- |
| `import Component from '@ember/component';` | `Ember.Component` |
| `import Checkbox from '@ember/component/checkbox';` | `Ember.Checkbox` |
| `import Helper from '@ember/component/helper';` | `Ember.Helper` |
| `import { helper as buildHelper } from '@ember/component/helper';` | `Ember.Helper.helper` |
| `import TextArea from '@ember/component/text-area';` | `Ember.TextArea` |
| `import TextField from '@ember/component/text-field';` | `Ember.TextField` |
| Module | Global |
| --- | --- |
| `import Component from '@ember/component';` | `Ember.Component` |
| `import { capabilities } from '@ember/component';` | `Ember._componentManagerCapabilities` |
| `import { setComponentManager } from '@ember/component';` | `Ember._setComponentManager` |
| `import Checkbox from '@ember/component/checkbox';` | `Ember.Checkbox` |
| `import Helper from '@ember/component/helper';` | `Ember.Helper` |
| `import { helper as buildHelper } from '@ember/component/helper';` | `Ember.Helper.helper` |
| `import TextArea from '@ember/component/text-area';` | `Ember.TextArea` |
| `import TextField from '@ember/component/text-field';` | `Ember.TextField` |

#### `@ember/controller`
| Module | Global |
Expand Down Expand Up @@ -295,12 +302,14 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| Module | Global |
| --- | --- |
| `import EmberObject from '@ember/object';` | `Ember.Object` |
| `import { action } from '@ember/object';` | `Ember._action` |
| `import { aliasMethod } from '@ember/object';` | `Ember.aliasMethod` |
| `import { computed } from '@ember/object';` | `Ember.computed` |
| `import { defineProperty } from '@ember/object';` | `Ember.defineProperty` |
| `import { get } from '@ember/object';` | `Ember.get` |
| `import { getProperties } from '@ember/object';` | `Ember.getProperties` |
| `import { getWithDefault } from '@ember/object';` | `Ember.getWithDefault` |
| `import { notifyPropertyChange } from '@ember/object';` | `Ember.notifyPropertyChange` |
| `import { observer } from '@ember/object';` | `Ember.observer` |
| `import { set } from '@ember/object';` | `Ember.set` |
| `import { setProperties } from '@ember/object';` | `Ember.setProperties` |
Expand Down Expand Up @@ -458,6 +467,11 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| --- | --- |
| `import { VERSION } from '@ember/version';` | `Ember.VERSION` |

#### `@glimmer/tracking`
| Module | Global |
| --- | --- |
| `import { tracked } from '@glimmer/tracking';` | `Ember._tracked` |

#### `jquery`
| Module | Global |
| --- | --- |
Expand All @@ -482,10 +496,6 @@ JSON data for [RFC #176](https://github.com/emberjs/rfcs/blob/master/text/0176-j
| `import { reject } from 'rsvp';` | `Ember.RSVP.reject` |
| `import { resolve } from 'rsvp';` | `Ember.RSVP.resolve` |

#### `@glimmer/tracking`
| Module | Global |
| --- | --- |
| `import { tracked } from '@glimmer/tracking';` | `Ember._tracked` |

### Scripts

Expand Down
30 changes: 18 additions & 12 deletions mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@
"export": "setComponentManager",
"deprecated": false
},
{
"global": "Ember._tracked",
"module": "@glimmer/tracking",
"export": "tracked",
"deprecated": false
},
{
"global": "Ember.Checkbox",
"module": "@ember/component/checkbox",
Expand Down Expand Up @@ -329,6 +323,12 @@
"localName": "EmberObject",
"deprecated": false
},
{
"global": "Ember._action",
"module": "@ember/object",
"export": "action",
"deprecated": false
},
{
"global": "Ember.aliasMethod",
"module": "@ember/object",
Expand Down Expand Up @@ -365,6 +365,12 @@
"export": "getWithDefault",
"deprecated": false
},
{
"global": "Ember.notifyPropertyChange",
"module": "@ember/object",
"export": "notifyPropertyChange",
"deprecated": false
},
{
"global": "Ember.observer",
"module": "@ember/object",
Expand Down Expand Up @@ -1074,6 +1080,12 @@
"export": "VERSION",
"deprecated": false
},
{
"global": "Ember._tracked",
"module": "@glimmer/tracking",
"export": "tracked",
"deprecated": false
},
{
"global": "Ember.Application",
"module": "ember-application",
Expand Down Expand Up @@ -1816,12 +1828,6 @@
"export": "sendEvent"
}
},
{
"global": "Ember.notifyPropertyChange",
"module": "@ember/object",
"export": "notifyPropertyChange",
"deprecated": false
},
{
"global": "Ember.get",
"module": "ember-metal/get",
Expand Down

0 comments on commit 40a2884

Please sign in to comment.