aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-17Fix #2005 (#2096)Gravatar Justin Whear 1-0/+12
2023-02-17allow `bun add` of packages with capital letters (#2095)Gravatar Alex Lam S.L 2-1/+50
2023-02-16Support yarn-like `"workspaces"."packages": string[]` (#2086)Gravatar Jarred Sumner 1-2/+47
* [workspaces] Support yarn-like `"workspaces"."packages": string[]` * Add a test * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-16Implement `machine` for Linux (#2088)Gravatar Justin Whear 1-0/+4
2023-02-16Fix #1516 (#2089)Gravatar Justin Whear 1-0/+7
`FileSystemFlags.fromJS` was hardcoded to return O_RDONLY when the flag value was null or undefined and this caused breakage when used with write functions. Updated the function to take a `default` argument so that the caller can specify a sane default for their use.
2023-02-15feat(fetch) AbortSignal (#2019)Gravatar Ciro Spaciari 1-0/+60
* add fetch abort signal * get aborted (still segfaults) * bidings.zig u0 error * still GC/memory error * fix start crash * fix AbortSignal fromJS * change fromJS to obj.as * addAbortSignalEventListenner * handle abort types, and add tests * fix tests * add custom reason test * merge 2 substring methods, use MAKE_STATIC_STRING_IMPL * fix create AbortError and TimeoutError, move globalThis and exception creation to main thread * fix tests and rebuild headers * no need to check with substring reason is already an exception * no need to check with substring reason is already an exception * fix dumb error inverting conditions for check reason * fix custom reason behavior
2023-02-15fix(webcrypto): fix ed25519 CryptoKey.algorithm (#2082)Gravatar Derrick Farris 1-0/+17
2023-02-15Fix 2063 (#2079)Gravatar Justin Whear 1-0/+8
2023-02-15Make sure we test * in tesconfigGravatar Jarred Sumner 2-1/+3
Fixes #540
2023-02-14Fix up async_hooks polyfillGravatar Jarred Sumner 1-0/+30
2023-02-14[install] link network-delayed `.bin` scripts correctly (#2076)Gravatar Alex Lam S.L 1-1/+1
2023-02-14don't break esbuildGravatar Jarred Sumner 1-4/+3
2023-02-14Add workaround for `tls` and `worker_threads`Gravatar Jarred Sumner 1-0/+9
2023-02-14[install] improve `package.json` validation (#2074)Gravatar Alex Lam S.L 1-0/+196
- report error and exit gracefully instead of crashing
2023-02-14[WIP] fix(node:fs): export `fs.ReadStream` and `fs.WriteStream` (#1798)Gravatar Derrick Farris 1-1/+183
* fix(node:fs): export fs.WriteStream and fs.ReadStream * test(node:fs): add tests for fs.ReadStream and fs.WriteStream * test(node:fs): prevent opening fd w/o closing * fix(node:fs): hack ESM export for fs streams to keep lazy loading * fix(node:fs): = -> ===, fix hasInstance comparison * test(node:fs): add test that actually checks that re-exported streams work * fix(fs): eagerly load our slow lazy fns (thanks esm) * fix(fs): employ @alexlamsl 's constructor w/o new trick on Read/WriteStream
2023-02-14Reject with error when invalid fetch() body (#2047)Gravatar Eric Zhang 1-1/+26
* Reject with error when invalid fetch() body Resolves #2014 * Make sure the test actually throws an exception * Update fetch error paths to return TypeErrors
2023-02-13Add pretty printer for FormDataGravatar Jarred Sumner 1-0/+9
2023-02-13Add dynamic port assigning to Bun.serve (#2062)Gravatar Michał Warda 1-0/+29
2023-02-13Fixes https://github.com/oven-sh/bun/issues/1456Gravatar Jarred Sumner 1-0/+16
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 3-0/+387
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-12[install] support `git://github.com/` dependencies (#2059)Gravatar Alex Lam S.L 1-0/+69
2023-02-12prettier + stop serverGravatar Jarred Sumner 1-119/+101
2023-02-12Return server on listen (#2057)Gravatar Michał Warda 1-1/+8
2023-02-12Set `require("module").globalPaths` to empty arrayGravatar Jarred Sumner 1-0/+5
https://github.com/oven-sh/bun/issues/1641#issuecomment-1427017442
2023-02-11fix string corruption in FS entry cache (#2055)Gravatar Alex Lam S.L 1-2/+41
2023-02-11fix segfault during non-install script execution (#2045)Gravatar Alex Lam S.L 1-1/+32
2023-02-11Fixes https://github.com/oven-sh/bun/issues/2052Gravatar Jarred Sumner 1-0/+10
2023-02-10Fix #631: bun add throwing JSON lexer bug (#2041)Gravatar Justin Whear 1-0/+38
* add double-backslash to list of control chars * update test * stderr as string
2023-02-10[install] fix duplicate check on `peerDependencies` (#2039)Gravatar Alex Lam S.L 1-1/+46
fixes #2037
2023-02-09fix assertion failure (#2033)Gravatar Alex Lam S.L 1-0/+8
2023-02-09[install] fix flaky tests (#2032)Gravatar Alex Lam S.L 2-37/+37
2023-02-09[simdutf] workaround validation OOB access (#2031)Gravatar Alex Lam S.L 1-1/+9
2023-02-09[streams] fix byte accounting (#2029)Gravatar Alex Lam S.L 1-1/+19
fixes #1939
2023-02-09[bun:test] Auto-import jest globals in test filesGravatar Jarred Sumner 2-0/+36
2023-02-08cleanup util.testGravatar Jarred Sumner 1-4/+2
2023-02-08[install] pick `latest` tagged version by default (#2016)Gravatar Alex Lam S.L 2-6/+117
* [install] pick `latest` tagged version by default fixes #1993 * update `package.json` the same way as `npm
2023-02-08utf16 to utf8 conversion validation (#2001)Gravatar Dylan Conway 1-1/+19
* use replacement character for invalid surrogate pairs * return index of non-ascii * non-allocating case * edge cases * function rename * oops * get length once, index counter
2023-02-08[install] assorted fixes & improvements (#2011)Gravatar Alex Lam S.L 7-67/+245
- take `peerDependencies` into account during package placement - do not recursively resolve `workspaces` (matches `npm`) - link binaries to non-root packages correctly - prune empty nodes during dependency tree construction - support non-standard `workspace:` specifier
2023-02-06Fix failing test in debug modeGravatar Jarred Sumner 1-4/+14
2023-02-06Throw on process.bindingGravatar Jarred Sumner 1-0/+4
2023-02-06Fix test failing on macOSGravatar Jarred Sumner 1-1/+2
2023-02-06[WIP] fix corner cases with aliases dependencies (#2000)Gravatar Alex Lam S.L 2-3/+150
* fix corner cases with aliases dependencies * in-memory convert legacy `bun.lockb`
2023-02-06Make `Stat` functions fastGravatar Jarred Sumner 1-1/+28
2023-02-06Expose Dirent and Stats (#1998)Gravatar Michał Warda 1-0/+11
* Expose dirent and stats * Expose Dirent and Stats inside fs * Add tests for Dirent and Stats exposing * Automatically generate bindings
2023-02-05speed it up a little moreGravatar Jarred Sumner 1-12/+120
2023-02-03Support passing `Date` to `Bun.sleep`Gravatar Jarred Sumner 1-0/+8
2023-02-03Add test for propagating exceptionGravatar Jarred Sumner 1-0/+23
2023-02-03Add missing crypto exportGravatar Jarred Sumner 1-0/+6
Fixes #1984
2023-02-03Introduce `await Bun.sleep(ms)`Gravatar Jarred Sumner 1-0/+15
2023-02-03Make it less flakyGravatar Jarred Sumner 1-1/+1