# Bun bun-v0.0.40 — Release & Upgrade Intelligence
- **Product:** Bun (https://bun.sh)
- **Version:** bun-v0.0.40
- **Released:** Oct 29, 2021
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/bun/updates/bun-v0.0.40/

## Executive Summary (TL;DR)
Bun bun-v0.0.40. Source highlight: It's been a busy couple weeks.

## New Features
- `bun run` also adds any `node_modules/.bin` executables to the PATH, so e.g. if you're using Relay, you can do `bun run relay-compiler` and it will run the version of `relay-compiler` for the specific project.

## Improvements
- Improved testing coverage. Bun now has integration tests that check a simple Next.js app bundles & server-side prerenders successfully.  If JavaScriptCore's JIT is not enabled while server-side rendering, the tests fail. Another integration test checks that a simple Create React App loads. It uses `bun create` to bootstrap the projects.

## Bug Fixes
- Fix all known unicode encoding & decoding bugs. Part of what makes parsing & printing JavaScript complicated is that JavaScript officially uses UTF-16 for strings, but the rest of the files on your computer likely use UTF-8.  This gets extra complicated with server-side rendering because JavaScriptCore expects either a UTF-16 string for source code or a UTF-8 string. UTF-16 strings use about twice as much memory as UTF-8 strings. Instead of wasting memory, Bun escapes the strings where necessary
- Fixed several edgecases with the `.env` loader. `.env` values are now parsed  as strings instead of something JSON-like
