Skip to content
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

breaking: Remove dangerZone.trackServerFetches #11235

Merged
merged 3 commits into from Dec 10, 2023

Conversation

tcc-sejohnson
Copy link
Contributor

We had to make a breaking change in #9945, so we added this option to give people who knew it was safe an easy way to keep their apps running while they implemented fixes. Since we're releasing 2.0, we can remove this security-related override.

Closes #11234

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

Copy link

changeset-bot bot commented Dec 8, 2023

🦋 Changeset detected

Latest commit: a3a52bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Major

Not sure what this means? Click here to learn what changesets are.

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

@Conduitry
Copy link
Member

Will dangerZone continue to show up in autocompletes and in the docs even though there's now nothing in it? Is this what we want?

@tcc-sejohnson
Copy link
Contributor Author

Will dangerZone continue to show up in autocompletes and in the docs even though there's now nothing in it? Is this what we want?

Yeah, wasn't sure what we wanted to do with that -- seems like it'd be good to have an established place to put experimental or security-related things like this, and it also seemed weird to remove it and re-add it later.

@benmccann benmccann added this to the 2.0 milestone Dec 8, 2023
@tcc-sejohnson tcc-sejohnson linked an issue Dec 8, 2023 that may be closed by this pull request
* Automatically add server-side `fetch`ed URLs to the `dependencies` map of `load` functions. This will expose secrets
* to the client if your URL contains them.
*/
trackServerFetches?: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

hmm. I wonder if we should leave this in the docs for now with a note that it was only available in 1.0 in case anyone wants to refer to what the option did in 1.0. It's kind of unfortunate that would also expose it publicly though. Maybe there's a way to merge in type declarations that are only used for generating the docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could always change it to trackServerFetches: never and mark it deprecated.

Copy link
Member

Choose a reason for hiding this comment

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

That probably works well enough

@Rich-Harris
Copy link
Member

I'd be okay with removing and re-adding later if we need it again

@tcc-sejohnson
Copy link
Contributor Author

I'd be okay with removing and re-adding later if we need it again

Just checking, did you see Ben's comment? Might be good to leave it in with an @deprecated tag for v2 and then remove it in v3.

@benmccann
Copy link
Member

I would remove it from options.js if we can though and only leave it in the types

@dummdidumm
Copy link
Member

We can mention it in the migration docs, then it still shows up in search somewhere, and we can remove it here

@benmccann
Copy link
Member

That works for me. Let's start a migration doc with that one note in it as part of this PR so that we don't forget

@dummdidumm
Copy link
Member

Started in #11199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove track_server_fetches
5 participants