All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- N/A
3.1.1 - 2020-02-24
- Update dependencies, fix linting errors
3.1.0 - 2019-09-04
- TypeScript type definitions
- Dependency upgrades
- Minor config file changes
3.0.5 - 2019-04-22
- Check for existence of
Error.captureStackTrace
before calling
3.0.4 - 2019-04-22
- Ability to set
data
property on errors, usingteapot.error
function.
3.0.2 - 2019-04-19
- Adds TypeScript declaration file
3.0.1 - 2019-04-19
- Correct package name in README + .yarnrc
3.0.0 - 2019-04-18
- Moves to TypeScript
- New APIs -
teapot.status
function replaced withteapot.status.code
- Uses Jest for testing
2.0.1 - 2018-02-06
A whole lot! The package has been renamed to teapot
to make room for the new default export and avoid confusion
between it and Node's native http
module. Some other changes:
createError
is nowteapot.error
; functionality is the samestatus
is nowteapot.status
; functionality is the same- Errors can be accessed via the default export
teapot.errors
, or by named import - The package bundle now only includes the
dist
folder to shrink size - Minor changes to examples
- Far more extensive test suite
1.2.0 - 2018-02-01
- A new
createError
function! It lets you take a status code and create the properClientError
orServerError
that goes with it. Examples:const err = clientError(404, 'My not found message');
- Update dependencies
- Examples updated to use
createError
- More tests
- Classes that inherit
ClientError
orServerError
now have a staticcode
method to get the HTTP status code associated with the error. For example,NotFoundError.code() === 404
1.1.0 - 2018-01-17
- Switch to Node.js Markdown linting tool
- Update packages
1.0.1 - 2017-11-18
- Minor changes to NPM scripts
- No longer generating JSDoc files, using Doclets instead
1.0.0 - 2017-11-17
- Status code and error utility modules
- Tests for all modules
- Full code coverage
- JSDoc documentation
- Examples using Koa and Express