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

Stop exporting non-Ember utils #1513

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

bmish
Copy link
Member

@bmish bmish commented Jul 14, 2022

Based on this github search, it doesn't look like anyone is importing anything of substance from our utils/utils.js utility file. These are all generic, non-Ember specific utils that are subject to change at any time and so it's best not to have anyone import/rely/depend on them.

If we hear that there's a need for any/some of these utils, we can consider individually-exporting them instead of exporting the entire file. Please file an issue if that is the case. For simple/trivial utils, it's probably best for anyone who uses them to just copy them into their own project.

Note that based on the above search, I did see a few more usages of our Ember utils, and those utils are specifically related to the purpose of eslint-plugin-ember, so we'll continue exporting those, but perhaps we should audit them at some point.

Related change:

Part of v11 release (#1169).

@bmish bmish added the Breaking label Jul 14, 2022
@bmish bmish mentioned this pull request Jul 14, 2022
@bmish bmish changed the title breaking: stop exporting non-Ember utils Stop exporting non-Ember utils Jul 14, 2022
@bmish bmish mentioned this pull request Jul 19, 2022
@bmish bmish merged commit cf90323 into ember-cli:master Jul 19, 2022
bmish added a commit to bmish/eslint-plugin-ember that referenced this pull request Jul 19, 2022
* master:
  breaking: add no-array-prototype-extensions as recommended rule (ember-cli#1517)
  breaking: remove base config (ember-cli#1518)
  breaking: stop exporting non-Ember utils (ember-cli#1513)
  breaking: update `avoid-leaking-state-in-ember-objects` rule to augment instead of replace default config (ember-cli#1512)
  breaking: strictly define Node API (ember-cli#1514)
  breaking: enable useOptionalChaining on no-get rule (ember-cli#1519)
  Drop support for Node 10, 12, 15, 17 (ember-cli#1318)
bmish added a commit that referenced this pull request Jul 19, 2022
* master:
  breaking: add no-array-prototype-extensions as recommended rule (#1517)
  breaking: remove base config (#1518)
  breaking: stop exporting non-Ember utils (#1513)
  breaking: update `avoid-leaking-state-in-ember-objects` rule to augment instead of replace default config (#1512)
  breaking: strictly define Node API (#1514)
  breaking: enable useOptionalChaining on no-get rule (#1519)
  Drop support for Node 10, 12, 15, 17 (#1318)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants