Prepare next release - #36
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
July 29, 2026 06:34
7e61756 to
d36b27a
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 29, 2026 06:43
d36b27a to
e265c26
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@germ-network/germ-convenience@0.3.0
Minor Changes
#38
83f028dThanks @germ-mark! - Make BundledHTTPRequest's init checks hold, and add EquatableSource-breaking — callers that mutate a
BundledHTTPRequestmust migrate.requestandbodyare no longer publicly settable, so the checks ininitcannot be undone after construction. Previously a caller could assign a body onto
a
.get, or flip the method of one that had a body, and reach a stateinitrejects. Code that assigned header fields in place:
becomes:
SwiftPM's
from:isupToNextMajor, sominordoes not gate this for consumersalready on 0.x — oauth4swift is the only one that mutates, and needs its companion
change released in step.
initrejects a urlHTTPRequestcannot represent (urn:,mailto:) with thenew
HTTPRequestError.unrepresentableURL, rather than building a request whoseurlis nil, which could never be sent and compared equal to every other url ofthat shape
missingSchemepath no longerassert(false)s before throwing, so itsurfaces the error in debug builds instead of trapping
BundledHTTPRequestandHTTPRequestErrorare nowEquatablePatch Changes
#32
edbedafThanks @ThisIsMissEm! - Add GermConvenienceMocks libraryThis provides us with a way to assert things for testing HTTPFetcher in oauth4swift.
BundledHTTPRequest's Equatable conformance moved to the type itself in #38, so thecopy this branch carried in GermConvenienceMocks is gone - it would otherwise have
been a duplicate that silently shadowed the owner's.
#32
46c6bceThanks @ThisIsMissEm! - Correctly throw on head requests sent with a body#35
cf1ca2dThanks @germ-mark! - AddErrorResult.get(mapError:)andHTTPDataResponse.expectSuccess(orError:mapError:)get(mapError:)returns the decoded result or throws a mapped error, replacing theswitch callers were hand-rolling
expectSuccess(orError:mapError:)for endpoints such as token revocation that returnno success body. Lifted from oauth4swift
#34
2ac42e1Thanks @germ-mark! - FixHTTPDataResponse.successerror handlingsuccess(decodeResult:orError:)andsuccess(code:decodeResult:orError:)wrappedthe status check and the result decode in one
do, so a successful response whosebody failed to decode was retried as an error body — returning a bogus
.errorfor a2xx, or masking the real
DecodingErrorwith one about the error type. The status nowselects the branch and decode failures propagate.
A failure response whose body does not decode as the error type now throws
HTTPResponseError.unsuccessful, preserving the status code and raw bytes, instead ofa bare
DecodingError.Every failure path in this module now reports
HTTPResponseError.unsuccessful.expectSuccess()previously reported.unsuccessfulStringwhenever the body happenedto be UTF-8, so the two differed for the same response, and an empty body arrived as
.unsuccessfulString(code, "")..unsuccessfulStringremains in the enum for existingcallers but is no longer thrown from here; read the body through the new
bodyStringaccessor, which works on either case.
codeis also new.