How do I find the latest Typescript target support for any version of node?

被刻印的时光 ゝ 提交于 2019-12-05 16:00:53

One method to accomplish this is to check out the site http://node.green. Find your version of node, and scroll down until the support for node features stops. So, for example, if you're using 10.3

Then you can see that

  • 10.3.0 and later supports all of ES2018.
  • 9.11.2 and latter supports all of ES2017.
  • 7.5.0 and later supports all of ES2016.

ES2016 support is a bit more complex thanks to Array.Prototype.values which node.green doesn't register as being supported until 10.15.0.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!