Skip to content

Commit

Permalink
📝 Add all 4.x ember-data deprecation pages
Browse files Browse the repository at this point in the history
These pages are empty for the time being
  • Loading branch information
bartocc committed Apr 17, 2023
1 parent 3a15b01 commit fede3f0
Show file tree
Hide file tree
Showing 24 changed files with 269 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
<li class="list-unstyled" data-test-ember-data-3-link>
<LinkTo @route="show" @models={{array "ember-data" "v3.x" }}>v3.x</LinkTo>
</li>
<li class="list-unstyled" data-test-ember-data-4-link>
<LinkTo @route="show" @models={{array "ember-data" "v4.x" }}>v4.x</LinkTo>
</li>
</ul>
</li>
</ul>
</div>
</div>
10 changes: 10 additions & 0 deletions content/ember-data/v4/deprecate-array-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
id: ember-data:deprecate-array-like
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

[RFC 848](https://rfcs.emberjs.com/id/0848-deprecate-array-prototype-extensions)
13 changes: 13 additions & 0 deletions content/ember-data/v4/deprecate-early-static.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
id: ember-data:deprecate-early-static
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

Accessing schema information on Models without looking up the model via the store is deprecated.
Use store.modelFor (or better Snapshots or the store.getSchemaDefinitionService() apis) instead.

[RFC 741](https://rfcs.emberjs.com/id/0741-ember-data-deprecate-model-static-field-access-without-lookup)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-errors-array-to-hash-helper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-errors-hash-to-array-helper
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

errorsArrayToHash helper has been deprecated

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-errors-hash-to-array-helper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-errors-hash-to-array-helper
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

errorsHashToArray helper has been deprecated

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-has-record-for-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-has-record-for-id
title: TODO
until: '5.0'
since: '4.5'
---

#### TODO

store.hasRecordForId has been deprecated in favor of store.peekRecord

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-instantiate-record-args.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-instantiate-record-args
title: TODO
until: '5.0'
since: '4.12'
---

#### TODO

Expected store.instantiateRecord to have an arity of 2. recordDataFor and notificationManager args have been deprecated.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-model-reopen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-model-reopen
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

Model.reopen is deprecated. Use <> extends Model to extend your class instead.

[RFC 738](https://rfcs.emberjs.com/id/0738-ember-data-deprecate-model-reopen)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-model-reopenclass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-model-reopenclass
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

Model.reopenClass is deprecated. Use Foo extends Model to add static methods and properties to your class instead.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-non-strict-relationships.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-non-strict-relationships
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

hasMany(<type>, <options>) must specify options.inverse as either `null` or string type of the related resource.

[RFC 739](https://rfcs.emberjs.com/id/0739-ember-data-deprecate-non-strict-relationships)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-normalize-modelname-helper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-promise-many-array-behaviors
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

the helper function normalizeModelName is deprecated. You should use model names that are already normalized, or use string helpers of your own. This function is primarily an alias for dasherize from @ember/string.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-promise-many-array-behaviors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-promise-many-array-behaviors
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

The createRecord method on ember-data's PromiseManyArray is deprecated. await the promise and work with the ManyArray directly.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-promise-proxies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-promise-proxies
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

You passed in a PromiseProxy to a Relationship API that now expects a resolved value. await the value before setting it.

[RFC 846](https://rfcs.emberjs.com/id/0846-ember-data-deprecate-proxies)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-record-data-for.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-record-data-for
title: TODO
until: '5.0'
since: '4.10'
---

#### TODO

StoreWrapper.recordDataFor is deprecated. With Singleton Cache, this method is no longer needed as the caller is its own cache reference.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-secret-adapter-fallback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-secret-adapter-fallback
title: TODO
until: '5.0'
since: '4.5'
---

#### TODO

Your application is utilizing a deprecated hidden fallback adapter (-json-api). Please implement an application adapter to function as your fallback.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-store-find.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-promise-many-array-behaviors
title: TODO
until: '5.0'
since: '4.5'
---

#### TODO

Using store.find is deprecated, use store.findRecord instead. Likely this means you are relying on the implicit store fetching behavior of routes unknowingly.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-string-arg-schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-string-arg-schemas
title: TODO
until: '5.0'
since: '4.5'
---

#### TODO

attributesDefinitionFor expects either a record identifier or an argument of shape { type: string }, received a string.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-v1-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-v1-cache
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

This RecordData uses the deprecated V1 RecordData Spec. Upgrade to V2 to maintain compatibility.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/deprecate-v1cache-store-apis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:deprecate-v1cache-store-apis
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

store.hasRecordForId has been deprecated in favor of store.peekRecord

[RFC TODO](TODO)
13 changes: 13 additions & 0 deletions content/ember-data/v4/model-save-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
id: ember-data:model-save-promise
title: TODO
until: '5.0'
since: '4.4'
---

#### TODO

Accessing ${prop} is deprecated. The return type is being changed from PromiseObjectProxy to a Promise.
The only available methods to access on this promise are .then, .catch and .finally`.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/no-a-with-array-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:no-a-with-array-like
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

Do not use A() on an EmberData PromiseManyArray

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/non-explicit-relationships.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:non-explicit-relationships
title: TODO
until: '5.0'
since: '4.7'
---

#### TODO

Relationships that satisfy polymorphic relationships MUST define which abstract-type they are satisfying using 'as'. The field '${fieldOnInverse}' on type '${inverseSchema.modelName}' is misconfigured.

[RFC TODO](TODO)
12 changes: 12 additions & 0 deletions content/ember-data/v4/rsvp-unresolved-async.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
id: ember-data:rsvp-unresolved-async
title: TODO
until: '5.0'
since: '4.5'
---

#### TODO

A Promise for fetching ${relationship.type} did not resolve by the time your model was destroyed. This will error in a future release.

[RFC TODO](TODO)
1 change: 1 addition & 0 deletions lib/content-docs-generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const contentFolders = [
'ember/v4',
'ember-data/v2',
'ember-data/v3',
'ember-data/v4',
'ember-cli/v2',
'ember-cli/v4',
];
Expand Down

0 comments on commit fede3f0

Please sign in to comment.