Repository navigation
v0.3.6
This version corrects the parameter type of confineToFile. The change is backward compatible.
confineToFiletakes aDatabaseSyncof each version of@types/node. Before, TypeScript refused theDatabaseSyncof@types/node22 with the error TS2559. That type has nosetAuthorizer, so it had no member in common withConfinableDatabase.- The parameter type is
DatabaseSync | ConfinableDatabase. Each call that compiled before still compiles. The check at run time does not change. - The typecheck of the package also examines the source and a type test with
@types/node22 (tsconfig.node22.json). The type test gives aDatabaseSyncof that version to each public function that takes a connection.
Runtime dependencies: none.