@dxos/protocols 0.1.46-next.412561 → 0.1.46

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC"}
@@ -0,0 +1,10 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+ /**
5
+ * Version for the schema of the stored data as defined in dxos.echo.metadata.EchoMetadata.
6
+ *
7
+ * Should be incremented every time there's a breaking change to the stored data.
8
+ */
9
+ export const STORAGE_VERSION = 1;
10
+ //# sourceMappingURL=storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/storage.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.46-next.0412561",
3
+ "version": "0.1.46",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.1.46-next.0412561",
37
- "@dxos/hypercore": "0.1.46-next.0412561",
38
- "@dxos/keys": "0.1.46-next.0412561",
39
- "@dxos/timeframe": "0.1.46-next.0412561"
36
+ "@dxos/codec-protobuf": "0.1.46",
37
+ "@dxos/hypercore": "0.1.46",
38
+ "@dxos/keys": "0.1.46",
39
+ "@dxos/timeframe": "0.1.46"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/debug": "^4.1.7",
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  //
4
4
 
5
5
  export * from './proto';
6
+ export * from './storage';
6
7
  export * from './testing';
7
8
  export * from './types';
8
9
  export * from './tracing';
@@ -6,6 +6,8 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.echo.timeframe;
8
8
 
9
+ option go_package = "github.com/dxos/kube/proto/def/dxos/echo/timeframe";
10
+
9
11
  /**
10
12
  * Vector timestamp used to order messages.
11
13
  */
@@ -6,6 +6,8 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.error;
8
8
 
9
+ option go_package = "github.com/dxos/kube/proto/def/dxos/error";
10
+
9
11
  /// Serialized error.
10
12
  message Error {
11
13
  optional string name = 1;
@@ -9,6 +9,7 @@ package dxos.halo.credentials;
9
9
  import "google/protobuf/any.proto";
10
10
  import "google/protobuf/timestamp.proto";
11
11
 
12
+ import "dxos/echo/timeframe.proto";
12
13
  import "dxos/keys.proto";
13
14
 
14
15
  option go_package = "github.com/dxos/kube/proto/def/dxos/halo/credentials";
@@ -102,7 +103,7 @@ message Epoch {
102
103
  optional dxos.keys.PublicKey previous_id = 2;
103
104
 
104
105
  /// Epoch start timeframe. Indexes correspond to last mutations included into the snapshot.
105
- timeframe.TimeframeVector timeframe = 10;
106
+ dxos.echo.timeframe.TimeframeVector timeframe = 10;
106
107
 
107
108
  /// Epoch start snapshot.
108
109
  optional string snapshot_cid = 11;