by sbt567 on 4/25/24, 4:03 AM with 54 comments
by lrvick on 4/25/24, 12:23 PM
Read as: "We wish to uphold NPM tradition of not allowing the authors of code to sign their own code, but as an alternative we will increase your package trust score if you build your package with a heavily censored, centralized, and proprietary build system owned by Microsoft"
How is it that STILL the only source for signed javascript packages are Debian apt-get repos. NPM and JSR still have dramatically worse JS supply chain security than a -terrible- 30yo package manager which still requires a lot of custom tooling overhead in every project for reproducible builds (docker, apt package hash pinning, apt-archive, etc).
Oh right, because the NPM team was worried even having -optional- support for package signing would scare off people from publishing javascript packages.
by Philip-J-Fry on 4/25/24, 9:12 AM
Just take things back to basics. You shouldn't have to publish a package on some centralised registry, you should just be able to import a package from anywhere.
by mike_hearn on 4/25/24, 8:07 AM
The Java world got burned by this a few years ago when JFrog shut down Bintray, which had been the second largest open source package repository after Maven Central. A ton of stuff had to be republished, a ton of build configs updated. Now Maven Central is hopefully Too Big To Fail and Sonatype is a sustainable independent business, partly due to the widespread practice of companies buying its Nexus product to mirror Central internally, something I haven't seen so much of in the JS space, and partly because the Java ecosystem doesn't tend to host giant binaries off it. But still.
Gotta admit, I'd like to see a more decentralized approach become popular here. There's no specific reason packages always have to be hosted in one or two central registries.
by chrisldgk on 4/25/24, 9:25 AM
As anyone that has tried to publish hybrid packages that include types, a CJS and an ESM version, all the while maintaining semver and anything else can be a real hassle. Everyone seems to have a different solution, and most of the time you end up writing a convoluted build system for your package consisting of an amalgamation of tsc, esbuild, rollup or whatever other bundler is the hot new stuff.
by pjmlp on 4/25/24, 7:39 AM
by eqvinox on 4/25/24, 8:29 AM
As a non-JavaScript developer, drawing this distinction feels incredibly silly to me…
by thenerdhead on 4/25/24, 2:03 PM
I suppose I don't quite understand the rationale of another registry. But perhaps that is what is needed nowadays with various ecosystems and their chosen defaults. What for example prevents npm from adopting ES modules tomorrow? (Although there are many opinions on CommonJS/ES Modules)
by posix_monad on 4/25/24, 9:02 AM
by dinckelman on 4/25/24, 10:42 AM
On a surface level, they have automatic mechanisms for everything that my projects already have implemented, except it has arbitrary limitations, and not a whole lot of material explaining them properly
by nailer on 4/25/24, 2:07 PM
Nope. I love Ryan Dahl, but code filled with JSdoc comments that needlessly replicate type information already in the code, and mandatory descriptions for every variable (often used as a substitute for proper naming) has a really low signal:noise ratio.
by hamilyon2 on 4/25/24, 11:45 AM
by thriftwy on 4/25/24, 7:58 AM
Call it Genet.