Skip to content

Commit dbe8881

Browse files
committed
docs: rename package name in imports
1 parent 114c9b5 commit dbe8881

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

docs/api/persistent-subscriptions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ stream, which includes all events.
3434
### Subscribing to a Specific Stream
3535

3636
```ts
37-
import { persistentSubscriptionToStreamSettingsFromDefaults } from "@eventstore/db-client";
37+
import { persistentSubscriptionToStreamSettingsFromDefaults } from "@kurrent/kurrentdb-client";
3838

3939
await client.createPersistentSubscriptionToStream(
4040
"stream-name",
@@ -46,7 +46,7 @@ await client.createPersistentSubscriptionToStream(
4646
### Subscribing to `$all`
4747

4848
```ts
49-
import { persistentSubscriptionToAllSettingsFromDefaults, streamNameFilter } from "@eventstore/db-client";
49+
import { persistentSubscriptionToAllSettingsFromDefaults, streamNameFilter } from "@kurrent/kurrentdb-client";
5050

5151
await client.createPersistentSubscriptionToAll(
5252
"group-name",
@@ -82,7 +82,7 @@ speed of your processing.
8282
The code below shows how to connect to an existing subscription group for a specific stream:
8383

8484
```ts
85-
import { PARK } from "@eventstore/db-client";
85+
import { PARK } from "@kurrent/kurrentdb-client";
8686

8787
const subscription = client.subscribeToPersistentSubscriptionToStream("stream-name", "group-name");
8888

@@ -135,7 +135,7 @@ reason, then you can Nack (not acknowledge) the message and tell the server how
135135
to handle the failure.
136136

137137
```ts
138-
import { PARK } from "@eventstore/db-client";
138+
import { PARK } from "@kurrent/kurrentdb-client";
139139

140140
const subscription = client.subscribeToPersistentSubscriptionToStream("stream-name", "group-name");
141141

@@ -212,7 +212,7 @@ having them reconnect. You must have admin permissions to update a persistent
212212
subscription group.
213213

214214
```ts
215-
import { persistentSubscriptionToStreamSettingsFromDefaults } from "@eventstore/db-client";
215+
import { persistentSubscriptionToStreamSettingsFromDefaults } from "@kurrent/kurrentdb-client";
216216

217217
await client.updatePersistentSubscriptionToStream(
218218
"stream-name",

docs/api/reading-events.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ direction, and revision from which to start. The revision can be specified in se
4141
- Use `fromRevision` with a specific revision number (64-bit signed integer)
4242

4343
```ts{2-3}
44-
const events = client.readStream("some-stream", {
44+
const events = client.readStream("order-123", {
4545
direction: FORWARDS,
4646
fromRevision: START,
4747
maxCount: 10,
@@ -51,7 +51,7 @@ const events = client.readStream("some-stream", {
5151
You can also start reading from a specific revision in the stream:
5252

5353
```ts{3}
54-
const events = client.readStream("some-stream", {
54+
const events = client.readStream("order-123", {
5555
direction: FORWARDS,
5656
fromRevision: 10,
5757
maxCount: 10,
@@ -73,7 +73,7 @@ There are a number of additional arguments you can provide when reading a stream
7373
Passing in the max count allows you to limit the number of events that returned.
7474

7575
```ts{4}
76-
const events = client.readStream("some-stream", {
76+
const events = client.readStream("order-123", {
7777
direction: FORWARDS,
7878
fromRevision: START,
7979
maxCount: 10,
@@ -85,7 +85,7 @@ const events = client.readStream("some-stream", {
8585
When using projections to create new events you can set whether the generated events are pointers to existing events. Setting this value to true will tell KurrentDB to return the event as well as the event linking to it.
8686

8787
```ts{4}
88-
const events = client.readStream("some-stream", {
88+
const events = client.readStream("order-123", {
8989
direction: BACKWARDS,
9090
fromPosition: END,
9191
resolveLinkTos: true,
@@ -98,7 +98,7 @@ const events = client.readStream("some-stream", {
9898
The credentials used to read the data can be used by the subscription as follows. This will override the default credentials set on the connection.
9999

100100
```ts{4-7}
101-
const events = client.readStream("some-stream", {
101+
const events = client.readStream("order-123", {
102102
direction: FORWARDS,
103103
fromRevision: START,
104104
credentials: {
@@ -114,7 +114,7 @@ const events = client.readStream("some-stream", {
114114
In addition to reading a stream forwards, streams can be read backwards. To read all the events backwards, set the `fromRevision` to `END`:
115115

116116
```ts{2-3}
117-
const events = client.readStream("some-stream", {
117+
const events = client.readStream("order-123", {
118118
direction: BACKWARDS,
119119
fromRevision: END,
120120
maxCount: 10,
@@ -138,7 +138,7 @@ It is important to handle this exception when attempting to iterate a stream tha
138138
For example:
139139

140140
```ts{12-14}
141-
const events = client.readStream("some-stream", {
141+
const events = client.readStream("order-123", {
142142
direction: FORWARDS,
143143
fromRevision: 10,
144144
maxCount: 20,
@@ -228,7 +228,7 @@ const events = client.readAll({
228228
The credentials used to read the data can be used by the subscription as follows. This will override the default credentials set on the connection.
229229

230230
```ts{4-7}
231-
const events = client.readStream("some-stream", {
231+
const events = client.readStream("order-123", {
232232
direction: FORWARDS,
233233
fromRevision: START,
234234
credentials: {
@@ -245,7 +245,7 @@ In addition to reading the `$all` stream forwards, it can be read backwards. To
245245
read all the events backwards, set the _direction_ to `BACKWARDS`:
246246

247247
```ts{2-3}
248-
const events = client.readStream("some-stream", {
248+
const events = client.readStream("order-123", {
249249
direction: BACKWARDS,
250250
fromRevision: END,
251251
maxCount: 10,

docs/api/subscriptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ need to store the current position of the subscription somewhere, and then use
140140
it to restore the subscription from the point where it dropped off:
141141

142142
```ts{7,14-16}
143-
import { ReadRevision, START } from "@eventstore/db-client";
143+
import { ReadRevision, START } from "@kurrent/kurrentdb-client";
144144
145145
let checkpoint: ReadRevision = START;
146146
@@ -163,7 +163,7 @@ stream. As mentioned previously, the `$all` stream position consists of two big
163163
integers (prepare and commit positions), not one:
164164

165165
```ts{6,13-15}
166-
import { ReadRevision, START } from "@eventstore/db-client";
166+
import { ReadRevision, START } from "@kurrent/kurrentdb-client";
167167
168168
let checkpoint: ReadRevision = START;
169169

0 commit comments

Comments
 (0)