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

fix: fix dev and publish #262

Merged
merged 1 commit into from
Jan 18, 2022
Merged

fix: fix dev and publish #262

merged 1 commit into from
Jan 18, 2022

Conversation

threepointone
Copy link
Contributor

We introduced some bugs in recent PRs:

@changeset-bot
Copy link

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

3 participants