New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-healthcheck

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-healthcheck - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

12

CHANGELOG.md
# Change Log
## [4.0.0](https://github.com/smartiniOnGitHub/fastify-healthcheck/releases/tag/4.0.0) (2022-06-13)
[Full Changelog](https://github.com/smartiniOnGitHub/fastify-healthcheck/compare/3.2.0...4.0.0)
Summary Changelog:
- Updated requirements to Fastify '^4.0.0'; update code with related changes
- Updated all dependencies to latest (for Node.js 14 LTS)
- Update dependencies from 'under-pressure' to the new (scoped)
package '@fastify/under-pressure'
- Update and simplified example and test code
- Update example Docker files to use Node.js slim image as base
to reduce image size and all is good
- Update documentation from sources with JSDoc
## [3.2.0](https://github.com/smartiniOnGitHub/fastify-healthcheck/releases/tag/3.2.0) (2022-06-13)

@@ -4,0 +16,0 @@ [Full Changelog](https://github.com/smartiniOnGitHub/fastify-healthcheck/compare/3.1.0...3.2.0)

2

example/example-under-pressure-fail.js

@@ -42,3 +42,3 @@ /*

fastify.listen(3000, '0.0.0.0', (err, address) => {
fastify.listen({ port: 3000, host: '0.0.0.0' }, (err, address) => {
if (err) throw err

@@ -45,0 +45,0 @@ console.log(`Server listening on ${address}`)

@@ -39,3 +39,3 @@ /*

fastify.listen(3000, '0.0.0.0', (err, address) => {
fastify.listen({ port: 3000, host: '0.0.0.0' }, (err, address) => {
if (err) throw err

@@ -42,0 +42,0 @@ console.log(`Server listening on ${address}`)

{
"name": "fastify-healthcheck",
"version": "3.2.0",
"version": "4.0.0",
"description": "Fastify Plugin to serve responses for health checks",

@@ -39,3 +39,3 @@ "main": "src/plugin",

"dependencies": {
"under-pressure": "^5.8.1"
"@fastify/under-pressure": "^7.0.0"
},

@@ -46,7 +46,7 @@ "devDependencies": {

"@typescript-eslint/parser": "^5.27.1",
"fastify": "^3.11.0",
"fastify": "^4.0.0",
"jsdoc": "^3.6.10",
"simple-get": "^4.0.1",
"standard": "^16.0.3",
"tap": "^15.2.3",
"standard": "^17.0.0",
"tap": "^16.2.0",
"tsd": "^0.21.0",

@@ -69,3 +69,3 @@ "typescript": "^4.7.3"

"engines": {
"node": ">=10.13.0"
"node": ">=14.15.0"
},

@@ -72,0 +72,0 @@ "homepage": "https://github.com/smartiniOnGitHub/fastify-healthcheck#readme",

@@ -28,3 +28,3 @@ # fastify-healthcheck

Under the hood, the healthcheck status is determined by the
[under-pressure](https://www.npmjs.com/package/under-pressure) plugin,
[@fastify/under-pressure](https://www.npmjs.com/package/@fastify/under-pressure) plugin,
used here as a dependency; so it's possible to specify all its

@@ -51,3 +51,3 @@ configuration options here.

fastify.listen(3000)
fastify.listen({ port: 3000, host: 'localhost' })

@@ -90,4 +90,4 @@ // To test, for example (in another terminal session) do:

Fastify ^3.11.0 , Node.js 10 LTS (10.13.0) or later.
Note that plugin releases 2.x are for Fastify 2.x, 3.x are for Fastify 3.x, etc.
Fastify ^4.0.0 , Node.js 14 LTS (14.15.0) or later.
Note that plugin releases 3.x are for Fastify 3.x, 4.x are for Fastify 4.x, etc.

@@ -94,0 +94,0 @@

@@ -42,3 +42,3 @@ /*

// that threshold values set
fastify.register(require('under-pressure'), underPressureOptions)
fastify.register(require('@fastify/under-pressure'), underPressureOptions)

@@ -45,0 +45,0 @@ let healthcheckHandler = normalHandler

/// <reference types="node" />
import underPressure from 'under-pressure'
import underPressure from '@fastify/under-pressure'
import { FastifyPluginCallback } from 'fastify'

@@ -5,0 +5,0 @@

@@ -15,3 +15,3 @@ import fastify from 'fastify'

app.listen(3000, (err, address) => {
app.listen({ port: 3000 }, (err, address) => {
if (err) throw err

@@ -18,0 +18,0 @@ console.log(`Server listening on '${address}' ...`)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc