From 3ff4e99bc60ed892c4b5b667312a66fc36d4dbc7 Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Sun, 15 Oct 2023 22:15:46 +0200 Subject: [PATCH] import dasherize from @ember/string to fix Mirage deprecation (#670) --- mirage/serializers/application.js | 3 ++- package.json | 1 + yarn.lock | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mirage/serializers/application.js b/mirage/serializers/application.js index d45b74c..68d809e 100644 --- a/mirage/serializers/application.js +++ b/mirage/serializers/application.js @@ -1,5 +1,6 @@ import { RestSerializer } from 'ember-cli-mirage'; -import { dasherize, pluralize } from 'ember-cli-mirage/utils/inflector'; +import { dasherize } from '@ember/string'; +import { pluralize } from 'ember-cli-mirage/utils/inflector'; export default RestSerializer.extend({ keyForForeignKey(relationshipName) { diff --git a/package.json b/package.json index 4e69956..102b8e5 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "devDependencies": { "@ember/optional-features": "^2.0.0", + "@ember/string": "^3.1.1", "@ember/test-helpers": "^2.6.0", "@glimmer/component": "^1.0.4", "@glimmer/tracking": "^1.0.4", diff --git a/yarn.lock b/yarn.lock index e52fa92..7712455 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1291,7 +1291,7 @@ ember-cli-babel "^7.26.11" ember-modifier-manager-polyfill "^1.2.0" -"@ember/string@^3.0.0": +"@ember/string@^3.0.0", "@ember/string@^3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@ember/string/-/string-3.1.1.tgz#0a5ac0d1e4925259e41d5c8d55ef616117d47ff0" integrity sha512-UbXJ+k3QOrYN4SRPHgXCqYIJ+yWWUg1+vr0H4DhdQPTy8LJfyqwZ2tc5uqpSSnEXE+/1KopHBE5J8GDagAg5cg==