Files
bare-operating-system/packages/bare-os-seeder/lib/corestore-opts.js
T
Raven Scott 9bdecc4170
Release rolling / release (push) Successful in 11m16s
Sync Holepunch modules to current clone/npm latest
Bump published pins (compact-encoding 3, bare-fetch/tls/https/ws 3,
bare-subprocess 6, bare-signals 5, corestore 7.12, protomux 3.11,
hypercore-crypto 3.7, bare-runtime 1.31) and regenerate catalogs,
manifests, and kernel/seeder bundles.

Adapt call sites to the new APIs:
- Corestore: explicit session flush before suspend(); treeCache ctor opts
- bare-crypto: KeyObject.export() instead of removed ._key
- Protomux 3.11: wait for fullyOpened()/fullyClosed() on chat channels
- bare-fetch: surface response.type and Headers.getSetCookie
- host snapshots: bare-os 3.9 / bare-posix / bare-fs.statfs frsize
- bare-subprocess 6: optional IPC channel + json serialization

Keep catalog sync from wiping curated pearEntries. Teach the Node test
shim to stub bare-thread/bare-worker (ESM absolute paths) and chain
Bare.on so bare-timers can load. Booter 479, protocol 34, seeder 14.
2026-08-12 20:56:28 -04:00

16 lines
443 B
JavaScript

/**
* Corestore 7.11+ constructor extras used by the seeder host store.
* `treeCache` forwards to Hypercore default storage (proof/tree node cache).
*/
export const BARE_OS_CORESTORE_TREE_CACHE = { maxSize: 8192 }
/**
* @param {Record<string, unknown>} [extra]
*/
export function bareOsCorestoreConstructOpts(extra) {
return {
treeCache: BARE_OS_CORESTORE_TREE_CACHE,
...(extra && typeof extra === 'object' ? extra : {})
}
}