Skip to content

Commit e04aaa6

Browse files
committed
more
1 parent dc0c4e5 commit e04aaa6

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

β€Žtext/1003-deprecation-import-ember-from-ember.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,15 @@ Mixins
149149

150150

151151
Utility
152-
- 🫣 `Ember.lookup`
153-
- 🌐 `Ember.libraries` -
154-
App authors could choose to use any webpack or other build plugin that collections this information, such as [webpack-node-modules-list](https://github.com/ubilabs/webpack-node-modules-list) or [unplugin-info](https://github.com/yjl9903/unplugin-info). This additionally means that V1 libraries that pushed themselves into `Ember.libraries` no longer need to worry about interacting with this or any similar API.
155-
- 🫣 `Ember._Cache`
156-
- πŸ”’ `Ember.GUID_KEY`
157-
- πŸ”’ `Ember.canInvoke`
158-
Instead use [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining):
159-
```js
160-
this.foo?.method?.();
161-
```
152+
| | API | Usage | Migration |
153+
| - | --- | ----- | --------- |
154+
|🫣 | `Ember.lookup` | EmberObserver: [old addons, > 6 years](https://emberobserver.com/code-search?codeQuery=Ember.lookup&sort=updated&sortAscending=false) | Use `getOwner(...).lookup` from `@ember/owner` |
155+
|🌐 | `Ember.libraries` | EmberObserver: [Many usages, mostly ember-data and related](https://emberobserver.com/code-search?codeQuery=Ember.libraries&sort=updated&sortAscending=false) | This isn't a behavior that Ember needs to provide, nor should it be library authors' responsibilty to register themselves with a library listing system. App authors could choose to use any webpack or other build plugin that collections this information, such as [webpack-node-modules-list](https://github.com/ubilabs/webpack-node-modules-list) or [unplugin-info](https://github.com/yjl9903/unplugin-info). |
156+
|🫣 | `Ember._Cache` | EmberObserver: [None](https://emberobserver.com/code-search?codeQuery=Ember._Cache&sort=updated&sortAscending=false) | n/a |
157+
|πŸ”’ | `Ember.GUID_KEY` | EmberObserver: [`ember-data-save-relationships`, 6 years ago](https://emberobserver.com/code-search?codeQuery=Ember.GUID_KEY&sort=updated&sortAscending=false) | n/a |
158+
| πŸ”’ | `Ember.canInvoke` | EmberObserver: [@summit-electric-supply](https://emberobserver.com/code-search?codeQuery=Ember.canInvoke&sort=updated&sortAscending=false) | use [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining), e.g.: `this.foo?.method?.()` |
159+
160+
162161
- 🫣 `Ember.testing`
163162
Instead, use
164163

0 commit comments

Comments
Β (0)