15 ms·
Express v5
- pfraze 2y agoAppreciate your work on this, Wes & crew. Express is still my go to for nodejs, and it's really good to have this active governance.
- tlhunter 2y agoCuriously, it still isn't `latest`: https://www.npmjs.com/package/express?activeTab=versions https://www.npmjs.com/package/express?activeTab=versions
- stefanos82 2y agoThey have explained their reasoning in https://expressjs.com/2024/10/15/v5-release.html https://expressjs.com/2024/10/15/v5-release.html > Before going into the changes in this release, let’s address why it was released v5 on the next dist-tag. As part of reviving the project, we started a Security working group and security triage team to address the growing needs around open source supply chain security. We undertook a security audit (more details to come on that) and uncovered some problems that needed to be addressed. Thus, in addition to the “normal” work done in public issues, we also did a lot of security work in private forks. This security work required orchestration when releasing, to ensure the code and CVE reports went out together. You can find a summary of the most recent vulnerabilities patched in our security release notes. > > While we weren’t able to simultaneously release v5, this blog post, the changelog, and documentation, we felt it was most important to have a secure and stable release. > > As soon as possible, we’ll provide more details on our long-term support (LTS) plans, including when the release will move from next to latest. For now, if you are uncomfortable being on the bleeding edge (even if it is a rather dull edge) then you should wait to upgrade until the release is tagged latest. That said, we look forward to working with you to address any bugs you encounter as you upgrade.
- mceachen 2y agoI couldn’t upgrade PhotoStructure to v5.0.0 due to a showstopping error thrown deep in the new router (for a valid path spec). I haven’t tried the new patch release yet (nor even had time to properly trace where the issue in express was to file a reasonable issue). Kudos to the team for pushing express forward!
- dylanlacom 2y agoI just want to express my gratitude to Wes and the team of people who worked on this. I had to go back and read it twice that it's been 10 years since the PR for v5 was opened. That's wild! I can only imagine the immense amount of work it must have been to change the inertia of this project. Cheers to a new chapter!
- _fat_santa 2y agoWhy did it take 10 years to release v5?
- simple10 2y agoMy guess is Express has been stable for a long time with no real need to evolve it. And old versions of node have effectively expired, so they can now drop support. Maybe there are more API changes planned for v6 and v5 is the stepping stone? Many thanks to the Express devs! It's been a reliable part of the stack for a long time. For personal projects, I've been loving https://hono.dev/ https://hono.dev/ The DX is fantastic and it runs in bun and CloudFlare workers. Shoutout to the hono developers! For larger team projects, I end up using Fastify and NextJS. No real reason other than it's what's already running or other devs on the projects prefer it. But Express is always a great option.
- yas_hmaheshwari 2y ago[ I have used express in my last company, and I am asking this as a user who had used it and found it to be really pleasant to use ] I am really confused by this. Is it really that stable ? For any software that was released this back, I would have thought its abandoned. Are there no features that the community had demanded in this time
- throw4950sh06 2y agoThere are a few features that were missing but it wasn't so bad. The most significant (added in v5) is proper async handler support.
- alpinisme 2y agoStable doesn’t mean “no room for growth.” It means, “you can count on it to work (for the features it supports) and keep working the way it does.” Absolutely the worst part of the JavaScript ecosystem is the churn.
- throw4950sh06 2y agoBut what churn? I started using Webpack, Express, TypeScript and React around 2013/2014. I still use the exact same stack. The only difference is that my config files are simpler now. React switched to functions/hooks but class components still work; all of my code from the beginning runs just fine and the professional projects I worked on continue to be developed. I switched from classic .NET Framework because they deprecated WinForms and WPF was not usable and they churned the entire damn platform and replaced it with alpha-quality software. How many UI frameworks, and how much other churn happened in the past 11 years there? Way too much, everybody is so fed up that the past decade of my career consisted of rewriting desktop apps to this stack. NPM makes it quite easy to publish anything and for others to start using it. Just don't, stick with the proven solutions. There's - adjusted for user base - the same or worse amount of churn on Pypi and Nuget. If you wouldn't choose a random library nobody uses in the C# land, don't do it in the Node land. At least the Node libs continue to grow, while the Nuget stuff continues to die.
- petesergeant 2y agoI've probably been living under a rock, but I hadn't seen the "transfer the old to a private company to provide support" model before https://www.herodevs.com/support/express-nes https://www.herodevs.com/support/express-nes
- ersoft 2y agoIt was for Rails. https://railslts.com/ https://railslts.com/
- andai 2y agoI think Flash is still being developed (as a fork of Adobe Air maintained by a 3rd party).
- JoeyJoJoJr 2y agoI believe it is a single developer at Harman who is maintaining Adobe Air. I don’t think there is any work being done on Flash. It is more so things like keeping Adobe Air builds working for latest operating systems, fixing old bugs, etc, just for purposes of keeping legacy apps functional.
- andai 2y agoYou mean literally one guy? There's something bittersweet about that.
- JoeyJoJoJr 2y agoYep, I’m pretty sure it’s just one guy and the bug tracker with 1000 issues. I’d be interested to know what Air apps are so important to Harman that they are keeping it (barely) running.
- andai 2y agoThere's a bunch of enterprise stuff built on Flash and Air right? I heard China's train network ran on Flash. They also kept using XP for ages for similar reasons (maybe still are?)
- afavour 2y agoCongrats to the Express team! I know there are many other Node JS web server frameworks out there but I've never really moved beyond Express because it does everything I need. Long may that continue.
- nailer 2y agoThe whole idea of having the response be part of the input for the route seems very 2010s. Nearly everything else these days has a route that takes a request and returns a response. This matches HTTP more closely.
- aphantastic 2y agoCuriously, the express model ends up being a more clean style when creating long lived writer streaming endpoints, which is becoming much more popular with LLM’s. All that was old will be new again.
- bhouston 2y agoAre they using SSE? Or web sockets?
- aphantastic 2y agoThe standard set by openai and shared by everyone else is to use SSE when “stream: true” is set. Personally I like to strip all the excess data as soon as possible and expose the raw response as a plain “transfer-encoding: chunked” stream. That way the client can decide if they want to accept each chunk as they come or simply await the whole response with limited code change. Either way, being able to easily pass the response writer around and set headers, write, close, as needed without being tied to a single function’s control flow is nice. It can be done in the more modern frameworks ofc, but ends up being a bit more machinery required at each endpoint.
- deleted 2y ago[deleted]
- nailer 2y agoA generator function that yields responses would fit that scenario perfectly.
- 2y ago
- c0brac0bra 2y agoperl 6 eat your heart out
- yas_hmaheshwari 2y agoCan you elaborate this comment? Haven't used Perl in the last 12 years, so I fit the persona of "living under a rock"
- steve_adams_86 2y agoPerl 6 took like 15 years to be released, and was met with fairly lukewarm reception, sometimes very negative. It ended up being renamed because it was so different from Perl 5, so it’s now called Raku. It was a flop.
- yas_hmaheshwari 2y agoGot it! Thank you for the explanation Read this line on Wiki: "In Perl 6, we decided it would be better to fix the language than fix the user - Larry wall" Looks like a very good philosophical statement. Maybe there's a lesson here for other programming language ( The other Perl slogan: "Easy things should be easy and hard things should be possible" is also really good )
- bolangi 2y ago> It [Raku] was a flop. From what I read, it's a living, breathing language with innovative features, core developers, regular releases and a healthy community of users. What more do you want?
- wg0 2y agoGive enough persistence, in ten years they could theoretically rewrite v5 in async rust.
- vivzkestrel 2y agoso how does it compare to koa, fastify etc?
- cbarrick 2y ago> Unfortunately, it’s easy to write a regular expression that has exponential time behavior when parsing input This footgun can be easily avoided without ripping out regex support altogether. Just switch to a regex engine that is actually regular, like re2. See also "Regular Expression Matching Can Be Simple And Fast" by rsc [1]. [1]: https://swtch.com/~rsc/regexp/regexp1.html https://swtch.com/~rsc/regexp/regexp1.html
- ldehaan 2y ago[dead]