corestore 7.12.4 → 7.12.6

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -46,7 +46,8 @@ Options:
46
46
  {
47
47
  primaryKey: null, // The primary key to use as the master key for key derivation.
48
48
  writable: true,
49
- treeCache: { maxSize: 8192 } // Options to use when creating hypercore's default storage
49
+ treeCache: { maxSize: 8192 }, // Options to use when creating hypercore's default storage
50
+ active: true // Whether to attach downloading cores to existing or future replication streams
50
51
  }
51
52
  ```
52
53
 
package/index.js CHANGED
@@ -667,7 +667,7 @@ class Corestore extends ReadyResource {
667
667
  result.manifest = opts.manifest
668
668
  } else if (result.keyPair && !result.discoveryKey) {
669
669
  result.manifest = {
670
- version: this.manifestVersion,
670
+ version: opts.manifestVersion || this.manifestVersion,
671
671
  signers: [{ publicKey: result.keyPair.publicKey }]
672
672
  }
673
673
  }
@@ -701,6 +701,7 @@ class Corestore extends ReadyResource {
701
701
  notDownloadingLinger: opts.notDownloadingLinger,
702
702
  allowFork: opts.allowFork !== false,
703
703
  allowPush: !!opts.allowPush,
704
+ alwaysLatestBlock: !!opts.allowLatestBlock,
704
705
  inflightRange: opts.inflightRange,
705
706
  compat: false, // no compat for now :)
706
707
  force: opts.force,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.12.4",
3
+ "version": "7.12.6",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [