aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2023-02-02match formattingGravatar Dylan Conway 1-0/+0
2023-02-01feat: add `http.request` (#1959)Gravatar Derrick Farris 2-8/+390
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn * feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc. * fix(node:http): FakeSocket -> Socket * refactor(node:http): only save type from IncomingMessage.options for now * fix(node:http): remove unnecessary check for UInt8Array * perf(node:http): globalThis.fetch -> var fetch = Bun.fetch * todo(node:http): add notes about handling abort/timeout w/ AbortSignal * refactor(node:http): standardize on FakeSocket and this.#fakeSocket * fix(node:http): fix headers getter * fix(node:http): remove _headers * perf(node:http): make http headers lazy * fix(node:http): return bool from keepSocketAlive
2023-02-01change file extensionGravatar Dylan Conway 2-1/+1
2023-02-01fix text encoding for utf8 (#1967)Gravatar Dylan Conway 2-1/+63
* use character * replacement character * also test encoding decoded points * increase length by 1
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 105-4533/+2760
2023-01-31mostly fix `node:timers`Gravatar Jarred Sumner 1-10/+16
2023-01-31Fixes fs.constantsGravatar Jarred Sumner 1-88/+80
2023-01-31[bun add] various fixes (#1953)Gravatar Alex Lam S.L 3-789/+312
2023-01-31Fix missing `*ms` getters in StatGravatar Jarred Sumner 1-0/+18
Related to #1949
2023-01-30Fix crash in `bun install <package-name>` (#1947)Gravatar Jarred Sumner 1-129/+355
* Fix crash in `bun install <package-name>` when <package-name> already exists * Prettier * Add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-30fix `assert()` crash (#1941)Gravatar Alex Lam S.L 1-0/+8
2023-01-30report invalid input file as test failure (#1938)Gravatar Alex Lam S.L 1-2/+30
fixes #1935
2023-01-30[bunx] fix version parsing (#1937)Gravatar Alex Lam S.L 1-0/+64
2023-01-29Update child_process-node.test.jsGravatar Jarred Sumner 1-1/+1
2023-01-29Skip flaky testGravatar Jarred Sumner 1-1/+1
2023-01-29Fix flaky websocket testGravatar Jarred Sumner 1-10/+25
cc @dylan-conway, the tests should be able to run when cwd is not the test folder
2023-01-29Add check in testGravatar Jarred Sumner 1-1/+5
2023-01-29[breaking] Add `binaryType` option to Bun.connect & Bun.listenGravatar Jarred Sumner 1-3/+128
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer` cc @colinhacks, the .d.ts changes I made here aren't great.
2023-01-29Update buffer.test.jsGravatar Jarred Sumner 1-8/+5
2023-01-29Add another latin1 testGravatar Jarred Sumner 1-0/+16
2023-01-29[buffer] Buffer.byteLength passes Node.js testsGravatar Jarred Sumner 1-6/+137
2023-01-28[bun add] fix more corner cases (#1930)Gravatar Alex Lam S.L 2-26/+187
2023-01-28Support running WASI (WebAssembly) files using `bun run` (#1929)Gravatar Jarred Sumner 3-20/+15
* another micro bench * Support running WASI --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-28parse `git+https://github.com/` as GitHub URLs (#1926)Gravatar Alex Lam S.L 2-5/+164
fixes #1921
2023-01-28normalise `bun add` package specifiers (#1924)Gravatar Alex Lam S.L 3-134/+361
- fix invalid buffer references fixes #1920
2023-01-28[WIP] append GitHub package after fully parsed (#1911)Gravatar Alex Lam S.L 4-75/+123
2023-01-28commit failing testsGravatar Jarred Sumner 1-0/+1682
2023-01-28Fixes #1913Gravatar Jarred Sumner 4-221/+347
2023-01-27prettierGravatar Jarred Sumner 1-156/+245
2023-01-27Fix flakinessGravatar Jarred Sumner 1-2/+3
2023-01-27ensure name is allocated with `toSliceClone` (#1917)Gravatar Dylan Conway 1-19/+15
* ensure name is allocated with `toSliceClone` * shorten toSliceClone
2023-01-27Update buffer.test.jsGravatar Jarred Sumner 1-6/+6
2023-01-27more websocket ref/deref testsGravatar Dylan Conway 2-7/+96
2023-01-27[`[bun hot]`] More reliability improvements to macOS watcherGravatar Jarred Sumner 1-9/+79
2023-01-26Another testGravatar Jarred SUmner 1-0/+51