Skip to content

fix: fix dev and publish#262

Merged
threepointone merged 1 commit intomainfrom
fix-dev
Jan 18, 2022
Merged

fix: fix dev and publish#262
threepointone merged 1 commit intomainfrom
fix-dev

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

We introduced some bugs in recent PRs:

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 18, 2022

🦋 Changeset detected

Latest commit: 0091b94

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

We introduced some bugs in recent PRs:

- In #196, we broke being able to pass an entrypoint directly to the cli. In this PR, I just reverted that fix. I'll reopen #78 and we'll tackle it again later. (cc @jgentes)
- In #215, we broke being able to publish a script by just passing `--latest` or `--compatibility-data` in the cli. This PR fixes that by reading the correct argument when choosing whether to publish.
- In #247, we broke how we made requests by passing headers to requests. This PR reverts the changes made in `cfetch/internal.ts`. (cc @petebacondarwin)
- In #244, we broke `dev` and it would immediately crash. This PR fixes the reference in `dev.tsx` that was breaking. (cc @petebacondarwin)
@petebacondarwin
Copy link
Copy Markdown
Contributor

petebacondarwin commented Jan 18, 2022

I think that this one:

In Strict null checks dev and publish commands #244, we broke dev and it would immediately crash. This PR fixes the reference in dev.tsx that was breaking. (cc @petebacondarwin)

is because the #244 actually relies upon #249 ...

@petebacondarwin
Copy link
Copy Markdown
Contributor

Can you explain why this is breaking?

In Refactor miscellaneous source files to pass strict-null checks #247, we broke how we made requests by passing headers to requests. This PR reverts the changes made in cfetch/internal.ts. (cc @petebacondarwin)

@threepointone
Copy link
Copy Markdown
Contributor Author

I dunno, I debugged by bisecting, reverted that specific change and it prevented sessionToken() from throwing 400s.

petebacondarwin added a commit to petebacondarwin/wrangler2 that referenced this pull request Jan 19, 2022
In cloudflare#262 some of the strict null fixes were removed to resolve a regression.
This refactor re-applies these fixes in a way that avoids that problem.
petebacondarwin added a commit that referenced this pull request Jan 19, 2022
In #262 some of the strict null fixes were removed to resolve a regression.
This refactor re-applies these fixes in a way that avoids that problem.
@github-actions github-actions bot mentioned this pull request Jan 19, 2022
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

4 participants