Deno
Thank you for your support in helping us reach 100,000 GitHub stars! ⭐️
Thank you for your support in helping us reach 100,000 GitHub stars! ⭐️
Building VSCode extensions with Deno (use the browser's translation function if needed): https://qiita.com/kt3k/items/f53bd1b58ed4ad368d77
#deno #vscode
Deno can now finally be installed through npm!
npm install -g deno
npx deno eval -p 1+2
Interested in contributing to Deno?
Check out Divy's talk on Deno internals and op2: https://www.youtube.com/watch?v=vINOqgn_ik8
Easily check for outdated dependencies with `deno outdated` 👇️
this wren wants to remind you that Deno permission flags have shorthands
I like that @deno_land tries to be an all-in solution. I like that about go as well. Good tooling, rich standard library. What is difficult, though, is that the js ecosystem is so fragmented. For instance, I’m trying to use drizzle ORM with SQLite. That’s far from straightforward. They don’t include examples for Deno. Translating commands to how Deno likes them is a hassle and I run into issues with migrations #development #javascript #deno
Update on #FreeJavaScript: Oracle has filed a notice of appearance, signaling engagement in the JavaScript trademark case. Aside from this, we’ve had no communication. Their response is due by January 4th.
https://deno.com/blog/deno-v-oracle/20241204-notice-of-appearance.pdf
Did you know you can host your Next.js app on Deno Deploy in just a few steps? Here's how👇️
Deno has the best foundation for the future. It's built on web standards like promises, fetch() or ES modules. This, combined with the fact that it's ecosystem is now more mature than ever and dependency management is actually fun, makes Deno the best choice for mission-critical applications.
@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post
It's done. Now it’s your turn, Oracle.
We’ve submitted a formal petition to cancel the JavaScript trademark: it is generic, Oracle has abandoned it, and Oracle committed fraud on the USPTO during the last trademark renewal.
Oracle has until January 4th to respond, or the case will go into default, which will result in the trademark being canceled.
It's time to #FreeJavaScript.
Deno 2.1 is out 🎉️
✈️️ first class Wasm support
🌳️ Long Term Support branch
⭐️ Improved dependency management
and much more!
#deno #node #javascript #nodejs #typescript #webdev #npm #wasm
@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post
Okay. While #Sentry SDK for #Node.js supports #OpenTelemetry integration, Sentry SDK for #Deno does not.
Does anyone have experience integrating Spans measured using the #OpenTelemetry API with #Sentry in #Node.js or #Deno?
According to the docs in the Sentry SDK, OpenTelemetry integration is out of the box and doesn't require any configuration, but Spans instrumented using the OpenTelemetry API are ignored. Spans made with the Sentry API are working fine.
https://docs.sentry.io/platforms/javascript/guides/node/opentelemetry/
Deno is a JavaScript package manager with more flexibility:
📦️ npm and JSR
🛠️️ package.json and deno.json
👟️ fast
はてなブログに投稿しました
TypeScriptのコードをそのままデプロイできてOpenAIのAPIもSQLiteもCronもメール送受信も使える高機能なPaaSの「Val Town」 - await wakeUp(); https://sublimer.hatenablog.com/entry/2024/11/04/090301
This extension is a fork of the official deno extension. Adds support for Deno LSP on notebooks. It also defines a new notebook type (*.nb.ts). This way you can use "import" between notebooks. Lastly, it also adds a notebook controller for vscode, so you can use deno's jupyter kernel in vscode without Python.
Developing an node.js compatible npm package in deno seems to be possible with the dnt tool. I have not tried it yet but, if it works, it is brilliant (it is so much smoother to develop with deno than with node+npm)
Hi everyone, I am now looking for full-time work! If you have a remote Software Engineer position available and work with #Frontend web tech (#HTML / #CSS / #JS / #TS / #React, etc), #NodeJS (or #Bun / #Deno ), #Kubernetes, or #Nix / #NixOS then please reach out! I love building tools to solve problems and delight users.
For examples of my previous work, links to my projects, and my resume, please see my website: https://jakehamilton.dev
Boosts very much appreciated!
I still think #Deno's initial vision was promising, so its current revised direction (compatibility with Node.js) feels reactionary.
So I am building an ecomm shop using Fresh JS and Deno.
It is a very different than Vue but seems way faster.
Thought it might be fun to make a small jsr package that actually has a bit of real-world utility. So here's `isit` as in `isit("Friday") ? "Hooray!" : "Boo!"` which I'll use in our morning work standup bot to send a different Teams meeting link depending on what day it is. Maybe it'll be useful to someone else too. It supports custom Dates and timezone offsets too. Enjoy! https://jsr.io/@phocks/isit
@[email protected] · Reply to Steffo's post
@[email protected] · Reply to Steffo's post
@[email protected] · Reply to Steffo's post
I wonder if it’s related to this…
Finally, #IntelliJ supports import_map.json. This support is implemented over the Deno LSP. By default, the IDE uses the import_map.json file from the project root. If you want to specify another file, you can do so in Preferences / Settings | Languages & Frameworks | Deno. Please note that changes in import_map currently require you to restart the Deno LSP service.
What is import_map.json
? Is it how the deno.json
"imports"
key was handled in past versions of #Deno?
#IntelliJ seems to have issues handling the imports
for the #Deno file deno.json
, and, while it resolves the dependencies correctly, it doesn’t provide any syntax highlighting for objects imported through the import aliases…
This doesn’t work…
import {RedisKvStore} from "@fedify/redis"
This does:
import {RedisKvStore} from "https://jsr.io/@fedify/redis/0.3.0/src/kv.ts"
Any ideas that could help fix or mitigate the problem?
Want to modernize legacy JavaScript?
One way is to convert CommonJS code to ESM 👇️
Just for fun I decided to try publishing a package on this new JSR "open-source package registry". Quick, simple, and fun. Love it! https://jsr.io/@phocks
Any #Deno program above a certain size will rely on --allow-all.
"By default, #Deno programs don’t have access to the filesystem, the network, etc. — you need to explicitly opt into those via permission flags. Deno’s permission flags extend to its dependencies. You no longer need to conduct audits on your dependencies — simply run your program and see what access your app and its dependencies require."
If you're interested in adding scripting capabilities to your #RustLang applications and missed my talk at @eurorust, you can find my slides and my well-commented @deno_land 🦕 demo code online. The recording will (afaik) be published next month.
Slides: https://dl.korz.dev/eurorust2024.pdf
Demo: https://github.com/niklaskorz/eurorust2024
It's great that #Deno 2.0 is available, but the mascot, Dino, is no longer cute.
4 years after Deno 1.0, the next generation of JavaScript is ready for production at scale.
Deno 2 is out today
🐢 Fully backwards compatible with Node and npm
📦 Package management and node_modules and package.json
📅 Long term support
#Deno 2 is out today: https://deno.com/blog/v2.0
I already released a version of #Dropserver that is compatible with Deno 2: https://github.com/teleclimber/Dropserver/releases/tag/v0.13.3
I also upgraded the Leftovers and Shopping List #Dropserver apps to support #Deno 2:
https://leftovers.olivierforget.net/
https://shoppinglist.olivierforget.net/
Apparently #Deno 2 is now available!
Deno 2 is not yet released, but we've made many️ updates to the release candidate 👇️
@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post
The 🦕️ is out of the bag...
If you've been avoiding #JavaScript & #TypeScript due to the complexity of the #Node.js ecosystem, give #Deno a try. Everything is simplified and you can start coding right away without having to set up a development environment.
Rusty V8 is now stable!
With zero-overhead bindings to V8 APIs, memory safety through Rust’s ownership model, and great docs, it’s battle-hardened and production-ready. From here on, Rusty V8 will follow Chrome versions for predictable upgrades.
Deno 2 Release Candidate has dropped:
‣ Add `process` global variable, remove `window`
‣ Improve dep management
‣ Permission system updates
‣ Many stabilizations
‣ Better CommonJS support
‣ Test documentation with `deno test --doc`
#Fedify started out exclusively for #Deno, but now also supports #Node.js and #Bun. However, the #logo we created in the early days still features the character from Deno. Should Fedify change its logo now?
Option | Voters |
---|---|
Yes, because it's misleading. | 5 (28%) |
A logo is a logo, no need to change it. | 13 (72%) |
Help us spread the word — it's time to #FreeJavaScript
@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post
@hongminhee I did try #deno some time ago, but feel like i made the mistake of skipping essential steps as I was impatient, expected it to be more similar #nodejs than it seemed and already had other new things in that project to learn so i dropped deno.
When you learned it did you only use the official docs or did you had other good material? Did you had bigger gotchas which would have been helpful to know beforehand?
But maybe i should just start small again making an hello world and the rest follows. 🤔
JSR and Deno: Final Review | Lobsters
https://lobste.rs/s/qrxgyj/jsr_deno_final_review
DenoやBunが好きな方いらっしゃいますか?
Curious about how the JSR logo and website design came together? 🤔️
Here's a 👀️ into our design process.
https://deno.com/blog/designing-jsr
#deno #node #javascript #typescript #webdevelopment #npm #jsr
Fedifyは、TypeScriptとJavaScriptで書かれたActivityPubサーバーフレームワークです。分散型のソーシャルネットワークを構築するためのサーバーアプリケーションを作る際の複雑さと冗長なコードを排除し、ビジネスロジックとユーザー体験の開発に集中できるようにすることを目指しています。
現在提供している主な機能は以下の通りです:
興味がある方は、Fedifyのウェブサイトをご覧ください!包括的なドキュメント、デモ、チュートリアル、サンプルコードなどが用意されています:
#Fedify #TypeScript #JavaScript #ActivityPub #NodeInfo #Node #Deno #Bun #fedidev
The first release candidate for #Deno 2 has just dropped. To upgrade use the following incantation:
deno upgrade rc
You can also use the --canary flag to do the upgrade.
#javascript
@deno_land
I'm a #softwaredev focusing on #javascript & #typescript specifically #deno. Right now, I'm working on a blog called Craig's Deno Diary. I also contribute to a few Deno projects and am taking a break from working in the corporate world.
I have over 20 years of experience in web development, first using Java and recently JavaScript/TypeScript. Before that I was a #journalist for 10 years.
I live in #Maine USA & try to enjoy the beautiful environment here as often as possible.
I've published an article titled "What every developer needs to know about the Deno third party module registry" on my blog Craig's Deno Diary.
The article highlights an API that pulls data from the registry as content for the Deno Third Party Modules page (deno.land/x). Of particular interest is the explanation how the API is used to rank modules based on a 'popularity score'. I also created an app that demonstrates a way to use the API.
#deno @deno_land
The latest post to my blog Craig's Deno Diary has been published: "A Comprehensive Guide to Deno KV"
Consider this article as a one-stop location for Deno KV info. The post includes sections on pagination, tracking record version history and sorting KV records.
Associated with the article is a repo containing 12 code examples demonstrating all the concepts and tech used in the blog post.
#deno #denokv
https://deno-blog.com/A_Comprehensive_Guide_to_Deno_KV.2023-06-30
I've published a new post to Craig's Deno Diary on fresh-testing-library. This library fills a large void in #Deno Fresh #testing by allowing unit testing of Fresh components, middleware and route handling. It is a library that every #denofresh dev should use.
The blog post is accompanied by over two dozen fresh-testing-library example test files. Check it out here: https://deno-blog.com/Testing_Fresh_Components,_Middleware_and_Handlers_with_fresh-testing-library.2023-10-15
@[email protected] · Reply to noim's post
The requirements are:
- needs to work offline in #docker
- user scripts can load additional dependencies, that also need to work offline the next launch
- user can access script dir and write scripts with vscode. Version of reactive-home needs to match the current docker image version
- should be available on #jsr
I have an idea of how I can achieve this, but it is annoying to refactor and test because, at the end of the day, it needs to work again since it powers my #SmartHome haha
#deno
I really want to refactor parts of my reactive home project. But before I do that, I need to refactor the release flow and the packaging. I tried this once a few months ago, but failed miserably and reverted all commits. It is a #deno project which loads user defined scripts. And everything needs to run inside #docker. Currently, I just use http imports for that, but the image should work offline. This should be easy, right?
@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post
One reason I like #Deno (@deno_land) more than #Bun.
I love #Deno (@deno_land) because it turned me from a #JavaScript hater into a JavaScript programmer, or more precisely, a #TypeScript programmer.
Version 0.5.0 of #LogTape, the zero-dependency #logging library for #Deno, #Node.js, #Bun, edge functions, and browsers, has been released! The main additions include:
• Contexts
• ANSI color formatter
• Comprehensive docs
• A few API conveniences
LogTape v0.5.0 is available from JSR and npm:
• JSR: https://jsr.io/@logtape/[email protected]
• npm: https://www.npmjs.com/package/@logtape/logtape/v/0.5.0
In addition, a new website with documentation has been launched, so please check it out!
@[email protected] · Reply to Pablo Berganza (he/him)'s post
It’s been years since I’ve used NodeJS and was curious about the current situation. Is Deno a thing? I see they backtracked a bit and now have an NPM compatibility layer (although I don’t mind that). And I think I like the direction with JSR.io.
Is Bun alright? I’ve seen some comments saying that it was not ready for v1 yet.
Is this going to be like an io.js situation and we will all go back to Node eventually?
Yes little Deno, look up!
Hosting on Deno Deploy just got more performant with beta Web Cache API support:
🚀 sub-millisecond read latency
🚅 multi Gbps write throughput
💾 unbounded storage
https://deno.com/blog/deploy-cache-api
#deno #node #javascript #typescript #webdevelopment #serverless
Deno 1.46 is not only the last 1.x release, but also one of the biggest:
- Simpler CLI
- Multi-threaded web servers
- HTML, CSS, YAML support in `deno fmt`
- Better Node/npm compat (support for playwright, google-cloud, etc.)
and much more 👇️
I just published a post to my Craig's Deno Diary blog on the Ultra v2 framework which allows full-stack React apps to run in a Deno environment.
Ultra supports many React libraries and features including Tailwind, React Router and React Query. Version 2 works with React 18 which includes suspense for async rendering.
The blog post focuses on creating, developing and deploying a full-stack Ultra app.
https://deno-blog.com/Building_Fullstack_React_Apps_with_Ultra.2022-12-04
The latest post to my blog Craig's Deno Diary has been published: "A Comprehensive Guide to Deno KV"
Consider this article as a one-stop location for Deno KV info. The post includes sections on pagination, tracking record version history and sorting KV records.
Associated with the article is a repo containing 12 code examples demonstrating all the concepts and tech used in the blog post.
#deno #denokv
https://deno-blog.com/A_Comprehensive_Guide_to_Deno_KV.2023-06-30
#LogTape is a logging library for #JavaScript and #TypeScript. It provides a simple and flexible logging system that is easy to use and easy to extend. The highlights of LogTape are:
• Zero dependencies
• Designed to be used in libraries as well as apps
• Supports virtually every runtime: #Node.js, #Deno, #Bun, edge functions, and browsers
• Structured logging
• Logger categories (names) are hierarchical
• Dead simple sink (destination) interface
I'm unsure whether to adopt an emerging JavaScript runtime like #Bun or #Deno for #Fedify's tutorial, or stick with traditional #Node.js. 🤔
If I choose Bun/Deno, it comes with built-in #TypeScript support, hot reloading, and a fetch-style HTTP server, so I don't have to explain much about it, but I need to deal with installing Bun/Deno itself.
On the other hand, Node.js can be assumed to be already installed on the reader's system, but they will need to set up TypeScript, hot reloading, etc.
Option | Voters |
---|---|
Bun | 0 (0%) |
Deno | 0 (0%) |
Node.js | 0 (0%) |
Deno is known for its HTTP imports, but we've found it's insufficient for larger projects. This post explains the situation and how we've improved it.
std/data-structures, common data structures including red-black trees and binary heaps, is now stabilized at v1 on JSR
#Deno and #Bun people are putting an incredible amount of work modernizing server side js.
The energy is reminding me of early day #Python - so many new tools made with proper care behind rather than most of NodeJS ecosystem which is just glued together with band-aids and staples :blobcatgrimacing:
That being said, after working with Deno for the past week it still feels a bit too bleeding edge though it does work with #jupyter!
🚀 Deno 1.45 is released!
‣ Workspace and monorepo support
‣ Node.js compat improvements
‣ Updates to deno install
‣ deno init --lib
‣ deno vendor deprecation
‣ Standard Library stabilization
‣ V8 12.7 and TypeScript 5.5
Release notes: https://deno.com/blog/v1.45
we improved our core web vitals drastically with one simple trick💡
not using client-side rendering
(we moved our docs from docusaurus to http://lume.land)
std/crypto, extensions and utilities to the Web Crypto API, is now stabilized at v1.0.0 on JSR
I was planning to play around with #fedify but got sidetracked into learning #deno #fresh #preact #tailwindcss ...
#LogTape is a logging library for #JavaScript and #TypeScript. It provides a simple and flexible logging system that is easy to use and easy to extend. The highlights of LogTape are:
• Zero dependencies
• Designed to be used in libraries as well as apps
• Supports virtually every runtime: #Node.js, #Deno, #Bun, edge functions, and browsers
• Structured logging
• Logger categories (names) are hierarchical
• Dead simple sink (destination) interface
💖 now can't sleep cause saw https://github.com/dahlia/fedify/
#fediverse #framework which is wonderful.
@hongminhee : we do also start to build anything #ActivityPub with #deno (incl. journalistic CMS client, public broadcaster thing, taxiteam client) and so, I work on a UI system with #fresh for all the `type`s …
PS Confs https://redaktor.me/#home
#Fedify is an #ActivityPub server framework in #TypeScript & #JavaScript. It aims to eliminate the complexity and redundant boilerplate code when building a federated server app, so that you can focus on your business logic and user experience.
The key features it provides currently are:
• Type-safe objects for Activity Vocabulary (including some vendor-specific extensions)
• #WebFinger client and server
• HTTP Signatures
• Middleware for handling webhooks
• #NodeInfo protocol
• #Node.js, #Deno, and #Bun support
• CLI toolchain for testing and debugging
If you're curious, take a look at the Fedify website! There's comprehensive docs, a demo, a tutorial, example code, and more:
Fedify is an #ActivityPub server framework in #TypeScript & #JavaScript. It aims to eliminate the complexity and redundant boilerplate code when building a federated server app, so that you can focus on your business logic and user experience.
The key features it provides currently are:
If you're curious, take a look at the #Fedify website! There's comprehensive docs, a demo, a tutorial, example code, and more:
When it comes to learning #TypeScript, one of my favorite tools is Deno's #Jupyter kernel (https://lnkd.in/g2GPc_gM). It makes writing quick examples easy and accessible. I'll need to eventually write up how this all works, but the combination of #Deno, Jupyter, #Tailscale, and Juno Connect (an iOS/iPadOS Jupyter client) have given me the ability to play around on the go.
From: @deno_land
https://fosstodon.org/@deno_land/112689533676963032
curious about TypeScript, but haven't had time to learn?
check out our new #Deno Bites series — short, digestible lessons to learn #TypeScript 👇️
When one of our customers reported that the #Deno language server was slow, we launched an investigation that resulted in a 10x speed improvement.
Here's what happened 👇️
Today I found a bug in #Deno's node:crypto compatibility layer…
Accessing the #deno V8 Inspector via #WSL 2 with Google Chrome running on Windows was a bit of a challenge.
In Linux:
```
deno run --inspect-brk=0.0.0.0:9229 --allow-net ...
```
In Windows, via Admin mode #PowerShell :
```
netsh interface portproxy add v4tov4 listenport=9229 listenaddress=0.0.0.0 connectport=9229 connectaddress=(wsl hostname -I)
```