Comparing version 2.1.1 to 2.2.0
@@ -10,3 +10,3 @@ import { FastifyPlugin, FastifyPluginOptions, LogLevel, RouteHandler } from 'fastify'; | ||
} | ||
declare type Arecibo = FastifyPlugin<Opts> & { | ||
type Arecibo = FastifyPlugin<Opts> & { | ||
default: Arecibo; | ||
@@ -13,0 +13,0 @@ }; |
@@ -87,3 +87,3 @@ "use strict"; | ||
}; | ||
const arecibo = fastify_plugin_1.default(function (fastify, opts, next) { | ||
const arecibo = (0, fastify_plugin_1.default)(function (fastify, opts, next) { | ||
const { message = defaultMessage, readinessURL = READINESS_URL, livenessURL = LIVENESS_URL, logLevel = 'info', } = opts; | ||
@@ -90,0 +90,0 @@ const readinessCallback = opts.readinessCallback || defaultResponse(message); |
{ | ||
"name": "arecibo", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Fastify plugin that respondes to kubernetes readiness and liveness probes.", | ||
@@ -15,7 +15,11 @@ "main": "./lib", | ||
"lint": "tslint --fix -c tslint.json -t stylish -p ./tsconfig.json", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run build", | ||
"commitlint": "commitlint", | ||
"semantic-release": "semantic-release", | ||
"commit": "npx git-cz", | ||
"prepare": "husky install" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nucleode/arecibo.git" | ||
"url": "git+https://github.com/ducktors/arecibo.git" | ||
}, | ||
@@ -36,14 +40,29 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/nucleode/arecibo/issues" | ||
"url": "https://github.com/ducktors/arecibo/issues" | ||
}, | ||
"homepage": "https://github.com/nucleode/arecibo#readme", | ||
"homepage": "https://github.com/ducktors/arecibo#readme", | ||
"devDependencies": { | ||
"@types/node": "~14.6.0", | ||
"fastify": "~3.3.0", | ||
"npm-run-all": "~4.1.5", | ||
"prettier": "~2.1.1", | ||
"rimraf": "~3.0.2", | ||
"tslint": "~6.1.3", | ||
"tslint-config-prettier": "~1.18.0", | ||
"typescript": "~4.0.2" | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@commitlint/prompt": "^17.1.2", | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@semantic-release/commit-analyzer": "^9.0.2", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^8.0.6", | ||
"@semantic-release/npm": "^9.0.1", | ||
"@semantic-release/release-notes-generator": "^10.0.3", | ||
"@types/node": "^16.18.1", | ||
"commitizen": "^4.2.5", | ||
"commitlint-config-cz": "^0.13.3", | ||
"commitlint-plugin-function-rules": "^1.7.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^7.0.4", | ||
"fastify": "^4.12.0", | ||
"semantic-release": "^19.0.5", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.3", | ||
"rimraf": "^4.1.2", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -54,4 +73,4 @@ "files": [ | ||
"dependencies": { | ||
"fastify-plugin": "~2.3.2" | ||
"fastify-plugin": "^4.5.0" | ||
} | ||
} |
@@ -12,3 +12,3 @@ <div align="center"> | ||
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/nucleode/arecibo/badge.svg?targetFile=package.json)](https://snyk.io/test/github/nucleode/arecibo?targetFile=package.json) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/ducktors/arecibo/badge.svg?targetFile=package.json)](https://snyk.io/test/github/ducktors/arecibo?targetFile=package.json) | ||
@@ -22,4 +22,4 @@ </div> | ||
| -- | -- | -- | | ||
| [v2.0.0](https://github.com/nucleode/arecibo/releases/tag/v2.0.0) | Fastify 3 & 4 | [master](https://github.com/nucleode/arecibo/tree/master) | | ||
| [v1.1.0](https://github.com/nucleode/arecibo/releases/tag/v1.1.0) | Fastify 2 | [fastify2](https://github.com/nucleode/arecibo/tree/fastify2) | | ||
| [v2.1.1](https://github.com/ducktors/arecibo/releases/tag/v2.1.1) | Fastify 3 & 4 | [master](https://github.com/ducktors/arecibo/tree/master) | | ||
| [v1.1.0](https://github.com/ducktors/arecibo/releases/tag/v1.1.0) | Fastify 2 | deprecated | | ||
@@ -81,2 +81,13 @@ | ||
## How to commit | ||
This repo uses [Semantic Release](https://github.com/semantic-release/semantic-release) with Conventional Commits. | ||
Releases are automatically created based on the type of commit message: feat for minor and fix for patch. | ||
``` | ||
feat: new feature ---> 1.x.0 | ||
fix: fix a bug ---> 1.0.x | ||
``` | ||
## Reference | ||
@@ -83,0 +94,0 @@ * <a href="https://github.com/fastify/fastify">Fastify</a> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13184
97
23
+ Addedfastify-plugin@4.5.1(transitive)
- Removedfastify-plugin@2.3.4(transitive)
- Removedsemver@7.6.3(transitive)
Updatedfastify-plugin@^4.5.0