Node.js

deno_land,
@deno_land@fosstodon.org avatar

Have you seen by Examples?

They're now in our documentation to make them easier to find. There's a whole collection of annotated examples on how use Deno. Take them as-is or use them as a reference when you're developing.

https://docs.deno.com/examples

deno_land,
@deno_land@fosstodon.org avatar

If there's an example you'd like to see, drop us an issue, or if you have an example you'd like to contribute, we'd love to have it!

https://github.com/denoland/deno-docs?tab=readme-ov-file#examples

deno_land,
@deno_land@fosstodon.org avatar

🎂️

vintprox,
@vintprox@techhub.social avatar

Happy birthday, @deno_land!

deno_land,
@deno_land@fosstodon.org avatar

Working on a new JavaScript package 📦? Here are some best practices on creating excellent documentation 👇

https://deno.com/blog/document-javascript-package

#deno

teleclimber,
@teleclimber@social.tchncs.de avatar

Blog Post: I wrote about my struggles trying to open up outgoing net requests in a safe way for #Dropserver apps using #Deno's permissions. It didn't go well 😭

https://olivierforget.net/blog/2024/dropserver-net-requests/

tanepiper,
@tanepiper@tane.codes avatar

Here's me trying to make sure we ship as secure as possible software, and there's someone who doesn't know how to use an npm ignore file to not ship their shitty docker files in their modules

tanepiper,
@tanepiper@tane.codes avatar

So many projects have a lot of crap in node_modules that are really not needed when deploying apps - SO MANY DOT FILES. I built a script that will clear them all out recursively, just leaving required files. Will probably add *.ts when creating containers.

A screenshot showing that over 4300 files will be deleted and clean up 27Mb of files
A screenshot showing a list of files in node_modules including a lot of dot files

ollicle,
@ollicle@mastodon.social avatar

@tanepiper I would enjoy the irony if one configured this script with a dot file of its own.

.undot

deflockcom,
@deflockcom@mastodon.social avatar

Anyone have set up as on a ?

(Work on it actually to move all my services on a fedora coreos node)

ironicbadger,
@ironicbadger@techhub.social avatar

@deflockcom should be possible with user space networking. Lmk

arnelson,
@arnelson@fosstodon.org avatar

I've been thinking about restarting work on #Tapir. Development stopped because I hit a wall with the database system. Writing Tapir in #Deno was a long sequence of yak-shaving without much payoff; most of my dev time was spent implementing JSON-LD, Web Signatures, and a database layer that should have been a library if Deno had better Node compatibility at the time.

arnelson,
@arnelson@fosstodon.org avatar

It's been a while, and the Deno ecosystem has improved a lot. Drizzle looks promising as an ORM layer (better than my hacked-together one), and more Fediverse projects in Deno are popping up ( looks really cool!). But I'm rethinking Deno.

There were 3 things that drew me to Deno initially:

  • Ease of install (just run the app from a URL)
  • Cloud platforms (Deno Deploy w/ Deno KV)
  • JavaScript (I know the language, and it has a big ecosystem)

But all 3 didn't work out the way I planned.

thisismissem,
@thisismissem@hachyderm.io avatar

@arnelson have recently been using Drizzle and tbh, I don't know if I'd recommend it.

hongminhee,
@hongminhee@todon.eu avatar

#Fedify's tutorial, which previously assumed you were using #Deno, can now be followed using #Node.js and #Bun! (What is Fedify? It's an ActivityPub server framework.)

However, they are written for Fedify 0.8.0, which hasn't been released yet. You can test it with the pre-release version, 0.8.0-dev.164, though.

https://unstable.fedify.dev/tutorial

#fedidev #ActivityPub

deno_land,
@deno_land@fosstodon.org avatar

#Deno 1.43 is released!

🚀 Much faster language server
🐢 Key improvements in node:worker_threads and node:vm
💾 Snappy startups with V8 code caching
☁️ New "deno serve" subcommand
🚨 Updates regarding Deno 2

And more - details in the release notes
https://deno.com/blog/v1.43

cdoremus,
@cdoremus@hachyderm.io avatar
nebyoolae,
@nebyoolae@masto.neb.host avatar

OK, I should really change all my projects that use / to use . If you barely use Node then it's probably not worth it, but for a webdev it now seems like a no-brainer.

zurmikopa,
@zurmikopa@mastodon.gamedev.place avatar

@nebyoolae I'm just not all that familiar with pnpm and was wondering in which situations it was worthwhile to switch and why.

nebyoolae,
@nebyoolae@masto.neb.host avatar

@zurmikopa it seems like in any situation where you have multiple node_modules directories pnpm is a no-brainer, because it reuses existing modules instead of having duplicates.

jbzfn,
@jbzfn@mastodon.social avatar
hongminhee,
@hongminhee@todon.eu avatar

Did you know? #Deno supports styling in console.log(), just like browsers.

https://developer.mozilla.org/en-US/docs/Web/API/console#styling_console_output

muhdiekuh, German
@muhdiekuh@ruhr.social avatar

Considering that every year we have a new ambitious replacement for in the JavaScript world, @naderman and @seldaek apparently did a very good job when building and maintaining for . Thanks a lot to you two and everyone else involved.

linc,
@linc@phpc.social avatar

@muhdiekuh Agreed! I also like to believe the ecosystem aged out of the "prove how clever & right you are" phase. 😅 We're all out here like,
"amazing, thank you, now I can work faster" not "huh, bet I can do better, hold my beer".

deno_land,
@deno_land@fosstodon.org avatar

We recently launched JSR, a new open source package registry for all of JavaScript (and TypeScript!)

In this post, Luca Casonato dives into how we built JSR to be:
🏅 reliable (100% SLO)
😀 simple to use for publishers and consumers
📦 compatible with NPM

https://deno.com/blog/how-we-built-jsr

#deno #jsr

lullabot,
@lullabot@fosstodon.org avatar

Why would you use #DDEV instead of a #Node or #Python server directly?

There are significant advantages to using a containerized setup like DDEV. We go over them in this article, and include a step-by-step guide to set it up.

@andy_blum helps introduce DDEV to a new audience that may not know about how useful it can be!

https://www.lullabot.com/articles/nodejs-development-ddev

mandrasch,
@mandrasch@social.tchncs.de avatar

@lullabot @andy_blum

Is it cool if I add a link to your article to this Vite + DDEV guide?
https://ddev.com/blog/working-with-vite-in-ddev/

(There is also https://github.com/ddev/awesome-ddev where the article could be added)

andy_blum,
@andy_blum@drupal.community avatar

@mandrasch @lullabot I think that’s a great idea

sebobo,
@sebobo@neos.social avatar

Best addition to any package.json, composer.json or other dependency managers file would be a mandatory „why“ field for each single dependency which requires a minimum number of sensible words.

Could make devs think twice before adding and help (me) when upgrading projects after some time.

sebobo,
@sebobo@neos.social avatar

Also this is probably the reason I dislike JSON for configuration as I cannot add comments.
Browsing old git commits sometimes helps to find out reasons for dependencies but I also want to understand the same for the tree.

Every dependency in addition to the base framework you might use is a cost and it adds up.
So I would love to see the „cost“ of a dependency before even installing it. Several times I added one and removed it again after seeing what it came with.

alessandrolai,
@alessandrolai@phpc.social avatar

@sebobo i think that in PHP this is a lot easier, since you can rapidly find where that code is used due to autoloading definitions, and also because you have tools like Composer Unused to check for unused packages..

deno_land,
@deno_land@fosstodon.org avatar

Creating new projects in #Deno Deploy is now easier:
⭐️Automatic framework detection
⭐️Optional build step support
⭐️Transparent build and deploy step
⭐️Seamless CI/CD setup via GitHub Actions

https://deno.com/blog/simpler-project-creation-deploy

video/mp4

hongminhee,
@hongminhee@todon.eu avatar

A pre-released version of is now available on !

https://www.npmjs.com/package/@fedify/fedify/v/0.5.0-dev.90

clacke,

@mjgardner Your point is that everything is released all the time because anyone can check out a commit and get the product.

That's not how most software people use the term release.

@hongminhee

mjgardner,
@mjgardner@social.sdf.org avatar

@clacke @hongminhee Nope. My point was that the term was inaccurate, and we already have better ones in the context of software development and elsewhere. “Pre-release” typically implies availability to a limited audience.

And don’t lecture me about “most software people.” I’ve been doing this longer than either of you.

Thanks for playing.

teleclimber,
@teleclimber@social.tchncs.de avatar

Announcement post for 1.42 talks about Deno 2 as "long anticipated, many times delayed". No kidding!

Still I really appreciate the "DENO_FUTURE=1" env var that removes the deprecated APIs so you can test your code ahead of even a preview release. Nice touch @deno_land .

I just did some prep work for V2 in so I'll def give that a shot. I wonder if they also remove deprecated Typescript types? 🤔

https://fosstodon.org/

deno_land,
@deno_land@fosstodon.org avatar

📣 #Deno 1.42 is released!

  • JSR for dependency management
  • deno publish and deno add commands
  • Enhanced Node.js/npm compatibility
  • Significant LSP and performance upgrades
  • DENO_FUTURE=1 for forward-looking changes

https://deno.com/blog/v1.42

deno_land,
@deno_land@fosstodon.org avatar

Fresh 2.0 🍋will be much simpler and more composable with an Express-like API

#deno #denofresh

deno_land,
@deno_land@fosstodon.org avatar
nurkiewicz,
@nurkiewicz@fosstodon.org avatar

From https://blog.vlt.sh/blog/the-massive-hole-in-the-npm-ecosystem

  • a package's manifest is published independently from its tarball
    manifests are never fully validated against the tarball's contents
  • the ecosystem has broadly assumed the contents of the manifest & tarball are consistent
  • any tools or insights using the public registry are susceptible to exploitation/likely inaccurate
  • bad actors can hide malware & scripts in direct or transitive dependencies that go undetected

davidbisset,
@davidbisset@phpc.social avatar

RSS Cross Poster:

A script to post new items from an feed to various services including Micro.blog and .

https://echo.rknight.me/

hongminhee,
@hongminhee@todon.eu avatar

I made a fedi badge generator, which shows the number of your following/followers/posts. You can embed this on your project README.

Under the hood, it's powered by and , and deployed to Deploy.

https://github.com/dahlia/fedi-badge

  • All
  • Subscribed
  • Moderated
  • Favorites
  • node
  • InstantRegret
  • magazineikmin
  • khanakhh
  • Youngstown
  • mdbf
  • Durango
  • slotface
  • GTA5RPClips
  • ngwrru68w68
  • rosin
  • kavyap
  • osvaldo12
  • thenastyranch
  • DreamBathrooms
  • tester
  • anitta
  • Leos
  • normalnudes
  • cubers
  • ethstaker
  • tacticalgear
  • everett
  • megavids
  • provamag3
  • modclub
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines