aboutsummaryrefslogtreecommitdiff
path: root/packages (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-06bun-types: infer strict `Subprocess` from `Bun.spawn()` options, part 2 (#2573)Gravatar dave caruso 2-4/+86
2023-04-05rebase (#1501)Gravatar dave caruso 2-144/+305
2023-04-05Update `typecheck` (#2572)Gravatar Colin McDonnell 1-0/+1
* Update typecheck * Test ci * Test ci * Prettify files
2023-04-04Implement `import.meta.main` (#2556)Gravatar Jarred Sumner 1-4/+23
* Implement `import.meta.main` * Update main-test-1.js * Update fs.test.ts --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-01Add stubs for missing node builtins (#2534)Gravatar Jarred Sumner 1-1/+1
* 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-03-31report timed-out test as failure (#2523)Gravatar Alex Lam S.L 1-8/+9
2023-03-28More bug fixes (#2486)Gravatar Jarred Sumner 1-4/+1
* 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-22Fix types (#2453)Gravatar Colin McDonnell 8-32/+80
* 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-20Add test-d files for eventemitterGravatar Colin McDonnell 2-0/+19
2023-03-20Make event emitter type-safe (#2414)Gravatar Gaurish Sethia 1-21/+35
* Add filePath property on MatchedRoute * Fix #1880 #851 * Fix #1972 as well * FMC * Bump querystring-es3 * fix querystring status * Fix typos in docs * Make event-emitter by default type-safe * Remove Makefile.save * Resolve merge conflict * Tweaks --------- Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-03-20docs: update moduleResolution to bundler (#2429)Gravatar John Reilly 2-11/+7
* docs: update moduleResolution to bundler * docs: bundler as well * Updates --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-03-18Fix several bugs (#2418)Gravatar Dylan Conway 1-0/+7
* 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-17Feat(test): add toMatch (#2404)Gravatar zhiyuan 1-0/+10
2023-03-15fix gc-related flaky test failures (#2402)Gravatar Alex Lam S.L 3-6/+6
2023-03-14Implement `toMatchSnapshot()` (#2294)Gravatar Dylan Conway 1-1/+13
* 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-14Move tobeInstanceOf() tests to expect.test.tsGravatar Ashcon Partovi 1-2/+1
2023-03-14Add tests for AbortSignal, AbortControllerGravatar Ashcon Partovi 1-7/+9
2023-03-14feat: add toBeInstanceOf matcher in expect (#2389)Gravatar zhiyuan 1-0/+9
2023-03-13Better test coverage for Request and ResponseGravatar Ashcon Partovi 4-28/+39
2023-03-09Add more tests for HeadersGravatar Ashcon Partovi 1-1/+1
2023-03-08Fix bug in test runnerGravatar Jarred Sumner 1-1/+1
2023-03-08More spec compliant `Blob.prototype.type` (#2340)Gravatar Jarred Sumner 3-5/+43
* Make `Blob.prototype. type` more spec compliant * Add a few more checks for isNumber() * Fix `make headers` * Safer JSValue.isString() * More tests for blob.slice * Make `Blob.prototype.type` more spec compliant * Add isASCII check * Fix types * Fix failing type test * Update blob.zig * Update blob.zig * Fix .eql check on empty values --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-07Improve Benchmarking page, small fixes (#2339)Gravatar Colin McDonnell 2-5/+4
* Improve benchmarking page * WIP * Add typescript instructions to hot * Document preload in Plugins. Fix loader in plugin types.
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 4-96/+4
2023-03-06Add reference documentation for bun:test (#2327)Gravatar Ashcon Partovi 2-57/+452
2023-03-06fix & clean up tests (#2318)Gravatar Alex Lam S.L 1-2/+3
- skip flaky tests when running as `root` - use `expect().toThrow()` - clean up temporary files after tests
2023-03-06support `expect().toThrow(/pattern/)` (#2314)Gravatar Alex Lam S.L 1-1/+1
- fix time-zone-dependent test failure
2023-03-05Test action comment (#2310)Gravatar Jarred Sumner 2-28/+65
* test * Update bun-linux-build.yml * fixup * Update bun-linux-build.yml * Use outputs * set id * Update bun-linux-build.yml * Update runner.node.mjs * Update runner.node.mjs * wip (will revert) * Update runner.node.mjs * Update runner.node.mjs * Update runner.node.mjs * Update runner.node.mjs * Update bun-linux-build.yml * Update bun-linux-build.yml * works well enough for now --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-04dump failing tests to diskGravatar Jarred Sumner 2-3/+16
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-7/+15
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-1/+4
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-3/+17
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-28/+3
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-3/+28
2023-03-04Add node runnerGravatar Jarred Sumner 1-0/+80
2023-03-04Update runner.tsGravatar Jarred Sumner 1-3/+6
2023-03-04chdirGravatar Jarred Sumner 1-1/+2
2023-03-04fixupGravatar Jarred Sumner 1-7/+5
2023-03-04Rename packages/bun-test to packages/bun-internal-testGravatar Jarred Sumner 6-0/+0
2023-03-04docs: Fix invalid default port on bun-types docs (#2300)Gravatar aab 1-1/+1
2023-03-03Improve types for `node:http` (#2284)Gravatar Colin McDonnell 5-247/+1182
* Document node:http * Fix test * Fix default * Fix default
2023-03-02Add fs/promises tests and migrate fs.test.js to TypeScript (#2279)Gravatar Colin McDonnell 4-22/+64
2023-03-02Remake typings for FFI dlopen/linkSymbols + introduce Pointer type (#2227)Gravatar u9g 4-28/+222
* Give dlopen & linkSymbols typings for exported functions * Fix lookup table * Fully change over to Pointer + fix examples * add back header for typings * Fix tsc errors * Run formatter on ffi.d.ts * Revert args/return type change * Add type tests for ffi --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
2023-03-01Run tests in CI for bun-linux-aarch64Gravatar Ashcon Partovi 1-1/+5
2023-02-28just some comments fix (#2237)Gravatar Ciro Spaciari 1-4/+2
2023-02-23bun-lambda: Fix 502 when handler name was 'fetch'Gravatar Ashcon Partovi 1-6/+9
2023-02-22feat(Request.signal) Initial support for signal in Request + fetch and ↵Gravatar Ciro Spaciari 1-2/+0
Request + Bun.serve (#2097) * 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 * Request signal * remove package-lock.json * Remove JSC.Strong from Request signal * fix globals for fetch abort signal * more tests, clone signal crashs * fix AbortSignal.toJS * fix toJS bidings for AbortSignal * add streaming tests * fix abortion before connecting * fix tests and segfault * add fetch testing abort after finish * fix signal handler cleanup * support signal event Bun.serve * pull tests (failing) * remove unsupported test * formating * fix server Request.signal, fix cleanNativeBindings * add direct tests * more pull tests * fix stream tests * fix fetch, pending onAborted fix in HTTPServerWritable --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-02-22[breaking] Return Node.js `Timeout` objects in `setTimeout`, `setInterval`, ↵Gravatar Jarred Sumner 1-3/+12
and `setImmediate` Fixes #2129 #880
2023-02-22Various type fixes (#2135)Gravatar Colin McDonnell 6-55/+271
* Simplify serve() types * Remove baseURI * Add Bun.serve type tests * Number env vars * Make loader optional * FSRouter doesn't support URL * Update sqlite types * Bench --------- Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
2023-02-22Add runtime layer for Bun on AWS Lambda (#2009)Gravatar Ashcon Partovi 10-0/+1174