Skip to content

v1.8.0

Compare
Choose a tag to compare
@lukeed lukeed released this 31 Dec 18:28
· 4 commits to master since this release

Features

  • Add initial Deno support (#48): 5ebb94c
    Available via deno.land/x/sade
    Thank you @ryanccn~!

  • Add "module" for bundler-friendly ESM (#51): cb05689
    Builds lib/* 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 your action() 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