版本发布 7
## What's Changed * ci: set permissions at workflow level by @Fdawgs in https://github.com/fastify/fastify-error/pull/146 * ci: restore job level permissions by @Fdawgs in https://github.com/fastify/fastify-error/pull/147 * chore(deps-dev): bump tsd from 0.31.2 to 0.32.0 by @dependabot in https://github.com/fastify/fastify-error/pull/148 * feat: implement instanceof by @Uzlopak in https://github.com/fastify/fastify-error/pull/149 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v4.1.0...v4.2.0
## What's Changed * chore(deps): bump fastify/workflows from 4.1.0 to 4.2.1 by @dependabot in https://github.com/fastify/fastify-error/pull/128 * chore(deps): bump fastify/workflows from 4.2.1 to 5.0.0 by @dependabot in https://github.com/fastify/fastify-error/pull/131 * fix: migrate from tap to node test and c8 by @dancastillo in https://github.com/fastify/fastify-error/pull/130 * fix: c8 100 percent code coverage by @dancastillo in https://github.com/fastify/fastify-error/pull/132 * style: remove trailing whitespace by @Fdawgs in https://github.com/fastify/fastify-error/pull/136 * docs(readme): update ci badge syntax by @Fdawgs in https://github.com/fastify/fastify-error/pull/137 * build(deps-dev): replace standard with neostandard by @Fdawgs in https://github.com/fastify/fastify-error/pull/138 * chore(deps-dev): bump neostandard from 0.11.9 to 0.12.0 by @dependabot in https://github.com/fastify/fastify-error/pull/139 * build(deps-dev): add eslint, peer dep of neostandard by @Fdawgs in https://github.com/fastify/fastify-error/pull/140 * chore(package): add funding and contribs by @Fdawgs in https://github.com/fastify/fastify-error/pull/141 * build(dependabot): reduce npm updates to monthly by @Fdawgs in https://github.com/fastify/fastify-error/pull/142 * chore: rename master to main by @Fdawgs in https://github.com/fastify/fastify-error/pull/143 * ci(ci): set job permissions by @Fdawgs in https://github.com/fastify/fastify-error/pull/144 * feat: add `captureStackTrace` parameter by @gurgunday in https://github.com/fastify/fastify-error/pull/145 ## New Contributors * @dancastillo made their first contribution in https://github.com/fastify/fastify-error/pull/130 * @gurgunday made their first contribution in https://github.com/fastify/fastify-error/pull/145 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v4.0.0...v4.1.0
## What's Changed * chore(deps-dev): bump tsd from 0.29.0 to 0.30.0 by @dependabot in https://github.com/fastify/fastify-error/pull/123 * chore(.gitignore): add .tap/ dir by @Fdawgs in https://github.com/fastify/fastify-error/pull/124 * chore(deps-dev): bump tsd from 0.30.7 to 0.31.0 by @dependabot in https://github.com/fastify/fastify-error/pull/126 * Merge `next` into `master` by @jsumners in https://github.com/fastify/fastify-error/pull/127 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v3.4.1...v4.0.0
## What's Changed * chore: add `.gitattributes` file by @Fdawgs in https://github.com/fastify/fastify-error/pull/118 * test(index): use object destructuring by @Fdawgs in https://github.com/fastify/fastify-error/pull/120 * chore(package): explicitly declare js module type by @Fdawgs in https://github.com/fastify/fastify-error/pull/121 * fix: cause last element index check by @dmuharemagic in https://github.com/fastify/fastify-error/pull/122 ## New Contributors * @dmuharemagic made their first contribution in https://github.com/fastify/fastify-error/pull/122 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v3.4.0...v3.4.1
## What's Changed * Fix type of base argument create error by @jessta in https://github.com/fastify/fastify-error/pull/108 * chore: remove unnecessary eslint comment by @is2ei in https://github.com/fastify/fastify-error/pull/110 * docs: improve example code by @is2ei in https://github.com/fastify/fastify-error/pull/111 * chore(deps-dev): bump tsd from 0.28.1 to 0.29.0 by @dependabot in https://github.com/fastify/fastify-error/pull/113 * perf: use `node:` prefix to bypass require.cache call for builtins by @Fdawgs in https://github.com/fastify/fastify-error/pull/114 * Added support for cause by @DanieleFedeli in https://github.com/fastify/fastify-error/pull/116 ## New Contributors * @is2ei made their first contribution in https://github.com/fastify/fastify-error/pull/110 * @DanieleFedeli made their first contribution in https://github.com/fastify/fastify-error/pull/116 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v3.3.0...v3.4.0
## What's Changed * Fix type of Base argument to createError by @jessta in https://github.com/fastify/fastify-error/pull/106 * Revert "Fix type of Base argument to createError" by @Uzlopak in https://github.com/fastify/fastify-error/pull/107 * improve perf of error creation by @Uzlopak in https://github.com/fastify/fastify-error/pull/109 ## New Contributors * @jessta made their first contribution in https://github.com/fastify/fastify-error/pull/106 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v3.2.1...v3.3.0
## What's Changed * chore(.gitignore): add clinic by @Fdawgs in https://github.com/fastify/fastify-error/pull/91 * add benchmarks, improve performance of stackTraceLimit === 0 by @Uzlopak in https://github.com/fastify/fastify-error/pull/92 * chore(.gitignore): add bun lockfile by @Fdawgs in https://github.com/fastify/fastify-error/pull/93 * chore(deps-dev): bump tsd from 0.25.0 to 0.26.0 by @dependabot in https://github.com/fastify/fastify-error/pull/94 * chore(deps-dev): bump tsd from 0.26.1 to 0.27.0 by @dependabot in https://github.com/fastify/fastify-error/pull/95 * chore(deps-dev): bump tsd from 0.27.0 to 0.28.0 by @dependabot in https://github.com/fastify/fastify-error/pull/96 * ci: only trigger on pushes to main branches by @Fdawgs in https://github.com/fastify/fastify-error/pull/97 * chore: fix `lint` script on types by @trim21 in https://github.com/fastify/fastify-error/pull/99 * perf: use spread operator by @trim21 in https://github.com/fastify/fastify-error/pull/100 * build(deps-dev): use standard instead of ts-standard by @Uzlopak in https://github.com/fastify/fastify-error/pull/104 * types: check error argument type by @trim21 in https://github.com/fastify/fastify-error/pull/98 * docs(readme): add typescript example by @trim21 in https://github.com/fastify/fastify-error/pull/105 ## New Contributors * @trim21 made their first contribution in https://github.com/fastify/fastify-error/pull/99 **Full Changelog**: https://github.com/fastify/fastify-error/compare/v3.2.0...v3.2.1