Upgrade Node.js version (from v10 to v14/v16)
It would be great if you can upgrade the version of Node.js used in Realm Functions (currently in version 10.18.1). Version 10.x, which was an LTS, has been unmaintained for many years. The end of life of Node v12 is scheduled for April 2022.
Is it possible to upgrade Node to version 14 (at least)? Another feature would be to let us choose the Node.js runtime version directly from Realm UI or the CLI (it's possible for example with AWS Lambda).
Working with Node v10 is really difficult for us since most of the dependencies are not compatible with it.
More info about Node.js releases / roadmap here: https://nodejs.org/en/about/releases/
Oh no, this is now becoming a deal breaker for my company too. Since the MongoDB team doesn't seem to read this anyway: any good alternative vendors or workarounds anyone found?
Joshua Moonstar commented
I would love it if each App Services Function could individually choose which Node version to use.
Discovered that @mapbox/mapbox-sdk doesn't work... :-(
The latest major versions of both the Twilio and Stripe libraries no longer work in Atlas functions. This is critical now. In the not too distant future the previous major versions will be unsupported, which is an untenable situation to be in.
To quote an earlier poster: "Dear Mongodb team, could you give [us] a short feedback if this is on your roadmap?"
Otherwise, I will have to seriously reconsider how much I'm leveraging Atlas. I don't mean that in a sassy way, just literally I can't get my business in a situation where our other vendors won't support us, and Atlas is forcing that situation on me at this point.
One major issue now is that major packages, like jsonwebtoken, no longer support Node v10. This means downgrading to unsecure, unsupported packages or just not using Functions at all.
This is has started becoming more problematic lately and cost us time trying to utilize certain libraries that aren't supported. LTS is now 18.15. I'd like to see a move to at least v16 at this point.
Dear Mongodb team,
could you give as a short feedback if this is on your roadmap?
The issue is that we have to use old versions of sdks which will reach their end-of-support soon.
As an example, the aws-sdk is currently only usable in v2 which will be put in maintenance mode by aws this year (2023).
It will then still be usable but after that they will discontinue support which means that it is not garanteed to work anymore.
While this is still in the future, it would be reassuring to know that you have plans to upgrade the node version.
Thanks in advance for your answer.
I love App Services, but this is the kind of thing that when you find out about it you start to question the platform. Having a node version this out of date is simply unacceptable. Beyond appearances, I ran into issues with the date-fns-tz module because of node v10's limited support for Intl.
I found Atlas App Services super great platform and planning to launch my business there. However got very disappointed when faced with the fact I am stuck with Node v10 here. I need v16, now. Even firebase-admin does not run as dependency now.
Mongo team please react ASAP! This shouldn't take much effort to upgrade and you would make many developers happy and even more attracted to your platform.
6 months later, no improvements. In the meantime, Node 18 has just been released.
This is very important, we can't use simple things like `Promise.allSettled` `Intl` API as well as other juicy things as well. I am so tired of doing polyfill for things that already exist.
It is important. Node v10 is really hard to work with!
i'm using vercel api router to use modern JS third party via realm HTTP function call.
it is so tired.. :(