Skip to content

[WIP] Update cookie package to version 1.x and remove unnecessary packages - #15383

Closed
benmccann with Copilot wants to merge 11 commits into
version-3from
copilot/upgrade-cookie-package
Closed

[WIP] Update cookie package to version 1.x and remove unnecessary packages#15383
benmccann with Copilot wants to merge 11 commits into
version-3from
copilot/upgrade-cookie-package

Conversation

Copilot AI commented Feb 22, 2026

Copy link
Copy Markdown
Contributor
  • Upgrade cookie dependency from ^0.6.0 to ^1.0.0 in packages/kit/package.json
  • Remove set-cookie-parser and @types/set-cookie-parser from packages/kit/package.json
  • Remove @types/cookie from packages/kit/package.json (cookie 1.x has built-in types)
  • Update packages/kit/src/runtime/server/fetch.js to use parseSetCookie from cookie and response.headers.getSetCookie() instead of set-cookie-parser
  • Update packages/kit/src/exports/node/index.js to use response.headers.getSetCookie() instead of set-cookie-parser
  • Remove set-cookie-parser from SSR externals in packages/kit/src/exports/vite/index.js
  • Remove @types/set-cookie-parser from pnpm-workspace.yaml catalog
  • Run linting, building and unit tests to validate changes
Original prompt

This section details on the original issue you should resolve

<issue_title>Various cookie upgrades and package removals</issue_title>
<issue_description>### Describe the problem

Upgrade to cookie 1.x
Allows dropping types package
Next release will allow dropping set-cookie-parser (jshttp/cookie#244)

Describe the proposed solution

Update to latest cookie package

Alternatives considered

No response

Importance

nice to have

Additional Information

No response</issue_description>

<agent_instructions>use parseSetCookie from the cookie package to replace the set-cookie-parser package in the version-3 branch</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@Conduitry We don't want to work on this until we're ready to start making the push to SvelteKit 3.0 as it's going to be a breaking change. @benmccann We tried to upgrade cookie earlier, but had to roll it back due to breaking changes. SvelteKit 3 will happen soon and will upgrade to the latest @benmccann @copilot use `parseSetCookie` from the `cookie` package to replace the `set-cookie-parser` package in the `version-3` branch

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Creates platform tests for Vercel, with the goal of being able to easily
add tests for our other platforms in subsequent PRs. Platform tests are
typically pretty "expensive" (slow, more likely to be flaky, more likely
to hit rate limits and eat up bandwidth). This means we can't really run
them for every commit, and we really wouldn't want to anyway -- it's
dangerous to deploy code from forks, for example, without reviewing it
first.

The tactic here is to:
- Split reusable logic into composite actions:
- A test action we can use for every platform, which runs tests against
a provided external URL
    - A platform-specific deploy action that can be reused for `n` apps
- Create a workflow for each platform
- Each workflow can be run independently, so if you're working on a
specific adapter and don't want to wait on the others, you can just go
trigger it for a commit
- Create a "parent" workflow that can run all of them simultaneously
- Create an action that runs on pull requests that sets a commit status
of "requires action", which the above "parent" workflow will resolve
when/if it completes

AFAICT this is the best balance of all of the factors: It creates a
"needs attention" status on every round of checks, but doesn't actually
burn resources or fail when it doesn't need to actually run. It allows
us to run it against forks after review. And it's pretty simple and
reusable across platforms.

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Tee Ming <[email protected]>
Just improving some things from the prior PR

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [ ] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [ ] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
fixes
#15329 (reply in thread)

This PR fixes a regression in the Netlify split function routing where
`__data.json` requests weren't hitting any functions.

Tested on Netlify too https://15329.netlify.app/ (you should be able to
navigate to the /wordle page without an error)

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [x] This message body should clearly illustrate what problems it
solves.
- [x] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [x] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [x] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
This PR was opened by the [Changesets
release](https://github.com/changesets/action) 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
## @sveltejs/[email protected]

### Patch Changes

- fix: correctly route requests to server load functions when the
adapter is configured to used split functions
([#15367](#15367))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
It's wasteful to run all our CI jobs when the code hasn't even been
touched. This ensures doc changes, etc. don't run CI.

GitHub docs:
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-including-paths

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [ ] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [ ] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.

---------

Co-authored-by: Elliott Johnson <[email protected]>
Co-authored-by: Elliott Johnson <[email protected]>
Going to use our GitHub app to do this instead; think it'll be cleaner

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [ ] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [ ] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/upload-artifact](https://redirect.github.com/actions/upload-artifact)
| action | major | `v4` → `v6` |

---

### Release Notes

<details>
<summary>actions/upload-artifact (actions/upload-artifact)</summary>

###
[`v6`](https://redirect.github.com/actions/upload-artifact/compare/v5...v6)

[Compare
Source](https://redirect.github.com/actions/upload-artifact/compare/v5...v6)

###
[`v5`](https://redirect.github.com/actions/upload-artifact/compare/v4...v5)

[Compare
Source](https://redirect.github.com/actions/upload-artifact/compare/v4...v5)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/sveltejs/kit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNi41IiwidXBkYXRlZEluVmVyIjoiNDMuMjYuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Elliott Johnson <[email protected]>
closes #11851

This PR generates a catch-all function if no other functions match the
requested pathname. This is also important to get remote functions
working (similar to the Vercel adapter)

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [x] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [x] This message body should clearly illustrate what problems it
solves.
- [x] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [x] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [x] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [x] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
current config only applies to push and not PRs
Seems like custom keys aren’t allowed. The variable has to be created
from a valid key. Otherwise we get this error
https://github.com/sveltejs/kit/actions/runs/22266783007

Reference:
https://stackoverflow.com/questions/62113095/how-to-factor-paths-in-common-for-push-and-pull-request-in-github-actions

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [ ] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [ ] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [ ] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
@changeset-bot

changeset-bot Bot commented Feb 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7ba6872

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@benmccann

Copy link
Copy Markdown
Member

@copilot work against the version-3 branch instead of main

@benmccann
benmccann changed the base branch from main to version-3 February 22, 2026 04:34
@benmccann benmccann closed this Feb 22, 2026
@benmccann
benmccann deleted the copilot/upgrade-cookie-package branch February 22, 2026 04:34
Copilot AI requested a review from benmccann February 22, 2026 04:34
Copilot stopped work on behalf of benmccann due to an error February 22, 2026 04:34
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.

Various cookie upgrades and package removals

4 participants