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

Compare New Free/Paid Copilot Plans, ASP.NET Core Layouts, Dive into .NET MAUI, More

Thursday, January 9, 2025

Home | News | How To | Webcasts | Whitepapers | Advertise .NET Insight January 9, 2025 THIS ISSUE SPONSORED BY: ■ Yes, you finally test like a champion. ■ Visual Studio Live! Las Vegas: .NET Developer

Simplify Async Programming

Thursday, January 9, 2025

View in browser 🔖 Articles Coroutines: From Basics to Advanced Patterns Master Kotlin Coroutine Channels to improve communication between coroutines in Android development. Learn the basics, explore

Spyglass Dispatch: One Prediction Down...

Thursday, January 9, 2025

9 More to Go for 2025 • Netflix Wrestles the WWE Audience • EU Swipes Back at Meta • Howard Marks' Bubble Watch • TikTok Case Eve The Spyglass Dispatch is a newsletter sent on weekdays featuring

The 7 smart glasses we loved at CES

Thursday, January 9, 2025

AI tops LinkedIn jobs report; Best laptops of CES; Revive an old MacBook with Linux -- ZDNET ZDNET Tech Today - US January 9, 2025 Prakhar Khanna wearing Inair Glasses CES 2025: The 7 most advanced

wpmail.me issue#701

Thursday, January 9, 2025

wpMail.me wpmail.me issue#701 - The weekly WordPress newsletter. No spam, no nonsense. - January 9, 2025 Is this email not displaying correctly? View it in your browser. News & Articles Wix Vs.

Streamline Your Note-Taking - Why Daily Notes Should Be Your Capture System

Thursday, January 9, 2025

Transform your note-taking workflow by using daily notes as your primary capture system. Learn how to maintain focus, save time, and create better connections between your ideas Sébastien Dubois

The problem with tight runtime coupling and how to avoid it

Thursday, January 9, 2025

You are receiving this email because you subscribed to microservices.io On Wednesday, January 22, 2025 at 6pm, I'll be giving a talk in Melbourne Australia.The talk is: Enabling DevOps and Team

⚙️ The trillion dollar gamble

Thursday, January 9, 2025

A look at AI's investing trends ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 01/09/2025

Thursday, January 9, 2025

New blogs from Syncfusion How to Easily Load JSON Data in .NET MAUI TreeView? By Jayaleshwari N This blog explains how to load JSON data in the Syncfusion .NET MAUI TreeView control with code example.

January 9th 2025

Thursday, January 9, 2025

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 9th January 2025 Hi everyone, It's back to the regular grind