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

feat: pages dev supports query params #1409

Closed
wants to merge 7 commits into from
Closed

Conversation

Skye-31
Copy link
Contributor

@Skye-31 Skye-31 commented Jul 5, 2022

Closed in favour of #1863

@changeset-bot
Copy link

changeset-bot bot commented Jul 5, 2022

🦋 Changeset detected

Latest commit: 0bce555

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

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2721646185/npm-package-wrangler-1409

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1409/npm-package-wrangler-1409

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2721646185/npm-package-wrangler-1409 dev path/to/script.js

@@ -477,14 +477,14 @@ async function spawnProxyProcess({
}

function escapeRegex(str: string) {
return str.replace(/[-/\\^$*+?.()|[]{}]/g, "\\$&");
return str.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This may have solved a bug with parsing unusual characters

}

type Replacements = Record<string, string>;

function replacer(str: string, replacements: Replacements) {
for (const [replacement, value] of Object.entries(replacements)) {
str = str.replace(`:${replacement}`, value);
str = str.replaceAll(`:${replacement}`, value);
Copy link
Contributor Author

@Skye-31 Skye-31 Jul 5, 2022

Choose a reason for hiding this comment

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

Docs will need to be changed to mention this (there's a PR in prod by Walshy doing the same thing)

@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@9271680). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1409   +/-   ##
=======================================
  Coverage        ?   82.48%           
=======================================
  Files           ?       85           
  Lines           ?     5527           
  Branches        ?     1416           
=======================================
  Hits            ?     4559           
  Misses          ?      968           
  Partials        ?        0           

@WalshyDev WalshyDev added the pages Relating to Pages label Jul 27, 2022
@Skye-31 Skye-31 marked this pull request as draft August 19, 2022 16:18
@Skye-31
Copy link
Contributor Author

Skye-31 commented Sep 15, 2022

Closing in favour of #1863

@Skye-31 Skye-31 closed this Sep 15, 2022
@JacobMGEvans JacobMGEvans deleted the redirects-query-params branch August 15, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pages Relating to Pages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants