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

Config exports function rather than object #762

Merged
merged 4 commits into from
Mar 28, 2023

Conversation

gilest
Copy link
Contributor

@gilest gilest commented Mar 18, 2023

More closely mirrors the config of ember-cli-fastboot itself and helps to avoid confusion.

One minor difference is that the ember-cli-fastboot version provides application environment as the first argument. Not sure this is necessary for a testing library as presumably it will always be 'test'. Open to suggestions though.

Breaking change but this addon is pre 1.0 so could target the next minor.

Should fix #488

More closely mirrors the config of `ember-cli-fastboot` itself and helps to avoid confusion.
@runspired
Copy link

Can make it non-breaking by detecting if its a function and deprecating if it is not

@gilest
Copy link
Contributor Author

gilest commented Mar 19, 2023

Can make it non-breaking by detecting if its a function and deprecating if it is not

Good idea. Wasn't sure how to use deprecate from @ember/debug within a Node runtime so let me know if you have a better suggestion.

image

@SergeAstapov SergeAstapov merged commit c3f9c79 into embermap:master Mar 28, 2023
@SergeAstapov
Copy link
Collaborator

Thank you @gilest and @runspired!

@gilest gilest deleted the feat/config-function branch March 28, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config not working
3 participants