mapper icon indicating copy to clipboard operation
mapper copied to clipboard

Support NestJs v11

Open HaaLeo opened this issue 11 months ago • 6 comments

Is your feature request related to a problem? Please describe.

NestJs v11 was released a couple of days ago. We'd love to upgrade but currently automapper only supports nestjs ≥7, ≤10.

Describe the solution you'd like

Add support for NestJs v11

Describe alternatives you've considered

No response

Additional context

No response

HaaLeo avatar Jan 21 '25 13:01 HaaLeo

@nartc any chance to tackle this and review the linked PR to anytime soon? 🙏🏼

Maybe you could consider to add maintainers to the project for such basic patches?

HaaLeo avatar Jan 30 '25 19:01 HaaLeo

@nartc appreciate your support on this.

omarellakany avatar Feb 03 '25 20:02 omarellakany

@nartc Kindly review!

praju-aot avatar Feb 19 '25 15:02 praju-aot

@nartc can you take a look into this?

kasir-barati avatar Feb 20 '25 15:02 kasir-barati

In the meantime we explicitly override the dependency in the package.json like this:

{
   "dependencies": {
        // your dependencies ...
    },
    "overrides": {
        "@automapper/classes": {
            "reflect-metadata": "^0.2.2"
        },
        "@automapper/nestjs": {
            "@nestjs/common": "^11.0.0",
            "@nestjs/core": "^11.0.0"
        }
    }
}

Maybe that helps other folks, too.

HaaLeo avatar Mar 05 '25 16:03 HaaLeo

I have added support for nest 11 on my fork: https://github.com/brdar/mapper-js Also nodenext module resolution is now supported.

brdar avatar Oct 14 '25 11:10 brdar