#ESM
GNOME 45 Extensions: Problemsuche
Bei der Umsetzung des ESM-Standards scheint es noch zu hapern.
#GNOME_45 #Extensions #GNOME_Extensions #Esm #JavaSript_Modules #Linux
Configuring #TypeScript and #ESM / #CJS is, frankly, a nightmare. 👿 :javascript: :typescript:
Here's a thoughtful discussion over at #hackernews
https://news.ycombinator.com/item?id=38361053
and here's my opinionated boilerplate to skip the configuration, and dive right in to writing #TS
When will CVE message stop showing? #security #esm #ubuntupro
Whem will CVE message stop showing? #security #esm #ubuntupro
I think the first image is my favourite. It shows just how far away from the Moon Artemis 1 orbited (with Earth in the background there).
Artemis I anniversary backgrounds.
#ESA #Artemis1 #Moon #ESM
https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/Artemis_I_anniversary_backgrounds
How to fix this giltch on ESM for Ubuntu 22.04? #dualboot #2204 #esm #ubuntupro
I'm writing some #javascript #Express middleware that needs access to the body of #JSON requests. For testing purposes I was able to add `app.use(bodyParser.json());` to my server code, but as I get ready for a 1.0 release I want to eliminate this peer dependency.
I want to keep my project 100% #esm modules (long story), so importing `body-parser` inside the library is a no-go. Does anyone know of a library that would fix this for me?
European Service Module for Artemis II connected to Orion vehicle.
#ESA #ESM #ArtemisII #OrionModule
https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/Orion/European_Service_Module_for_Artemis_II_connected_to_Orion_vehicle
😅 La durée de support de GNU/#Linux #Ubuntu dépasse toutes les espérances ! #LTS #ESM #OpenSource #LogicielsLibres #FreeSoftware #Update #Upgrade #Geek #GeekJoke #Humour #Joke #Joke #Blague

Should you be interested in helping to make a great #gnome #extension fit for #gnome45, here's a link for you. 😊️ https://github.com/oae/gnome-shell-pano/issues/210 #clipboardmanager #opensource #gnome #gnomeshell #extension #javascript #esm

Bundling code running in AWS Lambda has really poor downsides.
First downside is a build step. Second debugging is harder.
Yes sometimes sourcemaps can work, with additional setup, but that's also obviously slower than not needing to. Aside the fact they do not always work.
Better: not needing to bundle. We've found we don't need to with http://arc.codes
1/2 #aws #lambda #serverless #esm
Learn to create libraries compatible with both ESM and CommonJS, as well as different runtimes like Node.js, Deno, and browsers.
#deno #bun #node #esm #commonjs #javascript
https://hexagon.56k.guru/posts/dual-mode-cross-runtime-packages/
A new post on how to create a React components library, although focusing on the aspects of publishing dual libraries (CJS+ESM) with types: https://blog.coderspirit.xyz/blog/2023/09/15/create-a-react-component-lib/
European Service Modules – made in Turin.
#ESA #ESM #Torino
#ArtemisInEurope
https://www.esa.int/ESA_Multimedia/Videos/2023/09/European_Service_Modules_made_in_Turin
[1/2]
I think I've found my #SPA #SSG #SSR holy grail:
- #Preact with no build step (#ESM only)
- HTM for JSX-like syntax
- preact-render-to-string for server-side rendering
- preact-router for all of the routing
- Preact's `hydrate` method
On the server (I use #koa, but #Fastify or #Express work too) routes can either serve
- pre-rendered static markup
- pre-rendered app routes that get hydrated on the client (switching to client-side rendering)
- fully client-side rendered apps
GJS (GNOME for JavaScript) 是为 GNOME 插件开发者等提供的,用于开发 GNOME 周边组件的 JavaScript 环境。
从 GNOME 45 起,GJS 将使用 ESM 替代原有的 GJS 自制模块系统。因此,GNOME 45+ 的插件和旧插件将不能兼容。开发者可以在 extensions.gnome.org 同时上传新旧版本的插件以供各版本的用户使用。
https://blogs.gnome.org/shell-dev/2023/09/02/extensions-in-gnome-45/
#GNOME #JavaScript #ESM
Telegram 原文
Latest preprint with @bentonlab@twitter.com studying insect OR evolution: we've found homologs across the entire tree of life! Insect receptors are just a majorly expanded branch of a 4 billion year old protein superfamily...
https://doi.org/10.1101/2023.08.30.555482
#phylogenetics #alphafold #esm #huggingface #LECA #LUCA #7TMIC #chemosensation #smell #taste #olfaction #insects #evolution #neuroscience
@jsparty @acemarke Great discussion about the difficulties with #ESM and I can definitely relate. Ultimately I think a lot of this just comes down to the fact that migrating ecosystems is just hard. I wish there were a clear cause or solution, but there just isn't. I also suspect the "article that explains how to do this right" is impossible because there _isn't_ a single approach which makes every tool happy.
Actually the package format standard and tooling you want actually does exist in the #Angular ecosystem. It's called #APF, Angular Package Format, and it can be generated with `ng-packagr`.
https://angular.io/guide/angular-package-format
https://github.com/ng-packagr/ng-packagr
It's by no means perfect and relies heavily on constraints we enforce on Angular itself (TS versions, browser support, language levels, etc.) But this is a very powerful tool for when we need to make major changes to the Angular ecosystem, such as going ESM-only, which we landed successfully in v13 several years ago.
🤘 New episode of JS Party!
@acemarke (web dev professor/historian, OSS Maintainer & engineer at Replay) joins us to talk about the shift from CommonJS to ESM ⏩
We discuss the history of module patterns in JS and the grueling effort to push the world’s biggest developer ecosystem forward 😣
Get ready to go to school kids, this one’s deep! 🏫
For those working with intensive longitudinal data, as collected via the experience sampling method (ESM) / ecological momentary assessment (EMA): I will be teaching my 'ESM Data Analysis' course again this year (December 6-8). For further info, see:
https://www.wvbauer.com/doku.php/course_esmda
where you will find a course description and schedule, some notes on the course prerequisites / how to prepare for the course, registration instructions, and some notes / frequently asked questions.
Interesting: #gnome 45 will break all #extensions. 🫣️ See https://www.youtube.com/watch?v=Bcta80iNuQA 😝️ and https://www.youtube.com/watch?v=qaZuQO0bK-M&t=21027s 🤓️ #gnomeshell #esm
Currently I only use #pano #clipboard manager.
Do you use a lot of extensions?
🌑🛰️🧑🚀 26 new pictures from NASA
- KSC Orion Media Day
- KSC Orion Media Day - Artemis II Crew
#Artemis #ArtemisII #ArtemisIII #ArtemisIV #CM #ESM #Europeanservicemodule #KSC #KennedySpaceCenter #Moon




“My experience modernizing packages to ESM” by @acemarke
https://blog.isquaredsoftware.com/2023/08/esm-modernization-lessons/
#JavaScript #ESM
Neue Episode: Auf Distanz 0078: Die Rückkehr zum Mond, Artemis und das ESM
Dieses Mal geht es um das Europäische Service Modul #ESM und seine Rolle im Artemis-Programm, das Menschen wieder zum Mond bringen soll.
Ich sprach mit Mitarbeiter:innen von #Airbus Defense and Space und von der #ESA über das ESM und seine Geschichte, über die Beteiligung an Artemis, Ergebnisse der Mission #Artemis1 und warum Menschen zurück zum Mond reisen.
https://aufdistanz.de/auf-distanz-0078-die-rueckkehr-zum-mond-artemis-und-das-esm/
In 2009, #CommonJS was exactly what #JavaScript needed. The group took a tough problem and forced through a solution that continues to be used millions of times a day.
But with #ESM as the standard and the focus shifting towards cloud primitives — the edge, browsers, and #serverless compute — and CommonJS simply doesn’t cut it. ESM is a better solution for developers, as they can write browser-compliant code — and for users who get a better end experience.
@deno_land
Mark Erikson, prime maintainer of Redux says in this interview: "trying to get proper ESM/CommonJS compatibility -- whatever that actually means -- I've been living in fear of that for multiple years"
#deno #esm #javascript #nodejs
I have a new favorite puzzle: #ESM module import and export configurations in libraries, with TypeScript support, of course.
🙄
I started to support some project that are only written in #cjs now with #esm
Thanks to https://github.com/egoist/tsup this is really easy 😍
And due to all my projects are written in #typescript, I don't even need to touch the code
It just works
Also check out https://publint.dev/ provided by @bluwy :ablobcatattention:
I released https://github.com/Shinigami92/vite-plugin-ts-nameof/releases/tag/2.0.0 and now support #esm aside from #cjs
But it only works up to #typescript v4.9 ⚠️
Luckily #vue3 has now much better #typescript support for #watch via #compositionapi, so you might not need it anyway anymore
Please open issues if you are running into issues
Italy says it can’t ratify EU bailout fund treaty without deal on new budget rules https://www.euractiv.com/section/economy-jobs/news/italy-says-it-cant-ratify-eu-bailout-fund-treaty-without-deal-on-new-budget-rules/?utm_source=dlvr.it&utm_medium=mastodon #ESM #EuropeanStabilityMechanismESM #sovereignbailouts
Les dejo un articulo que escribí - AWS Lambda - ESM Node.js
The trials and tribulations of converting legacy #javascript to #esm :
npm packages: Share of ESM vs. CommonJS?
https://github.com/wooorm/npm-esm-vs-cjs
#ES_Next_News #ECMAScript #JavaScript #ESM #CommonJS #npm
Ubuntu 18.04 General Support Ends, Enable ESM to Stay Protected
As anticipated, support for Ubuntu 18.04 LTS is now over — but don’t panic if you’re still using it, as this is not the end of the road. Ubuntu 18.04 ‘Bionic Beaver’ lives on through Expanded Security Maintenance1, or ESM. This provides users of the distro with a further five years (!) of core security updates from Canonical and Ubuntu developers. ESM isn’t automatic but it is easy to enrol. To benefit, you need to sign up for an Ubuntu Pro subscription — but don’t worry, this is free for regular users on up to 5 devices (more if you’re :sys_more_orange:
#News #BionicBeaver #Esm #Ubuntu18_04Lts #UbuntuPro
:sys_omgubuntu: https://www.omgubuntu.co.uk/2023/05/ubuntu-18-04-general-support-ends-enable-esm-to-stay-protected

I am creating a library using #typescript I would like to generate using the same codebase a valid #deno import, an #javascript #ESM module and #CommonJS module for maximum compatibility. Does anyone have a magic tsconfig configuration in the best case, or any idea about an easy solution to achieve this?
I feel like I'm going insane today. I just found a global variable in #NodeJS which is apparently _not_ a global? #Jest #ESM documentation states that the `jest` symbol is _not_ exposed globally and you have to import it, but sometimes it sort-of is?
```
console.log(typeof jest); // object
console.log(jest); // object
console.log(globalThis.jest); // undefined - WTF?!?!
```
Not only that, but `jest` is only defined in certain files and not others, even when one directly imports another.
This kind of behavior should be impossible and I'm completely perplexed. Is this something with `--experimental-vm-modules` or do I need to check myself into a mental hospital?
As much as I love #TypeScript, I always forget what a lift it is to get a new project up and running. Especially right now with TS5 and #ESM, and if you need to target both node and the browser.
(Especially especially if you have some ethics and don’t want to just copy your working setup from work over to a home project.)
“Just use a scaffold.” Right. So it’ll appear to work, but I won’t understand how, so I’m just delaying my frustration until later when I’m much more invested.
This is the Artemis 2 crew flying around the moon. Pictures from our live coverage of the Artemis 2 crew announcement.
Don't miss our live coverage and join our group on Signal. https://signal.group/#CjQKIHfqX73P2CirD_TRqWha9BJ8ew7RrysHe2Esd69vTLa4EhCTHx-BPgLhIk-xuq7P_dJV
#Artemis2Crew #Artemis #Artemis2 #WeAreGoing #Moon #ForwardToTheMoon #NASA #ESA #ESM #orion
I wrote about publishing NPM packages that support CommonJS, ESM and are written in Typescript. Oh boy!
https://evertpot.com/universal-commonjs-esm-typescript-packages/
Today, #nodejs package hell drove me crazy. #commonjs and #esm bundling with only #esbuild seems to be impossible today; at least I didn't manage to get a configuration that supports
- browser environment (when installled in an app, for example with #vitejs)
- node environment (for services in node docker containers)
- bin script support
Especiallly the generated CommonJS of esbuild seems to be strange and lead to a lot of incompatibilites.
🚨 WORKSHOP ALERT
What makes a good experience sampling item?
Anu Pauliina Hiekkaranta will hold a workshop focused on the qualitative evaluation of #ESM items.
Attendees will learn how to improve accuracy, comprehension, and practical application of ESM items!
Registration: https://ppw.kuleuven.be/ogp/smallisbeautifuloncemore2023/home
Anyone have a pure #esm #assertion library to recommend?
The other things I'm experimenting with @Suns be
Export templates, styles, behaviour, all without any framework, published on a controlled domain name, as an #ESM along with a #CustomElement and registration helper
If one project doesn't use customElement, but needs something from it, but in a framework, it's available. It gives liberty to use & extend. Best of both worlds.
That's what I'm aiming for: optimal re-use and to load only what's needed
The things that makes projects heavy and slow
I wrote something!
Building a simple CLI tool with modern Node.js
After a lot of work, I've finally landed a release of #Bazel #rules_prerender which is compatible with #aspect_rules_js! https://github.com/dgp1130/rules_prerender/releases/tag/releases%2F0.0.17
This has been a long time coming, and the issue shows how big a change this was (https://github.com/dgp1130/rules_prerender/issues/48). It didn't help that I kept getting distracted with other things and forgot everything I was doing. 😅
#aspect_rules_js does seem like a solid improvement and it sets up #rules_prerender for a lot of awesome improvements in the future (#ESM, #bzlmod, better bundling, etc.) Super excited about where we can take this next!
Shout out to @alexeagle and Greg Magolan (who I don't think is on Mastodon?) for their help, couldn't have done it without you!
Anyone delved with publishing #ESM modules over https like https://deno.land does [1] with version in the URL along with publishing for NPM?
Probably need different URL for Browser, Deno, and make sure the release/testing checks for platform compatibility.
I can imagine writing a release of a package into a publicly available folder with package name platform, and version. Pretty much like deb/rpm. Heh.
Anyone experimented w/ that?
1: https://deno.land/manual@v1.12.1/linking_to_external_code
Can we predict if atmospheric CO2 grows faster or slower than what is expected from emissions' growth?
Yes, by assimilating observational data into an #ESM, we gain a predictive skill of 5 years for the air–sea CO2 flux, and 2 years for the air–land CO2 flux and atmospheric carbon growth rate.
Find out more on how we predict the global carbon cycle and evaluate modeled atmospheric CO2 in our new study
https://mas.to/@HongmeiLi/109834343353355699
2/ If a CommonJS module follows this rule, its exports can be name-imported from ESM modules: https://2ality.com/2022/10/commonjs-named-exports.html
#JavaScript #CommonJS #ESM #NodeJS
1/ Happy to see that ESM modules have become popular in current code bases (*):
– Mostly ESM: 68%
– Mostly CommonJS: 17%
– A mix: 12%
– (No answer: 3%)
In my own (relatively simple) ESM-based Node.js projects I was delighted that I usually couldn’t even tell if a dependency was ESM or CommonJS.
(*) https://fosstodon.org/@rauschma/109824102084164590
#JavaScript #CommonJS #ESM #NodeJS
Anyone know something about ESM, CommonJS, Typescript and how they interact?
Stuck on a problem, posted on Stack overflow:
https://stackoverflow.com/questions/75354770/isomorphic-dirname-in-esm-and-commonjs
SDK developers, how are you handling ESM + CJS? We're starting to see dependencies switch to ESM only, but because we support #CJS, we're unable to upgrade as #ESM can't be imported by CJS
Is the answer just to drop our transpiling to CJS/UMD and go ESM only? That feels like it should be the answer & would technically be a semver-major change.
Is there a better solution?
esm.run by jsDelivr - A New-Age CDN for JavaScript modules https://www.jsdelivr.com/esm #javascript #esm
Are we really still using `form-data` to POST FormData using fetch() in #Nodejs in 2023?
https://www.npmjs.com/package/form-data
Please tell me there's an #ESM package I can use. I don't want to get requires() on my *.mjs files 🤢
What do y'all think about a #C2 detection series including #SecurityOnion and #Velociraptor, illustrating the compliments and differences of host and network-based detection and response?
#BruteRatel
#CobaltStrike
#DFIR
#ESM
#Havoc
#Infosec
#NSM
#Sliver
#Sysmon
It's been 7 1/2 years since ES Modules were standardized and I still see new JS code and tutorials using require(). Why?!?
#javascript
#esm
#nodejs
#node
#deno
I've released version 0.2.6 of `@storybook/builder-vite`, which includes a fix to pin the react-docgen version, which has started to publish ESM only.
Use this version only if you're still using Storybook 6.5, rather than the 7.0 beta.
The lunar flyby later today will slow down #Orion to a near standstill. After that, the spacecraft will fall back to #Earth in an almost straight line. Looking forward to some nice photos!
Animation credit: Wikimedia Commons User:Phoenix7777
Source: https://commons.wikimedia.org/wiki/File:Animation_of_Artemis_I_around_Earth.gif
#Moon #Artemis #Artemis1 #ArtemisI #ESM #OrionESM #NASA #ESA
Tips for typing import statements in JavaScript
https://2ality.com/2017/08/typing-import-statements.html
#EsNextNews #EcmaScript #JavaScript #ESM
Updated today: “Tips for typing import statements in JavaScript”
Question tackled by this blog post: “Does JavaScript’s `import` statement have the wrong syntax?”
https://2ality.com/2017/08/typing-import-statements.html
#2ality #JavaScript #ESM
import ECMAScript on-the-fly using jspm.dev https://twitter.com/jspm/status/1597354262329425923?t=-AYL_OtXbxTsSSfU7bLhmQ&s=19
Many node:fs functions accept URLs (as an alternative to paths): https://exploringjs.com/nodejs-shell-scripting/ch_nodejs-path.html#using-file-urls-to-refer-to-files
Use case—accessing files located next to the current ESM module:
function readData() {
const url = new URL('data.txt', import.meta.url);
return fs.readFileSync(url, {encoding: 'UTF-8'});
}
https://exploringjs.com/nodejs-shell-scripting/ch_nodejs-path.html#accessing-sibling-files #nodejs #javascript #esm
Belated #introduction. Expat #kiwi living in Europe, albeit a bit with an identity crisis. Will toot about the #uk, sorry!
Into #climate, #ClimateScience & #ClimateModelling (particularly #ESM and #hydrology) using #CloudComputing & #HPC.
Also #DataScience, #DigitalCuration #metadata & the philosophy & practice of #simulation in all sci.
History: I brought the internet to the south island of NZ & invented and ran #jasmin for 10y (https://jasmin.ac.uk) Helped procure #Archer & #Archer2.