fix(inflector): get rid of ember inflector
This will allow migration to Ember 5.x and fixes issue https://github.com/miragejs/ember-cli-mirage/issues/2589
I cannot update the pnpm.lock on my side the install fails due to sharp 🤔
@SergeAstapov could you have a look
Thank you for this PR. Is there a chance of this getting released anytime soon ? 🙏
We would be very grateful if someone could take care of this PR. Maybe @cah-brian-gantzler or @SergeAstapov?
Would also be very grateful 🙆
FWIW I was able to use the following shim for now:
Add to /package.json:
"pnpm": {
"overrides": {
"ember-cli-mirage>ember-inflector": "link:./packages/ember-inflector-shim"
}
}
Add /packages/ember-inflector-shim/package.json:
{
"name": "ember-inflector",
"version": "0.0.0-shim",
"main": "index.js",
"dependencies": {
"@ember-data/request-utils": "^5.3.13"
}
}
Add /packages/ember-inflector-shim/index.js:
export { singularize, pluralize } from '@ember-data/request-utils/string';
I recommend the following presentation, which was held at the Ember.js Europe Q1 Meetup: Modern take on ember-cli-mirage that is ready for Embroider and Vite
https://www.youtube.com/watch?v=dW9p9cI7fSQ