Skip to content

Commit 72d9ddc

Browse files
authored
feat: bee-js 2.1.0 (#79)
1 parent 6c6b90e commit 72d9ddc

File tree

135 files changed

+456
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+456
-371
lines changed

docs/api/classes/bee.md

Lines changed: 65 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For example gateway mode and light node mode has only limited set of endpoints e
2626

2727
#### Defined in
2828

29-
[bee-js/src/bee.ts:105](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L105)
29+
[bee-js/src/bee.ts:105](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L105)
3030

3131
## Properties
3232

@@ -38,7 +38,7 @@ Default Signer object used for signing operations, mainly Feeds.
3838

3939
#### Defined in
4040

41-
[bee-js/src/bee.ts:99](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L99)
41+
[bee-js/src/bee.ts:99](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L99)
4242

4343
___
4444

@@ -50,7 +50,7 @@ URL on which is the main API of Bee node exposed
5050

5151
#### Defined in
5252

53-
[bee-js/src/bee.ts:94](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L94)
53+
[bee-js/src/bee.ts:94](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L94)
5454

5555
## Methods
5656

@@ -74,7 +74,7 @@ Ping the Bee node to see if there is a live Bee node on the given URL.
7474

7575
#### Defined in
7676

77-
[bee-js/src/bee.ts:1022](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L1022)
77+
[bee-js/src/bee.ts:1039](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L1039)
7878

7979
___
8080

@@ -106,7 +106,7 @@ Feed manifest chunk allows for a feed to be able to be resolved through `/bzz` e
106106

107107
#### Defined in
108108

109-
[bee-js/src/bee.ts:749](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L749)
109+
[bee-js/src/bee.ts:766](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L766)
110110

111111
___
112112

@@ -146,7 +146,7 @@ For better understanding what each parameter means and what are the optimal valu
146146

147147
#### Defined in
148148

149-
[bee-js/src/bee.ts:965](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L965)
149+
[bee-js/src/bee.ts:982](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L982)
150150

151151
___
152152

@@ -174,7 +174,7 @@ Create a new Tag which is meant for tracking progres of syncing data across netw
174174

175175
#### Defined in
176176

177-
[bee-js/src/bee.ts:385](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L385)
177+
[bee-js/src/bee.ts:385](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L385)
178178

179179
___
180180

@@ -207,7 +207,7 @@ Delete Tag
207207

208208
#### Defined in
209209

210-
[bee-js/src/bee.ts:446](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L446)
210+
[bee-js/src/bee.ts:446](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L446)
211211

212212
___
213213

@@ -234,7 +234,7 @@ Download data as a byte array
234234

235235
#### Defined in
236236

237-
[bee-js/src/bee.ts:181](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L181)
237+
[bee-js/src/bee.ts:181](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L181)
238238

239239
___
240240

@@ -264,7 +264,7 @@ Download single file.
264264

265265
#### Defined in
266266

267-
[bee-js/src/bee.ts:266](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L266)
267+
[bee-js/src/bee.ts:266](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L266)
268268

269269
___
270270

@@ -291,7 +291,7 @@ Download data as a Readable stream
291291

292292
#### Defined in
293293

294-
[bee-js/src/bee.ts:196](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L196)
294+
[bee-js/src/bee.ts:196](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L196)
295295

296296
___
297297

@@ -319,7 +319,7 @@ Download single file as a readable stream
319319

320320
#### Defined in
321321

322-
[bee-js/src/bee.ts:283](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L283)
322+
[bee-js/src/bee.ts:283](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L283)
323323

324324
___
325325

@@ -345,7 +345,7 @@ Get list of all locally pinned references
345345

346346
#### Defined in
347347

348-
[bee-js/src/bee.ts:524](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L524)
348+
[bee-js/src/bee.ts:524](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L524)
349349

350350
___
351351

@@ -375,7 +375,7 @@ Return all postage batches that has the node available.
375375

376376
#### Defined in
377377

378-
[bee-js/src/bee.ts:1010](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L1010)
378+
[bee-js/src/bee.ts:1027](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L1027)
379379

380380
___
381381

@@ -409,7 +409,7 @@ The listing is limited by options.limit. So you have to iterate using options.of
409409

410410
#### Defined in
411411

412-
[bee-js/src/bee.ts:405](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L405)
412+
[bee-js/src/bee.ts:405](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L405)
413413

414414
___
415415

@@ -448,7 +448,7 @@ At least one of these has to be specified!
448448

449449
#### Defined in
450450

451-
[bee-js/src/bee.ts:869](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L869)
451+
[bee-js/src/bee.ts:886](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L886)
452452

453453
___
454454

@@ -477,7 +477,7 @@ Get pinning status of chunk with given reference
477477

478478
#### Defined in
479479

480-
[bee-js/src/bee.ts:541](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L541)
480+
[bee-js/src/bee.ts:541](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L541)
481481

482482
___
483483

@@ -508,7 +508,7 @@ Return details for specific postage batch.
508508

509509
#### Defined in
510510

511-
[bee-js/src/bee.ts:993](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L993)
511+
[bee-js/src/bee.ts:1010](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L1010)
512512

513513
___
514514

@@ -532,7 +532,32 @@ true if successful, false on error
532532

533533
#### Defined in
534534

535-
[bee-js/src/bee.ts:1034](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L1034)
535+
[bee-js/src/bee.ts:1051](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L1051)
536+
537+
___
538+
539+
### isReferenceRetrievable
540+
541+
**isReferenceRetrievable**(`reference`, `options?`): `Promise`<`boolean`\>
542+
543+
Checks if content specified by reference is retrievable from the network.
544+
545+
**`see`** [Bee API reference - `GET /stewardship`](https://docs.ethswarm.org/api/#tag/Stewardship/paths/~1stewardship~1{reference}/get)
546+
547+
#### Parameters
548+
549+
| Name | Type | Description |
550+
| :------ | :------ | :------ |
551+
| `reference` | `string` \| [`Reference`](../types/reference.md) | The checked content |
552+
| `options?` | [`RequestOptions`](../interfaces/requestoptions.md) | Options that affects the request behavior |
553+
554+
#### Returns
555+
556+
`Promise`<`boolean`\>
557+
558+
#### Defined in
559+
560+
[bee-js/src/bee.ts:573](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L573)
536561

537562
___
538563

@@ -559,7 +584,7 @@ Make a new feed reader for downloading feed updates.
559584

560585
#### Defined in
561586

562-
[bee-js/src/bee.ts:776](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L776)
587+
[bee-js/src/bee.ts:793](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L793)
563588

564589
___
565590

@@ -584,7 +609,7 @@ hashes the input string to create a topic string of arbitrary length.
584609

585610
#### Defined in
586611

587-
[bee-js/src/bee.ts:908](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L908)
612+
[bee-js/src/bee.ts:925](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L925)
588613

589614
___
590615

@@ -611,7 +636,7 @@ Make a new feed writer for updating feeds
611636

612637
#### Defined in
613638

614-
[bee-js/src/bee.ts:801](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L801)
639+
[bee-js/src/bee.ts:818](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L818)
615640

616641
___
617642

@@ -636,7 +661,7 @@ Returns an object for reading single owner chunks
636661

637662
#### Defined in
638663

639-
[bee-js/src/bee.ts:919](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L919)
664+
[bee-js/src/bee.ts:936](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L936)
640665

641666
___
642667

@@ -661,7 +686,7 @@ Returns an object for reading and writing single owner chunks
661686

662687
#### Defined in
663688

664-
[bee-js/src/bee.ts:935](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L935)
689+
[bee-js/src/bee.ts:952](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L952)
665690

666691
___
667692

@@ -690,7 +715,7 @@ Pin local data with given reference
690715

691716
#### Defined in
692717

693-
[bee-js/src/bee.ts:491](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L491)
718+
[bee-js/src/bee.ts:491](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L491)
694719

695720
___
696721

@@ -734,7 +759,7 @@ Message in byte array
734759

735760
#### Defined in
736761

737-
[bee-js/src/bee.ts:700](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L700)
762+
[bee-js/src/bee.ts:717](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L717)
738763

739764
___
740765

@@ -777,7 +802,7 @@ This is because light nodes does not fully participate in the data exchange in S
777802

778803
#### Defined in
779804

780-
[bee-js/src/bee.ts:587](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L587)
805+
[bee-js/src/bee.ts:604](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L604)
781806

782807
___
783808

@@ -811,7 +836,7 @@ Subscription to a given topic
811836

812837
#### Defined in
813838

814-
[bee-js/src/bee.ts:629](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L629)
839+
[bee-js/src/bee.ts:646](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L646)
815840

816841
___
817842

@@ -842,7 +867,7 @@ Retrieve tag information from Bee node
842867

843868
#### Defined in
844869

845-
[bee-js/src/bee.ts:425](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L425)
870+
[bee-js/src/bee.ts:425](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L425)
846871

847872
___
848873

@@ -856,6 +881,8 @@ Instructs the Bee node to reupload a locally pinned data into the network.
856881

857882
**`throws`** TypeError if reference is in not correct format
858883

884+
**`see`** [Bee API reference - `PUT /stewardship`](https://docs.ethswarm.org/api/#tag/Stewardship/paths/~1stewardship~1{reference}/put)
885+
859886
#### Parameters
860887

861888
| Name | Type | Description |
@@ -869,7 +896,7 @@ Instructs the Bee node to reupload a locally pinned data into the network.
869896

870897
#### Defined in
871898

872-
[bee-js/src/bee.ts:556](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L556)
899+
[bee-js/src/bee.ts:558](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L558)
873900

874901
___
875902

@@ -908,7 +935,7 @@ If none of those two is set error is thrown.
908935

909936
#### Defined in
910937

911-
[bee-js/src/bee.ts:834](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L834)
938+
[bee-js/src/bee.ts:851](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L851)
912939

913940
___
914941

@@ -937,7 +964,7 @@ Unpin local data with given reference
937964

938965
#### Defined in
939966

940-
[bee-js/src/bee.ts:509](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L509)
967+
[bee-js/src/bee.ts:509](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L509)
941968

942969
___
943970

@@ -974,7 +1001,7 @@ you can use this method to update the total chunks count for the tag.
9741001

9751002
#### Defined in
9761003

977-
[bee-js/src/bee.ts:471](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L471)
1004+
[bee-js/src/bee.ts:471](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L471)
9781005

9791006
___
9801007

@@ -1001,7 +1028,7 @@ This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/
10011028

10021029
#### Defined in
10031030

1004-
[bee-js/src/bee.ts:334](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L334)
1031+
[bee-js/src/bee.ts:334](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L334)
10051032

10061033
___
10071034

@@ -1031,7 +1058,7 @@ reference is a content hash of the data
10311058

10321059
#### Defined in
10331060

1034-
[bee-js/src/bee.ts:160](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L160)
1061+
[bee-js/src/bee.ts:160](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L160)
10351062

10361063
___
10371064

@@ -1067,7 +1094,7 @@ reference is a content hash of the file
10671094

10681095
#### Defined in
10691096

1070-
[bee-js/src/bee.ts:222](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L222)
1097+
[bee-js/src/bee.ts:222](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L222)
10711098

10721099
___
10731100

@@ -1102,7 +1129,7 @@ This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/
11021129

11031130
#### Defined in
11041131

1105-
[bee-js/src/bee.ts:310](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L310)
1132+
[bee-js/src/bee.ts:310](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L310)
11061133

11071134
___
11081135

@@ -1137,4 +1164,4 @@ This will be fixed upon next Bee release. https://github.com/ethersphere/bee-js/
11371164

11381165
#### Defined in
11391166

1140-
[bee-js/src/bee.ts:363](https://github.com/ethersphere/bee-js/blob/5b112bf/src/bee.ts#L363)
1167+
[bee-js/src/bee.ts:363](https://github.com/ethersphere/bee-js/blob/ae6a776/src/bee.ts#L363)

docs/api/classes/beeargumenterror.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ custom_edit_url: null
3131

3232
#### Defined in
3333

34-
[bee-js/src/utils/error.ts:7](https://github.com/ethersphere/bee-js/blob/5b112bf/src/utils/error.ts#L7)
34+
[bee-js/src/utils/error.ts:7](https://github.com/ethersphere/bee-js/blob/ae6a776/src/utils/error.ts#L7)
3535

3636
## Properties
3737

0 commit comments

Comments
 (0)