Skip to content

Commit 180dfe7

Browse files
authored
fix!: use @sinclair/typebox via @fastify/type-provider-typebox (#247)
This upgrades the underlying version of `@sinclair/typebox` from `0.24` to `0.27`
1 parent aed8bed commit 180dfe7

File tree

4 files changed

+44
-287
lines changed

4 files changed

+44
-287
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
},
4040
"prettier": "@cobraz/prettier",
4141
"dependencies": {
42-
"@fastify/type-provider-typebox": "^2.0.0",
43-
"@sinclair/typebox": "^0.24.0",
42+
"@fastify/type-provider-typebox": "^3.1.0",
4443
"@types/express": "^4.17.13",
4544
"fastify": "^4.0.1",
4645
"fastify-plugin": "^4.2.0",
@@ -68,4 +67,4 @@
6867
"engines": {
6968
"node": ">=16"
7069
}
71-
}
70+
}

src/__tests__/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('index', () => {
1010
"attributes": Object {
1111
"additionalProperties": false,
1212
"patternProperties": Object {
13-
"^.*$": Object {
13+
"^(.*)$": Object {
1414
"type": "string",
1515
Symbol(TypeBox.Kind): "String",
1616
},
@@ -42,7 +42,7 @@ describe('index', () => {
4242
"attributes": Object {
4343
"additionalProperties": false,
4444
"patternProperties": Object {
45-
"^.*$": Object {
45+
"^(.*)$": Object {
4646
"type": "string",
4747
Symbol(TypeBox.Kind): "String",
4848
},

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Static, Type } from '@sinclair/typebox';
1+
import { Static, Type } from '@fastify/type-provider-typebox';
22
import { FastifyBaseLogger } from 'fastify';
33
import pino from 'pino';
44

0 commit comments

Comments
 (0)