Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@uetchy uetchy released this 31 Aug 04:44

3.0.0 (2021-08-31)

Breaking changes

// Before
const epicfail = require('epicfail');

epicfail()

// After (cjs)
const {epicfail} = require('epicfail');

epicfail(require.main.filename);

// After (esm)
import {epicfail} from 'epicfail';

epicfail(import.meta.url);

Features

  • ESM support

Bug Fixes

  • exit process with error code 1 after handling error (a653e33)
  • use require.main for acquiring parent module (c15b747)