~/talk

Debugging Your Way Through a Node.js Upgrade

Talkat OpenJS World 2022 · 2022-06-06..06-10· [nodejs]
slides:none on file

Node 18 ships fetch, web streams and an experimental test runner, but upgrading from 14→16 caused a specific test to hang: a socket error emitted in 14 no longer fires in 16 so fallback logic never runs. Debugging uses git bisect (builds of Node per commit), runtime logs via NODE_DEBUG, stepping with the Chrome inspector, and finally a minimal core reproduce that shows the fix: register an error callback, adjust client code, and add current Node to CI or use the pkgjs action.

AI-written summary · about

  1. 0:00Introduction and new features
  2. 2:30Understanding release policies
  3. 5:49Navigating release history
  4. 7:02Using change logs
  5. 7:13Managing breaking changes
  6. 8:10Real-world debugging case
  7. 8:49Investigation techniques
  8. 11:21Using git bisect
  9. 12:29Demonstrating the bisect flow
  10. 12:41Automating binary search
  11. 14:34Reviewing commit findings
  12. 15:00Comparing debug output
  13. 15:53Expert collaboration
  14. 16:29Creating minimal reproduces
  15. 17:48Summary of techniques
  16. 18:30Future upgrade preparation
  17. 20:41CI matrix automation
  18. 21:27Closing thoughts
  19. 22:24Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.