0.4.1 • Published 5 years ago

@optimumenergyco/koa-utilities v0.4.1

Weekly downloads
53
License
MIT
Repository
github
Last release
5 years ago

Koa Utilities

This repository is a collection of shared Node.js modules for use internal use at Optimum Energy. Currently, the package exports the following components:

  • logger: A generic Winston logger preconfigured to output to the console.
  • requestIdMiddleware: A Koa middleware that automatically appends a request ID to the header if it's not already present.
  • errorMiddleware: A Koa middleware that sets a response when an error occurs in the application.
  • requestLoggerMiddleware: A Koa middleware that automatically logs requests and responses.
  • validationMiddleware: A Koa middleware that validates incoming openAPI schema, requests and responses.
  • DatabaseError: A generic database error.
  • ValidationError: A generic validation error.
  • NotFoundError: A generic not found error.

Deployment

The koa-utilities package is automatically deployed by the CI server. If you'd like for your changes to be deployed to NPM, you must first set the new version manually. Be sure to follow semantic versioning.

yarn version

Next, you'll need to push up your changes to GitHub along with the versioned tag created by Yarn.

git push origin HEAD
git push --tags origin HEAD

All of this should happen after your PR has been approved but before your changes are merged into master .

Finally, after you've merged your branch into master, check on NPM to make sure the new version of the package is the same as the version you just set. Note that even after the merge to master build runs successfully, it may take some time to be reflected up on NPM.

0.4.1

5 years ago

0.4.0

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.0.15

6 years ago

0.1.0

6 years ago

0.0.16

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9-test4

6 years ago

0.0.9-test3

6 years ago

0.0.9-test2

6 years ago

0.0.9-test1

6 years ago

0.0.9-test

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago