Skip to content

Harden request config validation#48

Merged
bmurdock merged 3 commits into
mainfrom
bjm/address-review-findings
Jul 6, 2026
Merged

Harden request config validation#48
bmurdock merged 3 commits into
mainfrom
bjm/address-review-findings

Conversation

@bmurdock

@bmurdock bmurdock commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • validate hook lists consistently for client defaults and request options, including sparse arrays
  • report ConfigError for invalid methods and hook configuration instead of raw runtime errors
  • preserve onError visibility for request normalization and retry rebuild failures
  • cap retained ParseError body text and keep the deprecated public type export covered
  • prepare @gavoryn/clearfetch v1.0.6 package metadata and changelog for the tag-triggered release workflow

Verification

  • npm run lint
  • npm test (114 passing tests)
  • npm run build
  • npm run check:package-metadata
  • npm run check:pack-smoke
  • npm publish --dry-run --registry=https://registry.npmjs.org
  • git diff --check

bmurdock added 2 commits July 6, 2026 16:25
- validate hook lists consistently for defaults and requests
- report ConfigError for invalid methods and hook configuration
- preserve onError visibility for normalization and rebuild failures
- cap retained ParseError body text and cover the public type export
@bmurdock
bmurdock force-pushed the bjm/address-review-findings branch from def7709 to 21d5c0d Compare July 6, 2026 21:27
@bmurdock
bmurdock marked this pull request as ready for review July 6, 2026 21:27
@bmurdock
bmurdock merged commit 739446b into main Jul 6, 2026
12 checks passed
@bmurdock
bmurdock deleted the bjm/address-review-findings branch July 6, 2026 22:19
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