Skip to content

chore: bump version to 4.0.0#565

Merged
John-David Dalton (jdalton) merged 7 commits intomainfrom
chore/v4-version-bump
Apr 8, 2026
Merged

chore: bump version to 4.0.0#565
John-David Dalton (jdalton) merged 7 commits intomainfrom
chore/v4-version-bump

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

Summary

Version bump to 4.0.0 with changelog documenting all breaking changes.

Depends on #564 (v4 breaking changes PR).

Changelog highlights

Breaking Changes:

  • HTTP client returns HttpResponse instead of IncomingMessage
  • Unified file-upload transport onto httpRequest()
  • Trimmed public API surface
  • Removed getHttpModule, getResponse, getErrorResponseBody, createRequestBodyForJson, getSupportedScanFiles(), PromiseQueue
  • Removed @socketregistry/packageurl-js and http2-wrapper deps
  • Agent type uses native node:http2 instead of http2-wrapper

Performance:

  • NDJSON linear scan, cached reqOptionsWithHooks, Set-based allowedActions, sanitizeHeaders deferral, Map-based generator queue, single-pass alert reduce

Bug Fixes:

  • streamFullScan buffered path memory limit (100MB → 10MB)
  • Missing maxResponseSize in upload requests

Test plan

  • pnpm build passes
  • Verify changelog accuracy

Breaking changes:
- HTTP client returns HttpResponse instead of IncomingMessage
- Unified file-upload onto httpRequest() transport
- Removed getHttpModule, getResponse, getErrorResponseBody,
  createRequestBodyForJson, getSupportedScanFiles, PromiseQueue
- Trimmed public API surface — removed internal helpers from exports
- Replaced http2-wrapper type with native node:http2
- Removed @socketregistry/packageurl-js and http2-wrapper deps

Performance:
- Cached reqOptionsWithHooks — eliminates 60+ object spreads per session
- NDJSON linear scan replaces .split('\n') in 4 locations
- queryToSearchParams avoids double URLSearchParams instantiation
- sanitizeHeaders deferred behind if guards (9 locations)
- batchPackageStream generator queue uses Map for O(1) operations
- reshapeArtifactForPublicPolicy: Set-based allowedActions, single-pass reduce

Bug fixes:
- Fix streamFullScan using MAX_STREAM_SIZE (100MB) for buffered responses
- Add missing maxResponseSize to createUploadRequest
Base automatically changed from refactor/v4-breaking-changes to main April 7, 2026 20:26
@jdalton John-David Dalton (jdalton) merged commit bea64fa into main Apr 8, 2026
10 checks passed
@jdalton John-David Dalton (jdalton) deleted the chore/v4-version-bump branch April 8, 2026 21:21
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.

2 participants