Bun: bun-v0.0.34 Release

Release date:
October 7, 2021
Previous version:
bun-v0.0.32 (released October 5, 2021)
Magnitude:
154 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

16 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Authored October 6, 2021
Authored October 7, 2021
Authored October 5, 2021
Authored October 6, 2021
Authored October 6, 2021
Authored October 6, 2021
Authored October 7, 2021
Authored October 7, 2021
Authored October 6, 2021
Authored October 7, 2021
Authored October 7, 2021
Authored October 7, 2021

Top Contributors in bun-v0.0.34

Jarred-Sumner

Directory Browser for bun-v0.0.34

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Features

Slightly better tsconfig.json handling: - jsxImportSource support – if you set jsxImportSource to "@emotion/react", JSX will auto-import from "@emotion/react/jsx-dev-runtime" instead of "react/jsx-dev-runtime" - jsxFragmentFactory support – this lets you override what <> transforms into. By default it's "Fragment", since <> becomes React.Fragment normally. - jsxFactory support – if you set jsxFactory to "h", when using the classic JSX runtime, it will run h instead of createElement

This makes it easier to use @emotion/react, preact, and other JSX runtimes with Bun.

Bug fixes

  • [fetch] Fix bug with HTTP request bodies for http (not https) requests
  • Fix JSX transform edgecase with static children to match Babel's behavior (static === children.length > 1)
  • Fix node_module resolver edgecase when resolving from the dev server (not bun bun) that happened when resolving workspace packages above the project root that expect dependencies from the project. This applied to pnpm

Other: - Add a small end-to-end test for emotion JSX - Add a small end-to-end test for React Context.Provider & Context.Consumer - Add analytics