Support Node LTS
See original GitHub issueRunning this example:
const { Deno } = require("deno.ns");
I get the following in Node v14.17.1:
> node test.js
node_modules\deno.ns\dist\deno\stable\classes\PermissionStatus.js:7
class PermissionStatus extends EventTarget {
^
ReferenceError: EventTarget is not defined
at Object.<anonymous> (node_modules\deno.ns\dist\deno\stable\classes\PermissionStatus.js:7:32)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (node_modules\deno.ns\dist\deno\stable\classes\Permissions.js:5:31)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
This is because EventTarget
was not a global until node v15 I think (works in 16). Current LTS version of node is v14. We should try to support at least Node LTS.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Node.js - endoflife.date
Release Released Active Support Se...
19 2 months and 1 week ago. (18 Oct 2022) Ends in 3 months. (01 Apr 2023) En...
18 (...
Read more >Node.js Release Working Group - GitHub
There are three phases that a Node.js release can be in: 'Current', 'Active Long Term Support (LTS)', and 'Maintenance'. Odd-numbered release lines are ......
Read more >Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. ... Download for Linux (x64). 18.12.1 LTS Recommended For Most Users.
Read more >Community support for Node 14 LTS is ending on 30 April 2023
On 30 April 2023, extended support for Node 14 LTS will end. After that date, your applications that are hosted on App Service...
Read more >Supported Node versions - Node-RED
Supported Node versions. Node-RED currently recommends Node 16.x LTS. Version, Support Level, Notes. < 10.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Node v14 goes into maintenance period today and Node v16 becomes LTS in a week https://nodejs.org/en/about/releases/
I think we should focus on v16
Alternatively, node 16 is active LTS from end of this month (October 26th). Since
deno.ns
might not be “stable” for a few weeks even by the most optimistic estimate, it might not be so bad to only support active LTS from then (node 16).