Learn / Upgrading across the MetaKit unification
2. foldkit-entity: Law.*, Operators.implement, and Evidence.Proven removed
Compiler errors:
Module '"foldkit-entity"' has no exported member 'Law'.Property 'implement' does not exist on type ...Property 'Proven' does not exist on type ...
Before:
import { Expr, Law, Operators } from 'foldkit-entity'
const op = Expr.operator('flags.or', ..., [Law.Commutative, Law.within(0, 2147483647)])
const table = Operators.implement(op, (a, b) => a | b)After:
import { Schema } from 'effect'
import * as Operation from '@doeixd/metakit/operation'
const Flags = Schema.Int.check(Schema.isBetween({ minimum: 0, maximum: 2147483647 }))
const flagsOr = Operation.define({
id: 'flags.or',
version: 1,
args: [Flags, Flags] as const,
returns: Flags,
nulls: 'strict',
claims: { commutative: true, associative: true, identity: { value: 0, side: 'both' } },
})
const table = Operation.implementations('app', Operation.implement(flagsOr, (a, b) => a | b))Why: Custom operations and their algebraic claims now live in one place (@doeixd/metakit/operation), checked by checkOperation from @doeixd/metakit/conformance instead of unverified Evidence.Proven tags. Distributes and PreservesCollation were removed because no reader acted on them; Law.Inverse (unary) became binary claims.invertible.
3. foldkit-remote/aggregate moved to foldkit-remote/maintained
Compiler error:
Cannot find module 'foldkit-remote/aggregate' or its corresponding type declarations.
Before:
import { aggregate } from 'foldkit-remote/aggregate'After:
import { Maintained } from 'foldkit-remote/maintained'Why: Maintained values now cover lists, reduce folds, reverse-indexed joins, coverage checks, offline as-of reads, and rescan classification under one subpath.
4. foldkit-ssr/loader superseded by foldkit-ssr/binder and manifestPlugin
foldkit-ssr/loader and runtimeChunk remain available for existing setups, while new progressive-resumption apps should use Binder.start (foldkit-ssr/binder) and manifestPlugin (foldkit-ssr/vite). See Make a page answer before the framework loads and Cut script by Message.