chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase

This commit is contained in:
David Snelling 2026-06-11 14:51:00 -07:00
parent 970e08c466
commit 1f7e365a4e
237 changed files with 1951 additions and 49413 deletions

View file

@ -138,7 +138,7 @@ describe('Transactions + Distributed Storage Integration', () => {
// Verify relationships
for (let i = 0; i < entities.length - 1; i++) {
const relations = await brain.getRelations({ from: entities[i] })
const relations = await brain.related({ from: entities[i] })
expect(relations).toHaveLength(1)
}
})
@ -260,7 +260,7 @@ describe('Transactions + Distributed Storage Integration', () => {
expect(entity).toBeTruthy()
// Delete atomically
await brain.delete(id)
await brain.remove(id)
// Verify deleted
entity = await brain.get(id)
@ -286,14 +286,14 @@ describe('Transactions + Distributed Storage Integration', () => {
})
// Delete first entity (should delete relationships)
await brain.delete(id1)
await brain.remove(id1)
// Verify entity deleted
const entity1 = await brain.get(id1)
expect(entity1).toBeNull()
// Verify relationships deleted
const relations = await brain.getRelations({ from: id1 })
const relations = await brain.related({ from: id1 })
expect(relations).toHaveLength(0)
// Entity 2 should still exist
@ -325,7 +325,7 @@ describe('Transactions + Distributed Storage Integration', () => {
expect(entity?.data.name).toBe('Updated via Adapter')
// Delete entity
await brain.delete(id)
await brain.remove(id)
const deletedEntity = await brain.get(id)
expect(deletedEntity).toBeNull()
})
@ -359,7 +359,7 @@ describe('Transactions + Distributed Storage Integration', () => {
// Verify all operations succeeded (regardless of latency)
const entity1 = await brain.get(id1)
const entity2 = await brain.get(id2)
const relations = await brain.getRelations({ from: id1 })
const relations = await brain.related({ from: id1 })
expect(entity1).toBeTruthy()
expect(entity2).toBeTruthy()