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

RSC: Remove commented code related to prefixToRemove transform() #10666

Merged
merged 1 commit into from
May 22, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented May 22, 2024

As part of the PR for #10557 I commented out some code. In hindsight I should have made a separate PR to just totally get rid of it that I merged before #10557, but here it is - after the fact instead. Not as good, but at least I'm cleaning up commented out code, because no one wants to read that!

To explain what's going on I'll just copy/paste the comment I left in the code

    // TODO (RSC): We used to transform() the stream here to remove
    // "prefixToRemove", which was the common base path to all filenames. We
    // then added it back in handleRsa with a simple
    // `path.join(config.root, fileId)`. I removed all of that for now to
    // simplify the code. But if we wanted to add it back in the future to save
    // some bytes in all the Flight data we could.

@Tobbe Tobbe added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels May 22, 2024
@Tobbe Tobbe added this to the RSC milestone May 22, 2024
@Tobbe Tobbe enabled auto-merge (squash) May 22, 2024 08:53
@Tobbe Tobbe merged commit 8842138 into redwoodjs:main May 22, 2024
50 of 57 checks passed
@Tobbe Tobbe deleted the tobbe-remove-transform-rsf-id branch May 22, 2024 09:30
dac09 added a commit to dac09/redwood that referenced this pull request May 22, 2024
…-role-authmw

* 'main' of github.com:redwoodjs/redwood:
  fix(dbAuthMw): Update and fix logic related to dbAuth "verbs" and decryptionErrors (redwoodjs#10668)
  RSC: routes-auto-loader is not used for SSR anymore (redwoodjs#10672)
  chore(crwa): Remove unused jest dev dependency (redwoodjs#10673)
  RSC: rscBuildEntriesFile: Only ServerEntry and Routes needed for serverEntries (redwoodjs#10671)
  RSC: clientSsr: getServerEntryComponent() (redwoodjs#10670)
  RSC: worker: getFunctionComponent -> getRoutesComponent (redwoodjs#10669)
  RSC: kitchen-sink: Make the ReadFileServerCell output take up less space (redwoodjs#10667)
  RSC: Remove commented code related to prefixToRemove transform() (redwoodjs#10666)
  RSC Client Router (redwoodjs#10557)
  RSC: Add 'use client' to remaining client cells in kitchen-sink (redwoodjs#10665)
  RSC: vite auto-loader: Spell out 'path' and other chores (redwoodjs#10662)
  fix(cli): Handle case for no arguments for verbose baremetal deploy  (redwoodjs#10663)
  RSC: kitchen-sink: Make it more clear where layout ends and main content starts (redwoodjs#10661)
  RSC: Make the kitchen-sink smoke-test more robust/resilient (redwoodjs#10660)
  RSC: Source format of EmptyUsersCell in kitchen-sink (redwoodjs#10658)
  RSC: Add 'use client' to all client cells in kitchen-sink (redwoodjs#10659)
  chore(__fixtures__): Follow-up: Make test projects match newer CRWA template (redwoodjs#10657)
  feat: Reworks RSC server entries and route manifest building to derive from routes and include if route info related to authentication (redwoodjs#10572)
  chore(__fixtures__): Make test projects match newer CRWA template (redwoodjs#10655)
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants