a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(mst): precompute empty node CID

Mary 4c635600 07a3100c

+7 -2
+5
.changeset/dull-pens-behave.md
··· 1 + --- 2 + '@atcute/mst': patch 3 + --- 4 + 5 + precompute empty node CID
+2 -2
packages/utilities/mst/lib/diff.ts
··· 2 2 3 3 import type { NodeStore } from './node-store.js'; 4 4 import { NodeWalker } from './node-walker.js'; 5 - import { MSTNode } from './node.js'; 6 5 7 6 /** 8 7 * Type of change to a record ··· 155 154 } 156 155 } 157 156 158 - const EMPTY_NODE_CID = (await MSTNode.empty().cid()).$link; 157 + // precomputed from `(await MSTNode.empty().cid()).$link` 158 + const EMPTY_NODE_CID = 'bafyreie5737gdxlw5i64vzichcalba3z2v5n6icifvx5xytvske7mr3hpm'; 159 159 160 160 /** 161 161 * Efficiently computes the difference between two MSTs