Skip to content

Commit dc0f48a

Browse files
committed
chore: update dependencies and .gitignore
1 parent 6e7453c commit dc0f48a

11 files changed

Lines changed: 38 additions & 32 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,6 @@ yarn.lock
140140

141141
# uploaded files
142142
uploads/tasks/*
143+
144+
# macOS files
145+
.DS_Store

package.json

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
"db:migrate": "tsx --env-file=.env ./scripts/migrate.ts",
2222
"db:seed": "tsx --env-file=.env ./scripts/seed-database.ts"
2323
},
24-
"keywords": [],
24+
"keywords": [
25+
"fastify",
26+
"demo"
27+
],
2528
"author": "Michelet Jean <jean.antoine.michelet@gmail.com>",
2629
"license": "MIT",
2730
"repository": {
@@ -35,39 +38,39 @@
3538
"dependencies": {
3639
"@fastify/autoload": "^6.3.1",
3740
"@fastify/cookie": "^11.0.2",
38-
"@fastify/cors": "^11.1.0",
39-
"@fastify/env": "^5.0.2",
40-
"@fastify/helmet": "^13.0.1",
41-
"@fastify/multipart": "^9.2.1",
41+
"@fastify/cors": "^11.2.0",
42+
"@fastify/env": "^5.0.3",
43+
"@fastify/helmet": "^13.0.2",
44+
"@fastify/multipart": "^9.4.0",
4245
"@fastify/rate-limit": "^10.3.0",
43-
"@fastify/sensible": "^6.0.3",
44-
"@fastify/session": "^11.1.0",
46+
"@fastify/sensible": "^6.0.4",
47+
"@fastify/session": "^11.1.1",
4548
"@fastify/static": "^9.0.0",
46-
"@fastify/swagger": "^9.5.1",
47-
"@fastify/swagger-ui": "^5.2.3",
48-
"@fastify/type-provider-typebox": "^5.2.0",
49+
"@fastify/swagger": "^9.7.0",
50+
"@fastify/swagger-ui": "^5.2.5",
51+
"@fastify/type-provider-typebox": "^6.1.0",
4952
"@fastify/under-pressure": "^9.0.3",
50-
"@sinclair/typebox": "^0.34.41",
51-
"close-with-grace": "^2.2.0",
52-
"concurrently": "^9.2.1",
53+
"close-with-grace": "^2.5.0",
5354
"csv-stringify": "^6.6.0",
54-
"fastify": "^5.6.0",
55-
"fastify-plugin": "^5.0.1",
56-
"knex": "^3.1.0",
57-
"mysql2": "^3.15.0",
55+
"fastify": "^5.8.4",
56+
"fastify-plugin": "^5.1.0",
57+
"knex": "^3.2.6",
58+
"mysql2": "^3.20.0",
5859
"postgrator": "^8.0.0",
59-
"sanitize-filename": "^1.6.3"
60+
"sanitize-filename": "^1.6.3",
61+
"typebox": "^1.1.6"
6062
},
6163
"devDependencies": {
6264
"@types/node": "^25.0.3",
6365
"c8": "^11.0.0",
64-
"eslint": "^9.35.0",
66+
"concurrently": "^9.2.1",
67+
"eslint": "^9.39.0",
6568
"fastify-tsconfig": "^3.0.0",
66-
"form-data": "^4.0.4",
69+
"form-data": "^4.0.5",
6770
"glob": "^11.0.3",
6871
"neostandard": "^0.13.0",
69-
"pino-pretty": "^13.1.2",
70-
"tsx": "^4.20.5",
71-
"typescript": "~5.9.2"
72+
"pino-pretty": "^13.1.3",
73+
"tsx": "^4.21.0",
74+
"typescript": "~6.0.2"
7275
}
7376
}

src/plugins/app/file-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReturnType } from '@sinclair/typebox'
1+
import { ReturnType } from 'typebox'
22
import { FastifyInstance } from 'fastify'
33
import fp from 'fastify-plugin'
44
import fs from 'fs'

src/plugins/app/tasks/tasks-file-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReturnType } from '@sinclair/typebox'
1+
import { ReturnType } from 'typebox'
22
import { FastifyInstance } from 'fastify'
33
import fp from 'fastify-plugin'
44
import path from 'path'

src/plugins/app/tasks/tasks-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReturnType, Static } from '@sinclair/typebox'
1+
import { ReturnType, Static } from 'typebox'
22
import { FastifyInstance } from 'fastify'
33
import fp from 'fastify-plugin'
44
import {

src/routes/api/tasks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => {
309309
{
310310
schema: {
311311
response: {
312-
200: { type: 'string', contentMediaType: 'application/gzip' },
312+
200: Type.Unknown({ type: 'string', contentMediaType: 'application/gzip' }),
313313
400: Type.Object({ message: Type.String() })
314314
},
315315
tags: ['Tasks']

src/schemas/auth.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 'typebox'
22
import { EmailSchema, StringSchema } from './common.js'
33

44
export const CredentialsSchema = Type.Object({

src/schemas/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Type } from '@sinclair/typebox'
1+
import { Type } from 'typebox'
22

33
export const StringSchema = Type.String({
44
minLength: 1,

src/schemas/tasks.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 'typebox'
22
import { DateTimeSchema, IdSchema, StringSchema } from './common.js'
33

44
export const TaskStatusEnum = {

src/schemas/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Type } from '@sinclair/typebox'
1+
import { Type } from 'typebox'
22

33
const passwordPattern = '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).*$'
44

0 commit comments

Comments
 (0)