Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare @nestia/migrate's next update #1118

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Prepare @nestia/migrate's next update #1118

merged 1 commit into from
Nov 28, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Nov 28, 2024

This pull request includes several updates and improvements to the @nestia/migrate package, focusing on version upgrades, dependency additions, and code simplifications. The most important changes are listed below.

Version and Dependency Updates:

  • Updated the package version to 0.21.0-dev.20241127 and upgraded several dependencies, including @nestia/benchmark, @nestia/core, @nestia/fetcher, and added new dependencies such as @types/multer and multer. (packages/migrate/package.json [1] [2] [3] [4]

Code Simplifications:

  • Simplified the access pattern in MigrateApiFunctionProgrammer by directly passing string literals instead of using IdentifierFactory.access. (packages/migrate/src/programmers/MigrateApiFunctionProgrammer.ts [1] [2] [3]
  • Replaced LiteralFactory.generate with LiteralFactory.write in MigrateApiNamespaceProgrammer for better clarity and consistency. (packages/migrate/src/programmers/MigrateApiNamespaceProgrammer.ts [1] [2] [3] [4] [5] [6]
  • Updated StatementFactory.constant to use an object with name and value properties in MigrateApiSimulatationProgrammer and MigrateApiStartProgrammer. (packages/migrate/src/programmers/MigrateApiSimulatationProgrammer.ts [1] [2] [3] [4]; packages/migrate/src/programmers/MigrateApiStartProgrammer.ts [5] [6]

Function and Method Enhancements:

  • Enhanced MigrateNestMethodProgrammer to handle multipart form data by adding arguments to writeDtoParameter calls and improving the handling of SwaggerExample decorators. (packages/migrate/src/programmers/MigrateNestMethodProgrammer.ts [1] [2] [3] [4] [5] [6] [7]

These changes aim to improve the maintainability, readability, and functionality of the @nestia/migrate package.

@samchon samchon added the enhancement New feature or request label Nov 28, 2024
@samchon samchon self-assigned this Nov 28, 2024
@samchon samchon merged commit b0f279c into v4.0 Nov 28, 2024
3 of 5 checks passed
@samchon samchon deleted the feat/migrate branch November 28, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant