Skip to content

Overwrite value in passed in options#253

Merged
blakeembrey merged 1 commit intomasterfrom
be/fix-value-in-opts
Nov 26, 2025
Merged

Overwrite value in passed in options#253
blakeembrey merged 1 commit intomasterfrom
be/fix-value-in-opts

Conversation

@blakeembrey
Copy link
Member

From X, a user reported a regression and it looks like an unfortunate conflict in property names due to options backward-compatibility.

Issue in code: https://github.com/elysiajs/elysia/blob/5eec011e53784445dc9d63635aeccb4f4d5d5c3e/src/cookies.ts#L445-L453

Caused by value being passed as an argument and also in options, and options took priority instead of the expected value.

@blakeembrey blakeembrey requested a review from a team November 26, 2025 17:44
Copy link

@brandonmcconnell brandonmcconnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix here, @blakeembrey!

@blakeembrey blakeembrey merged commit c66147c into master Nov 26, 2025
11 checks passed
@blakeembrey blakeembrey deleted the be/fix-value-in-opts branch November 26, 2025 17:49
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