-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Added deprecated to enums #2342
Conversation
Visit the preview URL for this PR (updated for commit 325e044): https://altair-gql--pr2342-imolorhe-add-depreca-h4uu58ox.web.app (expires Sun, 10 Dec 2023 14:27:52 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 02d6323d75a99e532a38922862e269d63351a6cf |
@@ -15,15 +15,15 @@ | |||
"@types/supertest": "^2.0.11", | |||
"jest": "29.4.1", | |||
"koa": "^2.13.1", | |||
"koa-send": "^5.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was it added to dev dependencies, instead of dependencies? It's used in the published code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that was by mistake. Thanks for spotting it.
"@koa/router": "~11.0.2", | ||
"koa-send": "^5.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were semver major changes, but they were published in non semver major version changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I'm not sure I follow. You mean I should have published a major version since the change is major?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean I should have published a major version since the change is major?
Yes.
Anytime a package makes its peer dependency requirements tighter (require newer versions), it's a breaking change that should be published in a semver major version increment.
Packages that were previously using @koa/router
v11 and altair-koa-middleware
will now have npm install errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I can publish a major version next but I don't think that would fix the issue with those packages, as they would need to update manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit rusty about the correct way to fix an accidentally major change in a minor/patch release, but maybe what you could do is revert the major changes in an other patch release so that way people using altair-koa-middleware
v5 are fixed (for projects not using a lock file , which are most open source published packages, CI will just start working for them again, and npm install for them will start working again), and then redo the major changes correctly in a follow-up v6 release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
Fixes
#2339
#2338
Checks
yarn test-build
Changes proposed in this pull request: