Fix @nestia/migrate
bug and support @HumanRoute()
#1166
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 changes to the
packages/migrate
module and a version bump in thepackage.json
file. The most important changes involve modifications to theMigrateNestMethodProgrammer
andMigrateNestControllerProgrammer
to support additional parameters and decorators.Version update:
package.json
: Updated the version from4.5.0
to4.5.1
.Enhancements to
MigrateNestMethodProgrammer
:packages/migrate/src/programmers/MigrateNestMethodProgrammer.ts
: Addedcontroller
parameter to thewrite
function andwriteMethodDecorators
function to allow for more context when generating method declarations and decorators. [1] [2] [3]packages/migrate/src/programmers/MigrateNestMethodProgrammer.ts
: Added support for theHumanRoute
decorator when thex-samchon-human
property is set to true in the route operation.packages/migrate/src/programmers/MigrateNestMethodProgrammer.ts
: Modified the router decorator to use a local path derived from the controller path and route path.Enhancements to
MigrateNestControllerProgrammer
:packages/migrate/src/programmers/MigrateNestControllerProgrammer.ts
: Updated thecontroller.routes.map
call to include thecontroller
parameter when invokingMigrateNestMethodProgrammer.write
.New import:
packages/migrate/src/programmers/MigrateNestMethodProgrammer.ts
: Added import forIHttpMigrateController
from../structures/IHttpMigrateController
.