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

Configure Feed

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

refactor(lexicons): simplify array abort early path

Mary 8b6c4043 87c00bb0

+8 -3
+5
.changeset/swift-arrays-abort.md
··· 1 + --- 2 + '@atcute/lexicons': patch 3 + --- 4 + 5 + avoid extra issue joining when array validation aborts early
+3 -3
packages/lexicons/lexicons/lib/validations/index.ts
··· 1310 1310 1311 1311 output[idx] = r.value; 1312 1312 } else { 1313 - issues = joinIssues(issues, prependPath(idx, r)); 1314 - 1315 1313 if (flags & FLAG_ABORT_EARLY) { 1316 - return issues; 1314 + return prependPath(idx, r); 1317 1315 } 1316 + 1317 + issues = joinIssues(issues, prependPath(idx, r)); 1318 1318 } 1319 1319 } 1320 1320 }