aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-04Dylan/fix some failing tests (#2544)Gravatar Jarred Sumner 2-5/+34
* handle `umask()` invalid arguments * move `bktree-fast` to test root, fix postinstall * fix fs test * could be baseline * handle different timezones * accidentally deleted tests * fix hang in `AbortSignal.timeout` * bring abort tests back * Revert "bring abort tests back" This reverts commit 0ff2ad5bf408694ac719b8ba0a38b16070e10201. * bunx node-gyp * bun x * fix typecheck * test * Update inspect.test.js --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-04-02[install] reduce parallel HTTP requests under heavy load (#2536)Gravatar Alex Lam S.L 4-99/+119
* [install] reduce parallel HTTP requests under heavy load * make `max_simultaneous_requests` atomic
2023-04-01Add stubs for missing node builtins (#2534)Gravatar Jarred Sumner 18-41/+1206
* Stub `node:v8` * Stub `node:trace_events` * Stub `node:repl` * Stub `node:inspector` * Stub `node:http2` * Stub `node:diagnostics_channel` * Stub `node:dgram` * Stub `node:cluster` * Link stubs * cleanup * Clean up the test * Implement `node:vm` stub * Cleanup `v8` module stub * Add missing `promises` export to node:stream * Implement `node:stream/promise` * Implement `node:assert/strict` * cleanup * better errors * Increaase timeout * Update inspector.exports.js * Make the version consistent * Implement `process.binding("constants")` * Update runner.node.mjs --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-01Update NodeJS LTS version in run_command.zig (#2533)Gravatar Jake Boone 1-1/+1
2023-03-30[install] fix stale pointer with tarball URLs (#2520)Gravatar Alex Lam S.L 2-14/+26
* [install] fix stale pointer with tarball URLs fixes #2512 * `alloc()` & `free()` instead of fixed-size buffer
2023-03-30[install] fix re-install of git dependency (#2519)Gravatar Alex Lam S.L 1-10/+72
- add tests for re-install of npm alias & GitHub URL
2023-03-29[install] fix re-run of tarball URL from lockfile (#2507)Gravatar Alex Lam S.L 1-28/+76
2023-03-29Fix date format (#2422) (#2474)Gravatar Adrien Zinger 1-1/+4
* Fix date format (#2422) * Add unit tests for #2422
2023-03-29Fix some lockfile creation issues (#2506)Gravatar Niles Salter 1-6/+16
2023-03-29Fixes #2499 (#2501)Gravatar Jarred Sumner 3-320/+346
* Fixes #2499 * This needs to be quoted --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-28`bun --watch` and `bun test --watch` (#2500)Gravatar Jarred Sumner 13-46/+244
* --watch wip * Upgrade for latest zig * Implement `bun --watch` * Implement `bun test --watch` * Auto restart on crash in --watch * :clock1: :clock2: :clock3: :clock330: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-28More bug fixes (#2486)Gravatar Jarred Sumner 14-30/+153
* readline_promises test fix * fix `escapeHTML` for baseline builds * fs test fixes, use `tmpdir()` * add paths for `resolve.test.js` * isError with toString symbol and error prototype * comment about `toString` * skip async macro transform * test cleanup, skip stack format test * readline undo and redo fix * capture error from readline keypress * Update tcp-server.test.ts * use `removefileat` for recursive rmdir * use strong for `signal.reason` * initialize `m_flags` * directory with file fs test * recursive option * import expect * could be less than * move abort signal tests to another process * fix typecheck --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-03-28[install] support tarball URLs (#2497)Gravatar Alex Lam S.L 3-29/+260
closes #2448
2023-03-27Fix for latest zig (#2495)Gravatar Jarred Sumner 2-1/+5
* Fix for latest zig * Revert "Use PATH instead of sudo to install bun for testing (#2460)" This reverts commit 5fd406ca2ffa0cb9c1cb98140bedf0a3ba9e5022. --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-26fix https default port on http.request (#2490)Gravatar Ciro Spaciari 1-1/+1
* fix https default port on http.request * Update http.exports.js
2023-03-23Fixes #2462 (#2463)Gravatar Jarred Sumner 1-2/+2
2023-03-22A couple bug fixes (#2458)Gravatar Dylan Conway 11-51/+44
* fix valid status code range * update path * highwatermark option * throw DOMException * remove extra transpiler output * more transpiler tests * comment * get index not quickly * replace with `getDirectIndex` * update abort test * throw out of range status code * promisify test fix * move stdio test instance files * working crypto tests * allow duplicate set-cookie headers * different formatting * revert, fix will be in different pr * it is called * use min buffer size * fix url tests * null origin for other protocols * remove overload * add very large file test * await * coerce to int64 * 64 * no cast * add todo blob url tests * use `tryConvertToInt52`
2023-03-22Fix types (#2453)Gravatar Colin McDonnell 1-2/+2
* WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs
2023-03-21Upgrade MimallocGravatar Jarred Sumner 1-0/+0
2023-03-21Update build-idGravatar Jarred Sumner 1-1/+1
2023-03-21Don't use function from bundler branchGravatar Jarred Sumner 1-11/+19
2023-03-21Fix possible crash with `export namespace ns { export class F {} }`Gravatar Jarred Sumner 1-5/+14
2023-03-20Implement simple `workspaces` glob support in bun install (#2435)Gravatar Jarred Sumner 2-210/+354
* [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * remove extraneous console.log * Fix pointer to stack memory * Add a test with a scoped package name from a glob workspace * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-19Fix bug with scoped aliased dependencies in bun install on macOSGravatar Jarred Sumner 3-3/+16
2023-03-19remove unnecessary check (#2432)Gravatar Ciro Spaciari 1-3/+0
2023-03-19add some extra abort checks into streams (#2430)Gravatar Ciro Spaciari 1-3/+9
* add some checks to avoid UAF * avoid multiple calls to finalize if endFromJS is called more than once * fix no-op comment * mark as requested_end on abort * remove requested_end from abort
2023-03-19[bun test] Implement `--rerun-each` flag to run each test N timesGravatar Jarred Sumner 2-38/+64
2023-03-19Prevent undefined memory accessGravatar Jarred Sumner 1-1/+1
2023-03-19Several bug fixes (#2427)Gravatar Jarred Sumner 13-220/+462
* Fix test * Fix segfault when unexpected type is passed in `expect().toThrow` * Fix issues with request constructor * Don't bother cloning headers when its empty * woops * more tests * fix incorrect test * Make the fetch error messages better * Update response.zig * Fix test that failed on macOS * Fix test * Remove extra hash table lookups * Support running dummy registry directly cc @alexlamsl * Update test * Update test * fixup * Workaround crash in test runner * Fixup test * Fixup test * Update os.test.js --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-18Update UWSGravatar Jarred Sumner 1-0/+0
cc @cirospaciari
2023-03-18Fix out of bounds accessGravatar Jarred Sumner 1-19/+9
Repro'd in Buffer tests
2023-03-18[node:net] Fix issue with `listen` callback firing before it's listeningGravatar Jarred Sumner 1-1/+10
2023-03-18[fetch] Make the default body value `null` when unspecifiedGravatar Jarred Sumner 3-15/+19
This is better aligned with the fetch spec
2023-03-18Fix crash when rendering error page and the server or network is slowGravatar Jarred Sumner 1-0/+1
2023-03-18Fix several bugs (#2418)Gravatar Dylan Conway 5-16/+77
* utf16 codepoint with replacement character * Fix test failure with `TextEncoder("ascii')` * Add missing type * Fix Response.prototype.bodyUsed and Request.prototype.bodyUsed * Fix bug with scrypt error not clearing * Update server.zig * oopsie
2023-03-17Fix various fetch/response/request tests (#2416)Gravatar Dylan Conway 15-116/+236
* fix most fetch tests, skip a few * fastGet, toValueGC, and invalid init * bigint unreachable, range error, log process as process * remove extra fetch_headers * remove js_type parameter, check isObject() * throw invalid mime type error, use enum literal * switch back to promise rejection * RangeError pascal case
2023-03-17Feat(test): add toMatch (#2404)Gravatar zhiyuan 6-8/+112
2023-03-15Fix socket tests with connection errors (#2403)Gravatar Dylan Conway 1-0/+2
* release pending activity with connection error handler * unref poll_ref
2023-03-15feat(expect): update toBeInstanceOf (#2396)Gravatar zhiyuan 6-15/+42
* feat: update instanceof binding * fix: according to PR comments
2023-03-15Fixes #2399Gravatar Jarred Sumner 2-12/+14
2023-03-15allows Bun.serve to listen on IPV6 (#2400)Gravatar Ciro Spaciari 2-47/+116
2023-03-15[install] sanitise against malformed `bun.lockb` (#2397)Gravatar Alex Lam S.L 2-20/+18
* [install] sanitise against malformed `bun.lockb` fixes #2392 * fix `prettier` checks in unrelated files
2023-03-14Condense snapshot outputGravatar Jarred Sumner 1-20/+27
2023-03-14calculated class name after name propGravatar Dylan Conway 1-11/+8
2023-03-14Implement `toMatchSnapshot()` (#2294)Gravatar Dylan Conway 24-59/+3232
* buggy snapshot * error output for failed snapshot * missing first * hints * open dir once, better cleanup * update flag * truncate on update * object and class snapshot formatting * array formatting * no function name, single item is empty array * string objects, maps, sets, promise * avoid using invalid memory * handle number objects * handle extending `Number` * boolean objects * snapshot tests and test updates * snapshot format for buffers * safer snapshot parsing * property matchers setup * strings and tests * generate classes with empty prototype * optional `propertyMatchers` parameter * new test folder structure * strings.eqlLong * globalObject.throwPretty() and expect.any tests * add updateSnapshot flag to help * move snapshot format out of `printErrorlikeObject` * empty object snapshot format * separate typed array, remove trailing comma * use `isCell`, object trailing commas * handle unicode * todo for primitive constructors * switch to `JSC.Node.Syscall.open` and `JSC.Maybe` * use js parser for snapshot files * deinit ast, log parse error * copy/paste most of `exports.ZigConsoleClient` * remove snapshot option * remove ordered properties option * remove snapshot format option from `exports.zig` * remove extra newlines * change mode * update test runner output * escape backticks faster * `bunx jest` in temp dir * remove buffered writer * add `toMatchSnapshot` to types * cleanup, switch to `pread` * cli `--update` flag * `--update-snapshots` * remove string object format
2023-03-14Add missing exportGravatar Jarred Sumner 1-6/+8
2023-03-14Fix missing `constants` export in zlibGravatar Jarred Sumner 1-2/+3
2023-03-14feat: add toBeInstanceOf matcher in expect (#2389)Gravatar zhiyuan 1-1/+64
2023-03-14Fix `node:https` being readonlyGravatar Jarred Sumner 2-8/+4
2023-03-14Fix text formatting in .remoteAddress in `ServerWebSocket` and `Socket`Gravatar Jarred Sumner 5-43/+50
Fixes #2387