Skip to content

fix: mark RequestEvent properties as readonly - #16661

Merged
Rich-Harris merged 3 commits into
version-3from
readonly-event-url
Aug 5, 2026
Merged

Rich-Harris merged 3 commits into
version-3from
readonly-event-url

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

closes #15040. Marks the properties of RequestEvent as readonly, so that people don't get the idea that they can go around mutating stuff


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

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.

Loading
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.

handleFetch hook receive empty event object after 2.31.0 sveltekit upgrade

2 participants