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

Replace usage of ember array prototype .any() with native .some() #798

Merged
merged 1 commit into from
May 31, 2022

Conversation

gilest
Copy link
Collaborator

@gilest gilest commented May 31, 2022

Believe this may throw an exception for users who don't have prototype extensions enabled.

@gilest gilest added the bug label May 31, 2022
@gilest gilest merged commit 54d012e into master May 31, 2022
@gilest gilest deleted the fix/prototype-extension-usage branch May 31, 2022 05:44
@bertdeblock
Copy link
Contributor

I would also disable prototype extensions in the test app:
https://github.com/adopted-ember-addons/ember-file-upload/blob/master/test-app/config/environment.js#L14-L17

@gilest
Copy link
Collaborator Author

gilest commented May 31, 2022

I would also disable prototype extensions in the test app

Great idea. Is there any documentation for recommended test app configs? Perhaps a blueprint would be helpful in the future.

gilest added a commit that referenced this pull request May 31, 2022
As suggested in #798 – the test suite would not have passed when that prototype usage was introduced.
@bertdeblock
Copy link
Contributor

The dummy app for v1 addons has ember-disable-prototype-extensions installed by default. You could install that addon in the test app as well or just disable them via the environment file. I also made this issue embroider-build/addon-blueprint#16 for the v2 addon blueprint.

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