aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-07[Bun.connect] Fix bug where connect() Promise wouldn't reject on a ↵Gravatar Jarred Sumner 1-12/+58
connection error
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 2-0/+54
* Boilerplate for DNS stuff * Add c-ares * lookup * make * Implement dns.lookup * Create c-ares * wip * normalize * repro * Revert "repro" This reverts commit 8b93e0c295b335b8882a9601da47720348549beb. * Implement macOS `getaddrinfo_async_start` * embiggen * Update string_immutable.zig * Update Makefile * alright * Update .gitignore * Add types * more ccache * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update bun.d.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-07test `BufferList` against surrogate pairsGravatar alexlamsl 1-5/+11
2023-01-05lazily create buffer/string slices (#1735)Gravatar Alex Lam S.L 1-0/+38
2023-01-05Report unhandled promise rejection on exit and make exit code 1 instead of 0 ↵Gravatar Jarred Sumner 5-0/+43
(#1734) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-04implement `expect().toThrow()` (#1727)Gravatar Alex Lam S.L 2-96/+263
- fix bugs in `JSBufferList` - add tests
2023-01-0410x faster `new Buffer` (#1717)Gravatar Jarred Sumner 2-61/+17
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-03[streams] speed up `Readable` in some cases (#1708)Gravatar Alex Lam S.L 1-0/+111
If `encoding` is set, no `Buffer`s would be exposed thus `Uint8Array` can be used directly. - fix data corruption in `BufferList.concat()` - fix segfaults in `BufferList.join()`
2023-01-02[socket] handle `connectError` (#1705)Gravatar Alex Lam S.L 3-10/+54
assorted clean-ups & fixes
2023-01-02fix double `resolve()` in test (#1707)Gravatar Alex Lam S.L 1-6/+6
also clean up `reject()` values
2023-01-02implement `net.Socket` (#1701)Gravatar Alex Lam S.L 1-0/+175
- support TCP sockets for now, i.e. no IPC - extra features like keep-alive, no-delay etc. are absent due to limitations of uSockets - fix `jest` to treat `done(nullish)` as success
2023-01-02fix lingering process by dead sockets (#1700)Gravatar Alex Lam S.L 2-0/+104
`Bun.listen()` and `Bun.connect()` would create sockets that under certain conditions with calls to `.end()` or `.stop`, prevents the process from exiting gracefully.
2023-01-01test crypto.randomBytes returns a BufferGravatar Jarred Sumner 1-0/+8
2023-01-01Add a test for empty chunksGravatar Jarred Sumner 1-0/+41
2022-12-31[jest] fix and improve hooks (#1689)Gravatar Alex Lam S.L 1-0/+127
- wait for async hooks to complete before running tests - add support for `done(err)` callbacks in hooks fixes #1688
2022-12-30Upgrade WebKitGravatar Jarred Sumner 2-2/+4
2022-12-29Introduce `Bun.CryptoHasher`Gravatar Jarred Sumner 1-2/+45
2022-12-29[node] Implement `process.uptime` and `process.umask`Gravatar Jarred Sumner 1-0/+13
2022-12-28Expose the rest of RIPEMD160Gravatar Jarred Sumner 1-1/+15
2022-12-28[WebSocket] Allow `http:` and `https:` protocolsGravatar Jarred Sumner 1-0/+31
See https://github.com/whatwg/websockets/pull/37
2022-12-28[WebSocket] Implement `headers` supportGravatar Jarred Sumner 1-0/+23
Fixes https://github.com/oven-sh/bun/issues/1676
2022-12-28Fix `ReadableStream.pipeTo`Gravatar Jarred Sumner 1-0/+18
2022-12-28log object string correctly (#1674)Gravatar Alex Lam S.L 5-2/+70
use `Symbol.toStringTag` of the object or that of its `.prototype` fixes #1584
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 5-650/+771
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-27emit `206 Partial Content` only for partial response (#1670)Gravatar Alex Lam S.L 1-441/+297
fixes #1668
2022-12-26[install] specify `auth-type` (#1667)Gravatar Alex Lam S.L 1-0/+4
2022-12-26[install] use specified base URL as default fallback within scopes (#1665)Gravatar Alex Lam S.L 3-38/+83
2022-12-25[install] use default URL when only auth token is specified (#1664)Gravatar Alex Lam S.L 2-0/+40
Previously it would default to `http://localhost/` which was inconsistent with the case sans token. Use official `npm` registry as fallback in both cases.
2022-12-21Add test for stat()Gravatar Jarred Sumner 1-0/+9
2022-12-21fix jest hooks in bun-test (#1639)Gravatar Ethan Burrell 1-0/+76
* fix(jest) fix broken jest hooks * add tests
2022-12-20add tests for #1633 (#1635)Gravatar Alex Lam S.L 3-11/+69
- `setImmediate(fn, ...args)` - `setInterval(fn, delay, ...args)` - `setTimeout(fn, delay, ...args)`
2022-12-17bug compatible with `stdin.on("readable")` (#1626)Gravatar Alex Lam S.L 2-46/+69
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 3-873/+12
* Update .gitmodules * Delete oniguruma * Delete Oniguruma * Make this test less flaky * :scissors: Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-17Update transpiler.test.jsGravatar Jarred Sumner 1-17/+24
2022-12-17Implement `node:util/types`Gravatar Jarred Sumner 1-0/+281
Fixes #1617
2022-12-16add tests for `process.stdin` (#1621)Gravatar Alex Lam S.L 2-1/+81
2022-12-15[js parser] Fix bug where `const {resolve} = require` throws "require is not ↵Gravatar Jarred Sumner 1-4/+21
defined"
2022-12-15[node:process] Implement `process.argv0`, `process.execPath`Gravatar Jarred Sumner 1-0/+10
Fixes https://github.com/oven-sh/bun/issues/1599
2022-12-15fix(stream): make Readable.read work w/o _construct implemented (#1613)Gravatar Derrick Farris 1-3/+22
* fix(stream): put Readable._readableState.constructed default in spec (true, not false) * cleanup(readable): remove unnecessary _construct methods * test(stream): add test for Readable w/o _construct method
2022-12-13Don't call debug streams getter when not in debugGravatar Jarred Sumner 1-2/+2
2022-12-13Add a test for importing unknown file types as `file` loaderGravatar Jarred Sumner 2-0/+7
2022-12-13[crypto] Implement `scryptSync`Gravatar Jarred Sumner 1-0/+265
Fixes https://github.com/oven-sh/bun/issues/1228
2022-12-12[crypto] Implement crypto.timingSafeEqualGravatar Jarred Sumner 1-0/+38
This uses BoringSSL's memcmp function Fixes https://github.com/oven-sh/bun/issues/1308
2022-12-12fix(stream): Fix Readable.pipe() (#1606)Gravatar Derrick Farris 1-1/+27
* fix(stream): fix some debug logs that were breaking .pipe * fix(stream): another debug fix * test(stream): add test for .pipe
2022-12-11Add a test for some scopesGravatar Jarred Sumner 1-0/+48
2022-12-11cleanup some testsGravatar Jarred Sumner 5-47/+18
2022-12-10override `process.stdin.on()` correctly (#1603)Gravatar Alex Lam S.L 1-0/+6
* override `process.stdin.on()` correctly fixes #1601 * add tests
2022-12-10[transpiler] Improve constant propagationGravatar Jarred Sumner 1-0/+84
2022-12-10Implement simple version of inlining single-use expressions and statementsGravatar Jarred Sumner 1-0/+429
2022-12-09Deprecate very incomplete Solid.js JSX transformGravatar Jarred Sumner 31-3057/+0
We don't have time to do a good job of this and Bun.plugin makes it possible to use Solid with Bun