aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-08-03More guides and fixing links (#3960)bun-v0.7.2Gravatar Colin McDonnell 12-14/+87
* More guides * WIP * Updates * Fix
2023-08-03allow bundling builtins for browser (#3959)Gravatar Dylan Conway 2-6/+39
* Update resolver.zig * bundle resolve error for non-existent builtins * tests
2023-08-03Fix edge case in `path.relative`. (#3952)Gravatar Ai Hoshino 2-3/+18
Close: #3924
2023-08-03Bunch of fixes (#3516)Gravatar Ashcon Partovi 32-2926/+3268
* Fix #3497 * Fix #3497 * Run prettier * Fix package.json * remove this too * yeah * Fix missing tests * Use native for utf-8-validate * Add module ID names to builtins * Defer evaluation of ESM & CJS modules until link time * Use builtin name for exports in plugins * Add module IDs to builtins * Update JSC build with new flag * WebKit upgrade fixes * Update WebKit * prettier * Upgrade WebKit * bump * Update once again * Add visitAdditionalChildren, remove .fill() usage * Update process.test.js * Update fs.test.ts --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-03[install] fix stale `bun.lockb` on workspaces (#3945)Gravatar Alex Lam S.L 4-17/+97
- handle workspaces under `--production` correctly - fix `Makefile`
2023-08-03Minor optimization: Avoid extra copying when the chunk has only one element. ↵Gravatar Ai Hoshino 2-4/+4
(#3946) * Optimize the case where there is only one chunk. * add generated code
2023-08-03Fix the string encoding in `path.extname`. (#3949)Gravatar Ai Hoshino 2-1/+6
Close: #3948
2023-08-02SvelteKit compatibility hackGravatar Jarred Sumner 1-1/+4
2023-08-02typo (#3941)Gravatar dave caruso 1-2/+2
2023-08-02Fix formattingGravatar Ashcon Partovi 1-1/+1
2023-08-02Dave/removedeprecation (#3938)Gravatar dave caruso 2-179/+49
* hide deprecated stuff * this edit * hi
2023-08-02Fix http write (#3939)Gravatar dave caruso 3-13/+66
* Fix encoding problem when uploading a binary file. Close: #3116 * use BufferList * Finish rebase --------- Co-authored-by: Hanaasagi <ambiguous404@gmail.com>
2023-08-02Remove module and browser conditions (#3935)Gravatar dave caruso 2-30/+14
* fix astro compiler * clean this up * Update options.zig --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-02Implement `node:worker_threads` (#3923)Gravatar Jarred Sumner 22-80/+802
* Start to implement `worker_threads` * more * more!! * more * Update bundle_v2.zig * delete outdated tests * `receiveMessageOnPort` * props test and export default * fix merge * not implemented tests * individual imports * `receiveMessageOnPort` tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-08-02Implement `node:diagnostics_channel` (#3934)Gravatar Ashcon Partovi 9-103/+1663
* Add types for `node:async_hooks` * Implement \`node:diagnostics_channel\`
2023-08-02FixGravatar Jarred Sumner 1-2/+2
2023-08-02Rewrite built-in modules to use CommonJS over ESM (#3814)Gravatar dave caruso 199-31427/+11184
* stfdsafsd sadffdsa stuff finish commonjs stuff asdf not done but work not done but work not done yet but this is how far i am remove files lol update built files uncomment everything in events lol export default stuff * afdsafsd * its not perfect but almost done * okay * cool * remove temp file * finish rebase * revert settings.json * a * ch-ch-ch-ch-changes * okay * remove this check in release for now * sxdcfghnjm, * lkjhgf * fmt * filename can be null * Update NodeModuleModule.h * weee * fmt --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-02Fixes #3931 (#3933)Gravatar Jarred Sumner 3-38/+24
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-02Fix path_watcher (#3920)Gravatar Ciro Spaciari 1-106/+174
* fix callback and onError * fix main watcher error return * fixup * rename to be more clear
2023-08-02Update streams.md (#3926)Gravatar Vaughan Rouesnel 1-1/+1
2023-08-02clean declare structs (#3929)Gravatar Ciro Spaciari 2-5/+2
2023-08-01close `BroadcastChannel` in testsGravatar Dylan Conway 2-1/+49
2023-08-01Fix some flaky tests (#3919)Gravatar Ciro Spaciari 2-23/+91
* fix some flask tests * fix condition on prisma test * oops
2023-08-01Fix expanding on .env files (#3918)Gravatar Ciro Spaciari 2-6/+75
* fix expanding * refactor locks * bound checks * fix comment * one more test * oops
2023-08-01add `BroadcastChannel` (#3922)Gravatar Dylan Conway 21-57/+1811
* copy and format * update `SerializedScriptValue.cpp` * use `expect().fail()` in message channel tests * rename `BroadcastChannelIdentifier.h` * copy registries * progress and tests * cleanup * worker and broadcast channel test * `BroadcastChannel` ref and unref * `MessagePort` ref, unref, and hasRef * remove `SecurityContext.cpp/h` * add types
2023-08-01Update worker.test.tsGravatar Dylan Conway 1-1/+1
2023-08-01Update typesGravatar Jarred Sumner 1-0/+5
2023-08-01Update JSWorker.cppGravatar Jarred Sumner 1-1/+1
2023-08-01Implement Worker.prototype.threadIdGravatar Jarred Sumner 3-2/+19
2023-08-01Fix prisma.md typo (#3921)Gravatar Emilio Sánchez 1-1/+1
2023-07-31throw error if node module does not exist (#3913)Gravatar Vlad Sirenko 3-52/+78
2023-07-31Update stricjsGravatar Colin McDonnell 2-221/+229
2023-07-31Switch table to headings in Nodejs compat pageGravatar Colin McDonnell 1-4/+444
2023-07-31Add env guidesGravatar Colin McDonnell 2-0/+69
2023-07-31Update titles, add Workspaces guideGravatar Colin McDonnell 9-6/+89
2023-07-31Add ecosystem guides (#3847)Gravatar Colin McDonnell 33-46/+898
* Add ecosystem guides * Update titles * Rename stric * Add unlink and fetch guides * Add formdata guide * Tweak title * Moar
2023-07-31More loggingGravatar Jarred Sumner 1-1/+7
2023-07-31Fixes #1669Gravatar Jarred Sumner 1-0/+0
2023-07-31Add a test for TransformStreamGravatar Jarred Sumner 4-15/+53
2023-07-31Fixes #2935Gravatar Jarred Sumner 2-9/+87
2023-07-31Update arraybuffer-to-buffer.md (#3906)Gravatar xxxhussein 1-1/+1
Fix title. This page shows how to convert an ArrayBuffer to a Buffer, not a Uint8Array
2023-07-31Fix incorrect functionGravatar Jarred Sumner 2-2/+2
2023-07-30Fix memory leak in response.clone(), further reduce memory usage of Request ↵Gravatar Jarred Sumner 16-130/+256
& Response (#3902) * Atomize respsone.url & response.statusText * Fix warning * Atomize Request & Response URLs when possible * Fix memory leak in response.clone() bun/bench/snippets on  jarred/atomize ❯ mem bun --smol request-response-clone.mjs cpu: Apple M1 Max runtime: bun 0.7.2 (arm64-darwin) benchmark time (avg) (min … max) p75 p99 p995 -------------------------------------------------------- ----------------------------- req.clone().url 77.3 ns/iter (40.35 ns … 222.64 ns) 91.53 ns 128.11 ns 172.78 ns resp.clone().url 162.43 ns/iter (116 ns … 337.77 ns) 177.4 ns 232.38 ns 262.65 ns Peak memory usage: 60 MB bun/bench/snippets on  jarred/atomize ❯ mem bun-0.7.1 --smol request-response-clone.mjs cpu: Apple M1 Max runtime: bun 0.7.1 (arm64-darwin) benchmark time (avg) (min … max) p75 p99 p995 -------------------------------------------------------- ----------------------------- req.clone().url 115.85 ns/iter (80.35 ns … 247.39 ns) 128.19 ns 181.93 ns 207.23 ns resp.clone().url 252.32 ns/iter (202.6 ns … 351.07 ns) 266.56 ns 325.88 ns 334.73 ns Peak memory usage: 1179 MB * Update tests * Update js_ast.zig * Update test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-30FIx Uint8Array to a ReadableStream code snippet (#3895)Gravatar audothomas 1-1/+1
2023-07-30Micro-optimize LineOffsetTable.generateGravatar Jarred Sumner 1-1/+4
5.00 ms 100.0% 0 s bun (81023) 2.00 ms 40.0% 2.00 ms WTF::HashTableAddResult<WTF::HashTableIterator<WTF::HashTable<WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>>, WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>>> WTF::HashTable<WTF::Packed<WTF::StringImpl*>, WTF::Packed<WTF::StringImpl*>, WTF::IdentityExtractor, WTF::DefaultHash<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>, WTF::HashTraits<WTF::Packed<WTF::StringImpl*>>>::addPassingHashCode<WTF::HashSetTranslatorAdapter<WTF::BufferFromStaticDataTranslator<unsigned char>>, WTF::HashTranslatorCharBuffer<unsigned char> const&, WTF::HashTranslatorCharBuffer<unsigned char> const&>(WTF::HashTranslatorCharBuffer<unsigned char> const&, WTF::HashTranslatorCharBuffer<unsigned char> const&) 2.00 ms 40.0% 2.00 ms heap.StackFallbackAllocator(1024).free 2.00 ms 40.0% 0 s em.Allocator.rawFree 2.00 ms 40.0% 0 s em.Allocator.log2a 2.00 ms 40.0% 0 s em.Allocator.free__anon_1330765 2.00 ms 40.0% 0 s em.Allocator.resize__anon_1069235 2.00 ms 40.0% 0 s array_list.ArrayListAligned(i32,null).toOwnedSlice
2023-07-30skip flay testGravatar Jarred Sumner 2-5/+4
2023-07-30Support `bun .` to run the entry point (#3891)Gravatar Jarred Sumner 8-164/+110
* Support `bun .` * Fix tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-30Update install.md (#3890)Gravatar Tiramify (A.K. Daniel) 1-1/+1
2023-07-30Fix issue with file loader (#3889)Gravatar Jarred Sumner 5-6/+34
* Fix issue with file loader * Update jest-extended.test.js --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-30Fixes #3884Gravatar Jarred Sumner 2-42/+7