diff --git a/package-lock.json b/package-lock.json index 7a7d300..90877b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,22 @@ { "name": "@athenna/http", - "version": "4.23.0", + "version": "4.24.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/http", - "version": "4.23.0", + "version": "4.24.0", "license": "MIT", "devDependencies": { - "@athenna/artisan": "^4.37.0", - "@athenna/common": "^4.34.0", - "@athenna/config": "^4.16.0", - "@athenna/ioc": "^4.16.0", - "@athenna/logger": "^4.17.0", + "@athenna/artisan": "^4.38.0", + "@athenna/common": "^4.35.0", + "@athenna/config": "^4.18.0", + "@athenna/ioc": "^4.18.0", + "@athenna/logger": "^4.18.0", "@athenna/test": "^4.22.0", "@athenna/tsconfig": "^4.12.0", - "@athenna/view": "^4.18.0", + "@athenna/view": "^4.20.0", "@fastify/cors": "^8.4.2", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", @@ -71,9 +71,9 @@ "dev": true }, "node_modules/@athenna/artisan": { - "version": "4.37.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.37.0.tgz", - "integrity": "sha512-Zyfn/M3IEM094Cx4FXi8cXpGhbQSGiKiTGCmqNFT9QFaXt5ehON56GNq35sHDt884iRci8boyanN8c2xsWyqnA==", + "version": "4.38.0", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.38.0.tgz", + "integrity": "sha512-UZ9bDAIxaC88aALlxgdtQV92yE4k1siGXqXaZf4FOJkJgs5MjOLSvMrwtrsTy5Q9iQBoSGhZjrqExzap6O6KFA==", "dev": true, "dependencies": { "chalk-rainbow": "^1.0.0", @@ -82,7 +82,7 @@ "columnify": "^1.6.0", "commander": "^9.5.0", "figlet": "^1.7.0", - "inquirer": "^9.2.13", + "inquirer": "^9.2.14", "log-update": "^5.0.1", "ora": "^6.3.1" }, @@ -518,9 +518,9 @@ } }, "node_modules/@athenna/common": { - "version": "4.34.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.34.0.tgz", - "integrity": "sha512-2rIUEB4M7AsUXC8wNotTrVmuFj2PpJao41otaM3yMa7A8rc7c+aRIMHgX/IMk4wfOy3ajdF5v9cEkn6W/6skUw==", + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.35.0.tgz", + "integrity": "sha512-f5JRdrjdozbtHjG0YgqVLXv6fjmss7PKAQWeyqGLg4dpGmheZ19xXYONZYf3ng6d0k2+YQ7IjLzGmfwSsrO+wA==", "dev": true, "dependencies": { "@fastify/formbody": "^7.4.0", @@ -531,7 +531,7 @@ "collect.js": "^4.36.1", "csv-parser": "^3.0.0", "execa": "^8.0.1", - "fastify": "^4.26.0", + "fastify": "^4.26.1", "got": "^12.6.1", "http-status-codes": "^2.2.0", "is-wsl": "^2.2.0", @@ -689,12 +689,12 @@ } }, "node_modules/@athenna/config": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.16.0.tgz", - "integrity": "sha512-uR0hyTApbaOp1YK143BkeczeygbU8SmLHnJLwRAweplauDydRW8TZw9pETO1w1TwMnK6iDobjl/GX2NWoid6rw==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.18.0.tgz", + "integrity": "sha512-nAxoFSJoNF63gJY582J42sFFN0NMsk4jL4rtZKfTKb6URICoO/1rv6DqNc6hBSeiJoLDLZTO72QUzyty+iDfKw==", "dev": true, "dependencies": { - "dotenv": "^16.4.0", + "dotenv": "^16.4.1", "magicast": "^0.3.3", "syntax-error": "^1.4.0" }, @@ -703,9 +703,9 @@ } }, "node_modules/@athenna/ioc": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.16.0.tgz", - "integrity": "sha512-oq6PP26VMOmdyMqTbv/iaGrP1ACK7mVVsyAyTc+z8xrpLyAeQ++r53bAK7obZz+LIPDNNPd/cgmk6WH0zq6paA==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.18.0.tgz", + "integrity": "sha512-Ocz7Miaj5dvtnp66brol9Bf6vU97XaBfeXP+RfQtzSyyQs70nSIvCmIXK4oAya15OqHFpqJtR6JXikkQuOVIXw==", "dev": true, "dependencies": { "awilix": "^7.0.3" @@ -715,9 +715,9 @@ } }, "node_modules/@athenna/logger": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.17.0.tgz", - "integrity": "sha512-Xlaz56JVyyy4BrsaqGlHyR2WahDN7aW4r+WdkYDU40EluOFeisSBg/dR8PBZzIohMUFZEJHye+G+d7DoNEGNDg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.18.0.tgz", + "integrity": "sha512-mUGqj5Guh6ZdYflijGAdnn6Zrse2I7SG9fj5jMxSdrQ3hFMCGIgpWIk/ctXCGhPnsHlrVfAmEJeqnCxbtaytZQ==", "dev": true, "dependencies": { "@aws-lambda-powertools/logger": "^1.18.0", @@ -760,9 +760,9 @@ } }, "node_modules/@athenna/view": { - "version": "4.18.0", - "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.18.0.tgz", - "integrity": "sha512-PnBShkzzXeGtI2kfYOfN7JmE/Y+vpDRx7QDGyHhpH9vzyDG8tMABq34kkLjyiY2EgNtm25ZmYERQV8N3IFL/jQ==", + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.20.0.tgz", + "integrity": "sha512-eAoCPn53GM5zGU9lY0rTNnv8PTSmYNMauy1w9/8BE0OAuedN0a0qVt2W1E1m9IJDsYd29dmV/K63xL6fOR8Ydw==", "dev": true, "dependencies": { "edge.js": "^6.0.1" diff --git a/package.json b/package.json index 3f2fe45..c9b0da7 100644 --- a/package.json +++ b/package.json @@ -72,14 +72,14 @@ "#tests": "./tests/index.js" }, "devDependencies": { - "@athenna/artisan": "^4.37.0", - "@athenna/common": "^4.34.0", - "@athenna/config": "^4.16.0", - "@athenna/ioc": "^4.16.0", - "@athenna/logger": "^4.17.0", + "@athenna/artisan": "^4.38.0", + "@athenna/common": "^4.35.0", + "@athenna/config": "^4.18.0", + "@athenna/ioc": "^4.18.0", + "@athenna/logger": "^4.18.0", "@athenna/test": "^4.22.0", "@athenna/tsconfig": "^4.12.0", - "@athenna/view": "^4.18.0", + "@athenna/view": "^4.20.0", "@fastify/cors": "^8.4.2", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", diff --git a/src/commands/RouteListCommand.ts b/src/commands/RouteListCommand.ts index c4f9b7b..d2f70eb 100644 --- a/src/commands/RouteListCommand.ts +++ b/src/commands/RouteListCommand.ts @@ -9,8 +9,8 @@ import { sep } from 'node:path' import { Config } from '@athenna/config' -import { Module } from '@athenna/common' import { BaseCommand } from '@athenna/artisan' +import { Path, Module } from '@athenna/common' import { Route, HttpKernel, HttpRouteProvider, HttpServerProvider } from '#src' export class RouteListCommand extends BaseCommand { diff --git a/src/kernels/HttpKernel.ts b/src/kernels/HttpKernel.ts index c41abbb..5a19192 100644 --- a/src/kernels/HttpKernel.ts +++ b/src/kernels/HttpKernel.ts @@ -15,7 +15,7 @@ import { Log } from '@athenna/logger' import { Config } from '@athenna/config' import { sep, isAbsolute, resolve } from 'node:path' import { Annotation, type ServiceMeta } from '@athenna/ioc' -import { File, Exec, Module, String } from '@athenna/common' +import { File, Path, Exec, Module, String } from '@athenna/common' import { HttpExceptionHandler } from '#src/handlers/HttpExceptionHandler' const corsPlugin = await Module.safeImport('@fastify/cors') diff --git a/tests/fixtures/config/http.ts b/tests/fixtures/config/http.ts index 266067f..ce48b1e 100644 --- a/tests/fixtures/config/http.ts +++ b/tests/fixtures/config/http.ts @@ -7,6 +7,8 @@ * file that was distributed with this source code. */ +import { Path } from '@athenna/common' + export default { logger: { enabled: true diff --git a/tests/fixtures/consoles/base-console.ts b/tests/fixtures/consoles/base-console.ts index 362414d..ae23a05 100644 --- a/tests/fixtures/consoles/base-console.ts +++ b/tests/fixtures/consoles/base-console.ts @@ -8,6 +8,7 @@ */ import { sep } from 'node:path' +import { Path } from '@athenna/common' import { Config, Rc } from '@athenna/config' import { ViewProvider } from '@athenna/view' import { LoggerProvider } from '@athenna/logger' diff --git a/tests/fixtures/consoles/console-mock-dest-import.ts b/tests/fixtures/consoles/console-mock-dest-import.ts index 441f059..6794340 100644 --- a/tests/fixtures/consoles/console-mock-dest-import.ts +++ b/tests/fixtures/consoles/console-mock-dest-import.ts @@ -8,6 +8,7 @@ */ import { sep } from 'node:path' +import { Path } from '@athenna/common' import { Config, Rc } from '@athenna/config' import { ViewProvider } from '@athenna/view' import { LoggerProvider } from '@athenna/logger' diff --git a/tests/helpers/BaseCommandTest.ts b/tests/helpers/BaseCommandTest.ts index cbce590..e1fd449 100644 --- a/tests/helpers/BaseCommandTest.ts +++ b/tests/helpers/BaseCommandTest.ts @@ -7,9 +7,9 @@ * file that was distributed with this source code. */ -import { File, Folder } from '@athenna/common' -import { AfterEach, BeforeEach } from '@athenna/test' import { ArtisanProvider } from '@athenna/artisan' +import { Path, File, Folder } from '@athenna/common' +import { AfterEach, BeforeEach } from '@athenna/test' import { TestCommand } from '@athenna/artisan/testing/plugins' export class BaseCommandTest { diff --git a/tests/unit/commands/MakeControllerCommandTest.ts b/tests/unit/commands/MakeControllerCommandTest.ts index 6fde727..d45524f 100644 --- a/tests/unit/commands/MakeControllerCommandTest.ts +++ b/tests/unit/commands/MakeControllerCommandTest.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { File } from '@athenna/common' +import { Path, File } from '@athenna/common' import { Test, type Context } from '@athenna/test' import { BaseCommandTest } from '#tests/helpers/BaseCommandTest' diff --git a/tests/unit/commands/MakeInterceptorCommandTest.ts b/tests/unit/commands/MakeInterceptorCommandTest.ts index 9242096..72b91dd 100644 --- a/tests/unit/commands/MakeInterceptorCommandTest.ts +++ b/tests/unit/commands/MakeInterceptorCommandTest.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { File } from '@athenna/common' +import { Path, File } from '@athenna/common' import { Test, type Context } from '@athenna/test' import { BaseCommandTest } from '#tests/helpers/BaseCommandTest' diff --git a/tests/unit/commands/MakeMiddlewareCommandTest.ts b/tests/unit/commands/MakeMiddlewareCommandTest.ts index 619edb2..a963fca 100644 --- a/tests/unit/commands/MakeMiddlewareCommandTest.ts +++ b/tests/unit/commands/MakeMiddlewareCommandTest.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { File } from '@athenna/common' +import { Path, File } from '@athenna/common' import { Test, type Context } from '@athenna/test' import { BaseCommandTest } from '#tests/helpers/BaseCommandTest' diff --git a/tests/unit/commands/MakeTerminatorCommandTest.ts b/tests/unit/commands/MakeTerminatorCommandTest.ts index 1fd8bc0..ed7ccf0 100644 --- a/tests/unit/commands/MakeTerminatorCommandTest.ts +++ b/tests/unit/commands/MakeTerminatorCommandTest.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { File } from '@athenna/common' +import { Path, File } from '@athenna/common' import { Test, type Context } from '@athenna/test' import { BaseCommandTest } from '#tests/helpers/BaseCommandTest' diff --git a/tests/unit/context/ResponseTest.ts b/tests/unit/context/ResponseTest.ts index 8ddaa63..ec648fb 100644 --- a/tests/unit/context/ResponseTest.ts +++ b/tests/unit/context/ResponseTest.ts @@ -10,6 +10,7 @@ import fastifyStatic from '@fastify/static' import { fastify } from 'fastify' +import { Path } from '@athenna/common' import { Response } from '#src/context/Response' import { Test, type Context } from '@athenna/test' import { View, ViewProvider } from '@athenna/view' diff --git a/tests/unit/handlers/HttpExceptionHandlerTest.ts b/tests/unit/handlers/HttpExceptionHandlerTest.ts index 8363233..ee709b2 100644 --- a/tests/unit/handlers/HttpExceptionHandlerTest.ts +++ b/tests/unit/handlers/HttpExceptionHandlerTest.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { Exception } from '@athenna/common' +import { Path, Exception } from '@athenna/common' import { Log, LoggerProvider } from '@athenna/logger' import { HttpKernel, HttpServerProvider, Server } from '#src' import { Test, AfterEach, BeforeEach, type Context, Mock } from '@athenna/test' diff --git a/tests/unit/kernels/HttpKernelTest.ts b/tests/unit/kernels/HttpKernelTest.ts index c531ccc..4a8a651 100644 --- a/tests/unit/kernels/HttpKernelTest.ts +++ b/tests/unit/kernels/HttpKernelTest.ts @@ -8,7 +8,7 @@ */ import { Config } from '@athenna/config' -import { Module } from '@athenna/common' +import { Path, Module } from '@athenna/common' import { Log, LoggerProvider } from '@athenna/logger' import { HttpKernel, HttpServerProvider, HttpRouteProvider, Server, Route } from '#src' import { Test, Mock, AfterEach, BeforeEach, type Context, Cleanup } from '@athenna/test'