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

Make MirageJS peer dependency #2417

Merged
merged 5 commits into from
Sep 13, 2023
Merged

Conversation

cah-brian-gantzler
Copy link
Collaborator

@cah-brian-gantzler cah-brian-gantzler commented May 22, 2022

This makes MirageJS a peer dependency. This is a breaking change. Any existing applications using ember-cli-mirage will have to rerun the default blueprint ember install ember-cli-mirage or add miragejs to your package.json mannually.

Fixes: #2416

@cah-brian-gantzler cah-brian-gantzler added Dependencies Pull requests that update a dependency file Breaking Pull requests that include breaking changes Documentation labels May 22, 2022
Comment on lines -33 to -44
insertShutdownIntoDestroyApp: function () {
if (fs.existsSync('tests/helpers/destroy-app.js')) {
var shutdownText =
' if (window.server) {\n window.server.shutdown();\n }';
return this.insertIntoFile('tests/helpers/destroy-app.js', shutdownText, {
after: "run(application, 'destroy');\n",
});
}
},

afterInstall: function () {
return this.insertShutdownIntoDestroyApp();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed as destoy-app.js was removed in 3.0.0

Comment on lines 101 to 103
"@ember/test-helpers": "*",
"ember-data": "*",
"ember-qunit": "*"
"ember-qunit": "*",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be *?

@cah-brian-gantzler
Copy link
Collaborator Author

Would you be opposed to adding Husky. I have it on my own apps so keep forgetting to run lint and prettier prior to submitting PRs :)

@ef4
Copy link
Contributor

ef4 commented Jul 5, 2022

This is a good change, without it people cannot reliably adopt the new pattern that is documented for 3.0 (importing directly from miragejs).

@SergeAstapov SergeAstapov removed the Dependencies Pull requests that update a dependency file label Sep 13, 2023
# Conflicts:
#	packages/ember-cli-mirage/package.json
#	test-packages/01-basic-app/package.json
#	test-packages/02-app-that-excludes-mirage/package.json
@SergeAstapov SergeAstapov changed the title MirageJS as peer dependency Make MirageJS peer dependency Sep 13, 2023
@SergeAstapov SergeAstapov merged commit 4936f1a into miragejs:master Sep 13, 2023
12 checks passed
francois2metz pushed a commit to francois2metz/ember-cli-mirage that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Pull requests that include breaking changes Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider making MirageJS a peer dependency
3 participants