Skip to content

Commit 8ce5a1c

Browse files
sirtimidclaude
andcommitted
docs(ocap-kernel): tighten snaps integration changelog entry
Drop the teardown-wiring bullet (internal hygiene, not a consumer contract); merge the attenuation note into the "added endowments" bullet with concrete user-visible deltas (10 ms timer floor, monotonic Date.now); flag the DEFAULT_ALLOWED_GLOBALS → makeAllowedGlobals rename as BREAKING. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fffb8f4 commit 8ce5a1c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/ocap-kernel/CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Integrate Snaps attenuated endowment factories into vat globals ([#937](https://github.com/MetaMask/ocap-kernel/pull/937))
13-
- Add `setInterval`, `clearInterval`, `crypto`, `SubtleCrypto`, and `Math` (crypto-backed `Math.random`) to the default vat endowments
14-
- Swap raw `setTimeout`/`clearTimeout` and `Date` for attenuated versions from `@metamask/snaps-execution-environments`
15-
- Wire factory `teardownFunction`s into `VatSupervisor.terminate()` so pending timers and other resources are released on vat termination
16-
- Replace exported `DEFAULT_ALLOWED_GLOBALS` constant with `createDefaultEndowments()` factory and `VatEndowments` type; `VatSupervisor` now accepts `makeAllowedGlobals` in place of `allowedGlobals`
13+
- Add `setInterval`, `clearInterval`, `crypto`, `SubtleCrypto`, and `Math` (crypto-backed `Math.random`) to the default vat endowments; `setTimeout`/`clearTimeout` and `Date` are now attenuated (10 ms minimum for timers; `Date.now()` monotonically clamped)
14+
- **BREAKING:** replace exported `DEFAULT_ALLOWED_GLOBALS` constant with `createDefaultEndowments()` factory and `VatEndowments` type; `VatSupervisor` now accepts `makeAllowedGlobals` in place of `allowedGlobals`
1715
- Make vat global allowlist configurable and expand available endowments ([#933](https://github.com/MetaMask/ocap-kernel/pull/933))
1816
- Export `DEFAULT_ALLOWED_GLOBALS` with `URL`, `URLSearchParams`, `atob`, `btoa`, `AbortController`, and `AbortSignal` in addition to the existing globals
1917
- Accept optional `allowedGlobals` on `VatSupervisor` for custom allowlists

0 commit comments

Comments
 (0)