Hacker Newsnew | past | comments | ask | show | jobs | submit | ebcase's favoriteslogin

Author here, AMA!

Regarding the versioning: I wrote a fairly detailed writeup here[0] for those who are interested in the reasons for this approach.

Ultimately npm is not designed to handle the situation Zod finds itself in. Zod is subject to a bunch of constraints that virtually no other libraries are subject to. Namely, the are dozens or hundreds of libraries that directly import interfaces/classes from Zod and use them in their own public-facing API.

Since these libraries are directly coupled to Zod, they would need to publish a new major version whenever Zod does. That's ultimately reasonable in isolation, but in Zod's case it would trigger a "version avalanche" would just be painful for everyone involved. Selfishly, I suspect it would result in a huge swath of the ecosystem pinning on v3 forever.

The approach I ended up using is analogous to what Golang does. In essence a given package never publishes new breaking versions: they just add a new subpath when a new breaking release is made. In the TypeScript ecosystem, this means libraries can configure a single peer dependency on zod@^3.25.0 and support both versions simultaneously by importing what they need from "zod/v3" and "zod/v4". It provides a nice opt-in incremental upgrade path for end-users of Zod too.

[0] https://github.com/colinhacks/zod/issues/4371


Seconding this.

chrome://settings/content/cookies

Go there and enable "Block third-party cookies".

The internet still works without them.


I think the privacy crowd drawn to Brave couldn't care less what the (current) digital advertising industry wants.

Anyone who's been involved in the current ad-tech industry knows it's a total tire fire of fraud, technical incompetence and deep hostility to end-users.

Brave's model is very interesting and also a threat to the current ad-tech cesspool, so there should be no surprise to see attempts to misinform people about the model.

Brave doesn't replace ads with other ads.

Brave is a browser first, with an economic layer that will support all sorts of opt-in economic activity in a privacy-respecting way.

The tokens have a market price of more than zero.

Advertisers already include brands like Vimeo and Vice, and many within the ad industry appreciate the model Brave is attempting.

Using on-device machine learning to deliver relevant ads, while at the same time protecting privacy by not sending that data over the wire is a rather brilliant idea.

It certainly remains to be seen what advertisers are convinced to trial this approach, but predictions based on a very wonky understanding of the Brave model aren't particularly interesting.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: