v1.8.0
Features
-
Add initial Deno support (#48): 5ebb94c
Available viadeno.land/x/sade
Thank you @ryanccn~! -
Add
"module"
for bundler-friendly ESM (#51): cb05689
Buildslib/*
from source using Rollup and Terser. Retains full Node 6.x support -
Add TypeScript definitions: 9171cbf
Sade now includes its own TypeScript definitions directly.
If coming from the@types/sade
package, you may now type youraction()
arguments strictly:sade('hello') .command('foobar <name> [age]', 'asd', { default: true }) .action<[string, number|null]>((name, age, options) => { name.length; // ^? type: string age // ^? type: number | null options // ^? type: mri.Argv<Default> }) // ...
Full Changelog: v1.7.4...v1.8.0