Skip to content

Commit 1d33ca7

Browse files
authored
Merge pull request #1381 from NullVoxPopuli/guide-for-deprecate-import-from-ember
Deprecation guides for deprecating importing from `'ember''
2 parents c01db03 + bc755f6 commit 1d33ca7

File tree

149 files changed

+2668
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+2668
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Ember.__loader
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `__loader` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember.__loader
13+
```
14+
15+
There is no replacement for this API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._action
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_action` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._action
13+
```
14+
15+
If needed, `_action` can be imported:
16+
```js
17+
import { action } from '@ember/object';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._array
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_array` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._array
13+
```
14+
15+
If needed, `_array` can be imported:
16+
```js
17+
import { array } from '@ember/helper';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._assertDestroyablesDestroyed
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_assertDestroyablesDestroyed` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._assertDestroyablesDestroyed
13+
```
14+
15+
If needed, `_assertDestroyablesDestroyed` can be imported:
16+
```js
17+
import { assertDestroyablesDestroyed } from '@ember/destroyable';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._associateDestroyableChild
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_associateDestroyableChild` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._associateDestroyableChild
13+
```
14+
15+
If needed, `_associateDestroyableChild` can be imported:
16+
```js
17+
import { associateDestroyableChild } from '@ember/destroyable';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Ember._Backburner
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_Backburner` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._Backburner
13+
```
14+
`_Backburner` is also private.
15+
16+
There is no replacement for this API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Ember._Cache
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_Cache` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._Cache
13+
```
14+
15+
There is no replacement for this API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._cacheGetValue
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_cacheGetValue` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._cacheGetValue
13+
```
14+
15+
If needed, `_cacheGetValue` can be imported:
16+
```js
17+
import { getValue } from '@glimmer/tracking/primitives/cache';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._cacheIsConst
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_cacheIsConst` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._cacheIsConst
13+
```
14+
15+
If needed, `_cacheIsConst` can be imported:
16+
```js
17+
import { isConst } from '@glimmer/tracking/primitives/cache';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Ember._captureRenderTree
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_captureRenderTree` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._captureRenderTree
13+
```
14+
`_captureRenderTree` is also private.
15+
16+
If needed, `_captureRenderTree` can be imported:
17+
```js
18+
import { captureRenderTree } from '@ember/debug';
19+
```
20+
21+
However, due to `_captureRenderTree` being private, it is not recommended, nor supported.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._componentManagerCapabilities
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_componentManagerCapabilities` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._componentManagerCapabilities
13+
```
14+
15+
If needed, `_componentManagerCapabilities` can be imported:
16+
```js
17+
import { capabilities } from '@ember/component';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._concat
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_concat` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._concat
13+
```
14+
15+
If needed, `_concat` can be imported:
16+
```js
17+
import { concat } from '@ember/helper';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Ember._ContainerProxyMixin
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_ContainerProxyMixin` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._ContainerProxyMixin
13+
```
14+
`_ContainerProxyMixin` is also private.
15+
16+
There is no replacement for this API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._createCache
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_createCache` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._createCache
13+
```
14+
15+
If needed, `_createCache` can be imported:
16+
```js
17+
import { createCache } from '@glimmer/tracking/primitives/cache';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._dependentKeyCompat
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_dependentKeyCompat` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._dependentKeyCompat
13+
```
14+
15+
If needed, `_dependentKeyCompat` can be imported:
16+
```js
17+
import { dependentKeyCompat } from '@ember/object/compat';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Ember._descriptor
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_descriptor` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._descriptor
13+
```
14+
15+
There is no replacement for this API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._enableDestroyableTracking
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_enableDestroyableTracking` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._enableDestroyableTracking
13+
```
14+
15+
If needed, `_enableDestroyableTracking` can be imported:
16+
```js
17+
import { enableDestroyableTracking } from '@ember/destroyable';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._fn
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_fn` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._fn
13+
```
14+
15+
If needed, `_fn` can be imported:
16+
```js
17+
import { fn } from '@ember/helper';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._getComponentTemplate
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_getComponentTemplate` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._getComponentTemplate
13+
```
14+
15+
If needed, `_getComponentTemplate` can be imported:
16+
```js
17+
import { getComponentTemplate } from '@ember/component';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Ember._get
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_get` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._get
13+
```
14+
15+
If needed, `_get` can be imported:
16+
```js
17+
import { get } from '@ember/helper';
18+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Ember._getPath
3+
until: 7.0.0
4+
since: 6.5.0
5+
---
6+
7+
8+
Previously, `_getPath` could be accessed via the `Ember` import:
9+
```js
10+
import Ember from 'ember';
11+
12+
Ember._getPath
13+
```
14+
15+
There is no replacement for this API.

0 commit comments

Comments
 (0)