diff --git a/package-lock.json b/package-lock.json index 2a8d0ce..bb28f2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,22 @@ { "name": "@athenna/http", - "version": "4.41.0", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/http", - "version": "4.41.0", + "version": "5.0.0", "license": "MIT", "devDependencies": { - "@athenna/artisan": "^4.45.0", - "@athenna/common": "^4.46.0", - "@athenna/config": "^4.27.0", - "@athenna/ioc": "^4.27.0", - "@athenna/logger": "^4.29.0", - "@athenna/test": "^4.30.0", - "@athenna/tsconfig": "^4.19.0", - "@athenna/view": "^4.33.0", + "@athenna/artisan": "^5.0.0", + "@athenna/common": "^5.0.0", + "@athenna/config": "^5.0.0", + "@athenna/ioc": "^5.0.0", + "@athenna/logger": "^5.0.0", + "@athenna/test": "^5.0.0", + "@athenna/tsconfig": "^5.0.0", + "@athenna/view": "^5.0.0", "@fastify/cors": "^8.5.0", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", @@ -101,9 +101,9 @@ "license": "Apache-2.0" }, "node_modules/@athenna/artisan": { - "version": "4.45.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.45.0.tgz", - "integrity": "sha512-jHAE7NVL+Lf7xMuutBlntQQAuwrh0M0M4bx3eZZB3ftnAFGEQtJ4aZFPPc5uLQ9MY7q1GxKe7hR1XsYhHn6SXw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-5.0.0.tgz", + "integrity": "sha512-qR1viT6sr51cVuuXn9vPCxUDNFRJYiaFUhFEDxfvPQMGh+fLk/8bxJZdfOgr3gokmYSCo0X5p78VZ4nyay0HvQ==", "dev": true, "license": "MIT", "dependencies": { @@ -113,7 +113,7 @@ "columnify": "^1.6.0", "commander": "^9.5.0", "figlet": "^1.7.0", - "inquirer": "^9.2.22", + "inquirer": "^9.3.6", "log-update": "^5.0.1", "ora": "^6.3.1" }, @@ -221,9 +221,9 @@ } }, "node_modules/@athenna/common": { - "version": "4.46.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.46.0.tgz", - "integrity": "sha512-Cnx+Rx8OW5MRKaNcBwBvpSlF2uguycDvzUerYlKl6piHf7FOOiQ0it443uozVvaBNWBYuhAv4fYw1xM2HpyFEA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-5.0.0.tgz", + "integrity": "sha512-gUbwCJraEw06CNdNYV6Nb0jIq/OYpXbbTNdYZ1yj62y7+s/A4q3Y05P7BzTxhNhIraP6117O7Vi2UoYY45ilwQ==", "dev": true, "license": "MIT", "dependencies": { @@ -259,9 +259,9 @@ } }, "node_modules/@athenna/config": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.27.0.tgz", - "integrity": "sha512-Y9UkjvOrETW3Nr6bfPtKEoU2pka4BOCZ+0VkKgRyNkLauMJ5iqD8DDiDLNA9+6BzIZuU683Ozx2cmwgUGH5hAg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-5.0.0.tgz", + "integrity": "sha512-PZE8u7uzH+JKXQhNzALV0mtfPEzpXLWkR/77wPjqV5j1l3Giu1opw4Q+mB9NIVtsiy16FRt58z+BDyXH9ajw1g==", "dev": true, "license": "MIT", "dependencies": { @@ -274,9 +274,9 @@ } }, "node_modules/@athenna/ioc": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.27.0.tgz", - "integrity": "sha512-8rVYoUaBpDeaaHVJJmC+IZ/2nzWqHPSlfvt7/X7FLrxB00n0TlLkI/8rlJtuH6O8v5wRBphn8D0kgi/jkkx9qw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-5.0.0.tgz", + "integrity": "sha512-Czxc+1vyIpkx9fcTQQeKYCkNDjc5+ljKYC7UkNgFQJszQCfZjuUU+I+Y6goyWFvZZ0IdAGi67/bc9wlCP+c1Wg==", "dev": true, "license": "MIT", "dependencies": { @@ -287,9 +287,9 @@ } }, "node_modules/@athenna/logger": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.29.0.tgz", - "integrity": "sha512-k8VdDs8XDKH9v6AA59j4bEnWnw7ir5+pBFHEZlAqLorzaR23go1XC3CJmY9h1oZt6UNugxYlwzalX6cEGfis+g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-5.0.0.tgz", + "integrity": "sha512-blLKcIejErX0INAQa66QvhydVdF93GtqQkhz0JnuKjRhP5MAKgTqFst8vIrvGGmCiZ33MXUSn9yaPX+H3cEHxA==", "dev": true, "license": "MIT", "dependencies": { @@ -302,9 +302,9 @@ } }, "node_modules/@athenna/test": { - "version": "4.30.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.30.0.tgz", - "integrity": "sha512-PyvvDXUf3ZsHpBxhwqA5OBUv8JCTOFtAIxmBJZwYPJEMnf4RndlhkjdKfJ/1anE9yoazqm5iJ4G4IvAp4dZF3g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-5.0.0.tgz", + "integrity": "sha512-+mrFFc/EapTrz7T3Inobo/2NKGsF1IIquZTBElQubvchoTk7kJvZcPqYOLqqNn7Ha8zpQAthUo/GouUSmDEaZw==", "dev": true, "license": "MIT", "dependencies": { @@ -319,9 +319,9 @@ } }, "node_modules/@athenna/tsconfig": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/@athenna/tsconfig/-/tsconfig-4.19.0.tgz", - "integrity": "sha512-BpbbnXyMXDHS2DMCUDHWOjFYvzHOe3CJQM+OmQ7MFTS8UXIBaavDd0160aoLCrJLk5IPuCytO1VastQ+h2xRUg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/tsconfig/-/tsconfig-5.0.0.tgz", + "integrity": "sha512-GolYan7ILYA5/GDVriEAbz6E100epGh68Gy1ZbPven4VrfrBsf3Zqfl3qsjcqJvks5shEFko8N/xL4sGO2qMjA==", "dev": true, "license": "MIT", "dependencies": { @@ -335,9 +335,9 @@ } }, "node_modules/@athenna/view": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.33.0.tgz", - "integrity": "sha512-inlk39UQT0scyfRboM7thw07LLxG5n/I2I1wupBQZ7UVDBsWiO14riEM9GfNA4L0KCcL96rO9Ru0fjXqLHUIAA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/view/-/view-5.0.0.tgz", + "integrity": "sha512-B5e7+RKa5vN1K0ufMDn/o1Qz28m9Uw/dMTfkpp0Qm4P5chqCtbxm3+njKGdHcVTmR97qOv+5JlK1kYvbA5hNGQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 07a81a5..09aa20c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/http", - "version": "4.41.0", + "version": "5.0.0", "description": "The Athenna Http server. Built on top of fastify.", "license": "MIT", "author": "João Lenon ", @@ -73,14 +73,14 @@ "#tests": "./tests/index.js" }, "devDependencies": { - "@athenna/artisan": "^4.45.0", - "@athenna/common": "^4.46.0", - "@athenna/config": "^4.27.0", - "@athenna/ioc": "^4.27.0", - "@athenna/logger": "^4.29.0", - "@athenna/test": "^4.30.0", - "@athenna/tsconfig": "^4.19.0", - "@athenna/view": "^4.33.0", + "@athenna/artisan": "^5.0.0", + "@athenna/common": "^5.0.0", + "@athenna/config": "^5.0.0", + "@athenna/ioc": "^5.0.0", + "@athenna/logger": "^5.0.0", + "@athenna/test": "^5.0.0", + "@athenna/tsconfig": "^5.0.0", + "@athenna/view": "^5.0.0", "@fastify/cors": "^8.5.0", "@fastify/helmet": "^11.1.1", "@fastify/rate-limit": "^8.1.1", diff --git a/tests/helpers/BaseCommandTest.ts b/tests/helpers/BaseCommandTest.ts index e1fd449..3672d4f 100644 --- a/tests/helpers/BaseCommandTest.ts +++ b/tests/helpers/BaseCommandTest.ts @@ -24,7 +24,7 @@ export class BaseCommandTest { @AfterEach() public async afterEach() { - await Folder.safeRemove(Path.app()) + await Folder.safeRemove(Path.http()) await Folder.safeRemove(Path.fixtures('storage')) await new File(Path.pwd('package.json')).setContent(this.originalPackageJson) diff --git a/tests/unit/commands/MakeControllerCommandTest.ts b/tests/unit/commands/MakeControllerCommandTest.ts index d45524f..57a1322 100644 --- a/tests/unit/commands/MakeControllerCommandTest.ts +++ b/tests/unit/commands/MakeControllerCommandTest.ts @@ -19,12 +19,12 @@ export default class MakeControllerCommandTest extends BaseCommandTest { output.assertSucceeded() output.assertLogged('[ MAKING CONTROLLER ]') output.assertLogged('[ success ] Controller "TestController" successfully created.') - output.assertLogged('[ success ] Athenna RC updated: [ controllers += "#app/http/controllers/TestController" ]') + output.assertLogged('[ success ] Athenna RC updated: [ controllers += "#src/http/controllers/TestController" ]') const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson() assert.isTrue(await File.exists(Path.controllers('TestController.ts'))) - assert.containsSubset(athenna.controllers, ['#app/http/controllers/TestController']) + assert.containsSubset(athenna.controllers, ['#src/http/controllers/TestController']) } @Test() diff --git a/tests/unit/commands/MakeInterceptorCommandTest.ts b/tests/unit/commands/MakeInterceptorCommandTest.ts index 72b91dd..b1f4ec0 100644 --- a/tests/unit/commands/MakeInterceptorCommandTest.ts +++ b/tests/unit/commands/MakeInterceptorCommandTest.ts @@ -19,12 +19,12 @@ export default class MakeInterceptorCommandTest extends BaseCommandTest { output.assertSucceeded() output.assertLogged('[ MAKING INTERCEPTOR ]') output.assertLogged('[ success ] Interceptor "TestInterceptor" successfully created.') - output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/interceptors/TestInterceptor" ]') + output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/interceptors/TestInterceptor" ]') const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson() assert.isTrue(await File.exists(Path.interceptors('TestInterceptor.ts'))) - assert.containsSubset(athenna.middlewares, ['#app/http/interceptors/TestInterceptor']) + assert.containsSubset(athenna.middlewares, ['#src/http/interceptors/TestInterceptor']) } @Test() diff --git a/tests/unit/commands/MakeMiddlewareCommandTest.ts b/tests/unit/commands/MakeMiddlewareCommandTest.ts index a963fca..ced7d06 100644 --- a/tests/unit/commands/MakeMiddlewareCommandTest.ts +++ b/tests/unit/commands/MakeMiddlewareCommandTest.ts @@ -19,12 +19,12 @@ export default class MakeMiddlewareCommandTest extends BaseCommandTest { output.assertSucceeded() output.assertLogged('[ MAKING MIDDLEWARE ]') output.assertLogged('[ success ] Middleware "TestMiddleware" successfully created.') - output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/middlewares/TestMiddleware" ]') + output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/middlewares/TestMiddleware" ]') const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson() assert.isTrue(await File.exists(Path.middlewares('TestMiddleware.ts'))) - assert.containsSubset(athenna.middlewares, ['#app/http/middlewares/TestMiddleware']) + assert.containsSubset(athenna.middlewares, ['#src/http/middlewares/TestMiddleware']) } @Test() diff --git a/tests/unit/commands/MakeTerminatorCommandTest.ts b/tests/unit/commands/MakeTerminatorCommandTest.ts index ed7ccf0..a0c13c4 100644 --- a/tests/unit/commands/MakeTerminatorCommandTest.ts +++ b/tests/unit/commands/MakeTerminatorCommandTest.ts @@ -19,12 +19,12 @@ export default class MakeTerminatorCommandTest extends BaseCommandTest { output.assertSucceeded() output.assertLogged('[ MAKING TERMINATOR ]') output.assertLogged('[ success ] Terminator "TestTerminator" successfully created.') - output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/terminators/TestTerminator" ]') + output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/terminators/TestTerminator" ]') const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson() assert.isTrue(await File.exists(Path.terminators('TestTerminator.ts'))) - assert.containsSubset(athenna.middlewares, ['#app/http/terminators/TestTerminator']) + assert.containsSubset(athenna.middlewares, ['#src/http/terminators/TestTerminator']) } @Test()