From fede3f0fa18912477a684bb51c6a602409780a0b Mon Sep 17 00:00:00 2001 From: Julien Palmas Date: Mon, 17 Apr 2023 11:16:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20all=204.x=20ember-data=20d?= =?UTF-8?q?eprecation=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These pages are empty for the time being --- app/templates/index.hbs | 5 ++++- content/ember-data/v4/deprecate-array-like.md | 10 ++++++++++ content/ember-data/v4/deprecate-early-static.md | 13 +++++++++++++ .../v4/deprecate-errors-array-to-hash-helper.md | 12 ++++++++++++ .../v4/deprecate-errors-hash-to-array-helper.md | 12 ++++++++++++ .../ember-data/v4/deprecate-has-record-for-id.md | 12 ++++++++++++ .../v4/deprecate-instantiate-record-args.md | 12 ++++++++++++ content/ember-data/v4/deprecate-model-reopen.md | 12 ++++++++++++ .../ember-data/v4/deprecate-model-reopenclass.md | 12 ++++++++++++ .../v4/deprecate-non-strict-relationships.md | 12 ++++++++++++ .../v4/deprecate-normalize-modelname-helper.md | 12 ++++++++++++ .../v4/deprecate-promise-many-array-behaviors.md | 12 ++++++++++++ content/ember-data/v4/deprecate-promise-proxies.md | 12 ++++++++++++ content/ember-data/v4/deprecate-record-data-for.md | 12 ++++++++++++ .../v4/deprecate-secret-adapter-fallback.md | 12 ++++++++++++ content/ember-data/v4/deprecate-store-find.md | 12 ++++++++++++ .../ember-data/v4/deprecate-string-arg-schemas.md | 12 ++++++++++++ content/ember-data/v4/deprecate-v1-cache.md | 12 ++++++++++++ .../ember-data/v4/deprecate-v1cache-store-apis.md | 12 ++++++++++++ content/ember-data/v4/model-save-promise.md | 13 +++++++++++++ content/ember-data/v4/no-a-with-array-like.md | 12 ++++++++++++ content/ember-data/v4/non-explicit-relationships.md | 12 ++++++++++++ content/ember-data/v4/rsvp-unresolved-async.md | 12 ++++++++++++ lib/content-docs-generator/index.js | 1 + 24 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 content/ember-data/v4/deprecate-array-like.md create mode 100644 content/ember-data/v4/deprecate-early-static.md create mode 100644 content/ember-data/v4/deprecate-errors-array-to-hash-helper.md create mode 100644 content/ember-data/v4/deprecate-errors-hash-to-array-helper.md create mode 100644 content/ember-data/v4/deprecate-has-record-for-id.md create mode 100644 content/ember-data/v4/deprecate-instantiate-record-args.md create mode 100644 content/ember-data/v4/deprecate-model-reopen.md create mode 100644 content/ember-data/v4/deprecate-model-reopenclass.md create mode 100644 content/ember-data/v4/deprecate-non-strict-relationships.md create mode 100644 content/ember-data/v4/deprecate-normalize-modelname-helper.md create mode 100644 content/ember-data/v4/deprecate-promise-many-array-behaviors.md create mode 100644 content/ember-data/v4/deprecate-promise-proxies.md create mode 100644 content/ember-data/v4/deprecate-record-data-for.md create mode 100644 content/ember-data/v4/deprecate-secret-adapter-fallback.md create mode 100644 content/ember-data/v4/deprecate-store-find.md create mode 100644 content/ember-data/v4/deprecate-string-arg-schemas.md create mode 100644 content/ember-data/v4/deprecate-v1-cache.md create mode 100644 content/ember-data/v4/deprecate-v1cache-store-apis.md create mode 100644 content/ember-data/v4/model-save-promise.md create mode 100644 content/ember-data/v4/no-a-with-array-like.md create mode 100644 content/ember-data/v4/non-explicit-relationships.md create mode 100644 content/ember-data/v4/rsvp-unresolved-async.md diff --git a/app/templates/index.hbs b/app/templates/index.hbs index fc665f7f..618e4dd7 100644 --- a/app/templates/index.hbs +++ b/app/templates/index.hbs @@ -70,7 +70,10 @@
  • v3.x
  • +
  • + v4.x +
  • - \ No newline at end of file + diff --git a/content/ember-data/v4/deprecate-array-like.md b/content/ember-data/v4/deprecate-array-like.md new file mode 100644 index 00000000..ac38d516 --- /dev/null +++ b/content/ember-data/v4/deprecate-array-like.md @@ -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) diff --git a/content/ember-data/v4/deprecate-early-static.md b/content/ember-data/v4/deprecate-early-static.md new file mode 100644 index 00000000..064fcac2 --- /dev/null +++ b/content/ember-data/v4/deprecate-early-static.md @@ -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) diff --git a/content/ember-data/v4/deprecate-errors-array-to-hash-helper.md b/content/ember-data/v4/deprecate-errors-array-to-hash-helper.md new file mode 100644 index 00000000..ecc145fd --- /dev/null +++ b/content/ember-data/v4/deprecate-errors-array-to-hash-helper.md @@ -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) diff --git a/content/ember-data/v4/deprecate-errors-hash-to-array-helper.md b/content/ember-data/v4/deprecate-errors-hash-to-array-helper.md new file mode 100644 index 00000000..6797d366 --- /dev/null +++ b/content/ember-data/v4/deprecate-errors-hash-to-array-helper.md @@ -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) diff --git a/content/ember-data/v4/deprecate-has-record-for-id.md b/content/ember-data/v4/deprecate-has-record-for-id.md new file mode 100644 index 00000000..aa589f5d --- /dev/null +++ b/content/ember-data/v4/deprecate-has-record-for-id.md @@ -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) diff --git a/content/ember-data/v4/deprecate-instantiate-record-args.md b/content/ember-data/v4/deprecate-instantiate-record-args.md new file mode 100644 index 00000000..cd3eca4b --- /dev/null +++ b/content/ember-data/v4/deprecate-instantiate-record-args.md @@ -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) diff --git a/content/ember-data/v4/deprecate-model-reopen.md b/content/ember-data/v4/deprecate-model-reopen.md new file mode 100644 index 00000000..9061abea --- /dev/null +++ b/content/ember-data/v4/deprecate-model-reopen.md @@ -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) diff --git a/content/ember-data/v4/deprecate-model-reopenclass.md b/content/ember-data/v4/deprecate-model-reopenclass.md new file mode 100644 index 00000000..9fb84fbf --- /dev/null +++ b/content/ember-data/v4/deprecate-model-reopenclass.md @@ -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) diff --git a/content/ember-data/v4/deprecate-non-strict-relationships.md b/content/ember-data/v4/deprecate-non-strict-relationships.md new file mode 100644 index 00000000..b0717a58 --- /dev/null +++ b/content/ember-data/v4/deprecate-non-strict-relationships.md @@ -0,0 +1,12 @@ +--- +id: ember-data:deprecate-non-strict-relationships +title: TODO +until: '5.0' +since: '4.7' +--- + +#### TODO + +hasMany(, ) 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) diff --git a/content/ember-data/v4/deprecate-normalize-modelname-helper.md b/content/ember-data/v4/deprecate-normalize-modelname-helper.md new file mode 100644 index 00000000..427b5086 --- /dev/null +++ b/content/ember-data/v4/deprecate-normalize-modelname-helper.md @@ -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) diff --git a/content/ember-data/v4/deprecate-promise-many-array-behaviors.md b/content/ember-data/v4/deprecate-promise-many-array-behaviors.md new file mode 100644 index 00000000..31d25218 --- /dev/null +++ b/content/ember-data/v4/deprecate-promise-many-array-behaviors.md @@ -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) diff --git a/content/ember-data/v4/deprecate-promise-proxies.md b/content/ember-data/v4/deprecate-promise-proxies.md new file mode 100644 index 00000000..4be34fcd --- /dev/null +++ b/content/ember-data/v4/deprecate-promise-proxies.md @@ -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) diff --git a/content/ember-data/v4/deprecate-record-data-for.md b/content/ember-data/v4/deprecate-record-data-for.md new file mode 100644 index 00000000..1cda03a3 --- /dev/null +++ b/content/ember-data/v4/deprecate-record-data-for.md @@ -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) diff --git a/content/ember-data/v4/deprecate-secret-adapter-fallback.md b/content/ember-data/v4/deprecate-secret-adapter-fallback.md new file mode 100644 index 00000000..3f13582d --- /dev/null +++ b/content/ember-data/v4/deprecate-secret-adapter-fallback.md @@ -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) diff --git a/content/ember-data/v4/deprecate-store-find.md b/content/ember-data/v4/deprecate-store-find.md new file mode 100644 index 00000000..048fa1e4 --- /dev/null +++ b/content/ember-data/v4/deprecate-store-find.md @@ -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) diff --git a/content/ember-data/v4/deprecate-string-arg-schemas.md b/content/ember-data/v4/deprecate-string-arg-schemas.md new file mode 100644 index 00000000..073d66d0 --- /dev/null +++ b/content/ember-data/v4/deprecate-string-arg-schemas.md @@ -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) diff --git a/content/ember-data/v4/deprecate-v1-cache.md b/content/ember-data/v4/deprecate-v1-cache.md new file mode 100644 index 00000000..1fc1f990 --- /dev/null +++ b/content/ember-data/v4/deprecate-v1-cache.md @@ -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) diff --git a/content/ember-data/v4/deprecate-v1cache-store-apis.md b/content/ember-data/v4/deprecate-v1cache-store-apis.md new file mode 100644 index 00000000..5d1e5565 --- /dev/null +++ b/content/ember-data/v4/deprecate-v1cache-store-apis.md @@ -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) diff --git a/content/ember-data/v4/model-save-promise.md b/content/ember-data/v4/model-save-promise.md new file mode 100644 index 00000000..162cccb4 --- /dev/null +++ b/content/ember-data/v4/model-save-promise.md @@ -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) diff --git a/content/ember-data/v4/no-a-with-array-like.md b/content/ember-data/v4/no-a-with-array-like.md new file mode 100644 index 00000000..7cb88ca4 --- /dev/null +++ b/content/ember-data/v4/no-a-with-array-like.md @@ -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) diff --git a/content/ember-data/v4/non-explicit-relationships.md b/content/ember-data/v4/non-explicit-relationships.md new file mode 100644 index 00000000..7d660790 --- /dev/null +++ b/content/ember-data/v4/non-explicit-relationships.md @@ -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) diff --git a/content/ember-data/v4/rsvp-unresolved-async.md b/content/ember-data/v4/rsvp-unresolved-async.md new file mode 100644 index 00000000..9167865f --- /dev/null +++ b/content/ember-data/v4/rsvp-unresolved-async.md @@ -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) diff --git a/lib/content-docs-generator/index.js b/lib/content-docs-generator/index.js index a9899579..e42987bf 100644 --- a/lib/content-docs-generator/index.js +++ b/lib/content-docs-generator/index.js @@ -12,6 +12,7 @@ const contentFolders = [ 'ember/v4', 'ember-data/v2', 'ember-data/v3', + 'ember-data/v4', 'ember-cli/v2', 'ember-cli/v4', ];