Editor’s Note: This blog covers migrating your Alexa-hosted skills from Node.js 8.10 to Node.js 10.x. For migrating self-hosted skills from Node.js 8.10 to Node.js 10.x, please see our "Node.js 8.10 End of Life" blog.
You might have received an email from AWS about the end of life (EOL) for Node.js 8.10 at the end of 2019 or seen a notification on the developer console informing you about your skill’s migration to Node.js 10.x. As Node.js 8.10 reaches EOL starting December 31, 2019, there will no longer be any support for bug fixes, security updates, or performance improvements by the Node.js community. After February 6, 2020, AWS will no longer allow updating Node.js 8.10 Lambda functions. This means that although your code will continue to run past this date, you will not be able to add new features or fix bugs.
As Alexa-hosted skills uses AWS to provision backend resources for your skills, you likely need to migrate your hosted skill if it was created before the end of 2019. All hosted skills created in 2020 already use Node.js 10.x. Migration upgrades to existing Alexa-hosted skills running on Node.js 8.10 will begin occurring in early January. Once your skills is ready to be migrated, you will see a notification banner in your skill’s “Code” tab on the Developer Console and upgrading to Node.js 10.x occurs automatically the next time you deploy your skill code.
If you choose not to migrate, your skill will continue to run on Node.js 8.10. However, once you see the notification banner you will not be able to make changes to your skill’s code without re-deploying and upgrading to Node.js 10.x.
Most of the changes in Node.js 10.x are minor. With that said, you should take a look at the changes in this version of Node.js and make sure your code isn’t using any end of life APIs. You can see the full list of new deprecations and notable changes on the Node.js blog. Previously deprecated APIs reaching end of life are:
Notable new additions for skill developers:
Any end of life APIs must be changed when you change your runtime. After you remove references to end of life APIs, save and re-deploy your code. Test your skill (now running on Node.js 10.x) to ensure it is working the same way as before. Once you've completed those steps, you'll be all set!
If you’re using ASK CLI, you’ll need to take the following steps:
If you encounter any unexpected problems in your upgrade, please submit a support ticket or attend weekly office hours. Happy upgrading!