Skip to content

v3.1.0

Compare
Choose a tag to compare
@lukeed lukeed released this 14 Sep 17:46

Features

  • Add Deno support (#4) 🎉 : b47f528

    // Mode: sync
    import escalade from 'https://deno.land/x/escalade/sync.ts';
    
    let output = escalade('.', (dir, list) => {
      if (list.includes('package.json')) return 'package.json';
    });
    
    // Mode: async
    import escalade from 'https://deno.land/x/escalade/async.ts';
    
    let output = await escalade('.', (dir, list) => {
      if (list.includes('package.json')) return 'package.json';
    });

Patches

  • (types) Ship separate TypeScript definition files for escalade vs escalade/sync modes (#5): 283b571, 91a8a2f
  • (types) Drop CommonJS export format: 24efb4b
    Replaced export = escalade with export default escalade – correct for ESM and TS.