@leo-h/create-nodejs-app 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/package.json +14 -14
  2. package/templates/clean/package.json +12 -12
  3. package/templates/clean/pnpm-lock.yaml +222 -494
  4. package/templates/fastify/.env.example +1 -4
  5. package/templates/fastify/.lintstagedrc.json +2 -2
  6. package/templates/fastify/.prettierignore +0 -2
  7. package/templates/fastify/.swcrc +19 -0
  8. package/templates/fastify/gitignore +8 -111
  9. package/templates/fastify/package.json +28 -40
  10. package/templates/fastify/pnpm-lock.yaml +1704 -3725
  11. package/templates/fastify/src/core/create-controller-response-schema.ts +74 -0
  12. package/templates/fastify/src/core/schema.ts +17 -0
  13. package/templates/fastify/src/env.ts +49 -0
  14. package/templates/fastify/src/{infra/http → http}/app.ts +13 -19
  15. package/templates/fastify/src/http/controllers/hello.controller.spec.ts +74 -0
  16. package/templates/fastify/src/http/controllers/hello.controller.ts +48 -0
  17. package/templates/fastify/src/http/errors.ts +89 -0
  18. package/templates/fastify/src/http/plugins/error-handler.plugin.ts +29 -0
  19. package/templates/fastify/src/http/plugins/not-found-error-handler.plugin.ts +5 -0
  20. package/templates/fastify/src/http/plugins/routes.plugin.ts +53 -0
  21. package/templates/fastify/src/http/plugins/swagger-ui.plugin.ts +32 -0
  22. package/templates/fastify/src/infra/http-server.ts +16 -0
  23. package/templates/fastify/test/integration/create-test-request.ts +30 -0
  24. package/templates/fastify/vitest.config.integration.mts +3 -2
  25. package/templates/fastify/vitest.config.mts +13 -2
  26. package/templates/nest/package.json +19 -19
  27. package/templates/nest/pnpm-lock.yaml +369 -377
  28. package/templates/react-vite/package.json +20 -20
  29. package/templates/react-vite/pnpm-lock.yaml +458 -972
  30. package/templates/fastify/build.config.ts +0 -56
  31. package/templates/fastify/src/core/domain-error.ts +0 -17
  32. package/templates/fastify/src/infra/env.ts +0 -22
  33. package/templates/fastify/src/infra/http/@types/fastify.d.ts +0 -16
  34. package/templates/fastify/src/infra/http/controllers/hello/hello-multipart.controller.integration-spec.ts +0 -35
  35. package/templates/fastify/src/infra/http/controllers/hello/hello-multipart.controller.ts +0 -65
  36. package/templates/fastify/src/infra/http/controllers/hello/hello.controller.integration-spec.ts +0 -38
  37. package/templates/fastify/src/infra/http/controllers/hello/hello.controller.ts +0 -40
  38. package/templates/fastify/src/infra/http/errors/bad-request.error.ts +0 -11
  39. package/templates/fastify/src/infra/http/errors/internal-server.error.ts +0 -13
  40. package/templates/fastify/src/infra/http/errors/upload-validation.error.ts +0 -21
  41. package/templates/fastify/src/infra/http/errors/validation.error.ts +0 -13
  42. package/templates/fastify/src/infra/http/plugins/error-handler.plugin.ts +0 -31
  43. package/templates/fastify/src/infra/http/plugins/handle-swagger-multipart.plugin.ts +0 -96
  44. package/templates/fastify/src/infra/http/plugins/require-upload.plugin.ts +0 -197
  45. package/templates/fastify/src/infra/http/routes.ts +0 -8
  46. package/templates/fastify/src/infra/presenters/error.presenter.ts +0 -13
  47. package/templates/fastify/src/infra/server.ts +0 -12
  48. package/templates/fastify/test/integration/sample-upload.jpg +0 -0
  49. package/templates/fastify/test/integration/setup.ts +0 -10
  50. package/templates/fastify/src/{infra/http/@types/fastify-zod-type-provider.ts → @types/fastify.ts} +1 -1
@@ -19,7 +19,7 @@
19
19
  "build": "nest build"
20
20
  },
21
21
  "dependencies": {
22
- "@anatine/zod-openapi": "2.2.6",
22
+ "@anatine/zod-openapi": "2.2.7",
23
23
  "@fastify/static": "8.1.1",
24
24
  "@nestjs/common": "10.4.15",
25
25
  "@nestjs/core": "10.4.15",
@@ -30,32 +30,32 @@
30
30
  "fastify-multer": "2.0.3",
31
31
  "mime-types": "2.1.35",
32
32
  "pretty-bytes": "5.6.0",
33
- "rxjs": "7.8.1",
34
- "zod": "3.24.1"
33
+ "rxjs": "7.8.2",
34
+ "zod": "3.24.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@eslint/js": "9.17.0",
38
- "@faker-js/faker": "9.3.0",
37
+ "@eslint/js": "9.23.0",
38
+ "@faker-js/faker": "9.6.0",
39
39
  "@nestjs/cli": "10.4.9",
40
40
  "@nestjs/schematics": "10.2.3",
41
41
  "@nestjs/testing": "10.4.15",
42
- "@swc/cli": "0.5.2",
43
- "@swc/core": "1.10.1",
42
+ "@swc/cli": "0.6.0",
43
+ "@swc/core": "1.11.13",
44
44
  "@types/mime-types": "2.1.4",
45
- "@types/node": "22.10.2",
46
- "@types/supertest": "6.0.2",
47
- "@vitest/coverage-v8": "1.6.0",
48
- "@vitest/eslint-plugin": "1.1.18",
49
- "eslint": "9.17.0",
45
+ "@types/node": "22.13.14",
46
+ "@types/supertest": "6.0.3",
47
+ "@vitest/coverage-v8": "1.6.1",
48
+ "@vitest/eslint-plugin": "1.1.38",
49
+ "eslint": "9.23.0",
50
50
  "eslint-config-prettier": "9.1.0",
51
- "globals": "15.14.0",
51
+ "globals": "15.15.0",
52
52
  "husky": "9.1.7",
53
- "lint-staged": "15.2.11",
54
- "prettier": "3.4.2",
55
- "supertest": "7.0.0",
56
- "type-fest": "4.30.2",
57
- "typescript": "5.7.2",
58
- "typescript-eslint": "8.18.1",
53
+ "lint-staged": "15.5.0",
54
+ "prettier": "3.5.3",
55
+ "supertest": "7.1.0",
56
+ "type-fest": "4.38.0",
57
+ "typescript": "5.8.2",
58
+ "typescript-eslint": "8.28.0",
59
59
  "unplugin-swc": "1.5.1",
60
60
  "vitest": "1.6.1"
61
61
  }