charoitel / lambda-layer-canvas-nodejs

Cairo backed Mozilla Web Canvas API implementation layer for AWS Lambda
https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs
MIT License
87 stars 22 forks source link

Single Node Version for Each Release #25

Open harrychyharry opened 1 month ago

harrychyharry commented 1 month ago

I would like to thank you the work you have done to the community. Its a great layer that helps me and the community a lot! I was in the middle of upgrading my lambda to Node18 since I saw there is yet the support of Node20.

However, I encounter the issue of InvalidParameterValueException: Layers consume more than the available size of 262144000 bytes during my deployment. I found that the approach you were supporting Node16.x and Node18.x is doubling the package size. From 44.4 MB (canvas@2.10.1) to 79.7 MB in the latest release (canvas@2.11.2).

Would it be possible that each release is taking its own node version so that I can choose the respective Node version instead of dual support of the node version? Thank you!