@ethersphere/bee-js 9.6.0 → 9.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,12 +68,12 @@ export class Fork {
68
68
  }
69
69
  return Binary.concatBytes(...data);
70
70
  }
71
- static unmarshal(reader) {
71
+ static unmarshal(reader, addressLength) {
72
72
  const type = Binary.uint8ToNumber(reader.read(1));
73
73
  const prefixLength = Binary.uint8ToNumber(reader.read(1));
74
74
  const prefix = reader.read(prefixLength);
75
75
  reader.read(30 - prefixLength);
76
- const selfAddress = reader.read(32);
76
+ const selfAddress = reader.read(addressLength);
77
77
  let metadata = undefined;
78
78
  if (isType(type, TYPE_WITH_METADATA)) {
79
79
  const metadataLength = Binary.uint16ToNumber(reader.read(2), 'BE');
@@ -219,7 +219,7 @@ export class MantarayNode {
219
219
  const forkBitmap = reader.read(32);
220
220
  for (let i = 0; i < 256; i++) {
221
221
  if (Binary.getBit(forkBitmap, i, 'LE')) {
222
- const newFork = Fork.unmarshal(reader);
222
+ const newFork = Fork.unmarshal(reader, targetAddressLength);
223
223
  node.forks.set(i, newFork);
224
224
  newFork.node.parent = node;
225
225
  }
@@ -2,9 +2,9 @@ import { Types } from 'cafe-utility';
2
2
  import getMajorSemver from 'semver/functions/major.js';
3
3
  import { toBeeMode } from "../../types/debug.js";
4
4
  import { http } from "../../utils/http.js";
5
- export const SUPPORTED_BEE_VERSION_EXACT = '2.4.0-390a402e';
5
+ export const SUPPORTED_BEE_VERSION_EXACT = '2.6.0-d0aa8b93';
6
6
  export const SUPPORTED_BEE_VERSION = SUPPORTED_BEE_VERSION_EXACT.split('-')[0];
7
- export const SUPPORTED_API_VERSION = '7.2.0';
7
+ export const SUPPORTED_API_VERSION = '7.3.0';
8
8
  const NODE_INFO_URL = 'node';
9
9
  const STATUS_URL = 'status';
10
10
  const HEALTH_URL = 'health';
@@ -57,6 +57,9 @@ export async function getDebugStatus(requestOptions) {
57
57
  }),
58
58
  committedDepth: Types.asNumber(body.committedDepth, {
59
59
  name: 'committedDepth'
60
+ }),
61
+ isWarmingUp: Types.asBoolean(body.isWarmingUp, {
62
+ name: 'isWarmingUp'
60
63
  })
61
64
  };
62
65
  }
@@ -9,7 +9,7 @@ export declare class Fork {
9
9
  constructor(prefix: Uint8Array, node: MantarayNode);
10
10
  static split(a: Fork, b: Fork): Fork;
11
11
  marshal(): Uint8Array;
12
- static unmarshal(reader: Uint8ArrayReader): Fork;
12
+ static unmarshal(reader: Uint8ArrayReader, addressLength: number): Fork;
13
13
  }
14
14
  interface MantarayNodeOptions {
15
15
  selfAddress?: Uint8Array;
@@ -1,9 +1,9 @@
1
1
  import { BeeRequestOptions } from '../../index';
2
2
  import type { DebugStatus, Health, NodeInfo, Readiness } from '../../types/debug';
3
3
  import { BeeVersions } from '../../types/debug';
4
- export declare const SUPPORTED_BEE_VERSION_EXACT = "2.4.0-390a402e";
4
+ export declare const SUPPORTED_BEE_VERSION_EXACT = "2.6.0-d0aa8b93";
5
5
  export declare const SUPPORTED_BEE_VERSION: string;
6
- export declare const SUPPORTED_API_VERSION = "7.2.0";
6
+ export declare const SUPPORTED_API_VERSION = "7.3.0";
7
7
  export declare function getDebugStatus(requestOptions: BeeRequestOptions): Promise<DebugStatus>;
8
8
  /**
9
9
  * Get health of node
@@ -88,6 +88,7 @@ export interface DebugStatus {
88
88
  isReachable: boolean;
89
89
  lastSyncedBlock: number;
90
90
  committedDepth: number;
91
+ isWarmingUp: boolean;
91
92
  }
92
93
  export interface Health {
93
94
  status: 'ok';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethersphere/bee-js",
3
- "version": "9.6.0",
3
+ "version": "9.7.0",
4
4
  "description": "Javascript client for Bee",
5
5
  "keywords": [
6
6
  "bee",