Skip to content

Commit 8ecba09

Browse files
committed
Temporarily reverting files to avoid merge conflict.
1 parent abbf4b2 commit 8ecba09

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

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

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

1616
:::note[`DurableObjectId`]
1717

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

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.
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.
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
32+
// A stub is a client Object used to invoke methods defined by the Durable Object instance
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
59+
// A stub is a client Object used to invoke methods defined by the Durable Object instance
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.
81+
- A required string to be used to generate a [`DurableObjectId`](/durable-objects/api/id) corresponding to the name of a Durable Object instance.
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.
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.
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 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 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).
151151

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

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

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

1010
## Description
1111

12-
The `DurableObjectStub` interface is used to obtain a reference a Durable Object and invoke methods on that instance. The type of `DurableObjectStub` is generic to allow for RPC methods to be invoked on the stub.
12+
The `DurableObjectStub` interface is used to obtain a reference a Durable Object instance and invoke methods on that instance. The type of `DurableObjectStub` is generic to allow for RPC methods to be invoked on the stub.
1313

1414
<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
1515

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

36-
// A stub is a client used to invoke methods on the Durable Object
36+
// A stub is a client used to invoke methods on the Durable Object instance
3737
const stub = env.MY_DURABLE_OBJECT.get(id);
3838

3939
// Methods on the Durable Object are invoked via the stub
@@ -70,7 +70,7 @@ export default {
7070
// Every unique ID refers to an individual instance of the Durable Object class
7171
const id = env.MY_DURABLE_OBJECT.idFromName("foo");
7272

73-
// A stub is a client used to invoke methods on the Durable Object
73+
// A stub is a client used to invoke methods on the Durable Object instance
7474
const stub = env.MY_DURABLE_OBJECT.get(id);
7575

7676
// Methods on the Durable Object are invoked via the stub

src/content/docs/durable-objects/get-started/walkthrough.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The `fetch()` handler allows you to instantiate and communicate to a Durable Obj
139139
:::note
140140

141141
Durable Objects do not receive requests directly from the Internet. Durable Objects receive requests from Workers or other Durable Objects.
142-
This is achieved by configuring a binding in the calling Worker for each Durable Object class that you would like it to be able to talk to. These bindings must be configured at upload time. Methods exposed by the binding can be used to communicate with particular Durable Objects.
142+
This is achieved by configuring a binding in the calling Worker for each Durable Object class that you would like it to be able to talk to. These bindings must be configured at upload time. Methods exposed by the binding can be used to communicate with particular Durable Object instances.
143143
:::
144144

145145
To communicate with a Durable Object, the fetch handler should look like the following:

0 commit comments

Comments
 (0)