#ESModules

2025-04-17

@teqfw/di: Coding JavaScript like a Java boss

Эта статья для тех, кто, как и я, хочет программировать на JavaScript в Java-стиле. Для тех, кто находит вдохновение в балансе между строгой архитектурной дисциплиной Java и творческой свободой JavaScript. Ранее я уже публиковал " философию " своей платформы TeqFW , а также инструкции для LLM ( раз , два ) по оформлению es-модулей в приложениях, написанных в стиле TeqFW . На этот раз я делюсь инструкцией для LLM по использованию внедрения зависимостей в таких приложениях. Для тех, кто не совсем понимает, что значит " программировать на JavaScript в Java-стиле ", приведу рабочий пример — это Node.js-утилита @flancer64/smtp-logger . Она сохраняет в базу данных все email'ы, которые Postfix отправляет наружу. Мне как раз понадобился такой функционал — и я реализовал его в стиле TeqFW : с явным управлением зависимостями и строгой модульной структурой. Под катом - пример JS-кода в Java-стиле.

habr.com/ru/articles/901678/

#teqfw #javascript #es6 #esmodules #dependency_injection #ioc

2025-03-12

My esteemed followers, you have posted a total of 375,809 statuses to the #fediverse. 22% of you have posted in the last 24h. You are a chatty bunch! ;-)

Check out my new #sideproject: *fedi-followers*. A privacy-friendly fediverse #followers explorer as #localonly #staticwebapp, decentrally hosted on the #ipfs. See who's actually following (and unfollowing) you over time and much more.

fedi--followers-data0-one.ipns

#decentralization #mastodev #esmodules #importmaps #nobuild #indexeddb #preact

2025-03-11

I've built a thing.

Sometimes my follower count seemingly fluctuates at random. To understand why, I dug into the #MastodonAPI and created "fedi-followers":

A privacy-friendly #fediverse #followers explorer as local-only static web app, decentrally hosted on the #ipfs. See who's actually following (and unfollowing) you over time and much more.

fedi--followers-data0-one.ipns

#mastodev #javascript #webapp #staticwebapp #nobuild #esmodules #importmaps #indexeddb #preact #htm

2024-12-24

Since I'm stubborn, I couldn't let it go. I spent more time on this yesterday evening and this morning, trying to build a very minimal project similar to mine and start the whole config from scratch: basic build, then tests, then more advanved build, then typescript.

And I got something to work. For now, my solution involves #esbuild, #typescript and #jest. With #esmodules 😍

2024-12-23

Another try, and I'm giving up once again 😭

I just can't upgrade my whole build setup to use #webpack + #typescript + #esmodules for both the app code and the test suite. Something always breaks. I lose *hours* reading github issues and stuff, trying stuff left and right, trying to switch to this or that, nothing works entirely, and it never breaks the same way.

That kind of nonsense will end up with me abandoning my side project 😩

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-11-09
2024-10-24

Node.js — Node v23.0.0 (Current)

Key Points:
➡️ Node.js 23 is now the 'Current' release, replacing Node.js 22.
➡️ Native ES module loading with require() is enabled by default but still experimental. Users can disable this feature with --no-experimental-require-module if needed.
➡️ Various installers and binaries for different platforms are available.

#NodeJs #JavaScript #WebDevelopment #ESModules

nodejs.org/en/blog/release/v23

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-08-13
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-07-05
a bunch of deps from a package.json that are all required for eslint version 9 to function.
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-07-05

I'd like to spend some more time with , , , , , , , and the .

I've been noodling for a long time about how you could build a game using , and to allow players to author their own components to extend the game.

I guess I'm just more interested in how the game works mechanically than how it looks.

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-06-26

Is it wrong if I'm kind of enjoying the drama about ?
Burn tc39 down! Make the web anew!
The only standard is death comes to everything!

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-06-25

> enough libraries use ES Modules that for many projects you need to either use ES Modules, or figure out how to interoperate ES Modules with your CommonJS code. At the same time, enough code still uses CommonJS that you often need to figure out how to include that legacy code in your otherwise-ES Module project.

borischerny.com/javascript,/ty

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-06-22

> Babel has stayed on CJS until now because that allows deferring loading modules until they’re needed for performance: While that’s possible with ESM, it has much worse ergonomics.

thenewstack.io/how-javascript-

Aubreader MastoAubreader@mas.to
2024-06-20

ES Modules: NPM and NodeJS should do more

borischerny.com/javascript,/ty

Coming back to JavaScript and TypeScript after a few years neck deep in Python and Hack, I kept hitting a number of new, cryptic errors when running NodeJS code in my dev environment.

#NodeJS #ESmodules

2024-05-14

Here’s a niche gotcha with the clipboard API’s `navigator.clipboard.writeText()` method that’s unique to Safari:

If you access a function from a module within your gesture handler (e.g., click handler), you will get a permission error.

The (sadly hacky and not as robust) workaround is to set a global variable from your module instead.

Full gist:

codeberg.org/aral/gists/src/br

#Safari #clipboardAPI #JavaScript #ESModules #web #dev #gist

🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸schizanon
2024-04-25

> Support for require()ing ESM graphs is now exposed by default in Node.js 22

openjsf.org/blog/nodejs-22-ava

Abbey Hawk Sparrowkhrome
2023-12-05

I've been working on a workflow for using a single sourcefile & test suite across node, and all browsers, buildless, while integrating types & commonjs compilation on commit. Check out an early draft of the first part of the series:

gist.github.com/khrome/8f2a52f

Keywan Tonekaboniktn@social.heise.de
2023-11-09

Eure liebste #GnomeShell #extension funktioniert seit #Gnome45 nicht mehr? Warum das so ist und eine Anleitung, wie ihr selbst Erweiterungen anpasst, damit die wieder laufen, findet ihr in der kommenden @ct_Magazin oder jetzt schon online:

heise.de/ratgeber/Linux-Erweit

#gnome #Erweiterungen #programmieren #javascript #GJS #ESModules #DesktopTools #LinuxDesktop

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst