Closed david-loe closed 1 month ago
The pull request updates the Dockerfiles for both backend and frontend environments by changing the base image from node:20-alpine
to node:22-alpine
. This change applies to both development and production Dockerfiles. Additionally, the import syntax for JSON files in several TypeScript files has been modified from assert { type: 'json' }
to with { type: 'json' }
. The pull request also includes various modifications in controller files, primarily focusing on the removal of @Tags
decorators and updates to method signatures without altering core functionalities. Dependency versions in the package.json
files for both backend and frontend projects have been updated.
File | Change Summary |
---|---|
backend/Dockerfile.development | Updated base image from node:20-alpine to node:22-alpine . |
backend/Dockerfile.production | Updated base image from node:20-alpine to node:22-alpine . |
frontend/Dockerfile.development | Updated base image from node:20-alpine to node:22-alpine . |
frontend/Dockerfile.production | Updated base image from node:20-alpine to node:22-alpine . |
backend/app.ts | Changed import syntax for swaggerDocument from assert to with . |
backend/db.ts | Changed import syntax for JSON files from assert to with . |
common/locales/load.ts | Changed import syntax for locale JSON files from assert to with . |
backend/controller/authController.ts | Removed @Tags from AuthController , added to logoutController . |
backend/controller/countryController.ts | Removed @Tags from CountryController and CountryAdminController . |
backend/controller/currencyController.ts | Removed @Tags from CurrencyController , updated in CurrencyAdminController . |
backend/controller/documentFileController.ts | Removed @Tags from DocumentFileController , added @Security to DocumentFileAdminController . |
backend/controller/expenseReportController.ts | Removed @Tags from ExpenseReportController , updated in ExpenseReportExamineController . |
backend/controller/healthCareCostController.ts | Removed @Tags from all health care cost controllers, added new methods. |
backend/controller/healthInsuranceController.ts | Removed @Tags from both controllers. |
backend/controller/organisationController.ts | Removed @Tags from OrganisationController , updated in OrganisationAdminController . |
backend/controller/projectController.ts | Removed @Tags from both controllers. |
backend/controller/settingsController.ts | Removed @Tags from both controllers. |
backend/controller/travelController.ts | Removed @Tags from TravelController and TravelExamineController , updated methods in TravelApproveController . |
backend/controller/uploadController.ts | Removed @Tags from UploadController . |
backend/controller/userController.ts | Removed @Tags from UserController and UsersController , updated UserAdminController . |
backend/package.json | Updated various dependency versions and added prettier . |
backend/tests/api/_agent.ts | Updated type annotations for createUser and loginUser functions. |
backend/tests/api/admin.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/country.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/currency.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/expenseReport.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/healthCareCost.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/healthInsurance.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/settings.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/travel.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/user.ts | Added disconnectDB import and cleanup step after tests. |
backend/tests/api/users.ts | Added disconnectDB import and cleanup step after tests. |
In the garden where we play,
New images come out to stay.
From twenty to twenty-two,
Our Docker hops, fresh as dew!
With every build, a joyful cheer,
For smoother runs, we hold dear! πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
node:22-alpine
, improving performance and compatibility.Bug Fixes
Documentation
Chores
package.json
for both backend and frontend projects to improve stability and performance.