Advertisement · 728 × 90

Posts by Ayc0

If everyone would do it, then problem solved!
Joke aside, Idk if there is something we can do. Other tools fully built their deps within their deployed package to avoid this. But for CLIs you can't do it I think :/

4 days ago 2 0 0 0
Le coefficient de Gini, qui mesure les inégalités de revenus, progresse en France tandis qu'il baisse au sein de l'UE.

Le coefficient de Gini, qui mesure les inégalités de revenus, progresse en France tandis qu'il baisse au sein de l'UE.

Voilà qui devrait faire la Une des médias : en 10 ans de hollandisme-macronisme, la France est devenue plus inégalitaire que la moyenne de l'UE

Le coefficient de Gini, qui mesure les inégalités de revenus, progresse en France tandis qu'il baisse au sein de l'UE.

4 days ago 478 339 20 24

To me, that's the only way to:
- solve security issues
- avoid breaking changes as not all packages respect semver (which is more a suggestion than a rule)

4 days ago 0 0 1 0

Always use pinned dependencies

4 days ago 0 0 1 0

Update: reduced @rspack/dev-server deps from 193 → 8, install size from 14.9 MB → 4.1 MB.

npm supply chain attacks keep happening and keeping deps minimal makes me feel safer.

4 days ago 68 7 4 0

To me it is related: `void` in JS to me means "discard anything that this FN returns as I won't be needing it". And in TS, to me it means `don’t use the returned value`. So quite similar

5 days ago 0 0 1 0

@npmx.dev also has a builtin diff viewer that even includes a dependency change summary:

npmx.dev/diff/axios/v...

6 days ago 17 3 0 0

I don't think I understand
Void is not undefined

Void = "don't use me, I could be anything" but no "is undefined"

If it were, we could do something like `fn() === undefined` or similar. But you can't trust void so this should (I didn't test it but I my mind should) throw an error

6 days ago 0 0 0 0

And `never` and `unknown` also don't exist in JS
But `void` does in `void <something>` (and it already means "discard the return value, I won't use it")

6 days ago 0 0 1 0

But if `never` means error and `unknown` means "I don't know what it is, try parsing it yourself" there is no equivalent of `void` aka "don't use it"

6 days ago 1 0 2 0
Advertisement

I think I'd more match `never` as `void` is supposed to say "don't use it"

6 days ago 0 0 1 0

Why so?
I love it personally

6 days ago 2 0 1 0
Preview
Supply Chain Attack on Axios Pulls Malicious Dependency from... A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHu...

🚨 Active supply chain attack on axios@1.14.1. The latest version pulls in plain-crypto-js@4.2.1 -- a brand-new package that didn't exist before today.

We're still investigating. If you use axios, pin your version and audit your lockfile. socket.dev/blog/axios-n...

6 days ago 99 69 3 15

The React Compiler rust port is now up as an in-progress PR at github.com/facebook/rea... - more to come as we test and polish.

6 days ago 92 11 4 2
Post image

If you use GitHub (especially if you pay for it!!) consider doing this *immediately*

Settings -> Privacy -> Disallow GitHub to train their models on your code.

GitHub opted *everyone* into training. No matter if you pay for the service (like I do). WTH

github.com/settings/cop...

1 week ago 2062 1509 93 136
Preview
Astro 6.1 | Astro Astro 6.1 introduces codec-specific Sharp image defaults, advanced SmartyPants configuration, and i18n fallback routes for integrations.

Astro 6.1 is now available!

More control over image optimization, more markdown configuration options, and updated hooks for working with i18n.

astro.build/blog/astro-6...

1 week ago 55 8 0 1
Post image

👀 React / JS / TS trick

Use symbols instead of null/undefined to represent missing values

This React provider example:
- makes it possible to provide "null"
- still checks that the user didn't forget the <Provider>

There are cases where "null" is a perfectly valid ctx value

1 week ago 57 2 6 0
Advertisement
Datadog Docs

We've been following this pattern at @datadoghq.com in DRUIDS with our colors: druids.datadoghq.com/foundations/...

It helps us for so many migrations!

1 week ago 1 0 0 1
Preview
Announcing TypeScript 6.0 - TypeScript TypeScript 6.0 is now available! TypeScript 6 is a stepping-stone release, aligning with the upcoming native-speed 7.0 release.

TypeScript 6.0 is now available!

This release brings better type-checking for methods, new standard library features, new module features for Node.js, and more!

But most important, this release brings us one step closer to the upcoming native-speed 7.0!

devblogs.microsoft.com/typescript/a...

2 weeks ago 315 87 7 12
Preview
Test IDs are an a11y smell Users don't use data-testid, so why do your tests?

📚 Continuing my series about design-systems, today I wrote about why I believe data-testid is a bad practice and and how role-based selectors actually help ensure your app is accessible.

2 weeks ago 83 16 11 1
Preview
Why Node.js Needs a Virtual File System Node.js now has a virtual filesystem. Learn why VFS matters for testing, sandboxing, Single Executable Apps, and running generated code directly in me

We're announcing two things:

node:vfs, a Virtual File System landing in Node.js core (PR #61478, ~14,000 lines across 66 files)

@platformatic/vfs, a userland package you can use today on Node.js 22+

blog.platformatic.dev/why-nodejs-n...

3 weeks ago 57 15 1 3

We’re pretty close to having an initial Rust port of React Compiler. My approach was to iterate on the plan document (write it manually, have the agent expand, edit, repeat). Then try to run it, see what goes wrong, revert back to the plan, tweak the plan, repeat.

3 weeks ago 98 12 4 7
Lightning CSS is now used for CSS minification by default. You can use the build.cssMinify: 'esbuild' option to switch back to esbuild. Note that you need to install esbuild as a devDependency.

Lightning CSS is now used for CSS minification by default. You can use the build.cssMinify: 'esbuild' option to switch back to esbuild. Note that you need to install esbuild as a devDependency.

Looks like Vite 8 is using Lightning CSS as the default CSS minifier! Most next-generation build tools are now using it, including Turbopack, Rspack, Tailwind, Parcel, Bun (a port), and now Vite. ⚡️

3 weeks ago 133 4 2 0
Preview
Vite 8.0 is out! Vite 8 Release Announcement

⚡️ Vite 8.0 is here!
The most significant architectural change since Vite 2.

⏬ Powered by @rolldown.rs bringing faster production builds and more consistency
🛤️ New features such as tsconfig paths and emitDecoratorMetadata support

vite.dev/blog/announc...

3 weeks ago 396 93 7 12
Code example showing the usage of Temporal.ZoneddateTime

```js
// London DST starts: 2026-03-29 01:00 -> 02:00
const zdt = Temporal.ZonedDateTime.from(
  "2026-03-29T00:30:00+00:00[Europe/London]",
);

console.log(zdt.toString());
// → "2026-03-29T00:30:00+00:00[Europe/London]"

const plus1h = zdt.add({ hours: 1 });

console.log(plus1h.toString());
// "2026-03-29T02:30:00+01:00[Europe/London]" (01:30 doesn't exist)
```

Code example showing the usage of Temporal.ZoneddateTime ```js // London DST starts: 2026-03-29 01:00 -> 02:00 const zdt = Temporal.ZonedDateTime.from( "2026-03-29T00:30:00+00:00[Europe/London]", ); console.log(zdt.toString()); // → "2026-03-29T00:30:00+00:00[Europe/London]" const plus1h = zdt.add({ hours: 1 }); console.log(plus1h.toString()); // "2026-03-29T02:30:00+01:00[Europe/London]" (01:30 doesn't exist) ```

Temporal is now Stage 4 at TC39 🎂🎂🎂

Thanks to all the other champions of JavaScript's new date-time API. It has been a wild ride over many years!

I wrote a blog post explaining how we got here 📜

bloomberg.github.io/js-blog/post...

3 weeks ago 345 82 20 16
Advertisement
A JSON file representing a source map. The code contains:

{
  "version": 3, // Always the integer 3
  "file": "out.js", // Optional: name of the generated file
  "sourceRoot": "", // Optional: prefix prepended to each entry in "sources"
  "sources": ["foo.js", "bar.js"], // Required: list of original source URLs/paths (or null)
  "sourcesContent": [null, null], // Optional: inlined source text, aligned with "sources"
  "names": ["src", "maps"], // Optional: symbol names referenced by "mappings"
  "mappings": "A,AAAB;;ABCDE", // Required: encoded mapping data (base64-VLQ deltas)
  "ignoreList": [0] // Optional: indexes into "sources" considered "third-party"
}

A JSON file representing a source map. The code contains: { "version": 3, // Always the integer 3 "file": "out.js", // Optional: name of the generated file "sourceRoot": "", // Optional: prefix prepended to each entry in "sources" "sources": ["foo.js", "bar.js"], // Required: list of original source URLs/paths (or null) "sourcesContent": [null, null], // Optional: inlined source text, aligned with "sources" "names": ["src", "maps"], // Optional: symbol names referenced by "mappings" "mappings": "A,AAAB;;ABCDE", // Required: encoded mapping data (base64-VLQ deltas) "ignoreList": [0] // Optional: indexes into "sources" considered "third-party" }

Source maps are a vital part of modern web development, but the lack of a standard made it impossible for us to add new features or improve the debugging experience.

This is the story of how we standardized source maps and how we continue to ship features through standards 📜

🧵

3 weeks ago 81 17 5 4
Preview
Astro 6.0 | Astro Astro 6 is here with a refactored dev server, an experimental Rust compiler, live content collections, CSP, and more.

Astro 6 is here! We completely rebuilt the Astro dev server and build pipeline onto a new, more powerful runtime-agnostic architecture.

Plus: New Fonts API, CSP support, an experimental new Rust compiler, and more...

astro.build/blog/astro-6...

3 weeks ago 245 52 6 23
Preview
Announcing TypeScript 6.0 RC - TypeScript Today we are excited to announce the Release Candidate (RC) of TypeScript 6.0! To get started using the RC, you can get it through npm with the following command: npm install -D typescript@rc TypeScri...

The Release Candidate for TypeScript 6.0 is now available!

Read up on what's coming up with 6.0 & 7.0, and try it out on your codebase today!

devblogs.microsoft.com/typescript/a...

1 month ago 143 23 2 7
Preview
Release v2.0.0 Beta - The <Suspense> is Over · solidjs/solid I know you all probably weren't expecting this announcement next. But after reviewing the roadmap, we spent so long iterating in the Experimental phase, most of the goalposts within Alpha don't app...

The <Suspense> is over.

Solid 2.0 Beta is now released (next tag on npm). 🎉

github.com/solidjs/soli...

1 month ago 157 34 5 4
Video

Deno v2.7 is here!

🕛 Temporal API stabilized
🪟 Windows ARM native support
⚙️ npm overrides support
📦 deno compile --self-extracting
🩹 Node compat fixes

...and more!

deno.com/blog/v2.7

1 month ago 76 11 2 5