lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment
MIT License
5.83k stars 431 forks source link

Upgrade node12.x to v12.18.2 to support ES Modules without a flag #300

Closed alekseykulikov closed 4 years ago

alekseykulikov commented 4 years ago

AWS recently upgraded node12.x to v12.18.2. It means it supports ES Modules without a flag πŸŽ‰

ES Modules support starts since v12.17.x, and Lambci is v12.16.3, which matches the previous version of node12.x.

AWS Lambda version:

exports.handler = async (event) => {
    return process.version; // v12.18.2
};

Lambci version:

$ docker run --rm --entrypoint node lambci/lambda:nodejs12.x -v
v12.16.3
mhart commented 4 years ago

You're right, but this update is in the process of being rolled out – it hasn't rolled out to all regions yet (for example, it hasn't rolled out to ap-southeast-2 yet).

It should be finished in the next few days, but there's a chance it will be rolled back too, if issues are encountered in other regions.

I'll let you know when it's finalized and I've pushed up updated images

mhart commented 4 years ago

Took a while, but it finally rolled out to all regions this morning! I've since updated the images πŸ‘

alekseykulikov commented 4 years ago

thank you πŸ™