# Node.js v21.2.0 - Release & Upgrade Intelligence
- **Product:** Node.js (https://nodejs.org)
- **Version:** v21.2.0
- **Released:** Nov 14, 2023
- **Impact Score:** 7/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/nodejs/updates/v21.2.0/

## Executive Summary (TL;DR)
Node.js v21.2.0 introduces new SEMVER-MINOR capabilities including `import.meta.dirname` and `import.meta.filename` for ES modules, navigator API expansions, and a built-in lcov reporter for the test runner. Upgrading provides useful platform improvements and diagnostic additions without requiring immediate code migrations.

## New Features
- esm: add import.meta.dirname and import.meta.filename
- lib: add `--no-experimental-global-navigator` CLI flag
- lib: add navigator.language & navigator.languages
- lib: add navigator.platform
- stream: add support for `deflate-raw` format to webstreams compression
- test_runner: adds built in lcov reporter
- test_runner: add Date to the supported mock APIs
- test_runner, cli: add --test-timeout flag
- fs: add stacktrace to fs/promises

## Improvements
- buffer: improve Buffer.equals performance
- stream: use Array for Readable buffer
- stream: optimize creation
- perf_hooks: reduce overhead of createHistogram

## Bug Fixes
- lib: fix assert shows diff messages in ESM and CJS
