-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Express v4 -> v5 Migration #5944
Comments
Thanks for creating this issue. I added a reference in the 5.x backlog expressjs/discussions#266 👍 |
We have not set a date yet. Largely it depends on how quickly we can get the docs and the rest of the ecosystem dependencies (like DT for example) updated. We also have an LTS proposal we are working on to better schedule this stuff in the future.
Yes, this is part of the docs we need to write.
We would love to chat with the DT folks to get better at this in the future. We know it has lacked attention for too long, but we never had a lot of folks signing up and showing up to help us with this. If that is changing now I would love it, but we need more than just drive by help, we need folks who are here to help us get all the ~30 some packages we maintain all doing this consistently and well. There are existing issues for all of this, I will edit this comment when I get a chance to add them, but wanted to get this written sooner rather than later. |
Calling @borisyankov @CMUH @puneetar @dfrankland |
I might be able to help with type work |
@aredridel That would be awesome! I have been super busy keeping up with the chatter around the release while trying to spare some time for my paying job 😆, so I have not had a chance to pull in all the links to previous conversations around this, but most are in https://github.com/expressjs/discussions |
The author of the original PR to DefinitelyTyped is sick. |
OK. I fixed all issues in my PR to types of Express 5 — DefinitelyTyped/DefinitelyTyped#70563 |
@RobinTail perhaps it would be better to coordinate the efforts towards upstreaming the types here in the Express repo? And then subsequently to deprecate the |
Perhaps, @jonkoops . |
I have not, but I would not mind taking this on. I see also @aredridel volunteered for this, so perhaps they already started working on it. Let me know, I could set up a PR where we can collaborate. |
You know, in my system of values getting things done is more important and cherished rather than
So, I have done it. |
I'd say get the PR merged for the the |
Exactly, @jonkoops !
Anyway, it's a new workflow to establish — it will take time and moreover, as a new feature, it will require a new version — |
This is already the case now, with the added complexity (for end users) of it being a separate package. The only downside of moving them in here would be that maintenance needs to happen in this repo, which is totally fine as long as it's taken into account going forward. |
@RobinTail, is this still the correct way to add additional properties to the request object in Express TypeScript? declare global {
namespace Express {
export interface Request { // do I need export here
someProperty: string
}
}
}
export {} Also, is it compatible with |
This part wasn't changed, @walmartwarlord . If that augmentation did work for v4, it should work for v5 as well. |
Copied from my comment in the Release 5.0 PR:
Maybe I missed a v5 planning document somewhere - I'm looking for a few details to help determine how and when to migrate our projects:
[email protected]
be published to the npmlatest
tag?breaking
note inHistory.md
@types/express
and@types/express-serve-static-core
? Does anything need to be changed here? Specifically, things like [@types/express-serve-static-core] 🏷️ AddPromise<void>
toRequestHandler
's return type DefinitelyTyped/DefinitelyTyped#69660 (comment) cc DT maintainers @borisyankov @samijaber @NatoBoram @bombillazo @AndrewLeedham @gabritto @sandersnThe text was updated successfully, but these errors were encountered: