Vlad Coroiu (@cdalw) profile picture
Joined July 2013
Vlad Coroiu retweeted
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 โคต๏ธ
3
18
3
217
16,998
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/โ€ฆ
8
52
4
292
24,767
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โ€ฆ
9
7
1
204
37,580
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.
1
6
1
89
6,777
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 ๐Ÿ‘
27
79
21
874
100,214
CSS style() queries landed in Firefox 151 making them newly available across engines. Here's how they work:
2
17
1
102
8,528
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.
114
226
130
2,977
1,091,365
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.
19
46
9
792
118,874
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โ€ฆ
6
20
3
144
11,110
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)
17
67
3
558
43,269
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.
27
103
15
495
115,635
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.
134
963
468
3,792
3,924,089
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โ€ฆ
6
10
1
86
9,201
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?
7
9
3
135
30,288
CSS's light-dark() now accepts images, making it simpler to define alternate values for a dark color scheme. Here's how it works:
3
17
3
132
20,099
sizes="auto" landed in Firefox 150, making responsive images simpler and more reliable. Here's when you can use it, and howโ€ฆ
9
42
2
244
22,114
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โ€ฆ
16
27
6
323
25,890
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, ๐Ÿ”—โฌ‡๏ธ)
7
68
6
540
29,572
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:
3
8
1
52
9,171
Vlad Coroiu retweeted
Introducing element-source Get the source file location of any DOM (or native!) element Works w/ React, Vue, Svelte, and Solid
57
60
16
1,348
206,957