Skip to content

chore: version packages - #71

Merged
thomasfosterau merged 1 commit into
mainfrom
changeset-release/main
Aug 16, 2026
Merged

thomasfosterau merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

@thomasfosterau/effect-jsonapi@0.10.0

Minor Changes

  • ea5d196: success override on Endpoint.get / list / create / update. The constructors bound their
    response unconditionally to the resource's document() / collection(), so the only shape a
    handler could answer with was the resource itself. They now take an optional success schema —
    any Schema.Top, like payload — defaulting to exactly those documents, for apis whose response is
    a wire variant of the resource: an assembler that stringifies every link before the document
    leaves the server emits links.self as a plain string, where the resource's own Document.Link
    decodes an absolute reference to a URL and hands every generated-client call site the wrong type.
    The override is served as application/vnd.api+json like every other body in the package, at 201
    for create as before, and the document envelope is untouched, so Handlers.offsetPaginationLinks
    and the other handler helpers still apply to an overridden list. The option is threaded through
    Endpoint.resource / Group.resource's per-endpoint get / list / create / update config,
    so a generated group can adopt the wire variant without being spelled out by hand. Only the response
    changes — path, params, query parameters, request payload, errors and middleware are untouched.

@thomasfosterau
thomasfosterau merged commit cd0d517 into main Aug 16, 2026
2 checks 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