-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: support multiple cookies with the same name across different paths and domains #14131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Rich-Harris
merged 20 commits into
main
from
copilot/fix-3aedd8b4-7f12-4c1f-accc-4dfab8d70643
Aug 20, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
338cd54
Initial plan
Copilot ad4dc73
Fix multiple cookies with same name but different paths/domains
Copilot e5603da
Format code and finalize cookie fix implementation
Copilot c62add6
Remove domain/path options from cookies.get() and implement 'most spe…
Copilot 12df174
Fix path specificity calculation in cookies.get() method
Copilot 062b2d2
prettier
Rich-Harris e4eb4de
update changeset
Rich-Harris 08ebe85
fix
Rich-Harris a1b08c3
return undefined, not the empty string, when getting a deleted cookie
Rich-Harris 9d9f2ae
add changeset
Rich-Harris 6b59699
tweak
Rich-Harris 0bb05c3
add failing test for getAll
Rich-Harris c056d6e
fix `getAll` to match updated `get` behaviour
Rich-Harris 285451a
copilot doesnt know about snake_case
Rich-Harris 5764a8d
use a Map for new_cookies, it's better
Rich-Harris 2cc7186
merge main
Rich-Harris 002fb59
encode name
Rich-Harris 063de52
Update packages/kit/src/runtime/server/cookie.js
Rich-Harris 51ac79a
Merge branch 'copilot/fix-3aedd8b4-7f12-4c1f-accc-4dfab8d70643' of gi…
Rich-Harris 98c8565
oops
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
fix: support multiple cookies with the same name across different paths and domains |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
fix: `cookies.get(...)` returns `undefined` for a just-deleted cookie |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.