Skip to content

Handle DELETE method in ReadSignals - #12

Merged
GlenDC merged 1 commit into
mainfrom
adr-changes
Aug 21, 2026
Merged

GlenDC merged 1 commit into
mainfrom
adr-changes

Conversation

@bencroker

Copy link
Copy Markdown
Contributor

Based on ADR changes in starfederation/datastar#1146.

Please merge only with the release of the next version of Datastar.

@bencroker
bencroker requested a review from GlenDC March 27, 2026 18:09
@GlenDC
GlenDC merged commit a7cb7a2 into main Aug 21, 2026
6 checks passed
@bencroker
bencroker deleted the adr-changes branch August 21, 2026 18:04
crustyrustacean added a commit to crustyrustacean/datastar-rust that referenced this pull request Sep 30, 2026
Align ReadSignals with the adapter contract upstream settled in starfederation#12: GET and
DELETE read signals from the datastar query parameter, every other method
(including QUERY) from the JSON body.

A missing datastar parameter now deserializes as null instead of returning
400, so ReadSignals<Option<T>> yields None on a plain page load. DatastarParam
becomes Option<serde_json::Value> to match the other adapters.

Adds tests for DELETE extraction and the optional-signals behavior.
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