-
Notifications
You must be signed in to change notification settings - Fork 1k
Unflag remote bindings #10604
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
Merged
Merged
Unflag remote bindings #10604
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c563ab4
Unflag remote bindings
penalosa f0ea3d6
tests
penalosa a672efb
Change package versions to minor and enable remote bindings
penalosa aa34ec6
remove duplicate tests
penalosa b81646d
remove AI fixture
penalosa 55f404b
default getPlatformProxy() to enabled
penalosa b1cb8c0
unflag APIs
penalosa ef2338b
split out changesets
penalosa ce44afc
test & lint
penalosa 06681ca
test & lint
penalosa f13e774
vitest default
penalosa 6da52ff
whack-a-mole
penalosa 271199e
fix vitest tests
penalosa 1015705
fix tests
penalosa b2ff620
fix lint
penalosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ import type { | |
| import type { MiniflareOptions, WorkerOptions } from "miniflare"; | ||
| import type { FetchFunctionOptions } from "vite/module-runner"; | ||
| import type { | ||
| Experimental_RemoteProxySession, | ||
| remoteProxySession, | ||
| SourcelessWorkerOptions, | ||
| Unstable_Binding, | ||
| } from "wrangler"; | ||
|
|
@@ -230,7 +230,7 @@ function logUnknownTails( | |
| const remoteProxySessionsDataMap = new Map< | ||
| string, | ||
| { | ||
| session: Experimental_RemoteProxySession; | ||
| session: remoteProxySession; | ||
| remoteBindings: Record<string, Unstable_Binding>; | ||
| } | null | ||
| >(); | ||
|
|
@@ -396,16 +396,16 @@ export async function getDevMiniflareOptions(config: { | |
| ? remoteProxySessionsDataMap.get(workerConfig.configPath) | ||
| : undefined; | ||
|
|
||
| const remoteProxySessionData = resolvedPluginConfig.experimental | ||
| .remoteBindings | ||
| ? await experimental_maybeStartOrUpdateRemoteProxySession( | ||
| { | ||
| name: workerConfig.name, | ||
| bindings: bindings ?? {}, | ||
| }, | ||
| preExistingRemoteProxySession ?? null | ||
| ) | ||
| : undefined; | ||
| const remoteProxySessionData = | ||
| resolvedPluginConfig.experimental.remoteBindings ?? true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, see #10604 (comment) |
||
| ? await experimental_maybeStartOrUpdateRemoteProxySession( | ||
| { | ||
| name: workerConfig.name, | ||
| bindings: bindings ?? {}, | ||
| }, | ||
| preExistingRemoteProxySession ?? null | ||
| ) | ||
| : undefined; | ||
|
|
||
| if (workerConfig.configPath && remoteProxySessionData) { | ||
| remoteProxySessionsDataMap.set( | ||
|
|
@@ -425,7 +425,7 @@ export async function getDevMiniflareOptions(config: { | |
| remoteProxySessionData?.session | ||
| ?.remoteProxyConnectionString, | ||
| remoteBindingsEnabled: | ||
| resolvedPluginConfig.experimental.remoteBindings, | ||
| resolvedPluginConfig.experimental.remoteBindings ?? true, | ||
| containerBuildId, | ||
| } | ||
| ); | ||
|
|
@@ -726,16 +726,16 @@ export async function getPreviewMiniflareOptions(config: { | |
| ? remoteProxySessionsDataMap.get(workerConfig.configPath) | ||
| : undefined; | ||
|
|
||
| const remoteProxySessionData = resolvedPluginConfig.experimental | ||
| .remoteBindings | ||
| ? await experimental_maybeStartOrUpdateRemoteProxySession( | ||
| { | ||
| name: workerConfig.name, | ||
| bindings: bindings ?? {}, | ||
| }, | ||
| preExistingRemoteProxySessionData ?? null | ||
| ) | ||
| : undefined; | ||
| const remoteProxySessionData = | ||
| resolvedPluginConfig.experimental.remoteBindings ?? true | ||
| ? await experimental_maybeStartOrUpdateRemoteProxySession( | ||
| { | ||
| name: workerConfig.name, | ||
| bindings: bindings ?? {}, | ||
| }, | ||
| preExistingRemoteProxySessionData ?? null | ||
| ) | ||
| : undefined; | ||
|
|
||
| if (workerConfig.configPath && remoteProxySessionData) { | ||
| remoteProxySessionsDataMap.set( | ||
|
|
@@ -751,7 +751,7 @@ export async function getPreviewMiniflareOptions(config: { | |
| remoteProxyConnectionString: | ||
| remoteProxySessionData?.session?.remoteProxyConnectionString, | ||
| remoteBindingsEnabled: | ||
| resolvedPluginConfig.experimental.remoteBindings, | ||
| resolvedPluginConfig.experimental.remoteBindings ?? true, | ||
| containerBuildId, | ||
| } | ||
| ); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this field still supposed to be here? in
vitest.workers.config.tsit's removed entirelyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No—removed now