Skip to content

Modernize connect-ready for Kubernetes and Node.js 22 - #15

Merged
didiercolens merged 4 commits into
masterfrom
modernize-v2
Sep 8, 2026
Merged

didiercolens merged 4 commits into
masterfrom
modernize-v2

Conversation

@didiercolens

@didiercolens didiercolens commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • retain the focused readiness status API
  • add a standardized, bounded HTTP shutdown lifecycle for Kubernetes
  • handle SIGTERM/SIGINT as successful shutdowns and fatal process events as failures
  • drain active HTTP requests, clean up dependencies, and force-close at configurable deadlines
  • remove the legacy shutdown API, keepalive middleware, and toobusy support
  • replace all runtime and development dependencies with native Node.js functionality
  • require Node.js 22+
  • document long-request and upgraded-connection shutdown behavior
  • restrict the published package to runtime files

The package version remains 1.0.14 in this feature PR. After merge, npm version major will create the 2.0.0 release commit and v2.0.0 tag on master.

Breaking changes for 2.0

  • replaces shutdown() with registerShutdownHandlers()
  • removes gracefulShutdownKeepaliveConnections()
  • removes enableTooBusy()
  • validates readiness statuses as HTTP codes from 100 through 599
  • requires Node.js 22+

Verification

  • npm test (16 tests)
  • npm run test:cover (100% function coverage)
  • npm run lint
  • npm pack --dry-run
  • GitHub Actions CI

@didiercolens
didiercolens merged commit 6c6ef5e into master Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant