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

Bump pretender to 3.4.3 #429

Merged
merged 4 commits into from
Oct 4, 2020

Conversation

jcardali
Copy link
Contributor

@jcardali jcardali commented Sep 17, 2020

See #427

@jcardali
Copy link
Contributor Author

@patocallaghan
Copy link
Collaborator

Thanks @jcardali. Although I'm not sure if it's so straightforward. It appears @herzzanu had issues before when bumping the minor version of pretender.js in #387. @herzzanu is there an easy way to replicate this error so we can figure out if upgrading pretender.js works?

@@ -26,7 +26,7 @@
"broccoli-merge-trees": "^3.0.2",
"ember-auto-import": "^1.3.0",
"ember-cli-babel": "^7.4.0",
"pretender": "~3.0.1",
"pretender": "^3.4.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not ~3.4.3 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Because using ^ says we should be able to use all Pretender versions up until 4.0.0 rather than ~ which will only allow up until 3.5.0. As Pretender uses semver there shouldn't be any breaking changes until 4.0. Also all the other dependencies use ^.

Copy link
Contributor

Choose a reason for hiding this comment

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

I know but remember this is how we solved #387. What I suggested would help keep it "under control". We can intervene and bump the version again if needed anyway. WDYT?

Copy link
Contributor

@herzzanu herzzanu Sep 21, 2020

Choose a reason for hiding this comment

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

Also same fix here previously #354

Copy link
Collaborator

@patocallaghan patocallaghan Oct 2, 2020

Choose a reason for hiding this comment

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

@herzzanu I'd prefer to leave it with ^ as I think it's better to have looser dependencies for consuming apps. Mirage.js also uses pretender with ^. I know there's been issues in the past with stability but I do seem to remember there was a large chunk of refactoring happening at that time (they were introducing fetch into Pretender) and it appears things are a lot more stable now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me 👍

@herzzanu
Copy link
Contributor

Thanks @jcardali. Although I'm not sure if it's so straightforward. It appears @herzzanu had issues before when bumping the minor version of pretender.js in #387. @herzzanu is there an easy way to replicate this error so we can figure out if upgrading pretender.js works?

@jcardali @patocallaghan I guess testing this updated version in an ember app should tell the truth if it's ok or not.

@patocallaghan
Copy link
Collaborator

Thanks @herzzanu, I'll try it out in a new ember app. I just thought you'd come across something specific to make the bug occur 👍

@patocallaghan
Copy link
Collaborator

@jcardali any chance you could regenerate the yarn.lock file with this dependency update please?

yarn.lock Outdated
resolved "https://registry.yarnpkg.com/fake-xml-http-request/-/fake-xml-http-request-2.0.0.tgz#41a92f0ca539477700cb1dafd2df251d55dac8ff"
fake-xml-http-request@^2.1.1:
version "2.1.1"
resolved "https://artifactory.bettermg.com/artifactory/api/npm/npm/fake-xml-http-request/-/fake-xml-http-request-2.1.1.tgz#279fdac235840d7a4dff77d98ec44bce9fc690a6"
Copy link
Collaborator

@patocallaghan patocallaghan Oct 2, 2020

Choose a reason for hiding this comment

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

@jcardali it looks like your using an internal registry here which is causing CI to fail

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@patocallaghan Sorry about that, fixed now

@patocallaghan patocallaghan merged commit f9d7975 into adopted-ember-addons:master Oct 4, 2020
@patocallaghan
Copy link
Collaborator

Thanks @jcardali 🙌 Released in v3.9.8

@jcardali jcardali deleted the pretender-3.4.3 branch October 4, 2020 23:01
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

3 participants