Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Ember.Inflector, Ember.String.singularize() and Ember.String.pluralize() #131

Merged
merged 3 commits into from
Nov 11, 2017

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jul 11, 2017

Resolves parts of #125

/cc @rwjblue

@Turbo87
Copy link
Member Author

Turbo87 commented Jul 23, 2017

@stefanpenner @fivetanley any comments?

@fsmanuel
Copy link
Contributor

👍

@fsmanuel
Copy link
Contributor

@Turbo87 We should update the readme usage.

  • Change or remove the first line
  • remove
// or if not using Ember CLI/ES6
Ember.Inflector.inflector.pluralize("taco"); // tacos

@Turbo87
Copy link
Member Author

Turbo87 commented Jul 23, 2017

@fsmanuel good point, will update that too

@rwjblue
Copy link
Member

rwjblue commented Aug 15, 2017

We need to update ember-data to avoid the deprecation before landing this.

@locks
Copy link
Contributor

locks commented Sep 21, 2017

Ember Data should be updated, with a backport to release, according to linked PRs. Merge?

@rwjblue
Copy link
Member

rwjblue commented Oct 5, 2017

Yes, this is ready to merge and release. I’ll try to do it in the AM...

@Turbo87
Copy link
Member Author

Turbo87 commented Oct 23, 2017

@rwjblue reminder, just in case you forgot :)

@rwjblue rwjblue merged commit 2316f89 into emberjs:master Nov 11, 2017
delkopiso added a commit to alphasights/ember-graphql-adapter that referenced this pull request Nov 29, 2017
We're using ember-inflector incorrectly in two
[deprecated](emberjs/ember-inflector#131) ways:
- via `Ember.Inflector`
- via `Ember.String.singularize` and `Ember.String.pluralize`

and `ember-inflector` is not even listed as a dependency.

Solution
- Declares `ember-inflector` as an explicit dependency.
- Fixes usage of `singularize` and `pluralize`.
- Fixes usage of `Ember.Inflector` as prescribed in the [ember
guides](https://guides.emberjs.com/v2.16.0/models/customizing-adapters/#toc_pluralization-customization)
delkopiso added a commit to alphasights/ember-graphql-adapter that referenced this pull request Nov 29, 2017
Problem
We're using ember-inflector incorrectly in two
[deprecated](emberjs/ember-inflector#131) ways:
- via `Ember.Inflector`
- via `Ember.String.singularize` and `Ember.String.pluralize`

and `ember-inflector` is not even listed as a dependency.

Solution
- Declares `ember-inflector` as an explicit dependency.
- Fixes usage of `singularize` and `pluralize`.
- Fixes usage of `Ember.Inflector` as prescribed in the [ember
guides](https://guides.emberjs.com/v2.16.0/models/customizing-adapters/#toc_pluralization-customization)
delkopiso added a commit to alphasights/ember-graphql-adapter that referenced this pull request Nov 29, 2017
Problem
We're using ember-inflector incorrectly in two
[deprecated](emberjs/ember-inflector#131) ways:
- via `Ember.Inflector`
- via `Ember.String.singularize` and `Ember.String.pluralize`

and `ember-inflector` is not even listed as a dependency.

Solution
- Declares `ember-inflector` as an explicit dependency.
- Fixes usage of `singularize` and `pluralize`.
- Fixes usage of `Ember.Inflector` as prescribed in the [ember
guides](https://guides.emberjs.com/v2.16.0/models/customizing-adapters/#toc_pluralization-customization)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants