Prepare @nestia/migrate
's next update
#1118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
0.21.0-dev.20241127
and upgraded several dependencies, including@nestia/benchmark
,@nestia/core
,@nestia/fetcher
, and added new dependencies such as@types/multer
andmulter
. (packages/migrate/package.json
[1] [2] [3] [4]Code Simplifications:
MigrateApiFunctionProgrammer
by directly passing string literals instead of usingIdentifierFactory.access
. (packages/migrate/src/programmers/MigrateApiFunctionProgrammer.ts
[1] [2] [3]LiteralFactory.generate
withLiteralFactory.write
inMigrateApiNamespaceProgrammer
for better clarity and consistency. (packages/migrate/src/programmers/MigrateApiNamespaceProgrammer.ts
[1] [2] [3] [4] [5] [6]StatementFactory.constant
to use an object withname
andvalue
properties inMigrateApiSimulatationProgrammer
andMigrateApiStartProgrammer
. (packages/migrate/src/programmers/MigrateApiSimulatationProgrammer.ts
[1] [2] [3] [4];packages/migrate/src/programmers/MigrateApiStartProgrammer.ts
[5] [6]Function and Method Enhancements:
MigrateNestMethodProgrammer
to handle multipart form data by adding arguments towriteDtoParameter
calls and improving the handling ofSwaggerExample
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.