Skip to content

Commit

Permalink
Fix until in deprecation warning `ember-data:schema-service-updates…
Browse files Browse the repository at this point in the history
…` (must be 6.0 instead of 5.0) (#9586)

Fix incorrect deprecation warning (must until 6.0 instead of 5.0)
  • Loading branch information
mkszepp authored Oct 30, 2024
1 parent 3720950 commit 007de40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/model/src/-private/schema-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions packages/schema-record/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions packages/store/src/-private/store-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 007de40

Please sign in to comment.