dream_http_client Release 3.0.1: Per-File Recording Strategy #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release Summary
This release improves
dream_http_clientrecording and playback system by switching from a single-file strategy to individual files per recording, delivering better performance, concurrent test support, and improved developer experience.Version: 3.0.1
Type: Non-breaking enhancement
Package: dream_http_client
Key Improvements
Performance
Concurrent Test Support
Developer Experience
GET_localhost__text_7646ad.jsonshows what endpoint the recording is forWhat Changed
Recording Storage
{method}_{host}_{path}_{hash}.jsonExample
Before (3.0.0):
After (3.0.1):
Test Improvements
test/fixtures/recordings/for CI without mock serverBreaking Changes
None - The user-facing
recorderAPI is completely unchanged. Internalstoragemodule functions now require amatching_configparameter, but most users don't call these directly.Migration
No migration required. Existing
recordings.jsonfiles still load correctly. New recordings are saved as individual files.Testing
Dependencies
gleam_crypto >= 1.5.1 and < 2.0.0for SHA256 hashingRelease Notes: release-3.0.1.md
Full Changelog: CHANGELOG.md