From 9351a01152efcd1b49c700259d65ec03d88908f0 Mon Sep 17 00:00:00 2001 From: sv2 Date: Wed, 11 Jan 2023 16:48:42 -0800 Subject: [PATCH] v0.99.5 --- CHANGELOG.md | 7 +++++++ examples/authtest/authtest.js | 2 +- examples/fastify/fasifytest.js | 2 +- examples/hapijstest/hapijstest.js | 2 +- examples/restify/restifytest.js | 2 +- examples/spectest/spectest.js | 2 +- examples/testapp/testapp.js | 2 +- lib/sws-api-swagger.yaml | 2 +- package-lock.json | 18 ++---------------- package.json | 2 +- 10 files changed, 17 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5133d86..d41ebd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog All notable changes to this project will be documented in this file. +## v0.99.5 + +Dependency on deprecated `request` has been removed, `axios` is used instead + +* [improvement] Replace deprecated dependency on request [#148](https://github.com/slanatech/swagger-stats/issues/148) + + ## v0.99.4 * [bug] api_index_template.json is missing in the last patch [#238](https://github.com/slanatech/swagger-stats/issues/238) diff --git a/examples/authtest/authtest.js b/examples/authtest/authtest.js index 5a0dbfa..d9d1488 100644 --- a/examples/authtest/authtest.js +++ b/examples/authtest/authtest.js @@ -59,7 +59,7 @@ var swaggerSpec = require( specLocation ); // Use swagger-stats middleware with authentication enabled app.use(swStats.getMiddleware({ name: 'swagger-stats-authtest', - version: '0.99.4', + version: '0.99.5', hostname: "hostname", ip: "127.0.0.1", swaggerSpec:swaggerSpec, diff --git a/examples/fastify/fasifytest.js b/examples/fastify/fasifytest.js index c85395c..d17ff9d 100644 --- a/examples/fastify/fasifytest.js +++ b/examples/fastify/fasifytest.js @@ -47,7 +47,7 @@ fastify.route({ let swsOptions = { name: 'swagger-stats-fastify', - version: '0.99.4', + version: '0.99.5', timelineBucketDuration: 1000, swaggerSpec:swaggerSpec, authentication: true, diff --git a/examples/hapijstest/hapijstest.js b/examples/hapijstest/hapijstest.js index cc9efb1..22b603f 100644 --- a/examples/hapijstest/hapijstest.js +++ b/examples/hapijstest/hapijstest.js @@ -67,7 +67,7 @@ const init = async () => { let swsOptions = { name: 'swagger-stats-hapitest', - version: '0.99.4', + version: '0.99.5', hostname: "hostname", ip: "127.0.0.1", uriPath: '/swagger-stats', diff --git a/examples/restify/restifytest.js b/examples/restify/restifytest.js index 20894e2..ff54e7b 100644 --- a/examples/restify/restifytest.js +++ b/examples/restify/restifytest.js @@ -15,7 +15,7 @@ server.use(restify.plugins.queryParser()); // Use swagger-stats middleware server.pre(swStats.getMiddleware({ name: 'restifytest', - version: '0.99.4', + version: '0.99.5', hostname: "hostname", ip: "127.0.0.1", timelineBucketDuration:1000, diff --git a/examples/spectest/spectest.js b/examples/spectest/spectest.js index ebab178..1561b68 100644 --- a/examples/spectest/spectest.js +++ b/examples/spectest/spectest.js @@ -76,7 +76,7 @@ parser.validate(specLocation,function(err, api) { var swsOptions = { name: 'swagger-stats-spectest', - version: '0.99.4', + version: '0.99.5', hostname: "hostname", ip: "127.0.0.1", timelineBucketDuration: tlBucket, diff --git a/examples/testapp/testapp.js b/examples/testapp/testapp.js index 5b31a45..89b88be 100644 --- a/examples/testapp/testapp.js +++ b/examples/testapp/testapp.js @@ -53,7 +53,7 @@ parser.validate(swaggerSpec,function(err, api) { // Enable swagger-stats middleware app.use(swStats.getMiddleware({ name: 'swagger-stats-testapp', - version: '0.99.4', + version: '0.99.5', timelineBucketDuration: tlBucket, uriPath: '/swagger-stats', swaggerSpec:swaggerSpec, diff --git a/lib/sws-api-swagger.yaml b/lib/sws-api-swagger.yaml index 53b7fe6..7a9eda4 100644 --- a/lib/sws-api-swagger.yaml +++ b/lib/sws-api-swagger.yaml @@ -1,6 +1,6 @@ swagger: '2.0' info: - version: 0.99.4 + version: 0.99.5 title: swagger-stats API description: | ### Telemetry for your APIs diff --git a/package-lock.json b/package-lock.json index de6873a..ffa1295 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "swagger-stats", - "version": "0.99.4", + "version": "0.99.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "swagger-stats", - "version": "0.99.4", + "version": "0.99.5", "license": "MIT", "dependencies": { "axios": "^1.2.2", @@ -2694,20 +2694,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", diff --git a/package.json b/package.json index 08b63b7..8298cce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swagger-stats", - "version": "0.99.4", + "version": "0.99.5", "description": "API Telemetry and APM. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices, based on express routes and Swagger (Open API) specification", "main": "lib/index.js", "scripts": {