Releases: oven-sh/bun
Bun v1.0.9
To install Bun v1.0.9:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.9:
bun upgrade
Read Bun v1.0.9's release notes on Bun's blog
What's Changed
- chore: build and publish canary windows builds by @paperdave in #6834
- fix jsx key parse and visit order by @dylan-conway in #6866
- more install tests by @dylan-conway in #6867
- Fix edgecase from
eeb3f7b
by @Jarred-Sumner in #6870 - fix: baseline+linux arm64 builds by @paperdave in #6873
- Spawn ref count by @dylan-conway in #6890
- Add more tests for Bun.spawn lifecycle and address edgecase by @Jarred-Sumner in #6904
Full Changelog: bun-v1.0.8...bun-v1.0.9
Bun v1.0.8
To install Bun v1.0.8:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.8:
bun upgrade
Read Bun v1.0.8's release notes on Bun's blog
New Contributors
- @Pedromdsn made their first contribution in #6626
- @yamcodes made their first contribution in #6656
- @nxzq made their first contribution in #6673
- @jasperkelder made their first contribution in #6703
- @thapasusheel made their first contribution in #6718
- @RaisinTen made their first contribution in #6745
- @rohanmayya made their first contribution in #6679
- @perpetualsquid made their first contribution in #6774
- @Smoothieewastaken made their first contribution in #6772
- @gamedevsam made their first contribution in #6788
- @kingofdreams777 made their first contribution in #6787
- @RohitKaushal7 made their first contribution in #6739
- @I-A-S made their first contribution in #6756
- @krk made their first contribution in #6808
- @antongolub made their first contribution in #6748
- @Marukome0743 made their first contribution in #6819
Full Changelog: bun-v1.0.7...bun-v1.0.8
Bun v1.0.7
To install Bun v1.0.7:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.7:
bun upgrade
Read Bun v1.0.7's release notes on Bun's blog
What's Changed
- fix editing package json when adding github dependency by @dylan-conway in #6432
- Upgrade zig to 0.12.0-dev.888+130227491 by @paperdave in #6471
- Add overrides/resolutions docs by @colinhacks in #6476
- fixes obvious typo in CONTRIBUTING.md by @clay-curry in #6479
- Adds systemd guide to run a bun application as a daemon by @RaresAil in #6451
- Fix dns.lookup returning wrong address for family by @Electroid in #6474
- fix(error): correct the
path
field in syscall error message. by @Hanaasagi in #6370 - fix(node): dns lookup deprecated behavior by @JoaoAlisson in #6391
- Guide to containerize a bun application using Docker by @RaresAil in #6478
- fix lockfile struct padding by @dylan-conway in #6495
- fix installing dependencies that match workspace versions by @dylan-conway in #6494
- fix(net/tls) fix pg hang on end + hanging on query by @cirospaciari in #6487
- Development -> Contributing by @colinhacks in #6538
- Fix a bunch of small things by @Electroid in #6539
- fix(node:worker_threads): ensure threadId property is exposed on worker_threads instance by @jerome-benoit in #6521
- packages:bun-types:add-type-parameter-to-expect by @Voldemat in #6128
- fix-subprocess-argument-missing by @RaresAil in #6407
- fix Response.statusText by @toshok in #6151
- fix(sqlite) Insert .all() does not return an array #5872 by @HForGames in #5946
- fix: don't remove content-encoding header from header table by @liz3 in #5743
- perf(node:events): optimize
emit(...)
function by @yschroe in #5485 - fix(test): when tests run with --only the nested describe blocks `.on… by @igorshapiro in #5616
- Simplify getting Set of extentions by @Connormiha in #4975
- fix(runtime): improve IPC reliability + organization pass on that code by @paperdave in #6475
- fix(runtime): make some things more stable (partial jsc debug build) by @paperdave in #5881
- perf(bun-types): remove needless some call by @Connormiha in #6550
- docs: fix ws.publish by @aralroca in #6558
- fix(node:http): fix
server.address()
by @Hanaasagi in #6442 - use npm alias in dependencies by @dylan-conway in #6545
- fix #4766 by @pierre-cm in #6563
- fix: stub performance.getEntriesByName by @liz3 in #6542
- Fix minimum kernel version in docs by @klatka in #6153
- fix: online docs moved by @mountainash in #6579
- fix: change
--no-scripts
to--ignore-scripts
by @owlcode in #6587 - fix(node:buffer): fix the behavior of
totalLength
inBuffer.concat
by @Hanaasagi in #6574 - fix(serve): When IPv6 is not enabled, attempt to bind to IPv4 address under the same hostname. by @Hanaasagi in #6533
- Add append content to a file guide by @nygmaaa in #6581
- fix install add by @dylan-conway in #6609
- fix(install): dont replace git urls when already present by @liz3 in #6607
- Fix websocket upgrade by @Electroid in #6564
- fix: support custom file type in Bun.file by @liz3 in #6512
- String response for lambda function - no need to stringify string by @vladaman in #6208
- Fix missing function names in console.log and Bun.inspect by @Jarred-Sumner in #6612
- fix findBestMatch so it finds the best match and not the first match by @dylang in #6611
- respect optional peer dependencies and update docs by @dylan-conway in #6615
- Sort list of dependencies and fix test by @Jarred-Sumner in #6616
- Update quickstart.md - removed the part for editing
compilerOptions
… by @PaulaBurgheleaGithub in #6620 - fix(napi): incorrect refCount with napi_wrap() by @alangecker in #6598
- Fixes IV calculation for AES-GCM mode by @imcatwhocode in #6590
New Contributors
- @clay-curry made their first contribution in #6479
- @jerome-benoit made their first contribution in #6521
- @Voldemat made their first contribution in #6128
- @toshok made their first contribution in #6151
- @HForGames made their first contribution in #5946
- @yschroe made their first contribution in #5485
- @Connormiha made their first contribution in #4975
- @aralroca made their first contribution in #6558
- @pierre-cm made their first contribution in #6563
- @klatka made their first contribution in #6153
- @mountainash made their first contribution in #6579
- @owlcode made their first contribution in #6587
- @nygmaaa made their first contribution in #6581
- @vladaman made their first contribution in #6208
- @PaulaBurgheleaGithub made their first contribution in #6620
- @alangecker made their first contribution in #6598
- @imcatwhocode made their first contribution in #6590
Full Changelog: bun-v1.0.6...bun-v1.0.7
Bun v1.0.6
To install Bun v1.0.6:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.6:
bun upgrade
Read Bun v1.0.6's release notes on Bun's blog
What's Changed
- Docs : Added instructions to run bun apps in daemon (PM2) to address … by @h2210316651 in #5931
- fix #6416 by @dylan-conway in #6430
- feat(install): support npm overrides/yarn resolutions, one level deep only by @paperdave in #6435
- chore: add missing ending quote by @ImLunaHey in #6436
New Contributors
- @ImLunaHey made their first contribution in #6436
Full Changelog: bun-v1.0.5...bun-v1.0.6
Bun v1.0.5
To install Bun v1.0.5:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.5:
bun upgrade
Read Bun v1.0.5's release notes on Bun's blog
What's Changed
- Add license information to package.json by @mathiasrw in #6255
- Docs: Update context.md by @wbjohn in #6256
- docs: update
typescript.md
by @jsparkdev in #6222 - feat(encoding): support BOM detection with test passed by @WingLim in #6074
- Fix bunx command for github package #5974 by @axlEscalada in #6042
- fix(blob): Add the current offset to the new blob slice by @Hanaasagi in #6259
- compat: Buffer: allow optional positional arguments to be undefined by @kitsuned in #4911
- Support
bun run --if-present
by @Electroid in #6248 - Upgrade webkit by @dylan-conway in #6277
- Closes #6309 by @colinhacks in #6310
- Create
AbortSignal
without JS by @Jarred-Sumner in #6278 - Update
preload
documentation to make applicability to plugins more obvious by @Pandapip1 in #6298 - Fix
query
property ofurl
object by @Jarred-Sumner in #6274 - fix semver and repository host bugs by @dylan-conway in #6312
- Use singular nouns when appropriate on install messages by @jakeboone02 in #2543
- Update Node.js compat docs by @colinhacks in #6282
- test(bun install): cover http(s) non-github case by @booniepepper in #6190
- WebCryptoAPI: remove JWK "EdDSA" alg checks by @panva in #6294
- fix(serve): fix
close_connection
behaviour inendWithoutBody
by @Hanaasagi in #6315 - docs:
file.stream()
is not a promise by @pnodet in #6337 - [types] allow onLoad plugin callbacks to return undefined by @silversquirl in #6346
- Fix memory leak in fetch() by @Jarred-Sumner in #6350
- feat(KeyObject) by @cirospaciari in #5940
- Fix array variables preview in debugger by @2hu12 in #6379
- fix: support uint8 exit code range by @liz3 in #6303
- docs: fixing a couple typos by @Cadienvan in #6331
- Update README.md by @Longju000 in #6291
- added commands by @babarkhuroo in #6314
- [Docs] Add Fedora build instructions to development.md by @otterDeveloper in #6359
- fix(AbortSignal/fetch) fix AbortSignal.timeout, fetch lock behavior and fetch errors by @cirospaciari in #6390
- Documentation for the IPC of Bun.spawn by @RaresAil in #6400
- Update vite.md : removal of incorrect information about --bun flag by @yukulele in #6399
- Add missing ws declarations by @vthemelis in #6307
- docs: rearranged cli/runtime related sections by @cyfung1031 in #6275
- Add File to binary data TOC by @AaronDewes in #6025
- make peer dependencies install by default by @dylan-conway in #6396
- fix: form data content type by @yadav-saurabh in #6380
- feat(test): implement
toEqualIgnoringWhitespace
by @EladBezalel in #6293 - Fix lifecycle scripts not running on reinstallation by @Arden144 in #6376
- feat(install): automatically migrate package-lock.json to bun.lockb by @paperdave in #6352
New Contributors
- @mathiasrw made their first contribution in #6255
- @wbjohn made their first contribution in #6256
- @jsparkdev made their first contribution in #6222
- @kitsuned made their first contribution in #4911
- @Pandapip1 made their first contribution in #6298
- @panva made their first contribution in #6294
- @2hu12 made their first contribution in #6379
- @Cadienvan made their first contribution in #6331
- @Longju000 made their first contribution in #6291
- @babarkhuroo made their first contribution in #6314
- @otterDeveloper made their first contribution in #6359
- @RaresAil made their first contribution in #6400
- @yukulele made their first contribution in #6399
- @vthemelis made their first contribution in #6307
- @EladBezalel made their first contribution in #6293
- @Arden144 made their first contribution in #6376
Full Changelog: bun-v1.0.4...bun-v1.0.5
Bun v1.0.4
To install Bun v1.0.4:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.4:
bun upgrade
Read Bun v1.0.4's release notes on Bun's blog
What's Changed
- fix(runtime): exclude unevaluated module in
require.cache
by @Hanaasagi in #5903 - docs: use the correct channel name for feedback by @jumoog in #5899
- Remove bun dev stuff from create_command by @colinhacks in #5939
- [install] fix GitHub dependency bugs by @dylan-conway in #5941
- isBinary by @dylan-conway in #5944
- Update installation.md by @sonyarianto in #5968
- docs: update link to templates in remix guide by @meck93 in #5965
- fix(lockfile): ensure all bytes of union are initialized before serialization. by @Hanaasagi in #5957
- Fixes #5985 by @Jarred-Sumner in #5986
- Use c-ares function for checking if a string is an IP address by @Jarred-Sumner in #5950
- docs: Fixes link to vitejs by @aszenz in #5959
- docs:
bun init
is missing in README by @cyfung1031 in #5989 - Update writing.md - Remove duplicate code snippet by @jeroenvanrensen in #5966
- Correctly fix #5888 by @Jarred-Sumner in #6000
- Do not use removefileat() by @Jarred-Sumner in #6001
- fix latest dev build panic by @Hanaasagi in #6026
- Fix create command with template prefixed with @ char #6007 by @axlEscalada in #6013
- Add fs.statfs{Sync} to missing fs apis by @techvlad in #6030
- Make error message for
new URL(invalid)
better by @Jarred-Sumner in #6032 - Add
Module._extensions
by @Jarred-Sumner in #5998 - Drain microtasks at end of abort() if called into JS by @Jarred-Sumner in #6036
- fix
captureStackTrace
inside constructor withoutsuper
in extended by @dylan-conway in #6063 - docs: fixed small error by @0xflotus in #6077
- docs: update astro.md to v3 by @Dawntraoz in #6070
- Improve Docker images by @Electroid in #5771
- fix: Docker - Include
bunx
symlink in distroless variant by @polarathene in #6090 - fix(fetch/server) fix server end of stream, fix fetch not streaming without content-length or chunked encoding, fix case when stream do not return a promise on pull by @cirospaciari in #6086
- fix: support console.dir options object correctly by @liz3 in #6059
- fix workspace dependency install by @dylan-conway in #6092
- fix(node:fs): fix
fs.exists
callback parameters by @Hanaasagi in #6097 - fix: Docker - Apply workaround with
RUN
to symlinkbunx
by @polarathene in #6100 - fix: implement correct behaviour for urls with blob: scheme by @liz3 in #5825
- Update developer arch install steps for llvm and clang by @booniepepper in #6120
- Update run.md by @DarthDanAmesh in #6099
- fix(bun install): Handle vercel and github tarball path dependencies by @booniepepper in #6122
- revert fix for passing empty env vars to
bun run
by @dylan-conway in #6123 deadCodeElimination
toggle for Bun.Transpiler by @jhmaster2000 in #5932- fix typescript metadata for import identifiers by @dylan-conway in #6130
- Complete rework of the majority of
node:util
, primarilyutil.inspect
by @jhmaster2000 in #4493 - Get Next.js Pages Router to work by @paperdave in #6095
- docs: update image astro.md by @Dawntraoz in #6149
- Reduce memory usage of HTTP server by @Jarred-Sumner in #6135
- Add local tarball install #5812 by @axlEscalada in #6118
- docs (runtime): the order of checking files when using bare impoort by @devinjohw in #5919
- Upgrade to latest Node.js version by @Jarred-Sumner in #6158
- Fixes #6053 by @Jarred-Sumner in #6162
- feat(runtime): implement
server.requestIp
+ node:httpsocket.address()
by @paperdave in #6165 - fix(resolver): support encoded file urls by @paperdave in #5766
- fix(runtime): Socket.prototype is undefined by @paperdave in #5945
- fix: don't set default request method when creating a Request from another by @liz3 in #6154
- fix(runtime): followup for
server.requestIP
by @paperdave in #6185 - Implement virtual module support in
Bun.plugin
by @Jarred-Sumner in #6167 - Fix hang in
bun install
by @Jarred-Sumner in #6192 - tweak github actions by @Jarred-Sumner in #6195
- Fix bug causing "Connection Refused" errors by @Jarred-Sumner in #6206
- fix(node:process): fix return value of
process.kill
by @Hanaasagi in #6207 - Slightly reduce number of open file descriptors in
bun install
by @Jarred-Sumner in #6219 - Added the fileExtensions field to file-system-router.md by @cornedor in #6231
- Add Bun.TOML to types by @colinhacks in #6161
- Update development.md by @ciceropablo in #6221
- Warn at start when using AVX build of Bun without AVX support by @Jarred-Sumner in #6242
- Fix
bun install
reading Github API from wrong environment variable by @Electroid in #6247 - Set
fetch
timeout to 5 minutes by @Jarred-Sumner in #6217 - Store workspace package versions by @dylan-conway in #6258
New Contributors
- @meck93 made their first contribution in #5965
- @aszenz made their first contribution in #5959
- @cyfung1031 made their first contribution in #5989
- @axlEscalada made their first contribution in #6013
- @techvlad made their first contribution in #6030
- @Dawntraoz made their first contribution in #6070
- @polarathene made their first contribution in #6090
- @DarthDanAmesh made their first contribution in #6099
- @devinjohw made their first contribution in #5919
- @cornedor made their first contribution in #6231
- @ciceropablo made their first contribution in #6221
Full Changelog: bun-v1.0.3...bun-v1.0.4
Bun v1.0.3
To install Bun v1.0.3:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.3:
bun upgrade
Read Bun v1.0.3's release notes on Bun's blog
What's Changed
- VSCode Extension Bunlock Syntax-Highlighting and Docs Improvements by @JeremyFunk in #4652
- docs(runtime): fix some typo. by @zongzi531 in #5451
- Update development.md by @sonyarianto in #5531
- fix(corking) uncork if needed by @cirospaciari in #5525
- fix(request) handle undefined/null/empty signal on request by @cirospaciari in #5503
- fix(bundler): Add a space before minified require by @davidmhewitt in #5521
- fix(node/fs.watch): Check first char before trimming event filenames by @davidmhewitt in #5505
- webkit upgrade by @dylan-conway in #5535
- Follow-up for workspace docs #5379 and #5229 by @bdenham in #5555
- fix:
ArrayBufferConstructor
type signature by @52 in #5579 - fix:
array-buffer.test-d.ts
test by @52 in #5580 - fix: node compatibility with empty path string (stat, exist, ...) by @coratgerl in #4693
- Make error message when importing a node: module in a browser bundle clearer by @Jarred-Sumner in #5603
- docs: fix typo in lockflie nav by @Vilsol in #5576
- Docs: path aliases fix by @e253 in #5593
- fix(fetch) handle 100 continue by @cirospaciari in #5496
- feat(encoding): TextDecoder support undefined by @WingLim in #5387
- fix(child_process) unref next tick so exit/close event can be fired before application exits by @cirospaciari in #5481
- Implement VSCode tasks for bun by @JeremyFunk in #5529
- fix(install): Return NotSupported when errno == XDEV by @pan93412 in #5610
- Fix ZLS commit hash in the document by @shinichy in #5510
- Added .DS_Store to gitignore-for-init by @Cilooth in #5628
- Workaround #5604 by @Jarred-Sumner in #5615
- Fix a TypeError in the documentation by @LapsTimeOFF in #5626
- Add a way to disable the GC timer by @Jarred-Sumner in #5656
- Remove hardcoded references to zig in Makefile by @xbjfk in #5660
- feat(console.log): Print anonymous when class name is unknown by @JibranKalia in #5595
- feat(test): Implement
arrayContaining
by @WingLim in #5572 - In
bun:sqlite
, make sure we set the number tag correctly when creating the JSValue by @Jarred-Sumner in #5655 - fix(config): support for registry url without trailing slash by @Hanaasagi in #5662
- fix(docs): update formatting by @rauny-brandao in #5685
- docs: add missing options from bun init by @jumoog in #5638
- change circles for color-blinds by @Hamcker in #5594
- Fix HTTP listen behavior being non-compliant with node by @paperdave in #5689
- feat(runtime): Implement
console.Console
by @paperdave in #5448 - Implement
node_api_create_external_string_latin1
by @Jarred-Sumner in #5675 - fix(runtime/node): Allow
new Buffer.alloc()
+ Upgrade WebKit by @paperdave in #5699 - fix: remove unneeded branch in toJSONWithBytes by @liz3 in #5684
- update llvm version from 15 to 16 in makefile by @nithinkjoy-tech in #5696
- fix: provide empty string to 0 length process environment variables by @liz3 in #5679
bun run
fix missing script error on empty file by @Parzival-3141 in #5025- Add navigator type definition by @ruihe774 in #5444
- Encode slashes in package names in the registry manifest request by @Jarred-Sumner in #5716
- Make bun install --verbose more verbose by @Jarred-Sumner in #5726
- Fixes #3712 by @Jarred-Sumner in #5730
- Align fetch() redirect behavior with spec by @Jarred-Sumner in #5729
- Get artifactory to work by @Jarred-Sumner in #5744
- docs: Update Remix guide by @brookslybrand in #5702
- Added react installation to react.md by @jt3k in #5620
- remind users of the latest version by @jumoog in #5597
- docs: update
net
node documentation by @weyert in #5562 - docs(development): typo which would lead to wrong llvm installation by @sum117 in #5513
- Doc updates by @colinhacks in #5759
- fix(cli):
bun pm cache rm
command not work by @WingLim in #4571 - fix(Makefile) by @cirospaciari in #5762
- Fixes #5769 by @Jarred-Sumner in #5775
- add warning to Ensure correct placement of the '--watch' flag by @a4addel in #5447
- Updated modules.md to address issue #5420 by @h2210316651 in #5456
- docs: add Qwik guide by @sanyamkamat in #4810
- Show when a newer version is available in the install summary by @Jarred-Sumner in #5780
- Fix RedirectURLTooLong errors by @ggobbe in #5786
- Fix path used in bunx by @Jarred-Sumner in #5785
- Call
Error.prepareStackTrace
onnew Error().stack
by @Jarred-Sumner in #5802 - fix(doc): correct
server.reload
by @Hanaasagi in #5799 - add
emitDecoratorMetadata
by @dylan-conway in #5777 - Fix bugs for VSCode extension 0.0.9 release by @JeremyFunk in #5772
- Treat
undefined
value as empty in expect.toThrow by @Brooooooklyn in #5788 - feat: switch disableTelemetry to bunfig by @coratgerl in #5690
- [bun install] Add
-E
as alias of--exact
by @jonahsnider in #5104 - Improve types for
test.each
,describe.each
by @colinhacks in #5838 - feat(runtime): implement
console._stdout
by @paperdave in #5842 - feat(runtime): implement
Module.prototype._compile
[fixjsonpath
] by @paperdave in #5840 - feat(node:dns): implement
dns.lookupService
by @Hanaasagi in #5613 - feat(encoding): support BOM detection by @WingLim in #5550
- fix(ffi) fix size limit for dlopen by @cirospaciari in #5516
- fix(run): interpret extensionless files as typescript by @paperdave in #5711
- docs(project): development fix Arch install-dependencies command by @yadav-saurabh in #5270
- fix(fetch): fix redirect in relative path location. by @Hanaasagi in #5781
- fix(console.log): change default depth from 8 to 2 by @JibranKalia in #5839
- fix: add check to sqlite extension loading logic by @liz3 in #5773
- Fix
make jsc
on Linux by @AaronDewes in #4779 - On Linux, respect memory limit from cgroups by @Jarred-Sumner in #5849
- Fix test failures by @Jarred-Sumner in #5862
- chore: Update ZSH completions (1.0.0+822a00c build) by @Hanaasagi in #4428
- fix(node:fs): use the right
copyFile
constants by @paperdave in #5874 - fix: correctly pass the encrypted(bool) property on "Socket" for express.js by @liz3 in #5878
- chore(git): ignore .envrc file by @igorshapiro in #5873
- Don't use arena in node:fs by @Jarred-Sumner in #5863
- docs: add await to all Bun.build() call by @ImBIOS in #5885
- async fs Write deinit and ref buffer by @dylan-conway in #5883
- Hide env elapsed time when loglevel=info by @colinhacks in #5882
- disable child_process execArgv + fix crash in cli parsing by @paperdave in #5843
- fix #5865 by @dylan-conway in https://github.com/oven-sh/bun...
Bun v1.0.2
To install Bun v1.0.2:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.2:
bun upgrade
Read Bun v1.0.2's release notes on Bun's blog
What's Changed
- fix(bun-lambda) Fix API Gateway V1 events and expand on Lambda documentation by @mkossoris in #5161
- fix lifecycle docu by @ximex in #5159
- docs: fix typos by @s-rigaud in #5151
- Updated Lambda readme by @tsndr in #5127
- Add missing full stop on nodejs-apis.md by @diogo405 in #5072
- update dev build instruction for arch by @mi4uu in #5069
- fix typo and grammar errors in bunfig.toml by @xNaCly in #5046
- Update simple.md by @tomredman in #4997
- Update hot.md by @nazeelashraf in #4990
- docs: fix typo in import.meta.resolve by @jonathantneal in #5146
- [Docs] Use git's
--global
flag for lockfile diffs instead of manually editing config files. by @Southpaw1496 in #5143 - Various docs by @colinhacks in #5201
- docs: Made bun-types install as dev dependency in example by @MasterGordon in #5120
- js/node/stream.js: call write() callback when encoding is not provided by @cfal in #4841
- Correct the configuration file names. by @nathanhammond in #5234
- decode regex if needed by @dylan-conway in #5167
- Update misleading documentation link by @0x346e3730 in #5227
- file.exists() needs to be awaited to get the value by @amt8u in #5061
- docs(runtime): fix jsx FragmentFactory output example by @zongzi531 in #5243
- Add informative message on
bun create react
by @colinhacks in #5248 - chore: make comment grammatically correct by @G-Rath in #5140
- docs(runtime): fix plugins loader extensions typo by @zongzi531 in #5250
- avoid inserting extraneous"accept-encoding" header by @iidebyo in #5057
- fix(node/fetch): Make data URL fetch consistent with node by @davidmhewitt in #5126
- docs: update lockfile diff instructions by @gtramontina in #5275
- add uninstall instructions by @browner12 in #5311
- docs(guide): fix expect assertion example in guide for
spyOn
by @winghouchan in #5294 - chore(docs): include missing links to Node.js APIs by @styfle in #5281
- Fixed api & cli docs typo. by @jamesgordo in #5262
- fix(runtime): require cache should not include unevaluated ESM modules. by @paperdave in #5233
- Make --watch instant by @Jarred-Sumner in #5236
- feat(nodejs): implement
os.availableParallelism
by @WingLim in #5109 - fix(console.log) fix printing long custom format by @cirospaciari in #5164
- fix(node:dns): fix crash and compatibility issues with
resolve
by @Hanaasagi in #5200 - fix(doc): Add "compilerOptions" to bun-types README.md by @philolo1 in #5325
- fix(BunFile.slice) fix slice when length is greater than the size by @cirospaciari in #5186
- More docs & helptext cleanup by @colinhacks in #5229
- doc(guides): update sveltekit guide by @mroyme in #5285
- modules documentation didn't have correct import example by @miccou in #5225
- fix link to "local template" by @desm in #5115
- chore: test for overwriting _resolveFilename by @paperdave in #5244
- Fix bug with multiline string in CRLF terminated files (#4893) by @tikotzky in #5318
- fix(runtime): make most globals configurable/deletable, allow resuming the console iterator by @paperdave in #5216
- fix(Bun.serve) fix buffering edge case by @cirospaciari in #5152
- Update nextjs.md by @kryparnold in #4905
- Update simple.md by @TwanLuttik in #4881
- Update nuxt.md by @s0h311 in #4452
- Remove the ability to configure lockfile location. by @nathanhammond in #5335
- In
bunx
, always get latest version when @latest is explicitly passed by @Jarred-Sumner in #5346 - Fix typo in HTTPThread name by @chrisbodhi in #5376
- docs - Add "workspace:*" to workspace docs. by @dylang in #5379
- fix(docs): Fix the text that
bun run --bun
is the same asbun
by @DuGlaser in #4647 - fix warnings during bun run publish-layer by @nangchan in #5419
- fix(runtime): emit
node:net
connect error event vs throw by @paperdave in #5336 - v8 date parser tests by @dylan-conway in #5332
- async-ify all node:fs functions by @Jarred-Sumner in #5360
- fix dockerfile by @Jarred-Sumner in #5439
- fix http set cookie headers by @dylan-conway in #5428
- fix(nitro) fix sourcemaps and JSSink closing by @cirospaciari in #5422
- Update docs/quickstart.md by @sonyarianto in #5425
- dup and close file descriptors by @dylan-conway in #5341
- Make
bun run --silent
omit"error: "..." exited with code 1
by @Jarred-Sumner in #5459 - Does not fix #4622 by @Jarred-Sumner in #5452
- fix(proxy): allow empty string
http_proxy
env by @Hanaasagi in #5464 - Implement
URL.canParse
by @Jarred-Sumner in #5463 - Fixes #5461 by @Jarred-Sumner in #5467
- Fixes #5465 by @Jarred-Sumner in #5468
New Contributors
- @mkossoris made their first contribution in #5161
- @ximex made their first contribution in #5159
- @s-rigaud made their first contribution in #5151
- @tsndr made their first contribution in #5127
- @mi4uu made their first contribution in #5069
- @xNaCly made their first contribution in #5046
- @tomredman made their first contribution in #4997
- @nazeelashraf made their first contribution in #4990
- @jonathantneal made their first contribution in #5146
- @Southpaw1496 made their first contribution in #5143
- @MasterGordon made their first contribution in #5120
- @cfal made their first contribution in #4841
- @nathanhammond made their first contribution in #5234
- @0x346e3730 made their first contribution in #5227
- @amt8u made their first contribution in #5061
- @zongzi531 made their first contribution in #5243
- @G-Rath made their first contribution in #5140
- @iidebyo made their first contribution in #5057
- @gtramontina made their first contribution in #5275
- @browner12 made their first contribution in #5311
- @winghouchan made their first contribution in #5294
- @philolo1 made their first contribution in #5325
- @mroyme made their first contribution in #5285
- @miccou made their first contribution in #5225
- @desm made their first contribution in #5115
- @tikotzky made their first contribution in #5318
- @kryparnold made their first contribution in #4905
- @TwanLuttik made their first contribution in #4881
- @s0h311 made their first contribution in #4452
- @chrisbodhi made their first contribution in #5376
- @dylang made their first contribution in #5379
- @DuGlaser made their first contribution in #464...
Bun v1.0.1
To install Bun v1.0.1:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0.1:
bun upgrade
Read Bun v1.0.1's release notes on Bun's blog
What's Changed
- docs: Fix typo in development.md by @TiranexDev in #4578
- Fix
Bun.CryptoHasher
missing argument in docs by @samualtnorman in #4585 - Make the link to application clickable in the terminal by @brablc in #4544
- Move "Importing CJS from CJS" back out of low-level details section by @dfabulich in #4600
- docs: fix
--backend
options list on cache.md by @vitordino in #4599 - Fix code typo in transpiler.md by @fdb in #4604
- docs(templates.md): spelling update by @rajatdua in #4614
- Update Svelte Kit Docs by @e253 in #4541
- Update mongoose.md by @tk120404 in #4534
- Delete docs/ecosystem/buchta.md by @xxxhussein in #4536
- fix(docs): fix "Connect to a WebSocket server" repeated documentation by @BeeMargarida in #4615
- Fix listen() using unix socket if argument is a valid port by @Electroid in #4620
- fix typo by @akumarujon in #4639
- fix: remove
.only
frombun-server.test.ts
test case by @chrishutchinson in #4709 - fix(docs): fix wasi-js link by @wobsoriano in #4741
- fix(docs); typo on Nuxt guide page by @thunfisch987 in #4745
- Fix mongoose ecosystem guide by @fecony in #4740
- docs: fix spelling by @therealrinku in #4763
- fix(bindings): add missing binding by @WingLim in #4682
- docs: Update Bun.write(path, Response) example to be clear that it writes the body by @tom-sherman in #4802
- Docs: Add compatibility page link to index.md by @Slikon in #4809
- Update todo-tests.md by @toneyzhen in #4771
- docs: remove duplicate sentence from debugger by @eknowles in #4807
- Update modules.md - Explain case-insensitivity by @jeroenvanrensen in #4782
- Replace unnecessary backticks (`) with double quotes (") in http doc code snippets by @diogo405 in #4792
- Fixes #4588 by @Jarred-Sumner in #4804
- Support named imports for json & toml files at runtime by @Jarred-Sumner in #4783
- added .idea to init's .gitignore by @kpracuk in #4951
- docs: changes wrong command name in the testing chapter by @AvantaR in #4965
- Make detect-libc package match the upstream api by @fehnomenal in #4910
- Fix punctuation by @matthewyu01 in #4870
- Update http.js - Fix Methods Fallback naming by @Yonben in #4948
- Fixed inconsistent log messages in the Quickstart guide by @pesterev in #4942
- Remove unnecessary backticks in quickstart doc page by @diogo405 in #4927
- Fix error message typo in js_ast.zig by @benjervis in #4937
- fix(bun-lambda): Don't drop arguments in console.log(...) by @booniepepper in #4992
- fix loading env from
.env.production
and friends by @dylan-conway in #4630 - fix(BunFile) .slice offset on macOS by @cirospaciari in #4991
- Fix
Buffer.from
to handle double-byte hex encoding strings by @Hanaasagi in #4933 - fix(path): Fix edge case in
path.relative
by @Hanaasagi in #4811 - Update gzip.md by @ebidel in #5041
- add NODE_TLS_REJECT_UNAUTHORIZED for fetch/install/upgrade/create by @cirospaciari in #4829
- fix(JSC): copy string in
toJSStringValueGC
by @Hanaasagi in #5067 - Fix some bugs blocking Turborepo from using
bun run
by @Jarred-Sumner in #5071 - fix(node/path): Prevent memory corruption in parse by @davidmhewitt in #5083
- fix up with
prettier
by @alexlamsl in #5092
New Contributors
- @samualtnorman made their first contribution in #4585
- @brablc made their first contribution in #4544
- @dfabulich made their first contribution in #4600
- @vitordino made their first contribution in #4599
- @fdb made their first contribution in #4604
- @rajatdua made their first contribution in #4614
- @e253 made their first contribution in #4541
- @tk120404 made their first contribution in #4534
- @BeeMargarida made their first contribution in #4615
- @akumarujon made their first contribution in #4639
- @chrishutchinson made their first contribution in #4709
- @thunfisch987 made their first contribution in #4745
- @fecony made their first contribution in #4740
- @therealrinku made their first contribution in #4763
- @WingLim made their first contribution in #4682
- @tom-sherman made their first contribution in #4802
- @Slikon made their first contribution in #4809
- @toneyzhen made their first contribution in #4771
- @eknowles made their first contribution in #4807
- @jeroenvanrensen made their first contribution in #4782
- @diogo405 made their first contribution in #4792
- @kpracuk made their first contribution in #4951
- @AvantaR made their first contribution in #4965
- @fehnomenal made their first contribution in #4910
- @matthewyu01 made their first contribution in #4870
- @Yonben made their first contribution in #4948
- @pesterev made their first contribution in #4942
- @benjervis made their first contribution in #4937
- @booniepepper made their first contribution in #4992
- @ebidel made their first contribution in #5041
- @davidmhewitt made their first contribution in #5083
Full Changelog: bun-v1.0.0...bun-v1.0.1
Bun v1.0
Today is an exciting day.
To install Bun v1.0:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade to Bun v1.0:
bun upgrade
Read Bun v1.0.0's release notes on Bun's blog
What's Changed
- Fix assertion failure with sourcemaps in multi-threaded transpiler by @Jarred-Sumner in #4321
- Automatically hot reload Bun.serve() by @Jarred-Sumner in #4344
- Fix the crash when importing a module that does not exist. by @Hanaasagi in #4348
- More improvements to debugger support by @Electroid in #4345
- Set the timezone in spawn in tests by @Jarred-Sumner in #4337
- @Electroid's dap changes by @Jarred-Sumner in #4367
- Fix some edge cases in the
env
param ofspawn
. by @Hanaasagi in #4364 - just kernel32 things by @Jarred-Sumner in #4354
- make pending_response and metdata life cycle more clear and make fetch more reliable by @cirospaciari in #4331
- Bring uSockets & uWebSockets forks into Bun's repository by @Jarred-Sumner in #4372
- remove uws from .gitmodules by @prabhatexit0 in #4374
- use
options.fd
if provided forfs.Read/WriteStream
by @dylan-conway in #4378 - feat(node:dns): implement
dns.reverse
. by @Hanaasagi in #4332 - fix #4356 by @dylan-conway in #4386
- Fix close callback and open event for fs streams by @dylan-conway in #4384
- add unix socket support for
node:http.server
by @Hanaasagi in #4390 - fix(node-fetch): use stream.Readable instead of web streams by @paperdave in #4394
- Fix assertion failure in spawn-related tests by @Jarred-Sumner in #4400
- More support for DAP by @Electroid in #4380
- reset signal handlers in Bun.spawn by @Jarred-Sumner in #4405
- fix(http/https) disable decompress on http/https client by @cirospaciari in #4399
- minor rebuild diffs by @alexlamsl in #4416
- exit handlers for resetting tty by @dylan-conway in #4419
- [install] fix stale root life-cycle script in lockfile by @alexlamsl in #4411
- add life cycle scripts to lockfile metahash by @dylan-conway in #4420
- feat(node:fs): add
cp
/cpSync
/promises.cp
+ asynccopyFile
by @paperdave in #4340 - Fix(semver): fix matching with pre-release version by @Hanaasagi in #4412
- get name if not provided in
FormData.append
by @dylan-conway in #4434 bun install
correctly join dependency URLs by @Parzival-3141 in #4421- only set initial debugger breakpoint once by @dylan-conway in #4441
- fix(runtime):
fs.cp
edge cases by @paperdave in #4439 - fix(runtime): fix dns_resolver crash by @paperdave in #4435
- fix
Bun.serve
with tls andBun.file
by @dylan-conway in #4450 - keep
export * as
by @dylan-conway in #4451 - Fix typo in docs/api/tcp by @JorgeJimenez15 in #4445
- docs: fix http simple example log statement by @karlbohlmark in #4320
- fix(runtime): Fix
fs.stat().mtime
on MacOS by @paperdave in #4440 - fix(syscall): fix handling syscall errno by @Hanaasagi in #4461
- fix(HTMLRewriter) buffer response before transform by @cirospaciari in #4418
- docs typo:
loaders
->loader
by @Hanaasagi in #4476 - fix zlib deflate on fetch by @cirospaciari in #4483
- remove
chmod
usage with--bun
flag by @dylan-conway in #4490 - fix dup syscall on Windows by @CGQAQ in #4496
- minor rebuild diffs by @alexlamsl in #4486
- fix ipv6 localhost fetch by @dylan-conway in #4498
- fix checkout/build failure due to
src/deps/uws
by @alexlamsl in #4505 - fix(install): ensure all lockfile structs do not have undefined padding by @paperdave in #4401
- fix(fetch) fix proxy tunneling by @cirospaciari in #4510
- fix(fetch) always use readable stream if it is available by @cirospaciari in #4503
- fix(node:net): emit close event on connection error by @paperdave in #4336
- feat(runtime): Implement
fs.watchFile
by @paperdave in #4467 - Align
process.nextTick
execution order with Node by @Jarred-Sumner in #4409 - fix text decode trim by @dylan-conway in #4495
- update root certs by @cirospaciari in #4499
- Update development.md by @ThatOneBro in #4480
- allocate task for
ThreadSafeFunction
by @dylan-conway in #4513 - fix(runtime): fix
events.once
not using a once listener. by @paperdave in #4520 - Update node:fs compat docs cp/cpSync/watchFile/unwatchFile by @birkskyum in #4525
- feat(fetch) rejectUnauthorized and checkServerIdentity by @cirospaciari in #4514
- Progress for Next.js by @paperdave in #4468
- revert by @paperdave in #4539
- fix(fetch) closeAndFail instead of close by @cirospaciari in #4537
- fix(cli): final touches for 1.0 by @paperdave in #4538
- Doc updates for v1.0 by @colinhacks in #4485
- Bump version to Bun 1.0.0 by @paperdave in #4543
- Fix typo in sveltekit.md by @hiadamk in #4550
- Fix a couple important bugs by @Jarred-Sumner in #4560
New Contributors
- @prabhatexit0 made their first contribution in #4374
- @JorgeJimenez15 made their first contribution in #4445
- @karlbohlmark made their first contribution in #4320
- @birkskyum made their first contribution in #4525
- @hiadamk made their first contribution in #4550
Full Changelog: bun-v0.8.1...bun-v1.0.0