Deno 1.36
deno.com
deno.com
But I’m one of those vanilla vim guys that keeps a minimal toolset - so what do I know.
Grateful this made it to the front page. If it weren’t for HN I’d remain totally oblivious to such things.
Do you use node.js? Deno is brought in part by the Node.js creator, Ryan Dahl, who wanted to fix/improve a lot of things he didn't like in node.js.
They also have "Deno Deploy" (with a free tier) to run your code on different servers scattered throughout the globe: https://deno.com/deploy
One of the reasons I love the `deno` executable is you can use `import` statements in your code and then tell `deno` to merge everything into a single .js file. I would then take that and publish it to Cloudflare Workers. I know you can do this with node.js and a bunch of tools, but it is so much simpler with `deno`.
Thank you!
More flexible security options for Deno programs Secure your programs at runtime with --deny-* flags, which enable you to configure deny lists for domains, file paths, and other resources to which access should be restricted.
Expanded options for testing and benchmarking New test result formatters, support for Node.js testing APIs, and more granular benchmarking.
Node.js compatibility improvements Run npm package scripts that aren’t configured as binaries, use all node:os APIs with our latest polyfill, call native code add-ons with process.dlopen, and more.
Quality of life improvements Small features and fixes like better error messages, language server improvements, and more forgiving WebSocket APIs."
I think there are two important directions of Deno to do better.
1. Support WebAssembly compilation 2. Compatible for NPM libs as much as possible
also, this creates more fragmentation in the node/web community which i don't really see the need for. being compatible with node/npm just carries with it the warts and problems instead of getting rid of them.
Just change the file extension and it just works™
When it’s a drip in replacement for nodejs I’ll be really interested.
But it's OK if you aren't interested. It's totally normal for only a subset of readers to be interested in any particular thing that hits the front page.
In Bun thread people mentioned going from Node is harder in Deno compared to Bun.
So while they're definitely competitors to an extent, the difference in approach should be taken into consideration when you're deciding which one to pick.
The bigger advantage is that you can still use the deno sandbox in most cases.
With TypeScript 5.0, though, it has become a lot easier to have a large monorepo full of TypeScript code that works with Node programs, Deno programs, and web apps / code that runs in the browser.
We still use Node a lot at work, but Deno is getting more use as it is generally a better experience. But that's not really a function of it getting "closer" to Node; for the things I care about, Deno is typically somewhat different to Node, but better.
(Haven't used Bun yet myself; it's still a bit too new for me, and not yet cross-platform.)
But the differences shouldn't be overstated, any js dev will feel home using deno rather quickly.
[1] https://dino.im/