DEV Community

This Week In JavaScript
This Week In JavaScript

Posted on

Mozilla's new Machine Learning API, BIG changes in Bun 1.2, developer tools, and more

Hello JavaScript Enthusiasts!

Welcome to another edition of "This Week in JavaScript"!

From Bun 1.2’s performance improvements to AI-powered web extensions in Mozilla Firefox, along with the latest tools shaking up the ecosystem, we have a lot to unpack.

Let’s get right into it!

Bun 1.2: Better, Faster, Stronger

Bun 1.2 is making headlines in the JavaScript runtime scene, pushing the boundaries of Node.js compatibility with significant updates. Thousands of bug fixes and performance improvements make Bun a more reliable option for production-ready environments. Migrating from Node.js has never been easier, as Bun minimizes breakage and maintains functionality.

Key Features:

  • Text-Based Lockfile: Bun transitions to a text-based lockfile for easier dependency management and debugging, improving clarity in project workflows.

  • Native Support for S3 & Postgres: Developers can now enjoy seamless integration with Amazon S3 and Postgres, accelerating cloud development setups.

  • JSONC Support: JSON files with comments make configuration more readable and manageable.

  • 3x Faster Express.js: A massive performance boost, making Express.js apps run up to 3x faster.

Transformers.js v3.3

Transformers.js v3.3 continues to advance the machine learning landscape, delivering cutting-edge NLP (natural language processing) and TTS (text-to-speech) directly to your browser. No server-side processing is required—everything runs smoothly client-side.

Standout Features:

  • StyleTTS 2: A near-human text-to-speech model that works within the browser, perfect for voice assistants or speech features.

  • Grounding DINO: Zero-shot object detection that works without labeled data, ideal for real-time applications.

  • React Integration: Improved integration with React makes using ML models in web apps easier than ever.

  • Live Demos: Test real-time TTS capabilities with impressive results, rivaling cloud services.

Mozilla’s ML-Powered Web Extensions

Mozilla Firefox’s Nightly browser introduces a machine learning API, enabling on-device ML tasks with no need for cloud processing. This privacy-first approach reduces latency while ensuring data security.

What You Can Do with Firefox’s ML API:

  • On-device Text Summarization: Summarize articles and web content without external servers.

  • Object Detection & Image Classification: Perform tasks like object recognition directly in the browser.

  • Powered by Transformers.js & ONNX Engine: Seamless integration with these tools offers fast, secure ML operations.

This API brings privacy-focused, on-device ML to developers, creating new opportunities for AI-powered web applications.

Tools & Releases You Should Know About

Let’s take a quick look at the latest tools making waves in the JavaScript world this week!

  • Rspack v1.2: Boosts bundling efficiency with a persistent cache (hot starts 250% faster!), Yarn PnP support, and Angular integration.

  • Capacitor 7: Fully supports Android 15 and iOS 18, Swift Package Manager, and streamlined dependency management for cross-platform app development.

  • Vitest 3.0: Enhances Vite-native testing with multi-browser setups, line-based test filtering, and community-driven innovations.

  • ArkType 2.0: Runtime validation redefined—100x faster than Zod, bridging TypeScript to JavaScript effortlessly.

  • React Admin 5.5: Now supports React 19, React Router 7, and MUI 6, with bulk actions, string array editing, and better caching for B2B frontends.

And that's it for the nineteenth issue of "This Week in JavaScript", brought to you by jam.dev—the tool that makes it impossible for your team to send you bad bug reports.

Feel free to share this newsletter with a fellow developer, and make sure you're subscribed to get notified about the next issue.

Until next time, happy coding!

References

Bun 1.2

Transformers.js v3.3

Mozilla’s ML API

Rspack v1.2

Capacitor 7

Vitest 3.0

ArkType 2.0

React Admin 5.5

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay