I think there is one thing that Node is missing compared to many other projects when a new major version is released: a clear guide for users who want to migrate their code from an earlier version.
We have lists of breaking changes in the wiki, mostly maintained by @Fishrock123.
Those are valuable, but I would like to propose something different:
doc/guides/upgrade/)upgrade-to-node-10.md/cc @nodejs/collaborators @nodejs/website @nodejs/tsc @nodejs/community-committee
Just to clarify the second point: what I mean is that when we branch v10.x, we start working on the upgrade guide to Node 11 (and we finalize the Node 10 one in parallel)
I think this is a great idea. I would be happy to help out on this front too!
i've been meaning to bring this up in a more general sense, about creating wikis for getting started, upgrading, updating, more opinionated tutorials about the "node style" of programming, etc.
as a nice reference: https://www.python.org/about/gettingstarted/
everything linked on that page provides good models for what we should be aiming for (within the reason of node.js being comparable to python)
By the way, it would be nice to have a codemod based on something like jscodeshift that helps users automatically upgrade their codebase
FWIW, there's also the OSS upgrade-ready tool that we built at NodeSource when the 0.10/0.12 -> 4.0 migration happened. Seems to be aligned with the goals of this. Not been updated in a while, but I'd be happy to see what I can do if there's interest 鉂わ笍
Huge +1 for this effort in general. Having a codified document will be a massive help for individuals that are getting caught by upgrades.
Sounds like a good idea to me.
Definitely 馃憤 . I think we should highlight and promote this for the LTS -> LTS migrations, which have a year worth of changes in them.
Related: @fyockm just added this page to the Wiki today: https://github.com//nodejs/node/wiki/Breaking-changes-between-v6-LTS-and-v8-LTS
Seems like it might be a copy/paste of the release notes for the most part. Seems well-intentioned and this might be a fine doc to have in the Wiki (and let other people come along and improve it). Maybe people interested in this Upgrade Guides initiative might find it worthwhile to improve that document.
@nodejs/documentation
@Trott sorry for the drive-by. Yes, it was just copy/paste from release notes. Seemed like a big hole since we are currently making a big push to migrate from Node 4 to Node 8, and I imagine many others are as well.
Hopefully this helps to get the ball rolling.
sorry for the drive-by
You have nothing to apologize for. Thanks for trying to make things better for the next person who has to upgrade.
Closing due to inactivity, but feel free to re-open if someone is going to make this happen.
Most helpful comment
By the way, it would be nice to have a codemod based on something like jscodeshift that helps users automatically upgrade their codebase