Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation guides for deprecating importing from `'ember'' #1381

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions content/ember/v5/deprecate-import---loader-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Ember.__loader
until: 6.0.0
since: 5.10.0
---


Previously, `__loader` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember.__loader
```

There is no replacement for this API.
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--action-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._action
until: 6.0.0
since: 5.10.0
---


Previously, `_action` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._action
```

If needed, `_action` can be imported:
```js
import { action } from '@ember/object';
```
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--array-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._array
until: 6.0.0
since: 5.10.0
---


Previously, `_array` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._array
```

If needed, `_array` can be imported:
```js
import { array } from '@ember/helper';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._assertDestroyablesDestroyed
until: 6.0.0
since: 5.10.0
---


Previously, `_assertDestroyablesDestroyed` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._assertDestroyablesDestroyed
```

If needed, `_assertDestroyablesDestroyed` can be imported:
```js
import { assertDestroyablesDestroyed } from '@ember/destroyable';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._associateDestroyableChild
until: 6.0.0
since: 5.10.0
---


Previously, `_associateDestroyableChild` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._associateDestroyableChild
```

If needed, `_associateDestroyableChild` can be imported:
```js
import { associateDestroyableChild } from '@ember/destroyable';
```
16 changes: 16 additions & 0 deletions content/ember/v5/deprecate-import--backburner-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Ember._Backburner
until: 6.0.0
since: 5.10.0
---


Previously, `_Backburner` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._Backburner
```
`_Backburner` is also private.

There is no replacement for this API.
15 changes: 15 additions & 0 deletions content/ember/v5/deprecate-import--cache-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Ember._Cache
until: 6.0.0
since: 5.10.0
---


Previously, `_Cache` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._Cache
```

There is no replacement for this API.
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--cache-get-value-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._cacheGetValue
until: 6.0.0
since: 5.10.0
---


Previously, `_cacheGetValue` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._cacheGetValue
```

If needed, `_cacheGetValue` can be imported:
```js
import { getValue } from '@glimmer/tracking/primitives/cache';
```
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--cache-is-const-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._cacheIsConst
until: 6.0.0
since: 5.10.0
---


Previously, `_cacheIsConst` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._cacheIsConst
```

If needed, `_cacheIsConst` can be imported:
```js
import { isConst } from '@glimmer/tracking/primitives/cache';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Ember._captureRenderTree
until: 6.0.0
since: 5.10.0
---


Previously, `_captureRenderTree` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._captureRenderTree
```
`_captureRenderTree` is also private.

If needed, `_captureRenderTree` can be imported:
```js
import { captureRenderTree } from '@ember/debug';
```

However, due to `_captureRenderTree` being private, it is not recommended, nor supported.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._componentManagerCapabilities
until: 6.0.0
since: 5.10.0
---


Previously, `_componentManagerCapabilities` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._componentManagerCapabilities
```

If needed, `_componentManagerCapabilities` can be imported:
```js
import { capabilities } from '@ember/component';
```
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--concat-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._concat
until: 6.0.0
since: 5.10.0
---


Previously, `_concat` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._concat
```

If needed, `_concat` can be imported:
```js
import { concat } from '@ember/helper';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Ember._ContainerProxyMixin
until: 6.0.0
since: 5.10.0
---


Previously, `_ContainerProxyMixin` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._ContainerProxyMixin
```
`_ContainerProxyMixin` is also private.

There is no replacement for this API.
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--create-cache-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._createCache
until: 6.0.0
since: 5.10.0
---


Previously, `_createCache` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._createCache
```

If needed, `_createCache` can be imported:
```js
import { createCache } from '@glimmer/tracking/primitives/cache';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._dependentKeyCompat
until: 6.0.0
since: 5.10.0
---


Previously, `_dependentKeyCompat` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._dependentKeyCompat
```

If needed, `_dependentKeyCompat` can be imported:
```js
import { dependentKeyCompat } from '@ember/object/compat';
```
15 changes: 15 additions & 0 deletions content/ember/v5/deprecate-import--descriptor-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Ember._descriptor
until: 6.0.0
since: 5.10.0
---


Previously, `_descriptor` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._descriptor
```

There is no replacement for this API.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._enableDestroyableTracking
until: 6.0.0
since: 5.10.0
---


Previously, `_enableDestroyableTracking` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._enableDestroyableTracking
```

If needed, `_enableDestroyableTracking` can be imported:
```js
import { enableDestroyableTracking } from '@ember/destroyable';
```
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--fn-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._fn
until: 6.0.0
since: 5.10.0
---


Previously, `_fn` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._fn
```

If needed, `_fn` can be imported:
```js
import { fn } from '@ember/helper';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._getComponentTemplate
until: 6.0.0
since: 5.10.0
---


Previously, `_getComponentTemplate` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._getComponentTemplate
```

If needed, `_getComponentTemplate` can be imported:
```js
import { getComponentTemplate } from '@ember/component';
```
18 changes: 18 additions & 0 deletions content/ember/v5/deprecate-import--get-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Ember._get
until: 6.0.0
since: 5.10.0
---


Previously, `_get` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._get
```

If needed, `_get` can be imported:
```js
import { get } from '@ember/helper';
```
15 changes: 15 additions & 0 deletions content/ember/v5/deprecate-import--get-path-from-ember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Ember._getPath
until: 6.0.0
since: 5.10.0
---


Previously, `_getPath` could be accessed via the `Ember` import:
```js
import Ember from 'ember';

Ember._getPath
```

There is no replacement for this API.
Loading
Loading