diff --git a/CHANGELOG.md b/CHANGELOG.md index 24c7f416..a22e881a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to Le Space Belege. The format follows ## [Unreleased] +### Changed + +- **OrbitDB 4.0.2.** `@orbitdb/core` goes from 4.0.0 to 4.0.2, also for the backups' storage bridge, which brought its own 4.0.0 until now (an override in `pnpm-workspace.yaml` keeps one copy). The passkey session workaround for orbitdb/orbitdb#1258 stays; OrbitDB's own cache no longer needs it from 4.0.2. + ## [0.68.0] – 2026-12-02 ## [0.67.0] – 2026-12-01 diff --git a/app/package.json b/app/package.json index f16da144..e39b8798 100644 --- a/app/package.json +++ b/app/package.json @@ -85,7 +85,7 @@ "@multiformats/multiaddr": "13.0.3", "@noble/curves": "2.4.0", "@noble/hashes": "2.4.0", - "@orbitdb/core": "4.0.0", + "@orbitdb/core": "4.0.2", "@scure/base": "2.4.0", "@scure/bip39": "1.6.0", "blockstore-core": "^6.0.0", diff --git a/app/src/lib/session-identities.js b/app/src/lib/session-identities.js index 144a3e9c..a5847468 100644 --- a/app/src/lib/session-identities.js +++ b/app/src/lib/session-identities.js @@ -90,14 +90,15 @@ export async function createBooksIdentities(ipfs, signer) { } /** - * OrbitDB 4.0.0 remembers a verified identity under its `signatures.id` and - * refuses another session of the same passkey (orbitdb/orbitdb#1258): this + * OrbitDB up to 4.0.1 remembers a verified identity under its `signatures.id` + * and refuses another session of the same passkey (orbitdb/orbitdb#1258): this * session's identity cached, every entry an earlier session signed – from a * backup, or synced from an own device – is refused as "Key … is not allowed * to write to the log". The workaround that lived here (PR #259) is the * provider's since 0.11.0 (orbitdb-identity-provider-webauthn-did#90), so * that simple-todo and Belege stop carrying copies of it; re-exported so the - * tests and any caller keep their import. + * tests and any caller keep their import. From 4.0.2 OrbitDB keys that cache by + * the identity's hash, so the wrapper is redundant there but harmless. */ export { withoutStaleIdentityCache }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e788726d..4ca3a174 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,7 @@ settings: overrides: '@libp2p/gossipsub': 16.1.0 + '@orbitdb/core': 4.0.2 react-native-webrtc: '-' patchedDependencies: @@ -69,7 +70,7 @@ importers: version: 0.14.0(@multiformats/multiaddr@13.0.3)(libp2p@3.3.7) '@le-space/orbitdb-identity-provider-webauthn-did': specifier: 0.14.0 - version: 0.14.0(@orbitdb/core@4.0.0) + version: 0.14.0(@orbitdb/core@4.0.2) '@le-space/orbitdb-storage-bridge': specifier: 0.29.0 version: 0.29.0(@storacha/client@2.1.4(encoding@0.1.13))(encoding@0.1.13)(lucide-svelte@0.577.0(svelte@5.59.2))(svelte@5.59.2) @@ -119,8 +120,8 @@ importers: specifier: 2.4.0 version: 2.4.0 '@orbitdb/core': - specifier: 4.0.0 - version: 4.0.0 + specifier: 4.0.2 + version: 4.0.2 '@scure/base': specifier: 2.4.0 version: 2.4.0 @@ -1060,7 +1061,7 @@ packages: resolution: {integrity: sha512-UE7/Yl+MNca1EZ1p0j5YTjQwMs/L4FcdQgLK3v2+CqWzs9ictDKBCG7wX2zqd9ZkPG01Ek7LJBM6JXYgo6Qy3Q==} engines: {node: '>=18.0.0'} peerDependencies: - '@orbitdb/core': ^4.0.0 + '@orbitdb/core': 4.0.2 '@le-space/orbitdb-storage-bridge@0.29.0': resolution: {integrity: sha512-cT4WdxapHBVPivqGDIk4ECtU20oOJCFTWndA9dL+JD51r9A+BLUM0H1TA/UgUZWnaBAq8MNTQMSj6K6WevShrw==} @@ -1114,6 +1115,9 @@ packages: '@libp2p/crypto@5.1.23': resolution: {integrity: sha512-u6XVMD1YpUJgjS5MAayrxlzi+hQcj3FHY0wS6/M/T93ntyCW13BmmRzFb2ESamk65PEuSCAChmQeSzRV2sh2rQ==} + '@libp2p/crypto@5.2.1': + resolution: {integrity: sha512-bXWXA5PV5rvekuxGxFvG7K+cBa+fXbZL92wdgwowBT5n6tXGuqdzetZa9RYwyImVaMd1YzyYW/Ko7qBp/W9aPQ==} + '@libp2p/dcutr@3.0.28': resolution: {integrity: sha512-ULbHSdedcLpCzXUB1BGwiKPs+sshaT+TuicDullCWwsdq6nhzpfg3KkGP/BmvzIwkEkNTRGWQ7AScI6rIHBT7g==} @@ -1388,8 +1392,8 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@orbitdb/core@4.0.0': - resolution: {integrity: sha512-JPnoVzNYxJ8XxjXVzkuVOK/eLzz5xGzRHhPJaUdDhWwBDqvQkpks7bxL4qiA+HswN7EgyC6u20WIt62fRU9wDg==} + '@orbitdb/core@4.0.2': + resolution: {integrity: sha512-pR6/YIV+LgeI9TCW7Kf6bvQyZjsya0M/0FqiCfaYQrKG6mla0C1IFRkOTx8zFr0ZszP92uaOYg6NrhLLZau6/g==} engines: {node: '>=22.0.0'} '@pdf-lib/fontkit@1.1.1': @@ -3590,9 +3594,9 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - p-queue@8.1.1: - resolution: {integrity: sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==} - engines: {node: '>=18'} + p-queue@10.0.0: + resolution: {integrity: sha512-P2wrCri3bhGLPo3kX7qYVXbo/5GvaVATU0DpO24CbeT53Y4z35t8JUWku04ERpXHUYB5rPMi3TkWE3fmJgx5rA==} + engines: {node: '>=22'} p-queue@9.3.3: resolution: {integrity: sha512-NXAOdnEe5FsZJfT4oK84lE1Y5cFFdWlRuOo5tww8DyNMxyRXwn39fIkUtNLKppcPC+UYU/bXujNCUGDv01y7CA==} @@ -3610,10 +3614,6 @@ packages: resolution: {integrity: sha512-NAigyu8hfvJe7MsS18mnc4is0MZtau3QMdBklaJKK23oBQb6occO3UPM3vHmTckW8KhfyjMZaUOqdTFEYliHgg==} engines: {node: '>=22'} - p-timeout@6.1.4: - resolution: {integrity: sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==} - engines: {node: '>=14.16'} - p-timeout@7.0.2: resolution: {integrity: sha512-prbX4Z3YszrFNgH+MW5Zoeq3baXrMtP/MQnFeET90UB/GtGcGDQ5Usg9OCy6ETjTTntOw1SL2z9fMPUppN3Guw==} engines: {node: '>=20'} @@ -5403,14 +5403,14 @@ snapshots: uint8arraylist: 3.0.2 uint8arrays: 6.1.1 - '@le-space/orbitdb-identity-provider-webauthn-did@0.14.0(@orbitdb/core@4.0.0)': + '@le-space/orbitdb-identity-provider-webauthn-did@0.14.0(@orbitdb/core@4.0.2)': dependencies: '@ipld/dag-cbor': 10.0.1 '@ipld/dag-ucan': 3.4.5 '@le-space/ucanto-principal': 9.1.2 '@libp2p/crypto': 5.1.23 '@libp2p/logger': 6.2.16 - '@orbitdb/core': 4.0.0 + '@orbitdb/core': 4.0.2 '@simplewebauthn/browser': 13.3.0 cbor-web: 9.0.2 iso-base: '@le-space/iso-base@4.3.0' @@ -5436,7 +5436,7 @@ snapshots: '@libp2p/logger': 6.2.16 '@libp2p/ping': 3.1.13 '@libp2p/tcp': 11.0.32 - '@orbitdb/core': 4.0.0 + '@orbitdb/core': 4.0.2 '@scure/bip39': 1.6.0 blockstore-level: 4.0.1 cbor-web: 10.0.12 @@ -5571,6 +5571,16 @@ snapshots: uint8arraylist: 3.0.2 uint8arrays: 6.1.1 + '@libp2p/crypto@5.2.1': + dependencies: + '@libp2p/interface': 3.4.0 + '@noble/curves': 2.4.0 + '@noble/hashes': 2.4.0 + multiformats: 14.0.5 + protons-runtime: 7.1.2 + uint8arraylist: 3.0.2 + uint8arrays: 6.1.1 + '@libp2p/dcutr@3.0.28': dependencies: '@libp2p/interface': 3.3.0 @@ -6269,18 +6279,18 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.3 - '@orbitdb/core@4.0.0': + '@orbitdb/core@4.0.2': dependencies: '@ipld/dag-cbor': 9.2.7 - '@libp2p/crypto': 5.1.23 + '@libp2p/crypto': 5.2.1 any-signal: 4.2.0 it-pipe: 3.0.1 level: 10.0.0 lru: 3.1.0 multiformats: 13.4.2 - p-queue: 8.1.1 + p-queue: 10.0.0 timeout-abort-controller: 3.0.0 - uint8arrays: 5.1.1 + uint8arrays: 6.1.1 '@pdf-lib/fontkit@1.1.1': dependencies: @@ -8952,10 +8962,7 @@ snapshots: dependencies: p-limit: 3.1.0 - p-queue@8.1.1: - dependencies: - eventemitter3: 5.0.4 - p-timeout: 6.1.4 + p-queue@10.0.0: {} p-queue@9.3.3: dependencies: @@ -8976,8 +8983,6 @@ snapshots: dependencies: is-network-error: 1.3.2 - p-timeout@6.1.4: {} - p-timeout@7.0.2: {} p-wait-for@6.0.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 012ce3a5..45af36ba 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -17,8 +17,11 @@ onlyBuiltDependencies: # entry, which neither Node nor a browser loads, and its peer react-native # brought ~290 MiB (react-native, Babel, Metro, Hermes) into the bridge's # image, which must stay below Aleph's 1 GiB upload once encrypted. +# @orbitdb/core: one copy, 4.0.2. @le-space/orbitdb-storage-bridge (backups) +# asks for ^4.0.0 and would otherwise keep its own 4.0.0 next to the app's. overrides: '@libp2p/gossipsub': 16.1.0 + '@orbitdb/core': 4.0.2 react-native-webrtc: '-' # Playwright records its videos as VP8 capped at 1 Mbit/s, too soft for text # on a 1080p page (the demo films, app/e2e-video). The patch raises the cap.