@talismn/connection-meta 0.1.0 → 0.2.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.
@@ -1,15 +1,15 @@
1
1
  import { ChainId } from "@talismn/chaindata-provider";
2
2
  import { Dexie } from "dexie";
3
- type ChainPriorityRpc = {
3
+ type ChainPriorityRpcs = {
4
4
  id: ChainId;
5
- url: string;
5
+ urls: string[];
6
6
  };
7
7
  type ChainBackoffInterval = {
8
8
  id: ChainId;
9
9
  interval: number;
10
10
  };
11
11
  export declare class TalismanConnectionMetaDatabase extends Dexie {
12
- chainPriorityRpc: Dexie.Table<ChainPriorityRpc, ChainId>;
12
+ chainPriorityRpcs: Dexie.Table<ChainPriorityRpcs, ChainId>;
13
13
  chainBackoffInterval: Dexie.Table<ChainBackoffInterval, ChainId>;
14
14
  constructor();
15
15
  }
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var dexie = require('dexie');
6
4
 
7
5
  class TalismanConnectionMetaDatabase extends dexie.Dexie {
@@ -9,14 +7,16 @@ class TalismanConnectionMetaDatabase extends dexie.Dexie {
9
7
  super("TalismanConnectionMeta");
10
8
 
11
9
  // https://dexie.org/docs/Tutorial/Design#database-versioning
12
- this.version(1).stores({
10
+ this.version(2).stores({
13
11
  // You only need to specify properties that you wish to index.
14
12
  // The object store will allow any properties on your stored objects but you can only query them by indexed properties
15
13
  // https://dexie.org/docs/API-Reference#declare-database
16
14
  //
17
15
  // Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
18
16
  // https://dexie.org/docs/Version/Version.stores()#warning
19
- chainPriorityRpc: "id",
17
+ chainPriorityRpc: null,
18
+ // delete legacy table
19
+ chainPriorityRpcs: "id",
20
20
  chainBackoffInterval: "id"
21
21
  });
22
22
  }
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var dexie = require('dexie');
6
4
 
7
5
  class TalismanConnectionMetaDatabase extends dexie.Dexie {
@@ -9,14 +7,16 @@ class TalismanConnectionMetaDatabase extends dexie.Dexie {
9
7
  super("TalismanConnectionMeta");
10
8
 
11
9
  // https://dexie.org/docs/Tutorial/Design#database-versioning
12
- this.version(1).stores({
10
+ this.version(2).stores({
13
11
  // You only need to specify properties that you wish to index.
14
12
  // The object store will allow any properties on your stored objects but you can only query them by indexed properties
15
13
  // https://dexie.org/docs/API-Reference#declare-database
16
14
  //
17
15
  // Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
18
16
  // https://dexie.org/docs/Version/Version.stores()#warning
19
- chainPriorityRpc: "id",
17
+ chainPriorityRpc: null,
18
+ // delete legacy table
19
+ chainPriorityRpcs: "id",
20
20
  chainBackoffInterval: "id"
21
21
  });
22
22
  }
@@ -5,14 +5,16 @@ class TalismanConnectionMetaDatabase extends Dexie {
5
5
  super("TalismanConnectionMeta");
6
6
 
7
7
  // https://dexie.org/docs/Tutorial/Design#database-versioning
8
- this.version(1).stores({
8
+ this.version(2).stores({
9
9
  // You only need to specify properties that you wish to index.
10
10
  // The object store will allow any properties on your stored objects but you can only query them by indexed properties
11
11
  // https://dexie.org/docs/API-Reference#declare-database
12
12
  //
13
13
  // Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
14
14
  // https://dexie.org/docs/Version/Version.stores()#warning
15
- chainPriorityRpc: "id",
15
+ chainPriorityRpc: null,
16
+ // delete legacy table
17
+ chainPriorityRpcs: "id",
16
18
  chainBackoffInterval: "id"
17
19
  });
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/connection-meta",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -20,28 +20,28 @@
20
20
  "engines": {
21
21
  "node": ">=14"
22
22
  },
23
- "scripts": {
24
- "test": "jest",
25
- "lint": "eslint src --max-warnings 0",
26
- "clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
27
- },
28
23
  "dependencies": {
29
- "@talismn/chaindata-provider": "0.7.0",
30
- "dexie": "^3.2.4"
24
+ "dexie": "^4.0.9",
25
+ "@talismn/chaindata-provider": "0.8.0"
31
26
  },
32
27
  "devDependencies": {
33
- "@talismn/eslint-config": "0.0.2",
34
- "@talismn/tsconfig": "0.0.2",
35
- "@types/jest": "^27.5.1",
36
- "eslint": "^8.4.0",
37
- "jest": "^28.1.0",
38
- "ts-jest": "^28.0.2",
39
- "typescript": "^4.6.4"
28
+ "@types/jest": "^29.5.14",
29
+ "eslint": "^8.57.1",
30
+ "jest": "^29.7.0",
31
+ "ts-jest": "^29.2.5",
32
+ "typescript": "^5.6.3",
33
+ "@talismn/eslint-config": "0.0.3",
34
+ "@talismn/tsconfig": "0.0.2"
40
35
  },
41
36
  "eslintConfig": {
42
37
  "root": true,
43
38
  "extends": [
44
39
  "@talismn/eslint-config/base"
45
40
  ]
41
+ },
42
+ "scripts": {
43
+ "test": "jest",
44
+ "lint": "eslint src --max-warnings 0",
45
+ "clean": "rm -rf dist .turbo node_modules"
46
46
  }
47
47
  }
package/CHANGELOG.md DELETED
@@ -1,47 +0,0 @@
1
- # @talismn/connection-meta
2
-
3
- ## 0.1.0
4
-
5
- ### Minor Changes
6
-
7
- - b920ab98: Added GPL licence
8
-
9
- ### Patch Changes
10
-
11
- - 3c1a8b10: Dependency updates
12
- - Updated dependencies [3c1a8b10]
13
- - Updated dependencies [b920ab98]
14
- - @talismn/chaindata-provider@0.7.0
15
-
16
- ## 0.0.5
17
-
18
- ### Patch Changes
19
-
20
- - @talismn/chaindata-provider@0.6.0
21
-
22
- ## 0.0.4
23
-
24
- ### Patch Changes
25
-
26
- - Updated dependencies [1a2fdc73]
27
- - @talismn/chaindata-provider@0.5.0
28
-
29
- ## 0.0.3
30
-
31
- ### Patch Changes
32
-
33
- - f7aca48b: eslint rules
34
- - 01bf239b: fix: packages publishing with incorrect interdependency versions
35
- - Updated dependencies [f7aca48b]
36
- - Updated dependencies [48f0222e]
37
- - Updated dependencies [01bf239b]
38
- - @talismn/chaindata-provider@0.4.4
39
-
40
- ## 0.0.2
41
-
42
- ### Patch Changes
43
-
44
- - 3068bd60: feat: stale balances and exponential rpc backoff
45
- - Updated dependencies [79f6ccf6]
46
- - Updated dependencies [c24dc1fb]
47
- - @talismn/chaindata-provider@0.4.3