Skip to content

v7.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 30 Nov 12:52
e25b47a

🐛 Bug Fixes

  • make render function standalone (188f13b)
  • opt for default export in package.json (e4bc4c6)

📦 Code Refactoring

  • replace yamlify-object with yaml (e7cfbd5)

♻️ Chores

Breaking changes

    • the render method in the Xception instance has been removed
  • use renderError instead

EXAMPLE MIGRATION

before:

const error = new Xception(...)

const rendered = error.render();

after:

import { renderError } from 'xception/render';

const error = new Xception(...)

const rendered = renderError(error.render);

NOTE:
separating the render function from the default
export enables the use of other features
in non-Node environments