mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-09-13 19:30:12 +00:00
Compare commits
No commits in common. "main" and "v3.0.1" have entirely different histories.
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
For now, please refer to our Git commit history for a list of changes.
|
For now, please refer to our Git commit history for a list of changes.
|
||||||
|
|
||||||
https://github.com/orbitdb/orbitdb/compare/v2.5.0...v3.0.2
|
https://github.com/orbitdb/orbitdb/compare/v2.4.3...v2.5.0
|
||||||
|
|
||||||
You can also use the following git command to generate a log of changes:
|
You can also use the following git command to generate a log of changes:
|
||||||
|
|
||||||
```
|
```
|
||||||
git log v2.5.0..v3.0.2 --oneline
|
git log v2.4.3..v2.5.0 --oneline
|
||||||
```
|
```
|
||||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@orbitdb/core",
|
"name": "@orbitdb/core",
|
||||||
"version": "3.0.2",
|
"version": "3.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@orbitdb/core",
|
"name": "@orbitdb/core",
|
||||||
"version": "3.0.2",
|
"version": "3.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ipld/dag-cbor": "^9.0.6",
|
"@ipld/dag-cbor": "^9.0.6",
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@chainsafe/libp2p-gossipsub": "^14.1.0",
|
"@chainsafe/libp2p-gossipsub": "^14.1.0",
|
||||||
"@libp2p/circuit-relay-v2": "^3.1.0",
|
"@libp2p/circuit-relay-v2": "^3.1.0",
|
||||||
"@orbitdb/simple-encryption": "^0.0.2",
|
"@orbitdb/simple-encryption": "^0.0.1",
|
||||||
"blockstore-level": "^2.0.1",
|
"blockstore-level": "^2.0.1",
|
||||||
"c8": "^8.0.1",
|
"c8": "^8.0.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
@ -2760,9 +2760,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@orbitdb/simple-encryption": {
|
"node_modules/@orbitdb/simple-encryption": {
|
||||||
"version": "0.0.2",
|
"version": "0.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@orbitdb/simple-encryption/-/simple-encryption-0.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@orbitdb/simple-encryption/-/simple-encryption-0.0.1.tgz",
|
||||||
"integrity": "sha512-A4LHa5hKhKOyY1GLmeLcsM/kXhxkhTJYemL8YP0Zy6b8eBwkQEkXplqmSlRTe8YDAstDX3dN8+ClWD3OULSq0Q==",
|
"integrity": "sha512-VHfbvrv44acYTD9cUXOeEX2kDG8263G8AAuikBH2bdfE5W/m1Fxvas9gGSeC5QGC6Hdy3YNnoBBL4yb2L5HZow==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"multiformats": "^13.3.6"
|
"multiformats": "^13.3.6"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@orbitdb/core",
|
"name": "@orbitdb/core",
|
||||||
"version": "3.0.2",
|
"version": "3.0.1",
|
||||||
"description": "Distributed p2p database on IPFS",
|
"description": "Distributed p2p database on IPFS",
|
||||||
"author": "Haad",
|
"author": "Haad",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@chainsafe/libp2p-gossipsub": "^14.1.0",
|
"@chainsafe/libp2p-gossipsub": "^14.1.0",
|
||||||
"@libp2p/circuit-relay-v2": "^3.1.0",
|
"@libp2p/circuit-relay-v2": "^3.1.0",
|
||||||
"@orbitdb/simple-encryption": "^0.0.2",
|
"@orbitdb/simple-encryption": "^0.0.1",
|
||||||
"blockstore-level": "^2.0.1",
|
"blockstore-level": "^2.0.1",
|
||||||
"c8": "^8.0.1",
|
"c8": "^8.0.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
|
@ -42,7 +42,7 @@ const Index = ({ directory } = {}) => async () => {
|
|||||||
const isNotIndexed = async (hash) => !(await isIndexed(hash))
|
const isNotIndexed = async (hash) => !(await isIndexed(hash))
|
||||||
|
|
||||||
// Function to decide when the log traversal should be stopped
|
// Function to decide when the log traversal should be stopped
|
||||||
const shouldStopTraverse = async (entry) => {
|
const shoudStopTraverse = async (entry) => {
|
||||||
// Go through the nexts of an entry and if any is not yet
|
// Go through the nexts of an entry and if any is not yet
|
||||||
// indexed, add it to the list of entries-to-be-indexed
|
// indexed, add it to the list of entries-to-be-indexed
|
||||||
for await (const hash of entry.next) {
|
for await (const hash of entry.next) {
|
||||||
@ -56,7 +56,7 @@ const Index = ({ directory } = {}) => async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Traverse the log and stop when everything has been processed
|
// Traverse the log and stop when everything has been processed
|
||||||
for await (const entry of log.traverse(null, shouldStopTraverse)) {
|
for await (const entry of log.traverse(null, shoudStopTraverse)) {
|
||||||
const { hash, payload } = entry
|
const { hash, payload } = entry
|
||||||
// If an entry is not yet indexed, process it
|
// If an entry is not yet indexed, process it
|
||||||
if (await isNotIndexed(hash)) {
|
if (await isNotIndexed(hash)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user