aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-06-17Merge branch 'main' into jarred/simplifyjarred/simplifyGravatar Jarred Sumner 31-407/+617
2023-06-17Add types for toBeOdd & toBeEven (#3344)Gravatar Tiramify (A.K. Daniel) 1-0/+18
2023-06-17Set the publishToSelf option to true (#3343)Gravatar Luigi Pinca 1-0/+1
All messages sent by the clients are expected to be received by all clients. Without the `publishToSelf` option a message is not sent back to the sender and the benchmark hangs.
2023-06-16don't remove const if referenced before declaration (#3337)Gravatar Dylan Conway 2-3/+45
2023-06-15Fix `make headers` jun 15 editionGravatar Jarred Sumner 1-0/+3
2023-06-15Fix typo in run.md (#3331)Gravatar Kabir Goel 1-1/+1
2023-06-15Tweak CommonJS output (#3320)Gravatar Jarred Sumner 5-268/+322
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-14[Bun.serve] fix `Bun.serve` argument check (#3314)Gravatar Ciro Spaciari 4-10/+102
* fixup checks * throw when tls is not a object also fix socket * fix error message * null or undefined on tls option in Bun.serve or sockets should not throw * add tests * fix tests and socket validation * remove unnecessary check * add listen tests
2023-06-14Update build-idGravatar Jarred Sumner 1-1/+1
2023-06-14Workaround issue with module.require =Gravatar Jarred Sumner 1-8/+64
2023-06-14Make `Bun.argv` the same as `process.argv` (#3310)Gravatar Jarred Sumner 3-23/+18
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-14Remove redudant putGravatar Jarred Sumner 1-1/+0
2023-06-14Prepare to support webkit debug build assertionsGravatar Jarred Sumner 9-58/+26
2023-06-14document Bun.argv in typedefs (#3302)Gravatar dave caruso 1-0/+4
2023-06-13`mock` type changes (#3305)Gravatar Colin McDonnell 3-41/+17
* Update mock types and set bun-types@latest in bun init * Remove mockfn methods from toplevel mock * Remove comments
2023-06-13fix TS5096 (#3256)Gravatar xxxhussein 1-0/+2
2023-06-13lolGravatar Jarred Sumner 1-1/+1
2023-06-13simplify some codeGravatar Jarred Sumner 2-82/+18
2023-06-13Fix crash in CJS (#3294)bun-v0.6.9Gravatar Jarred Sumner 36-272/+705
* Fix crash in CJS * Add std.heap.ArenaAllocator * Use our arena allocator * Reduce JS parser memory usage and make HMR faster * Write some comments * fix test failure & clean up this code * Update javascript.zig * make arena usage safer --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-13Add testGravatar Jarred Sumner 1-0/+6
2023-06-13workaround quote escape issues for `bun run` (#3290)Gravatar Alex Lam S.L 3-1/+34
fixes #53
2023-06-12handle unwrapping `require` in any expression (#3292)Gravatar Dylan Conway 2-5/+89
2023-06-12Make mocks use FunctionPrototype (#3291)Gravatar Jarred Sumner 3-27/+216
* Make mocks use FunctionPrototype * Fix static methods * Fix types * Update JSMockFunction.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-12typo in readline (#3286)Gravatar dave caruso 2-2/+1
2023-06-11doc: minor fixes (#3278)Gravatar Keyhan Vakil 2-2/+2
* `bun link` only modifies `package.json` when `--save` is passed. * clang-15 is a separate package from llvm-15.
2023-06-11add --save argument to install (#3277)Gravatar Keyhan Vakil 3-56/+116
2023-06-11Support using `WTF::StringImpl` from Zig (#3279)Gravatar Jarred Sumner 34-416/+1438
* Fix `make headers` * [JS parser] Fix bug with printing non-ascii import paths in ascii mode * Introduce `bun.String` * Add test for non-ascii imports & entry points * Add comment * Fix build issue * Support HTTP server * Make it print the same --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-10Make cold `bun install` use 2x less memory (#3271)Gravatar Jarred Sumner 3-43/+69
* Make cold `bun install` use 2x less memory In this benchmark: https://github.com/orogene/orogene/blob/main/BENCHMARKS.md This brings us from around 2.7 GB to 1.2 GB of memory * Address comments --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-10Fix benchmark (#3276)Gravatar Luigi Pinca 1-1/+1
2023-06-10Fixes #3250 (#3269)Gravatar Jarred Sumner 3-13/+51
* Fixes #3250 We must call `EVP_MD_CTX_cleanup` because `EVP_MD_CTX` containers pointers inside to allocated memory * Fix leak * Update sha.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-10Fix wording and code example in docs for Bun.sleepSync (#3270)Gravatar paperluigis 1-10/+0
2023-06-09[install] fix lockfile fallback for life cycle scripts (#3265)bun-v0.6.8Gravatar Alex Lam S.L 1-1/+7
2023-06-09Update writing.md (#3264)Gravatar Dylan Conway 1-8/+8
2023-06-09`toMatchObject` and some asymmetric matchers (#3260)Gravatar Dylan Conway 22-117/+1659
* `toMatchObject` progress * add `expect.stringContaining()` * add `expect.stringMatching()` * print asymmetric matchers * cleanup * return before printing if constructor value isn't there * move matcher logic to cpp * pretty format and tests * fix formatting for snapshots * format `stringContaining` and `stringMatching` like jest * better test * remove commented tests * remove old property matcher code * add types * make sure all props are matched in arrays * add `Bun.deepMatch`
2023-06-09Fixes #3206 (#3262)Gravatar Jarred Sumner 2-47/+78
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-09Fix jest.fn typeGravatar Colin McDonnell 1-1/+1
2023-06-10[install] fix life cycle scripts execution (#3235)Gravatar Alex Lam S.L 4-150/+368
[install] fix life cycle scripts execution - scripts from dependencies did not run during re-installation - `bun.lockb` now contains data on life cycle scripts - handle prior lockfile format by reading missing info from every `package.json` - suppress spurious log output from tests
2023-06-09Clean up typesGravatar Colin McDonnell 2-179/+182
2023-06-09Improve types for mocks (#3261)Gravatar Colin McDonnell 2-4/+5
* Add jest.fn to types * Fix type-tests
2023-06-09Clean up comments in typesGravatar Colin McDonnell 1-8/+0
2023-06-09Add types for mocksGravatar Colin McDonnell 3-31/+519
2023-06-09Implement mocks in bun:test (#3252)Gravatar Jarred Sumner 13-7/+1550
* wip * wip * most of the code for mocks in bun:test * finishing up * Implement `toHaveBeenCalled` and `toHaveBeenCalledTimes(1)` * Test * visit * results, not returnValues * exact * Update jest.zig * A couple more tests * Add jest.fn * support resetting mocks * Implement spyOn --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-09Fix to retain a newline after removing a package (#3231)Gravatar ytakhs 2-0/+289
2023-06-09Fix tests that pass but generate annotationGravatar Ashcon Partovi 5-26/+59
2023-06-09Fix missing JSC.markBindingGravatar Ashcon Partovi 1-0/+1
2023-06-09docs: add missing right parenthesis in example code (#3245)Gravatar James Liu 1-2/+1
add missing right parenthesis in example code in `HTTP server` section
2023-06-09replace `sudo` usage in GitHub Actions (#3254)Gravatar Alex Lam S.L 5-23/+23
2023-06-07improve stream types (#3240)Gravatar dave caruso 1-84/+67
2023-06-06[breaking][bun:sqlite] `.values()` returns `[]` instead of `null` for ↵Gravatar Jarred Sumner 3-2/+18
queries returning 0 results (#3219) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-06add buffer label (#3220)Gravatar Jarred Sumner 1-1/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>