Skip to content

Commit

Permalink
upgrade dependencies (#327)
Browse files Browse the repository at this point in the history
* upgrade fastify dependencies

* upgrade dependencies

* docs: update CHANGELOG

* docs: update CHANGELOG

* fix: fix tests on node 20

* remove error

* test: improve tests
  • Loading branch information
davidebianchi authored Nov 16, 2023
1 parent 773eb55 commit a551355
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, '20.x']

steps:
- uses: actions/checkout@v3
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Added

* add support to Node 20

### Updated

* upgrade dependencies

## v7.0.2 - 2023-10-09

### Fixed

- fix fastify.close function undefined
* fix fastify.close function undefined

## v7.0.1 - 2023-07-19

Expand Down
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

'use strict'

const fastifyEnv = require('fastify-env')
const fastifyEnv = require('@fastify/env')
const axios = require('axios')

const envSchema = {
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"start:local": "npm start -- --env-path ./local.env --enable-tracing true"
},
"dependencies": {
"@fastify/env": "^4.3.0",
"@mia-platform/lc39": "../",
"axios": "^1.3.5",
"fastify-env": "^2.1.1"
"axios": "^1.3.5"
},
"engines": {
"node": ">=8"
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,30 @@
"test:types": "tsd"
},
"dependencies": {
"@fastify/sensible": "^5.2.0",
"@fastify/swagger": "^8.8.0",
"@fastify/swagger-ui": "^1.9.2",
"@opentelemetry/auto-instrumentations-node": "^0.38.0",
"@opentelemetry/sdk-node": "^0.41.0",
"@opentelemetry/sdk-trace-base": "^1.15.0",
"commander": "^11.0.0",
"dotenv": "^16.0.1",
"@fastify/sensible": "^5.5.0",
"@fastify/swagger": "^8.12.0",
"@fastify/swagger-ui": "^1.10.1",
"@opentelemetry/auto-instrumentations-node": "^0.40.0",
"@opentelemetry/sdk-node": "^0.45.1",
"@opentelemetry/sdk-trace-base": "^1.18.1",
"commander": "^11.1.0",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"fastify": "^4.16.3",
"fastify-metrics": "^10.3.0",
"fastify-plugin": "^4.5.0",
"fastify": "^4.24.3",
"fastify-metrics": "^10.3.3",
"fastify-plugin": "^4.5.1",
"lodash.get": "^4.4.2",
"prom-client": "^14.2.0"
},
"devDependencies": {
"@mia-platform/eslint-config-mia": "^3.0.0",
"ajv": "^8.11.0",
"eslint": "^8.19.0",
"semver": "^7.5.0",
"split2": "^4.1.0",
"ajv": "^8.12.0",
"eslint": "^8.53.0",
"semver": "^7.5.4",
"split2": "^4.2.0",
"swagger-parser": "^10.0.3",
"tap": "^16.3.7",
"tsd": "^0.28.1"
"tsd": "^0.29.0"
},
"engines": {
"node": ">=14"
Expand Down
60 changes: 60 additions & 0 deletions tap-snapshots/tests/documentation-routes.test.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,33 @@ Object {
},
"/prefix/items/{itemId}": Object {
"get": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
},
},
},
"post": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
Expand Down Expand Up @@ -180,13 +200,33 @@ Object {
},
"/prefix/items/{itemId}": Object {
"get": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
},
},
},
"post": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
Expand Down Expand Up @@ -305,13 +345,33 @@ Object {
},
"/items/{itemId}": Object {
"get": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
},
},
},
"post": Object {
"parameters": Array [
Object {
"in": "path",
"name": "itemId",
"required": true,
"schema": Object {
"type": "string",
},
},
],
"responses": Object {
"200": Object {
"description": "Default Response",
Expand Down
Loading

0 comments on commit a551355

Please sign in to comment.