CSS can now do math with "how far along am I?"
`progress()` just landed in the last engine. Chrome 138, Safari 26, Firefox 155 (yesterday).
MDN still says Limited; thatโs badge lag. ๐
It works now. ๐ค
It returns a 0โ1 number for how far a value sits between a start and an end โคต๏ธ
Vlad Coroiu retweeted
Major versions of Firefox now land every two weeks, so Firefox 155 dropped today with web platform features including:
๐ Fully typed CSS attr()
๐ CSS progress()
๐ Promise.allKeyed() and allSettledKeyed()
๐ Lots of new WebTransport stuff
โฆAnd more!
developer.mozilla.org/en-US/โฆ
Vlad Coroiu retweeted
Time to grep all projects for
const [isBrowser, setIsBrowser] = useState(false)
useEffect(() => {
setIsBrowser(true)
})
and
export function isBrowser() {
return typeof window !== 'undefined'
}
Docs for React's new ๐๐๐๐ ๐๐๐() API are now live! It's available in Canary.
Pass it to ๐๐๐() and it suspends to the closest Suspense boundary on the server, then renders normally in the browser.
Looking forward to this in stable React!
react.dev/reference/react-doโฆ
Vlad Coroiu retweeted
TypeScript's ๐ด๐ข๐ต๐ช๐ด๐ง๐ช๐ฆ๐ด operator has been around for years. Majority of codebases I open still don't use it.
If youโre still using type assertions (as) to validate your objects, you might be accidentally lying to your compiler.
Here is the 30-second breakdown of why ๐ด๐ข๐ต๐ช๐ด๐ง๐ช๐ฆ๐ด (introduced in TS 4.9) is a game-changer:
โ The Problem with as (Type Assertion)
When you use as, youโre telling TypeScript: "Shut up, I know what Iโm doing."
- It widens your types.
- it can mask missing properties.
- You lose the specific "literal" types of your values.
โ
The Magic of ๐ด๐ข๐ต๐ช๐ด๐ง๐ช๐ฆ๐ด
When you use ๐ด๐ข๐ต๐ช๐ด๐ง๐ช๐ฆ๐ด, youโre telling TypeScript: "Check that this matches the interface, but remember exactly what I put inside."
- It validates the shape.
- It preserves the narrowest possible type.
- You keep your perfect autocomplete and IDE intenseness.
Vlad Coroiu retweeted
ECMAScript excitement ๐
Congrats to my coworker @acutmore @TechAtBloomberg on advancing Await Dictionary to Stage 3 at @TC39 ๐
Promise.all returns positional results as an array. Promise.allKeyed allows named results inside an object ๐
Vlad Coroiu retweeted
CSS style() queries landed in Firefox 151 making them newly available across engines. Here's how they work:
Vlad Coroiu retweeted
diffshub[dot]com
Take any public diff from GitHub and virtualize it nearly instantly, no matter how large, with DiffsHub. Built to show off our brand new CodeView component.
To try it out, replace `github` with `diffshub` in your address bar.
Vlad Coroiu retweeted
New in TanStack Router: more control over dynamic route params.
Use params.parse to accept or skip a candidate, with priority for overlapping dynamic params.
Vlad Coroiu retweeted
Gap decorations are now in Chromium 149 (stable rollout in 5 days)!
Shoutout to the folks at @MSEdgeDev for the implementation, post, and demos:
developer.chrome.com/blog/gaโฆ
Vlad Coroiu retweeted
OoooOOooh! Guess what! As of Chrome 149, shape() works in shape-outside!
So you can really *shape* your UI's ๐*
rect() and xywh() are also supported for shape-outside in Chrome 149
*(just let me have my Mom joke)
Vlad Coroiu retweeted
Our official post mortem on the security issue earlier today: tanstack.com/blog/npm-supplyโฆ
SECURITY ADVISORY โ TanStack npm packages
A supply-chain compromise affecting 42 @tanstack/* packages (84 versions total) was published to npm earlier today at approximately 19:20 and 19:26 UTC. Two malicious versions per package.
Status: ACTIVE โ packages are deprecated, npm security engaged, publish path being shut down.
Severity: HIGH โ payload exfiltrates AWS, GCP, Kubernetes, and Vault credentials, GitHub tokens, .npmrc contents, and SSH keys.
If you installed any @tanstack/* package between 19:20 and 19:30 UTC today, treat the host as potentially compromised:
โข Rotate cloud, GitHub, and SSH credentials immediately
โข Audit cloud audit logs for the last several hours
โข Pin to a prior known-good version and reinstall from a clean lockfile
Detection โ the malicious manifest contains:
"optionalDependencies": {
"@tanstack/setup": "github:tanstack/router#79ac49ee..."
}
Any version with this entry is compromised. The payload is delivered via a git-resolved optionalDependency whose prepare script runs router_init.js (~2.3 MB, smuggled into each tarball at the package root).
Unpublish is blocked by npm policy for most affected packages due to existing third-party dependents. All 84 versions are being deprecated with a SECURITY warning, and npm security has been engaged to pull tarballs at the registry level.
Full technical breakdown, complete package and version list, and rolling status updates:
github.com/TanStack/router/iโฆ
Credit to the security researcher for responsible disclosure.
Vlad Coroiu retweeted
SECURITY ADVISORY โ TanStack npm packages
A supply-chain compromise affecting 42 @tanstack/* packages (84 versions total) was published to npm earlier today at approximately 19:20 and 19:26 UTC. Two malicious versions per package.
Status: ACTIVE โ packages are deprecated, npm security engaged, publish path being shut down.
Severity: HIGH โ payload exfiltrates AWS, GCP, Kubernetes, and Vault credentials, GitHub tokens, .npmrc contents, and SSH keys.
If you installed any @tanstack/* package between 19:20 and 19:30 UTC today, treat the host as potentially compromised:
โข Rotate cloud, GitHub, and SSH credentials immediately
โข Audit cloud audit logs for the last several hours
โข Pin to a prior known-good version and reinstall from a clean lockfile
Detection โ the malicious manifest contains:
"optionalDependencies": {
"@tanstack/setup": "github:tanstack/router#79ac49ee..."
}
Any version with this entry is compromised. The payload is delivered via a git-resolved optionalDependency whose prepare script runs router_init.js (~2.3 MB, smuggled into each tarball at the package root).
Unpublish is blocked by npm policy for most affected packages due to existing third-party dependents. All 84 versions are being deprecated with a SECURITY warning, and npm security has been engaged to pull tarballs at the registry level.
Full technical breakdown, complete package and version list, and rolling status updates:
github.com/TanStack/router/iโฆ
Credit to the security researcher for responsible disclosure.
Vlad Coroiu retweeted
๐ข Happy to announce that @tan_stack Query now has a lit adapter
๐ The adapter is v0.1 - your feedback will help us getting the APIs to stable
๐ Shoutout to Gaurav Chugh for contributing it
tanstack.com/query/latest/doโฆ
Vlad Coroiu retweeted
In the era of AI it's wild you can ship a beta without a proper guides website
npx remix@next new my-app
> what do remix components look like?
Vlad Coroiu retweeted
CSS's light-dark() now accepts images, making it simpler to define alternate values for a dark color scheme. Here's how it works:
Vlad Coroiu retweeted
sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable. Here's when you can use it, and howโฆ
Vlad Coroiu retweeted
For the past two months I have been working hard on Ky 2 and now it's finally out.
All bugs fixed. All GitHub issues resolved. Cleaner API, stricter behavior, fewer footguns.
New `baseUrl` option fixes URL handling, `searchParams` option now merges, retries are now more precise by distinguishing failure types, built-in JSON schema validation.
Ky is a tiny JS HTTP client built on top of the built-in Fetch.
github.com/sindresorhus/ky/rโฆ
Vlad Coroiu retweeted
Web platform news ๐๏ธ
Landing in Chrome 148: sticky positioning now works on a per-axis basis
This means you can have sticky elements that track different scroll containers on different axes.
(๐ฝ๏ธ from @bramus's article, ๐โฌ๏ธ)
Vlad Coroiu retweeted
hasUAVisualTransition landed in Firefox 149, making it available across all major engines. As well as having a very catchy name, it lets you avoid doubling up on page transitions. Here's how it works:



















