aboutsummaryrefslogtreecommitdiff
path: root/packages (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-04-30Add missing type for sqlite (#2764)Gravatar Jarred Sumner 1-0/+84
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 1-18/+3
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 1-10/+10
* Bundler docs updates * Remove comments * Updates * Fix bunx usages * Add info about metafile
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 1-1/+6
This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651
2023-04-26Basic types for Bun.build (#2713)Gravatar Colin McDonnell 1-5/+46
* Basic types for Bun.build * Tweaks * Updates
2023-04-21Add `tsconfig.json` to `bun-types` (#2587)Gravatar Colin McDonnell 2-18/+37
* Add tsconfig.json to bun-types. Document 'extends' pattern. * Updates * Update bun init to use extends:bun-types * Update type:module recommendation * Add note about transpilation. Closes #2553 * Make typescript a peer dep * Revert changes to docs * Revert tsconfig extends * Update readme * FMC * Undo changed
2023-04-20Update runner.node.mjsGravatar Jarred Sumner 1-15/+20
2023-04-14Support importing `.txt` files as strings (#2660)Gravatar Jarred Sumner 1-0/+5
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-12fix types and add more reliable tests (#2621)Gravatar Ciro Spaciari 1-10/+10
2023-04-07Fix trailing slash bug in upload scriptGravatar Ashcon Partovi 1-1/+1
2023-04-07Upload releases to S3Gravatar Ashcon Partovi 3-1/+104
2023-04-07Add TSConfig object type to TranspilerOptions interface (#2545)Gravatar Jake Boone 1-1/+21
2023-04-07`FileBlob` -> `BunFile`, add `BunFile.lastModified` (#2581)Gravatar Colin McDonnell 2-74/+116
* Improve BunPlugin types * FileBlob -> BunFile * Update Bun.env types. Fixes #2481 * Add lastModified to BunFile
2023-04-07feat(tls.Server) basic support (cert, key, rejectUnauthorized, requestCert, ↵Gravatar Ciro Spaciari 3-275/+290
ca) #2412 (#2552) * cherry picked * add StringOrBuffer parameter * Format and adds types * update uws * fix tests * more types * fix typing * add timeouts, clean some stuff * move tests to describe * fixes SSL hostname when Host is provided * cleanup on tests * change 127.0.0.1 to 0.0.0.0 * try another listening parameter * test timings and update uws * remove unnecessary comment * move listening event around * always await Bun.connect * do not fail if the tests already passed when using Bun.connect * regenerate classes * undo generated classes * generate classes * fix merge --------- Co-authored-by: cirospaciari <cirospaciari@MiWiFi-RA82-srv.cirospaciari>
2023-04-06fix: export `constants` from `fs/promises` (#2567)Gravatar dave caruso 1-0/+2
* fix: export `constants` from `fs/promises` * fix type tests * third time's the charm fixing the typedef * run fmt * remove injected constant from fs, re-exporting from fs/promises
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