From b48d12714aa916dba6dc3eed3443324cc8b97ef1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Apr 2023 09:13:36 +0000 Subject: [PATCH] fix(deps): update dependency @sinclair/typebox to v0.26.6 (#49855) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams --- api/package.json | 3 +-- api/src/routes/validation-test.ts | 2 +- api/src/schemas/example.ts | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/api/package.json b/api/package.json index c355060bb1b..da4976ab95d 100644 --- a/api/package.json +++ b/api/package.json @@ -10,7 +10,6 @@ "@fastify/swagger": "^8.3.1", "@fastify/swagger-ui": "^1.5.0", "@prisma/client": "4.11.0", - "@sinclair/typebox": "0.25.24", "connect-mongo": "4.6.0", "fastify": "4.15.0", "fastify-auth0-verify": "^1.0.0", @@ -19,7 +18,7 @@ }, "description": "The freeCodeCamp.org open-source codebase and curriculum", "devDependencies": { - "@fastify/type-provider-typebox": "2.4.0", + "@fastify/type-provider-typebox": "3.0.0", "@types/express-session": "1.17.7", "@types/supertest": "2.0.12", "jest": "29.5.0", diff --git a/api/src/routes/validation-test.ts b/api/src/routes/validation-test.ts index b7a7c417306..545d70a80e0 100644 --- a/api/src/routes/validation-test.ts +++ b/api/src/routes/validation-test.ts @@ -1,4 +1,4 @@ -import { Type } from '@sinclair/typebox'; +import { Type } from '@fastify/type-provider-typebox'; import type { FastifyInstanceWithTypeProvider } from '../app'; import { responseSchema, subSchema } from '../schemas/example'; diff --git a/api/src/schemas/example.ts b/api/src/schemas/example.ts index a2c3401cfb1..5df244840ff 100644 --- a/api/src/schemas/example.ts +++ b/api/src/schemas/example.ts @@ -1,4 +1,4 @@ -import { Static, Type } from '@sinclair/typebox'; +import { Static, Type } from '@fastify/type-provider-typebox'; // The schema that TypeBox generates is compatible with ajv, e.g. the // Type.Object call below puts the following object into subSchema. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 74591b4dcca..d0991c06e84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -182,9 +182,6 @@ importers: '@prisma/client': specifier: 4.11.0 version: 4.11.0(prisma@4.11.0) - '@sinclair/typebox': - specifier: 0.25.24 - version: 0.25.24 connect-mongo: specifier: 4.6.0 version: 4.6.0(express-session@1.17.3)(mongodb@4.14.0) @@ -202,8 +199,8 @@ importers: version: 2.0.22 devDependencies: '@fastify/type-provider-typebox': - specifier: 2.4.0 - version: 2.4.0(@sinclair/typebox@0.25.24)(fastify@4.15.0) + specifier: 3.0.0 + version: 3.0.0(fastify@4.15.0) '@types/express-session': specifier: 1.17.7 version: 1.17.7 @@ -6186,13 +6183,12 @@ packages: - supports-color dev: false - /@fastify/type-provider-typebox@2.4.0(@sinclair/typebox@0.25.24)(fastify@4.15.0): - resolution: {integrity: sha512-dP8KnpfyBD1FT1UxNWCRqSpKG69xYAK53q6MqUjuwYL7xvogXBbH/tpAMc1kZkKmgAHPT0migy9DaYtnkTbIIQ==} + /@fastify/type-provider-typebox@3.0.0(fastify@4.15.0): + resolution: {integrity: sha512-VVYY/ZcPSFElLtRYboA2bmFxoINGDqmmqJ8Ch8+2lvmc+XFCsOJ714SEOpgshC4n52KBclgQxf2O80NeEAN7gQ==} peerDependencies: - '@sinclair/typebox': ^0.25.9 fastify: ^4.0.0 dependencies: - '@sinclair/typebox': 0.25.24 + '@sinclair/typebox': 0.26.8 fastify: 4.15.0 dev: true @@ -7770,6 +7766,10 @@ packages: /@sinclair/typebox@0.25.24: resolution: {integrity: sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==} + /@sinclair/typebox@0.26.8: + resolution: {integrity: sha512-fvAkOrUWndf5vjptkW+4TeTH84/bILWQHgk7rbbzT8trZxW+b84lr8dZQPM/r7cGNRFxDaJYsMjHCikEYyAHaw==} + dev: true + /@sindresorhus/is@0.14.0: resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==} engines: {node: '>=6'}