Repository navigation
v0.31.0
MINOR: before 1.0.0, a breaking change increases MINOR. The capabilities of a part in the body of handle no longer hold the kinds of its clauses. A host or a runner that read them there sees another list, thus this release counts as a breaking change. No export changes.
Changes of behavior
- The clause kinds of a handler stay on its frame, not in the capabilities (D198). The rule
permitsof the host, a read of the rootcapsand the context of an effect show only the capabilities of the host. - A context that code makes without a spread gets no clause (HANDLE.KINDS). Its effects go to the host, and the host checks them by its own capabilities.
- A list of capabilities that code writes for a part also narrows its clause kinds (HANDLE.NARROW). A copy of the list counts as a new list.
- A rule
maskoronlyof a kind narrows the clause kinds of its own grant, in both tiers (HANDLE.NARROW). Before, the reference applied the grant after the rule. checkandeffectsOfread the clause kinds apart from the capabilities. A hook of the host then gets the same list in a check and in a run.