{"version":"2.1.113","anchor":"massive-internal-refactoring-native-node-js-modules","canonical_anchor":"massive-internal-refactoring-native-node-js-modules","heading":"Massive Internal Refactoring: Native Node.js Modules","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.113\/e\/massive-internal-refactoring-native-node-js-modules","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.113","markdown":"### Massive Internal Refactoring: Native Node.js Modules\n\nThe most significant internal change in this release is a wholesale migration from bundled polyfills and custom wrappers to native Node.js built-in modules:\n\n- **Removed bundled libraries**: WebSocket (`ws` client\/server), undici HTTP client, Fetch API polyfill, URL\/URLSearchParams polyfill, YAML parser, FormData implementation, Bidirectional Text Algorithm, HTTP\/1.1 and HTTP\/2 protocol handlers\n- **Replaced with**: Direct `require()` calls to Node.js built-ins (`fs`, `fs\/promises`, `path`, `crypto`, `os`, `url`, `http`, `http2`, `stream`, `child_process`, `net`, `events`, `buffer`, `util`, `vm`, `module`)\n- **Custom file system wrappers removed**: The 40+ method `kv5` filesystem abstraction layer was removed in favor of direct `fs` and `fs\/promises` calls throughout the codebase\n- Over 100 scattered module imports were consolidated into centralized initialization blocks\n- Custom UUID generation replaced with `crypto.randomUUID()` across dozens of call sites\n- Custom path utilities replaced with `path.join()`, `path.resolve()`, `path.basename()`, etc.\n\nThis results in a smaller bundle size and better alignment with the Node.js runtime."}