~/talk

Builds Today; Breaks Tomorrow: The Mystery of the Disappearing NPM Dependency

links:none on file
slides:none on file

On April 28 2021 several Gatsby builds (developer.js.com and an internal docs site) fail because a transitive package smart-wrap (GPLv2) suddenly appears when graphql-tools-schema upgrades to 7.1.4 which adds value-or-promise that depends on smart-wrap; nothing in direct deps changed. Recommended fixes are to commit lock files, run npm ci in CI, or short-term pin to 7.1.3; the maintainer resolves it by moving change-set-cli to a devDependency, and the fix reaches npm within two days.

AI-written summary · about

  1. 0:00Hi! I'm Bella Wiseman
  2. 2:03How Goldman Sachs Uses GatsbyJS
  3. 3:04Open Source Licenses
  4. 4:54Dependency Tree
  5. 5:24What Changed? Nothing!
  6. 6:20NPM Versioning
  7. 10:49Mystery solved!
  8. 11:46Don't be taken by surprise
  9. 12:18Lock files!
  10. 13:01Use npm ci in your builds
  11. 13:53A Comparison
  12. 16:25Fix the underlying issue
  13. 18:30Package Maintenance Best Practices
  14. 19:34About Goldman Sachs Engineering
  15. 20:16Questions?
~/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.