Skip to content

Commit 6047f25

Browse files
committed
Cleaning up "Durable Object instance" to "Durable Object", to align with glossary definition.
1 parent c4201c8 commit 6047f25

File tree

23 files changed

+60
-60
lines changed

23 files changed

+60
-60
lines changed

src/content/changelogs/workers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ entries:
206206
- publish_date: "2023-05-05"
207207
description: |-
208208
- The new `nodeJsCompatModule` type can be used with a Worker bundle to emulate a Node.js environment. Common Node.js globals such as `process` and `Buffer` will be present, and `require('...')` can be used to load Node.js built-ins without the `node:` specifier prefix.
209-
- Fixed an issue where websocket connections would be disconnected when updating workers. Now, only websockets connected to Durable Object instances are disconnected by updates to that Durable Object’s code.
209+
- Fixed an issue where websocket connections would be disconnected when updating workers. Now, only WebSockets connected to Durable Objects are disconnected by updates to that Durable Object’s code.
210210
- publish_date: "2023-04-28"
211211
description: |-
212212
- The Web Crypto API now supports curves Ed25519 and X25519 defined in the Secure Curves specification.

src/content/docs/durable-objects/api/alarms.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Durable Objects alarms allow you to schedule the Durable Object to be woken up a
1313

1414
Notably:
1515

16-
- Each Durable Object instance is able to schedule a single alarm at a time by calling `setAlarm()`.
16+
- Each Durable Object is able to schedule a single alarm at a time by calling `setAlarm()`.
1717
- Alarms have guaranteed at-least-once execution and are retried automatically when the `alarm()` handler throws.
1818
- Retries are performed using exponential backoff starting at a 2 second delay from the first failure with up to 6 retries allowed.
1919

src/content/docs/durable-objects/api/id.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import { Tabs, TabItem } from "~/components";
99

1010
## Description
1111

12-
The `DurableObjectId` interface refers to a new or existing Durable Object instance. This interface is most frequently used by [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to obtain a stub for submitting requests to a Durable Object instance.
12+
The `DurableObjectId` interface refers to a new or existing Durable Object. This interface is most frequently used by [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to obtain a stub for submitting requests to a Durable Object.
1313

14-
Note that creating an ID for a Durable Object instance does not create the Durable Object. The Durable Object is created lazily after calling [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to create a [`DurableObjectStub`](/durable-objects/api/stub) from a `DurableObjectId`. This ensures that objects are not constructed until they are actually accessed.
14+
Note that creating an ID for a Durable Object does not create the Durable Object. The Durable Object is created lazily after calling [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to create a [`DurableObjectStub`](/durable-objects/api/stub) from a `DurableObjectId`. This ensures that objects are not constructed until they are actually accessed.
1515

1616
:::note[`DurableObjectId`]
1717

18-
If you are experiencing an issue with a particular Durable Object instance, you may wish to log the `DurableObjectId` from your Worker and include it in your Cloudflare support request.
18+
If you are experiencing an issue with a particular Durable Object, you may wish to log the `DurableObjectId` from your Worker and include it in your Cloudflare support request.
1919

2020
:::
2121

src/content/docs/durable-objects/api/namespace.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { Tabs, TabItem } from "~/components";
99

1010
## Description
1111

12-
The `DurableObjectNamespace` interface is used to obtain a reference to a new or existing Durable Object instance. The interface is accessible from the fetch handler on a Cloudflare Worker via the `env` parameter, which is the standard interface when referencing bindings declared in `wrangler.toml`.
12+
The `DurableObjectNamespace` interface is used to obtain a reference to a new or existing Durable Object. The interface is accessible from the fetch handler on a Cloudflare Worker via the `env` parameter, which is the standard interface when referencing bindings declared in `wrangler.toml`.
1313

14-
This interface defines several [methods](/durable-objects/api/namespace/#methods) that can be used to create an ID for a Durable Object instance. Note that creating an ID for a Durable Object instance does not create the Durable Object. The Durable Object is created lazily after calling [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to create a [`DurableObjectStub`](/durable-objects/api/stub) from a `DurableObjectId`. This ensures that objects are not constructed until they are actually accessed.
14+
This interface defines several [methods](/durable-objects/api/namespace/#methods) that can be used to create an ID for a Durable Object. Note that creating an ID for a Durable Object does not create the Durable Object. The Durable Object is created lazily after calling [`DurableObjectNamespace::get`](/durable-objects/api/namespace/#get) to create a [`DurableObjectStub`](/durable-objects/api/stub) from a `DurableObjectId`. This ensures that objects are not constructed until they are actually accessed.
1515

1616
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
1717

@@ -29,7 +29,7 @@ export default {
2929
// Every unique ID refers to an individual instance of the Durable Object class
3030
const id = env.MY_DURABLE_OBJECT.idFromName("foo");
3131

32-
// A stub is a client Object used to invoke methods defined by the Durable Object instance
32+
// A stub is a client Object used to invoke methods defined by the Durable Object
3333
const stub = env.MY_DURABLE_OBJECT.get(id);
3434
...
3535
}
@@ -56,7 +56,7 @@ export default {
5656
// Every unique ID refers to an individual instance of the Durable Object class
5757
const id = env.MY_DURABLE_OBJECT.idFromName("foo");
5858

59-
// A stub is a client Object used to invoke methods defined by the Durable Object instance
59+
// A stub is a client Object used to invoke methods defined by the Durable Object
6060
const stub = env.MY_DURABLE_OBJECT.get(id);
6161
...
6262
}
@@ -78,7 +78,7 @@ const barId = env.MY_DURABLE_OBJECT.idFromName("bar");
7878

7979
#### Parameters
8080

81-
- A required string to be used to generate a [`DurableObjectId`](/durable-objects/api/id) corresponding to the name of a Durable Object instance.
81+
- A required string to be used to generate a [`DurableObjectId`](/durable-objects/api/id) corresponding to the name of a Durable Object.
8282

8383
#### Return values
8484

@@ -130,7 +130,7 @@ const id = env.MY_DURABLE_OBJECT.idFromString(session_id);
130130

131131
### `get`
132132

133-
`get` obtains a [`DurableObjectStub`](/durable-objects/api/stub) from a [`DurableObjectId`](/durable-objects/api/id) which can be used to invoke methods on a Durable Object instance.
133+
`get` obtains a [`DurableObjectStub`](/durable-objects/api/stub) from a [`DurableObjectId`](/durable-objects/api/id) which can be used to invoke methods on a Durable Object.
134134

135135
```js
136136
const id = env.MY_DURABLE_OBJECT.newUniqueId();
@@ -147,7 +147,7 @@ const stub = env.MY_DURABLE_OBJECT.get(id);
147147

148148
### `jurisdiction`
149149

150-
`jurisdiction` creates a subnamespace from a namespace where all Durable Object instance IDs and references created from that subnamespace will be restricted to the specified [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction).
150+
`jurisdiction` creates a subnamespace from a namespace where all Durable Object IDs and references created from that subnamespace will be restricted to the specified [jurisdiction](/durable-objects/reference/data-location/#restrict-durable-objects-to-a-jurisdiction).
151151

152152
```js
153153
const subnamespace = env.MY_DURABLE_OBJECT.jurisdiction("foo");

0 commit comments

Comments
 (0)