Advertisement · 728 × 90

Posts by Haoqun Jiang

One more reason to use @pnpm.io and @npmx.dev:
trust policy downgrade becomes visible and preventable

1 week ago 94 14 3 3

Moltbook is fascinating.

2 months ago 1 0 0 0

TIL that IPv4 over IPv6 is a mainstream home internet setup in Japan to avoid old PPPoE limits.
It took me back to my college years in China, when I was playing with IPv6 over IPv4 because native IPv6 wasn’t widely available.
It’s really interesting to see how differently things evolved here.

4 months ago 2 0 1 0
Preview
pnpm 10.21 | pnpm Added support for Node.js runtime installation for dependencies and a setting for configuring trust policy.

@pnpm.io getting better by the day

pnpm.io/blog/release...

I still can't believe that a one-person package manager is doing better than npm CLI, owned by a corporate, where the resources of the two projects are incomparable.

Draw your own conclusions.

4 months ago 38 4 2 0

Apple forgot to turn off sourcemaps when shipping their new App Store website lol github.com/rxliuli/apps...

5 months ago 6 0 0 0

lmao 🤣

5 months ago 4 0 0 0
Preview
Mitigating supply chain attacks | pnpm Sometimes npm packages are compromised and published with malware. Luckily, there are companies like [Socket], [Snyk], and [Aikido] that detect these compromised packages early. The npm registry usually removes the affected versions within hours. However, there is always a window of time between when the malware is published and when it is detected, during which you could be exposed. Fortunately, there are some things you can do with pnpm to minimize the risks.

Published an article about mitigating supply chain attacks with pnpm
pnpm.io/supply-chain...

6 months ago 59 12 0 1
Advertisement
The bloat of edge-case first libraries How building edge-case first led to bloated, overly-granular libraries and what we can do about it

some thoughts about the bloat introduced by edge-case first libraries

6 months ago 131 45 12 11

We encourage everyone to migrate from using npm publish tokens to trusted publisher!

github.com/e18e/ecosyst...

7 months ago 27 5 1 4

Finally, finally! SALVATION HAS ARRIVED! Time to refactor every GitHub Actions workflow! 🎉

8 months ago 3 0 0 0

Wow, this was unexpected. I've got mixed feelings, but huge congrats to the team!

8 months ago 9 1 2 0

But there is a language switcher at the bottom of the GoDaddy homepage? And you can use root paths like www.godaddy.com/en to go directly to the English homepage.

9 months ago 0 0 0 0

Bought. The interactive debugger looks cool!

1 year ago 4 0 2 0

I rarely feel that the Vue ecosystem is lacking anything, but this time, I truly wish we had a Vue version of this library. Impressive work!

1 year ago 5 0 1 0

You won't have to worry even without corepack - pnpm reads from `packageManager` too: pnpm.io/npmrc#manage... And you can prevent npm from being used with `devEngines`: github.com/npm/cli/pull...

1 year ago 3 0 1 0
Advertisement

Finally. I wish the community could migrate from the `packageManager` field to `devEngines` following this - always pinning versions is good in theory but way too cumbersome in practice.

1 year ago 8 0 0 0
Preview
[RFC] Proper Import Attributes support · vitejs vite · Discussion #18534 Context: Import Attributes is now stage 4: https://github.com/tc39/proposal-import-attributes Related PR / issues: #17485 rollup/rollup#5694 There are few different aspects regarding properly impor...

There’s an RFC for this: github.com/vitejs/vite/...

1 year ago 1 0 0 0

This thing is so useful. Especially for security - ensuring the published package is actually what exists in the source

1 year ago 15 5 0 0
Preview
npm Blog Archive: announcing free Orgs npm Blog (Archive); updates from the npm team are now published on the GitHub Blog and the GitHub Changelog

Can't believe scoped packages wasn't a free feature of npm until 2017-03-22 blog.npmjs.org/post/1587182...

1 year ago 5 0 0 0
GitHub commit message:

docs: add --no flag to npx command to avoid downloading the incorrect package from npm
Thanks to @alxndrsn for finding this issue and the insightful blog post.
https://www.alxndrsn.com/2024-08-01-npx-binary-confusion/

Also thanks to @lirantal for his newsletter that brought this issue to
my attention.
https://www.nodejs-security.com/newsletter/npm-supply-chain-security-prisma-orm-security-fun-nodejs-security-challenges

Git Diff:

- npx vue-cli-service serve
+ npx --no vue-cli-service serve

GitHub commit message: docs: add --no flag to npx command to avoid downloading the incorrect package from npm Thanks to @alxndrsn for finding this issue and the insightful blog post. https://www.alxndrsn.com/2024-08-01-npx-binary-confusion/ Also thanks to @lirantal for his newsletter that brought this issue to my attention. https://www.nodejs-security.com/newsletter/npm-supply-chain-security-prisma-orm-security-fun-nodejs-security-challenges Git Diff: - npx vue-cli-service serve + npx --no vue-cli-service serve

😮‍💨 Still paying down the tech debt that accumulated during the transition from non-scoped packages to scoped ones… I’m lucky to have subscribed to @lirantal.com’s Node.js security newsletter. It’s always informative!

- www.alxndrsn.com/2024-08-01-n...
- www.nodejs-security.com/newsletter/n...

1 year ago 7 1 2 0
Preview
Speeding up the JavaScript ecosystem - Rust and JavaScript Plugins Up until recently, supporting JavaScript in Rust based tools has been deemed not worth it. The main concern is the overhead of the de-/serialization cost when sending data back and forth. But there is...

Speeding up the JavaScript ecosystem part 11 is here! This time we're looking at:

Extending Rust tools with JavaScript plugins

marvinh.dev/blog/speedin...

1 year ago 144 39 9 2

Have you tried `v-memo`?

1 year ago 0 0 0 0
Preview
Reka An open-source library with unstyled, primitive components, accompanied by a variety of examples & use cases ready to be integrated into your projects.

Looks like Reka UI, the rebranded Radix Vue component library, has just got officially released 👀 It's such a cool name. Can't wait to try it out!

1 year ago 87 8 3 0
Screenshot of Node.js REPL with the following text:

› await import ("./index.js")
[Module: null prototype] { oneTrueDate: [Function: oneTrueDate] }
_.oneTrueDate(new Date())
'2024-03-01'

Screenshot of Node.js REPL with the following text: › await import ("./index.js") [Module: null prototype] { oneTrueDate: [Function: oneTrueDate] } _.oneTrueDate(new Date()) '2024-03-01'

#TIL So this is the fastest way to import an ES module in the Node.js REPL… How did I never know about the `_` (underscore) auto-assignment in the REPL?!
nodejs.org/api/repl.htm... So many wasted keystrokes over the years!

1 year ago 8 1 0 0

@rspack/core does not have a postinstall script, so it won’t be in the list in the first place. If the attacker adds one, it won’t be executed by default.
This feature mitigates risks like this, and that’s it, it’s not designed to prevent all possible attacks.

1 year ago 2 0 1 0
Advertisement

Note it's not about their Node APIs (so Vite isn't affected), just when executing the binaries (i.e. `pnpm exec esbuild`) there will be a performance hit.

1 year ago 2 0 0 0

In my experience this new default doesn't break many projects.
But it might slow down some native packages a bit.
For example, packages like esbuild, lightningcss-cli try to optimize their binaries in the postinstall scripts; these will no longer be executed by default: github.com/evanw/esbuil...

1 year ago 1 0 1 0

Resurfacing this post now that pnpm 10 is tagged as latest.

1 year ago 3 1 1 0

?? The link preview is still available even though I deleted the link? Interesting feature/bug…

1 year ago 1 0 0 0

And in case you still want that username, you can temporarily change your handle back and forth to reserve it. This feature was introduced about a month ago: bsky.app/profile/bsky...

1 year ago 0 0 0 0