OverviewFilesCommitsIssuesDocsReleasesPeers

atproto-store commits / 3f0f8a6

OverlayRepoStore: dual-runtime fs imports (#node:fs) for Bare + Node
The daemon runs under Bare, which can't resolve node:fs. Switch to the ecosystem #node:fs / #node:path import map (bare -> bare-fs/bare-path, default -> fs/path), mirroring atproto-bridge. Declares bare-fs/bare-path deps; bumps 0.0.2 -> 0.0.3. Verified: atproto-store suite green under Node (69/69); OverlayRepoStore loads + runs under Bare in the hpp wiring test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3f0f8a6faa62d9d69e0994ba1755eb4f6b4362f2
by plankatron <fleeky@gmail.com> · 2026-07-19T16:52:16.000Z

Changed files (2) +17 -5

lib/overlay-repo-store.js +2 -2
……@@ -17,8 +17,8 @@
1717
1818import * as dagCbor from '@ipld/dag-cbor'
1919import b4a from 'b4a'
20import fs from 'node:fs'
21import { join } from 'node:path'
20import fs from '#node:fs' // dual-runtime: bare-fs under Bare (the daemon), builtin fs under Node (tests)
21import { join } from '#node:path'
2222
2323const EXT = '.dagcbor'
2424const byteOrder = (a, b) => b4a.compare(b4a.from(a), b4a.from(b)) // match Hyperbee's key comparison exactly
package.json +15 -3
……@@ -1,7 +1,7 @@
11{
22 "name": "atproto-store",
3 "version": "0.0.2",
4 "description": "Holepunch-native atproto repo store — records in a classic Hyperbee (collection/rkey -> DAG-CBOR). The P2P home; the atproto-repo module is the bridge serializer over it.",
3 "version": "0.0.3",
4 "description": "Holepunch-native atproto repo store \u2014 records in a classic Hyperbee (collection/rkey -> DAG-CBOR). The P2P home; the atproto-repo module is the bridge serializer over it.",
55 "type": "module",
66 "main": "lib/repo-store.js",
77 "scripts": {
……@@ -13,9 +13,21 @@
1313 "b4a": "^1.6.0",
1414 "corestore": "^7.4.0",
1515 "hyperbee": "^2.20.0",
16 "random-access-memory": "^6.2.0"
16 "random-access-memory": "^6.2.0",
17 "bare-fs": "^4.7.3",
18 "bare-path": "^3.0.1"
1719 },
1820 "devDependencies": {
1921 "brittle": "^4.0.2"
22 },
23 "imports": {
24 "#node:fs": {
25 "bare": "bare-fs",
26 "default": "fs"
27 },
28 "#node:path": {
29 "bare": "bare-path",
30 "default": "path"
31 }
2032 }
2133}