docs(8.0): consistency-model concept + snapshots guide — Db API replaces branching docs
This commit is contained in:
parent
e5feae4104
commit
cc8037db10
23 changed files with 1053 additions and 1871 deletions
|
|
@ -267,8 +267,10 @@ async function gameDevProject() {
|
|||
where: { 'attributes.location': 'Village Square' }
|
||||
})
|
||||
|
||||
// Track game balance changes ✅
|
||||
const balanceHistory = await vfs.getHistory('/game/data/balance.json')
|
||||
// Track game balance changes — read the file as it was a week ago ✅
|
||||
const lastWeek = await brain.asOf(new Date(Date.now() - 7 * 86_400_000))
|
||||
const oldBalance = await lastWeek.find({ where: { path: '/game/data/balance.json' }, limit: 1 })
|
||||
await lastWeek.release()
|
||||
|
||||
// Collaborative development tracking ✅
|
||||
await vfs.addTodo('/game/quests/main_quest.json', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue