diff --git a/src/workerd/api/actor.h b/src/workerd/api/actor.h index d59e2a69c59..39a6862268e 100644 --- a/src/workerd/api/actor.h +++ b/src/workerd/api/actor.h @@ -66,17 +66,11 @@ class DurableObjectId: public jsg::Object { return id->getJurisdiction(); } - JSG_RESOURCE_TYPE(DurableObjectId, CompatibilityFlags::Reader flags) { + JSG_RESOURCE_TYPE(DurableObjectId) { JSG_METHOD(toString); JSG_METHOD(equals); JSG_READONLY_INSTANCE_PROPERTY(name, getName); - if (flags.getWorkerdExperimental()) { - // `jurisdiction` is marked as experimental because it will be undefined when called on the - // `DurableObjectId` stored within a Durable Object class as `this.ctx.id`. - // - // TODO(soon): Ensure that `jurisdiction` is always available on a `DurableObjectId`. - JSG_READONLY_INSTANCE_PROPERTY(jurisdiction, getJurisdiction); - } + JSG_READONLY_INSTANCE_PROPERTY(jurisdiction, getJurisdiction); } void visitForMemoryInfo(jsg::MemoryTracker& tracker) const { diff --git a/types/generated-snapshot/latest/index.d.ts b/types/generated-snapshot/latest/index.d.ts index f586a4260a4..d13e0bf9eb9 100755 --- a/types/generated-snapshot/latest/index.d.ts +++ b/types/generated-snapshot/latest/index.d.ts @@ -583,6 +583,7 @@ interface DurableObjectId { toString(): string; equals(other: DurableObjectId): boolean; readonly name?: string; + readonly jurisdiction?: string; } declare abstract class DurableObjectNamespace< T extends Rpc.DurableObjectBranded | undefined = undefined, diff --git a/types/generated-snapshot/latest/index.ts b/types/generated-snapshot/latest/index.ts index 8e95c4cf018..d1075205f9c 100755 --- a/types/generated-snapshot/latest/index.ts +++ b/types/generated-snapshot/latest/index.ts @@ -585,6 +585,7 @@ export interface DurableObjectId { toString(): string; equals(other: DurableObjectId): boolean; readonly name?: string; + readonly jurisdiction?: string; } export declare abstract class DurableObjectNamespace< T extends Rpc.DurableObjectBranded | undefined = undefined,