From 007de40adb66b00116c69b32eadfca22f074fc8d Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Wed, 30 Oct 2024 22:12:33 +0100 Subject: [PATCH] Fix `until` in deprecation warning `ember-data:schema-service-updates` (must be 6.0 instead of 5.0) (#9586) Fix incorrect deprecation warning (must until 6.0 instead of 5.0) --- packages/model/src/-private/schema-provider.ts | 6 +++--- packages/schema-record/src/schema.ts | 6 +++--- packages/store/src/-private/store-service.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/model/src/-private/schema-provider.ts b/packages/model/src/-private/schema-provider.ts index 48c27c70ec0..eedae62ab0e 100644 --- a/packages/model/src/-private/schema-provider.ts +++ b/packages/model/src/-private/schema-provider.ts @@ -166,7 +166,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { ModelSchemaProvider.prototype.doesTypeExist = function (type: string): boolean { deprecate(`Use \`schema.hasResource({ type })\` instead of \`schema.doesTypeExist(type)\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -181,7 +181,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { ): AttributesSchema { deprecate(`Use \`schema.fields({ type })\` instead of \`schema.attributesDefinitionFor({ type })\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -202,7 +202,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { ): RelationshipsSchema { deprecate(`Use \`schema.fields({ type })\` instead of \`schema.relationshipsDefinitionFor({ type })\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', diff --git a/packages/schema-record/src/schema.ts b/packages/schema-record/src/schema.ts index 39b1d9e1aec..c1624d2759e 100644 --- a/packages/schema-record/src/schema.ts +++ b/packages/schema-record/src/schema.ts @@ -281,7 +281,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { }): InternalSchema['attributes'] { deprecate(`Use \`schema.fields({ type })\` instead of \`schema.attributesDefinitionFor({ type })\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -304,7 +304,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { }): InternalSchema['relationships'] { deprecate(`Use \`schema.fields({ type })\` instead of \`schema.relationshipsDefinitionFor({ type })\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -323,7 +323,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { SchemaService.prototype.doesTypeExist = function (type: string): boolean { deprecate(`Use \`schema.hasResource({ type })\` instead of \`schema.doesTypeExist(type)\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', diff --git a/packages/store/src/-private/store-service.ts b/packages/store/src/-private/store-service.ts index 2cd6080309c..687380d7112 100644 --- a/packages/store/src/-private/store-service.ts +++ b/packages/store/src/-private/store-service.ts @@ -2390,7 +2390,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { assert(`You must registerSchemaDefinitionService with the store to use custom model classes`, this._schema); deprecate(`Use \`store.schema\` instead of \`store.getSchemaDefinitionService()\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -2402,7 +2402,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { Store.prototype.registerSchemaDefinitionService = function (schema: SchemaService) { deprecate(`Use \`store.createSchemaService\` instead of \`store.registerSchemaDefinitionService()\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4', @@ -2414,7 +2414,7 @@ if (ENABLE_LEGACY_SCHEMA_SERVICE) { Store.prototype.registerSchema = function (schema: SchemaService) { deprecate(`Use \`store.createSchemaService\` instead of \`store.registerSchema()\``, false, { id: 'ember-data:schema-service-updates', - until: '5.0', + until: '6.0', for: 'ember-data', since: { available: '5.4',