commit method

Commits exactly the bytes bound into prepared: each prepared text in UTF-8, after a byte order mark when prepare says the file takes one.

Implementation

Future<OkfBundleCommitResult> commit(OkfPreparedChange prepared) =>
    OkfBundleLock.write(
      prepared._plan.rootPath,
      () => _commitLocked(prepared),
    );