New package repository JSR; proposed Set methods; Array.prototype.with(); Promise collection methods

WorkOS, the modern API for auth and user identity.

workos.com Sponsor

WorkOS enables B2B SaaS companies to accelerate enterprise adoption with identity management and complex features like Single Sign-On, SCIM, and User Management. Built for developers tired of using legacy providers like Auth0, WorkOS delivers a unified platform with modern APIs and a predictable pricing model that will scale seamlessly with your enterprise motion.

JSR first impressions (new package repository by Deno team)

www.kitsonkelly.com @kitsonk@aus.social

“JSR is a JavaScript/TypeScript registry. It is not a package manager. It is pretty clear that npm was the first viable package manager and registry for the JavaScript ecosystem. Since then we have seen a lot of innovation in the package manager side of the equation, with yarn, pnpm, and even run-times integrating that package manager like Bun. [...] There has been little change or innovation on the registry side that still has the npm registry at its core.”

Highlights:

  • “JSR supports semver expression of dependencies.” This feature helps Deno – which, until now, has used exact versions.
  • JSR dynamically adapts its packages to specific requests:
    • “[...] you publish your source, be it [only] TypeScript or [only] JavaScript, and the registry makes sure that the users consume the right version of code.”
    • “[...] while it isn't part of JSR at the moment, very soon JSR will generate type definitions along with transpiled JavaScript code when targeting the npm ecosystem.”
    • “The registry is runtime aware in that the package creator publishes a single version and the registry handles serving up a version specific to the target runtime [Deno, Node.js, etc.].”
  • TypeScript-related features:
    • “[...] published code is ‘zapped’” – type-checked in a limited, quick way.
    • “[...] published code can be fully documented via automatic document generation.”

Union, intersection, difference, and more are coming to JavaScript Sets

www.sonarsource.com @philnash@mastodon.social

Proposed methods:
  • Set.prototype.intersection(other)
  • Set.prototype.union(other)
  • Set.prototype.difference(other)
  • Set.prototype.symmetricDifference(other)
  • Set.prototype.isSubsetOf(other)
  • Set.prototype.isSupersetOf(other)
  • Set.prototype.isDisjointFrom(other)

Immutable array updates via Array.prototype.with()

web.dev github.com/jadjoubran

“Browsers recently gained a new interoperable method that you can call on Arrays: Array.prototype.with().”

“This article explores how this method works and how to use it to update an array without mutating the original array.”

const ages = [10, 15, 20, 25];
const newAges = ages.with(1, 16);

console.log(newAges); // [10, 16, 20, 25]
console.log(ages); // [10, 15, 20, 25] (unchanged)

Looking at the JavaScript Promise Collection Methods

www.raymondcamden.com @raymondcamden@mastodon.social

“[...] ‘Promise Collection Methods’ is not something I’ve seen mentioned elsewhere, but is my own way of referring to the various methods of the Promise API that work with multiple promises.” They are:
  • Promise.all()
  • Promise.allSettled()
  • Promise.any()
  • Promise.race()

Detect and block JavaScript supply chain attacks

socket.dev Sponsor

Quickly evaluate the security and health of any npm package. Socket is not a traditional vulnerability scanner. Socket proactively detects and blocks 70+ signals of supply chain risk in open source code, for comprehensive protection.

“Tempo”: date and time library that works with JavaScript Date objects and supports time zones

tempo.formkit.com github.com/formkit

Tempo is a date and time library:
  • It works with JavaScript Date objects and supports time zone operations.
  • “Under the hood, Tempo mines JavaScript’s Intl.DateTimeFormat to extract complex data like time zone offsets and locale aware date formats, giving you a simple API to format, parse, and manipulate dates.”

Hot Module Replacement (HMR) is easy

bjornlu.com @bluwy@webtoo.ls

“If you’ve built projects with Vite, chances are you’ve also used Hot Module Replacement (HMR). HMR allows you to update your code without having to refresh the page, such as editing a component markup or adjusting styles, the changes are immediately reflected in the browser, which enables faster code interation and improved developer experience.”

“While HMR is also a feature in other bundlers like Webpack and Parcel, in this blog we’ll dig deeper into how it works in Vite specfically. Generally other bundlers should also work similarly.”

“To preface, HMR is not easy and certain topics may require some time to digest, but I hope to have piqued your interest!”

What do you think of this issue?

If you have any comments or feedback, just reply to this email!

This email was sent to you. You can unsubscribe from this list here or update your preferences.

Older messages

Unbundling npm; new JS runtime by Amazon; Vite 5.1; February TC39 meeting; ES stage 2.7; Web IDL for

Tuesday, February 13, 2024

We have 9 links for you - Stay up-to-date on JavaScript and tools WorkOS, the modern API for auth and user identity. workos.com Sponsor WorkOS enables B2B SaaS companies to accelerate enterprise

Deno in 2023; Turborepo 1.12; Promise.withResolvers; import attributes; Christopher “vjeux” Chedeau

Tuesday, February 6, 2024

WorkOS, the modern API for auth and user identity. workos.com Sponsor WorkOS enables B2B SaaS companies to accelerate enterprise adoption with identity management and complex features like Single Sign-

Deno 1.40; esbuild v0.20.0; ES proposal: explicit resource management; deprecated npm packages

Tuesday, January 30, 2024

WorkOS, the modern API for auth and user identity. workos.com Sponsor WorkOS enables B2B SaaS companies to accelerate enterprise adoption with identity management and complex features like Single Sign-

Npm 2023 retrospective; Prettier 3.2; Rspack 0.5; Bun v1.0.23; library for immutable updaes; Bun

Tuesday, January 23, 2024

npm in review: a 2023 retrospective on growth, security, and quirky facts socket.dev github.com/Planeshifter @SocketSecurity@fosstodon.org “It's a new year! So let's look back at how npm, the

JavaScript’s birthday; TC39 FAQ; ESLint v8.55.0; Bun v1.0.15; Socket CLI v0.9.0; Turborepo 1.11

Tuesday, December 12, 2023

Dear readers! We are taking our end-of-the-year break and will be back on 23 January 2024. Be well and see you soon! Axel and Jowe 28 years ago (1995-12-04): “Netscape and Sun announce JavaScript, the

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your