ream v0.2.4
ream 0.2.4
Keep Authenticators an interface, so it can actually be augmented
0.2.3 shipped type Authenticators = {}. The formatter had rewritten the empty
interface into a type alias, and a type alias cannot be augmented: warden's
declare module '@c9up/ream/types' { interface Authenticators { … } } came
back as a duplicate identifier rather than a merge, so ctx.auth.use() stayed
unknown and applications kept casting.
Reproduced against the published 0.2.3 in a scratch project before fixing, and
the suppression that holds it in place says why, because the next formatter run
would otherwise undo it silently.
Also folds the two declarations into the module that exposes them:
@c9up/ream/types re-exported them from a neighbouring file, and TypeScript
augments the module that DECLARES an interface, never one that re-exports it.
Drops safeDecode, orphaned when request.qs() moved to the body parser's
query-string parser.
8410822
Changes since v0.2.3.