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

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.

Deno 1.40: Temporal API

deno.com github.com/bartlomieju github.com/crowlKats github.com/lambtron github.com/ry github.com/littledivy github.com/nayeemrmn @deno_land@fosstodon.org

Highlights:
  • Temporal API
  • import.meta.filename and import.meta.dirname
  • ECMAScript decorators
  • “We’re introducing a new unstable Deno.UnsafeWindowSurface API to address windowing in Deno. Our goal is to provide a windowing solution for WebGPU without linking to native windowing systems like X11.”

    “This is a low level API that can be used by FFI windowing libraries like sdl2, glfw, raylib, winit and more to create a WebGPU surface using native window and display handles.”

esbuild v0.20.0

github.com @evanw@hachyderm.io

Changes:
  • Backwards-incompatible change in Deno – if you use esbuild in tests, you need to switch:
    /* Old: */ esbuild.stop();
    /* New: */ await esbuild.stop();
  • Inside node_modules, esbuild has to pick a filename extension when it is omitted in an import:
    • Default order: .tsx .ts .jsx .js .css .json
    • Previous order in node_modules: .jsx .js .css .json .tsx .ts
    • New order in node_modules: .jsx .js .tsx .ts .css .json
    The reason for this change is explained in the release notes.

Explicit resource management: exploring JavaScript’s new feature

iliazeus.github.io @iliazeus@lor.sh

“One of my favorite new features of JavaScript [...] is explicit resource management. It brings new syntax, using foobar = ..., that enables RAII [resource acquisition is initialization], reducing boilerplate when managing the lifecycle of various resources.”

Example:
async function main() {
  await using connection = await connect();
  await doStuff(connection);
} // connection is closed

How to protect your projects from the risks of deprecated npm packages

socket.dev @sarahgooding@fosstodon.org @SocketSecurity@fosstodon.org

“Deprecated npm packages are common in modern software projects. Learn about the risks of using unmaintained code, how to identify these packages, and evaluate alternatives.”

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

Older messages

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

Prettier in Rust; Prettier performance improvements; Node v21.3.0; TC39 meeting November; esbuild...

Tuesday, December 5, 2023

Biome formatter wins the Prettier challenge (USD 22500) biomejs.dev @ematipico@fosstodon.org @biomejs@fosstodon.org Prettier challenge – “write a Prettier-compliant pretty printer in Rust”: USD 22500:

“State of JavaScript 2023” survey; QuickJS-ng v0.1.0; esbuild 0.19.7; show package version downloads

Tuesday, November 28, 2023

The “State of JavaScript 2023” survey is open stateofjs.com @sachagreif@hachyderm.io Quoting the frequently asked questions: When will the results be released? The survey will run from November 22 to

Vite 5.0; Prettier 3.1; Node v21.2.0; Bun v1.0.12; explicit resource management; JS strings in V8

Tuesday, November 21, 2023

Vite 5.0: Rollup 4, API cleanups and more vitejs.dev @vite@webtoo.ls “Vite is now using Rollup 4, which already represents a big boost in build performance. And there are also new options to improve

You Might Also Like

Charted | How People Get Around in America, Europe, and Asia 🚶‍♂️

Saturday, May 11, 2024

Examining how people get around on a daily basis using cars, public transit, and walking or biking, and the regional differences in usage. View Online | Subscribe Presented by Voronoi: The App Where

⚙️ How AI is Revolutionizing Sales Coaching

Saturday, May 11, 2024

Selling with the help of AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Weekend Reading — Stack over you

Saturday, May 11, 2024

This week we remove gatekeepers from our CI, break a Guinness world record, redesign review ratings, understand the meaning behind “job requirements”, and level up. 😎 Labnotes (by Assaf Arkin) Weekend

Why Apple’s ‘Crush’ ad is so misguided

Saturday, May 11, 2024

Plus: How AI deepfakes took over the Met Gala View this email online in your browser By Cody Corrall Saturday, May 11, 2024 Image Credits: Apple Welcome to Week in Review: TechCrunch's newsletter

🐍 New Python tutorials on Real Python

Saturday, May 11, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python News: What's New From April 2024 In

CensysGPT: AI-Powered Threat Hunting Tool for Cybersecurity Pros

Saturday, May 11, 2024

THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS

📧 Building Resilient Cloud Applications With .NET

Saturday, May 11, 2024

​ Building Resilient Cloud Applications With .NET Read on: m​y website / Read time: 7 minutes BROUGHT TO YOU BY ​ Build API Applications Visually ​ Build API applications visually using Postman Flows.

The worst of the VC fund performance may be behind us

Friday, May 10, 2024

Plus: Zeekr's shares pop and Dell's data breach did include personal data View this email online in your browser By Christine Hall Friday, May 10, 2024 Good afternoon, and welcome to TechCrunch

DeepMind releases AlphaFold 3 - Weekly News Roundup - Issue #466

Friday, May 10, 2024

Plus: OpenAI releases Model Spec; Neuralink publishes progress update; Tesla shares new video of Optimus; growing meat with Gatorade; and more! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Issue #540: Jam winners, AGILE, and game of life in 3D

Friday, May 10, 2024

Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #540 - May 10th 2024 If you have anything you want to share with the HTML5 game