npm audit: Broken by Design
Found 99 vulnerabilities (84 moderately irrelevant, 15 highly irrelevant)
29 new today · 2,700 articles · from 79 blogs
Found 99 vulnerabilities (84 moderately irrelevant, 15 highly irrelevant)
AI summaryThis July 2021 Svelte update highlights performance improvements and bug fixes in Svelte 3.38.3, along with SvelteKit enhancements such as gzip/brotli asset precompression and TypeScript transpilation support. Language tools now offer experimental TypeScript features like typed events, slots, and generics, while the community showcase features new apps like Beatbump and SvelteThemes, educational content, and libraries such as svelte-modals and svelte-stack-router.
AI summaryThe article explains a CSS technique for accessing an ancestor's font-size, overcoming the limitation that the em unit resolves to the parent's font-size rather than that of higher ancestors. The author demonstrates using the @property rule to register a custom property as a , so that it resolves to an absolute length at declaration and inherits that value to descendants—useful in cases like styling elements without labels inside a . Because @property is not supported in all browsers, the author also covers fallback strategies, recommending a JavaScript-based feature detection approach while describing a hackier CSS-only alternative using a non-inheriting registered property with var() fallbacks.
AI summaryMany React developers perceive styled-components as somewhat magical, with its use of traditional CSS under the hood being unclear, which can lead to real problems when issues arise. This article demystifies the library by explaining exactly how it works through the process of building a mini-version from scratch.
Hey everyone! At the CTCFT meeting this Monday (2021-06-21), we’re going to try a “social hour”. The idea is really simple: for the hour after the meeting, we will create breakout rooms in Zoom with different themes. You can join any breako
AI summaryThe author, a contributor to the Rust project, initially perceived the project's hierarchy of teams and leaders as just another typical organizational structure. After becoming more involved—joining the library team and eventually becoming its team lead—they started reflecting more deeply on why this structure exists and what purpose these teams actually serve.
An all-new high-performance CLI tool, ::before and ::after support, sibling selectors, selected text variants, and tons more.
AI summaryThe author observed that zero-filling memory on Skylake and Ice Lake CPUs became substantially slower starting Wednesday, June 9th, and traced the cause to a new Intel microcode update (delivered via Ubuntu's intel-microcode package) that disabled the hardware zero store optimization to mitigate the CVE-2020-24512 side-channel vulnerability. This serves as a reminder that raw CPU performance can silently change due to microcode updates, so reproducible benchmarks should re-run entire suites even on identical hardware. The author also argues that stripping out optimizations vulnerable to timing side channels is an unsustainable path, and calls for a measured approach to classifying and mitigating such attacks rather than trying to eliminate every possible leak.
AI summaryThe React team announced that they have begun work on React 18, their next major version. They created a Working Group to help the community gradually adopt the new features and published a React 18 Alpha so library authors can try it out and provide feedback.
How to create and expose React Context providers and consumers
How to interpret the testing trophy for optimal clarity
What these mean, why they matter, and why they don't
AI summaryThe article announces that Stack Overflow is joining Prosus, an investment and holding company, but will continue operating independently with the same team, leadership, and focus on its existing business lines like Stack Overflow for Teams. The author reflects on how slowly programming evolves, noting that Stack Overflow's 2008 launch was one of the few changes that transformed developers' lives overnight, and argues the acquisition is the best possible outcome for the company's future. Having stepped back from day-to-day operations, the author is now building HASH, an ambitious open-source project aimed at making web data more structured and programmatically accessible for simulations.
A case study of how Elixir is being used at Mozilla.
AI summaryThe June 2021 Svelte update highlights significant progress on SvelteKit, including ESM-based config files, a new trailingSlash option, renamed layout/error files and output directory, plus router and adapter bug fixes. Language tools gained a new TypeScript plugin for deeper Svelte integration, svelte-check improvements like tsconfig support, and hydration fixes in Svelte 3.38.x. The post also showcases community-created apps, sites, libraries, and components.
AI summaryThe article discusses metastable failures in distributed systems, in which a trigger such as a load spike or deployment pushes a system into a stable-but-useless state—high throughput but zero goodput—that persists even after the trigger is removed. Reviewing Bronson et al.'s paper 'Metastable Failures in Distributed Systems,' the author agrees that the sustaining feedback loop, rather than the initial trigger, should be treated as the root cause, and highlights mitigations like autoscaling, serverless platforms, and organizational awareness of how optimizations such as retries can increase vulnerability. The author suggests that viewing large-scale distributed systems through the lens of control theory and dynamical systems could lead to fundamentally stable designs, and recommends the paper to anyone building, operating, or researching such systems.
AI summaryThe author describes their quest to determine whether the current browser tab is active for their Inspire.js presenter mode plugin, showing that common approaches like the Visibility API, focus/blur events, and document.activeElement all fall short because visibility and active state are orthogonal, and events only signal changes rather than current state. After concluding there was no general solution, they implemented a workaround using focus/blur listeners and knowledge of the paired window, though an edit notes that document.hasFocus()—when called asynchronously rather than synchronously in the console—turned out to be the answer. The takeaway is that deceptively simple questions on the Web Platform may lack good answers, and sometimes solving your specific case is better than chasing a general one.
A comparison of different approaches to operating on an array
AI summaryThe author shares a CSS quiz about how the `revert` keyword behaves with custom properties, which 82% of Twitter poll respondents answered incorrectly—voting for orange instead of the correct answer, skyblue. The correct result occurs because `revert` cancels author styles, and since custom properties are inherited by default, the value defined on `:root` (skyblue) trickles back in. Even Tab Atkins, editor of the CSS Variables spec, admitted to getting the answer wrong, and the article further notes that registering a custom property with an initial value still prevents the `var()` fallback from triggering.
Elixir v1.12 is out with improvements to scripting, tighter Erlang/OTP 24 integration, stepped ranges, and dozen of new functions across the standard library.