Skip to content

Conversation

@MellowYarker
Copy link
Contributor

No description provided.

@MellowYarker MellowYarker force-pushed the milan/direct-to-primary branch from 7a08cc7 to d5a16d4 Compare November 13, 2025 20:01
@github-actions
Copy link

github-actions bot commented Nov 13, 2025

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 13, 2025

CodSpeed Performance Report

Merging #5525 will not alter performance

Comparing milan/direct-to-primary (3289720) with main (974cf15)

Summary

✅ 53 untouched
⏩ 9 skipped1

Footnotes

  1. 9 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@MellowYarker MellowYarker force-pushed the milan/direct-to-primary branch from d5a16d4 to a14cc38 Compare November 13, 2025 21:02
@MellowYarker MellowYarker changed the title Add getPrimaryOnly option to GetDurableObjectOptions Add routingMode option to GetDurableObjectOptions Nov 14, 2025
@MellowYarker MellowYarker marked this pull request as ready for review November 14, 2025 14:52
@MellowYarker MellowYarker requested review from a team as code owners November 14, 2025 14:52
@MellowYarker MellowYarker self-assigned this Nov 14, 2025
@MellowYarker MellowYarker force-pushed the milan/direct-to-primary branch 3 times, most recently from 9adef6b to 85c05c0 Compare November 14, 2025 15:52
@MellowYarker MellowYarker requested a review from a team as a code owner November 14, 2025 15:52
@MellowYarker
Copy link
Contributor Author

Latest push updates types. Couldn't get just generate-types to just do-what-it's-supposed-to so I manually copied and pasted the expected output. Here's to hoping it works 🤞.

@MellowYarker MellowYarker force-pushed the milan/direct-to-primary branch from 85c05c0 to 3289720 Compare November 14, 2025 16:11
// `routingMode` may be be of interest to applications using Durable Objects replicas. It can be
// one of the following options:
// - none: the default, indicates we will pick for the application.
// - "primary-only": guarantees we route directly to the primary (skip any replicas.)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: period outside of parens.

Suggested change
// - "primary-only": guarantees we route directly to the primary (skip any replicas.)
// - "primary-only": guarantees we route directly to the primary (skip any replicas).

JSG_STRUCT(locationHint, routingMode);

JSG_STRUCT_TS_DEFINE(type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me");
// Possible values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint
Copy link
Contributor

Choose a reason for hiding this comment

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

Given that there are now multiple values in the struct, you may want to say DurableObjectLocationHint values from ...

Suggested change
// Possible values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint
// DurableObjectLocationHint values from https://developers.cloudflare.com/workers/runtime-apis/durable-objects/#providing-a-location-hint

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.

2 participants