diff --git a/README.md b/README.md index 96d71a95..7b32881d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ const stack = SecretStack({ caps }) .use(require('ssb-backlinks')) // << required index .use(require('ssb-query')) // << required index .use(require('ssb-tribes')) - .use(require('ssb-private1')) // if you want to support old encryption + .use(require('ssb-private1')) // if you want to support old decryption // *order matters*, load tribes first .use(...) @@ -80,10 +80,9 @@ This plugin provides functions for creating groups and administering things abou A Secret-Stack server running the plugins: - `ssb-db` >= 20.3.0 - `ssb-tribes` -- `ssb-backlinks` >= 2.1.1 - used for adding group tangle meta data to messages + loading applications - +- `ssb-backlinks` >= 2.1.1 - used for adding group tangle meta data to messages +- `ssb-query` >= 2.4.5 - used for listing groups linked to your feedId, or subgroup linked to groups - `ssb-replicate` - (optional) used to auto-replicate people who you're in groups with -- `ssb-query` >= 2.4.5 - (optional) used for listing applications ## API diff --git a/index.js b/index.js index b9a38caf..aa49ee0d 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,8 @@ module.exports = { findParentGroupLinks: 'async' }, + // TODO deprecate + // rm -rf methed/deprecated spec/deprecated test/api/application application: { create: 'async ', get: 'async', diff --git a/package-lock.json b/package-lock.json index 9e730732..2e9d5d8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,10 +11,10 @@ "dependencies": { "@tangle/linear-append": "^1.1.0", "@tangle/overwrite": "^2.1.0", - "@tangle/reduce": "^3.1.0", - "@tangle/strategy": "^2.0.1", + "@tangle/reduce": "^5.0.0", + "@tangle/strategy": "^4.1.0", "charwise": "^3.0.1", - "envelope-js": "^1.3.0", + "envelope-js": "^1.3.1", "envelope-spec": "^1.1.0", "futoin-hkdf": "^1.5.1", "is-my-json-valid": "^2.20.5", @@ -46,7 +46,7 @@ "ssb-replicate": "^1.3.3", "standard": "^17.0.0", "tap-arc": "^0.3.4", - "tape": "^4.13.3" + "tape": "^4.15.1" } }, "node_modules/@ampproject/remapping": { @@ -658,9 +658,9 @@ } }, "node_modules/@tangle/graph": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", - "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-3.0.0.tgz", + "integrity": "sha512-eF7cHff3ucUvsItAYt2fqZVv4TfBPe3G/bIQF53I5zhU+7WxcEDL1pziJCKXYrWkS/+HGzUTLSih2PIBvd3WmQ==", "dependencies": { "lodash.clone": "^4.5.0", "lodash.set": "^4.3.2" @@ -684,17 +684,17 @@ } }, "node_modules/@tangle/reduce": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", - "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-5.0.0.tgz", + "integrity": "sha512-lQokAIvtXplaTIn+ZNlVmmm8SwX2Uwl6YA6wfb2NdKaUX0lEA+IH3o/AObXS+R2kLQcu7j/Sr0OGvAtCYB8djQ==", "dependencies": { - "@tangle/graph": "^2.1.0" + "@tangle/graph": "^3.0.0" } }, "node_modules/@tangle/strategy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", - "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-4.1.0.tgz", + "integrity": "sha512-oC/V5ywW/S06W1AYmqgzefQHw1gPOkIrvcfVcs2gTkXFKUhAOtsPu/mb7e70fJbd7ctAX23qcEBjNzXlFPk+4A==", "dependencies": { "is-my-json-valid": "^2.20.5", "lodash.isequal": "^4.5.0" @@ -1726,15 +1726,15 @@ } }, "node_modules/envelope-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/envelope-js/-/envelope-js-1.3.0.tgz", - "integrity": "sha512-lDgLKohJx2h1eqmloeLj7VgbuH+JuXl9UkjSgKUV5EZTbCDluIoSHnV8oAcDW9eF02T2Oa6VJcW/tvxWktzr+g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/envelope-js/-/envelope-js-1.3.1.tgz", + "integrity": "sha512-p7TB4qXkuH31Cgg3kDcYXTcoLGDjRgGNN7Wi3Du14FOkMychfk/7iyd4RNMDeZMLHwZTpFOly+y5zzr+EJUXbg==", "dependencies": { "buffer-xor": "^2.0.2", "envelope-spec": "^1.0.0", - "futoin-hkdf": "^1.3.2", - "sodium-universal": "^3.0.4", - "ssb-bfe": "^3.1.4" + "futoin-hkdf": "^1.5.1", + "sodium-universal": "^3.1.0", + "ssb-bfe": "^3.3.0" } }, "node_modules/envelope-spec": { @@ -1811,15 +1811,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-abstract/node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/es-get-iterator": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.2.tgz", @@ -2130,23 +2121,6 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, - "node_modules/eslint-plugin-import/node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/eslint-plugin-n": { "version": "15.2.3", "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-15.2.3.tgz", @@ -2864,14 +2838,14 @@ } }, "node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" }, @@ -4446,9 +4420,9 @@ } }, "node_modules/object-inspect": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", - "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5569,12 +5543,16 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" }, "node_modules/resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -6140,6 +6118,32 @@ "ssb-schema-definitions": "^3.2.1" } }, + "node_modules/ssb-crut/node_modules/@tangle/graph": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", + "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "dependencies": { + "lodash.clone": "^4.5.0", + "lodash.set": "^4.3.2" + } + }, + "node_modules/ssb-crut/node_modules/@tangle/reduce": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", + "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "dependencies": { + "@tangle/graph": "^2.1.0" + } + }, + "node_modules/ssb-crut/node_modules/@tangle/strategy": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", + "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "dependencies": { + "is-my-json-valid": "^2.20.5", + "lodash.isequal": "^4.5.0" + } + }, "node_modules/ssb-db": { "version": "20.4.1", "resolved": "https://registry.npmjs.org/ssb-db/-/ssb-db-20.4.1.tgz", @@ -6405,6 +6409,35 @@ "ssb-schema-definitions": "^3.1.0" } }, + "node_modules/ssb-tribes/node_modules/@tangle/graph": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", + "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "dev": true, + "dependencies": { + "lodash.clone": "^4.5.0", + "lodash.set": "^4.3.2" + } + }, + "node_modules/ssb-tribes/node_modules/@tangle/reduce": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", + "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "dev": true, + "dependencies": { + "@tangle/graph": "^2.1.0" + } + }, + "node_modules/ssb-tribes/node_modules/@tangle/strategy": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", + "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "dev": true, + "dependencies": { + "is-my-json-valid": "^2.20.5", + "lodash.isequal": "^4.5.0" + } + }, "node_modules/ssb-tribes/node_modules/ssb-private-group-keys": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/ssb-private-group-keys/-/ssb-private-group-keys-0.3.0.tgz", @@ -6610,14 +6643,14 @@ } }, "node_modules/string.prototype.trim": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.4.tgz", - "integrity": "sha512-hWCk/iqf7lp0/AgTF7/ddO1IWtSNPASjlzCicV5irAVdE1grjsneK26YG6xACMBEdCvO8fUST0UzDMh/2Qy+9Q==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.6.tgz", + "integrity": "sha512-8lMR2m+U0VJTPp6JjvJTtGyc4FIGq9CdRt7O9p6T0e6K4vjU+OP+SQJpbe/SBmRcCUIvNUnjsbmY6lnMp8MhsQ==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2" + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" }, "engines": { "node": ">= 0.4" @@ -6701,7 +6734,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -8564,9 +8596,9 @@ } }, "node_modules/tape": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/tape/-/tape-4.14.0.tgz", - "integrity": "sha512-z0+WrUUJuG6wIdWrl4W3rTte2CR26G6qcPOj3w1hfRdcmhF3kHBhOBW9VHsPVAkz08ZmGzp7phVpDupbLzrYKQ==", + "version": "4.15.1", + "resolved": "https://registry.npmjs.org/tape/-/tape-4.15.1.tgz", + "integrity": "sha512-k7F5pyr91n9D/yjSJwbLLYDCrTWXxMSXbbmHX2n334lSIc2rxeXyFkaBv4UuUd2gBYMrAOalPutAiCxC6q1qbw==", "dev": true, "dependencies": { "call-bind": "~1.0.2", @@ -8574,15 +8606,15 @@ "defined": "~1.0.0", "dotignore": "~0.1.2", "for-each": "~0.3.3", - "glob": "~7.1.7", + "glob": "~7.2.0", "has": "~1.0.3", "inherits": "~2.0.4", - "is-regex": "~1.1.3", - "minimist": "~1.2.5", - "object-inspect": "~1.11.0", - "resolve": "~1.20.0", + "is-regex": "~1.1.4", + "minimist": "~1.2.6", + "object-inspect": "~1.12.0", + "resolve": "~1.22.0", "resumer": "~0.0.0", - "string.prototype.trim": "~1.2.4", + "string.prototype.trim": "~1.2.5", "through": "~2.3.8" }, "bin": { @@ -9715,9 +9747,9 @@ } }, "@tangle/graph": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", - "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-3.0.0.tgz", + "integrity": "sha512-eF7cHff3ucUvsItAYt2fqZVv4TfBPe3G/bIQF53I5zhU+7WxcEDL1pziJCKXYrWkS/+HGzUTLSih2PIBvd3WmQ==", "requires": { "lodash.clone": "^4.5.0", "lodash.set": "^4.3.2" @@ -9741,17 +9773,17 @@ } }, "@tangle/reduce": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", - "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-5.0.0.tgz", + "integrity": "sha512-lQokAIvtXplaTIn+ZNlVmmm8SwX2Uwl6YA6wfb2NdKaUX0lEA+IH3o/AObXS+R2kLQcu7j/Sr0OGvAtCYB8djQ==", "requires": { - "@tangle/graph": "^2.1.0" + "@tangle/graph": "^3.0.0" } }, "@tangle/strategy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", - "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-4.1.0.tgz", + "integrity": "sha512-oC/V5ywW/S06W1AYmqgzefQHw1gPOkIrvcfVcs2gTkXFKUhAOtsPu/mb7e70fJbd7ctAX23qcEBjNzXlFPk+4A==", "requires": { "is-my-json-valid": "^2.20.5", "lodash.isequal": "^4.5.0" @@ -10564,15 +10596,15 @@ } }, "envelope-js": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/envelope-js/-/envelope-js-1.3.0.tgz", - "integrity": "sha512-lDgLKohJx2h1eqmloeLj7VgbuH+JuXl9UkjSgKUV5EZTbCDluIoSHnV8oAcDW9eF02T2Oa6VJcW/tvxWktzr+g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/envelope-js/-/envelope-js-1.3.1.tgz", + "integrity": "sha512-p7TB4qXkuH31Cgg3kDcYXTcoLGDjRgGNN7Wi3Du14FOkMychfk/7iyd4RNMDeZMLHwZTpFOly+y5zzr+EJUXbg==", "requires": { "buffer-xor": "^2.0.2", "envelope-spec": "^1.0.0", - "futoin-hkdf": "^1.3.2", - "sodium-universal": "^3.0.4", - "ssb-bfe": "^3.1.4" + "futoin-hkdf": "^1.5.1", + "sodium-universal": "^3.1.0", + "ssb-bfe": "^3.3.0" } }, "envelope-spec": { @@ -10640,14 +10672,6 @@ "string.prototype.trimend": "^1.0.5", "string.prototype.trimstart": "^1.0.5", "unbox-primitive": "^1.0.2" - }, - "dependencies": { - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true - } } }, "es-get-iterator": { @@ -10872,17 +10896,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } } } }, @@ -11456,14 +11469,14 @@ } }, "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } @@ -12672,9 +12685,9 @@ "dev": true }, "object-inspect": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz", - "integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", "dev": true }, "object-is": { @@ -13631,12 +13644,13 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" }, "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" } }, "resolve-from": { @@ -14130,6 +14144,34 @@ "lodash.merge": "^4.6.2", "pull-stream": "^3.6.14", "ssb-schema-definitions": "^3.2.1" + }, + "dependencies": { + "@tangle/graph": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", + "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "requires": { + "lodash.clone": "^4.5.0", + "lodash.set": "^4.3.2" + } + }, + "@tangle/reduce": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", + "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "requires": { + "@tangle/graph": "^2.1.0" + } + }, + "@tangle/strategy": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", + "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "requires": { + "is-my-json-valid": "^2.20.5", + "lodash.isequal": "^4.5.0" + } + } } }, "ssb-db": { @@ -14393,6 +14435,35 @@ "ssb-schema-definitions": "^3.1.0" }, "dependencies": { + "@tangle/graph": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@tangle/graph/-/graph-2.1.0.tgz", + "integrity": "sha512-Jx4W39lLjAAd13Rh7+m8Yi742NVp1kbbz6W4sv/jPStb/K/+0nj4Rafe3jW9EkazInrTXtQAuY7VEAeVaYmEew==", + "dev": true, + "requires": { + "lodash.clone": "^4.5.0", + "lodash.set": "^4.3.2" + } + }, + "@tangle/reduce": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@tangle/reduce/-/reduce-3.1.0.tgz", + "integrity": "sha512-FonAaam87HgJ1d9qXDqnbyRdRzIObM7UmhsdpD+2RTuvdl6Eu9UyNkkU9jqAX5r2elgfYAUgKYQ8KJ9XDw9xYg==", + "dev": true, + "requires": { + "@tangle/graph": "^2.1.0" + } + }, + "@tangle/strategy": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@tangle/strategy/-/strategy-2.0.1.tgz", + "integrity": "sha512-zQcdCXLbNAWH28VStWNR7bLV/gakjBgdi0KXlc/kRH8JB2+HXfz2jCVVsEzb5H6pGhZuJ7GMjI7wJgnMbvldxw==", + "dev": true, + "requires": { + "is-my-json-valid": "^2.20.5", + "lodash.isequal": "^4.5.0" + } + }, "ssb-private-group-keys": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/ssb-private-group-keys/-/ssb-private-group-keys-0.3.0.tgz", @@ -14551,14 +14622,14 @@ } }, "string.prototype.trim": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.4.tgz", - "integrity": "sha512-hWCk/iqf7lp0/AgTF7/ddO1IWtSNPASjlzCicV5irAVdE1grjsneK26YG6xACMBEdCvO8fUST0UzDMh/2Qy+9Q==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.6.tgz", + "integrity": "sha512-8lMR2m+U0VJTPp6JjvJTtGyc4FIGq9CdRt7O9p6T0e6K4vjU+OP+SQJpbe/SBmRcCUIvNUnjsbmY6lnMp8MhsQ==", "dev": true, "requires": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2" + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" } }, "string.prototype.trimend": { @@ -14614,8 +14685,7 @@ "supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" }, "tap": { "version": "16.3.0", @@ -15776,9 +15846,9 @@ } }, "tape": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/tape/-/tape-4.14.0.tgz", - "integrity": "sha512-z0+WrUUJuG6wIdWrl4W3rTte2CR26G6qcPOj3w1hfRdcmhF3kHBhOBW9VHsPVAkz08ZmGzp7phVpDupbLzrYKQ==", + "version": "4.15.1", + "resolved": "https://registry.npmjs.org/tape/-/tape-4.15.1.tgz", + "integrity": "sha512-k7F5pyr91n9D/yjSJwbLLYDCrTWXxMSXbbmHX2n334lSIc2rxeXyFkaBv4UuUd2gBYMrAOalPutAiCxC6q1qbw==", "dev": true, "requires": { "call-bind": "~1.0.2", @@ -15786,15 +15856,15 @@ "defined": "~1.0.0", "dotignore": "~0.1.2", "for-each": "~0.3.3", - "glob": "~7.1.7", + "glob": "~7.2.0", "has": "~1.0.3", "inherits": "~2.0.4", - "is-regex": "~1.1.3", - "minimist": "~1.2.5", - "object-inspect": "~1.11.0", - "resolve": "~1.20.0", + "is-regex": "~1.1.4", + "minimist": "~1.2.6", + "object-inspect": "~1.12.0", + "resolve": "~1.22.0", "resumer": "~0.0.0", - "string.prototype.trim": "~1.2.4", + "string.prototype.trim": "~1.2.5", "through": "~2.3.8" }, "dependencies": { diff --git a/package.json b/package.json index d4cc3075..15c13c56 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,10 @@ "dependencies": { "@tangle/linear-append": "^1.1.0", "@tangle/overwrite": "^2.1.0", - "@tangle/reduce": "^3.1.0", - "@tangle/strategy": "^2.0.1", + "@tangle/reduce": "^5.0.0", + "@tangle/strategy": "^4.1.0", "charwise": "^3.0.1", - "envelope-js": "^1.3.0", + "envelope-js": "^1.3.1", "envelope-spec": "^1.1.0", "futoin-hkdf": "^1.5.1", "is-my-json-valid": "^2.20.5", @@ -54,7 +54,7 @@ "ssb-replicate": "^1.3.3", "standard": "^17.0.0", "tap-arc": "^0.3.4", - "tape": "^4.13.3" + "tape": "^4.15.1" }, "keywords": [ "scuttlebutt",