aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-18[node:vm] Propagate global properties defined on the new context objectGravatar Jarred Sumner 2-16/+26
2023-05-18clang-formatGravatar Jarred Sumner 1-14/+15
2023-05-18Implement `node:vm` (#2785)Gravatar Silver 7-46/+482
* feat: begin implementing node:vm Script object * refactor: clean up and address review comments * refactor: rename Script to VMModuleScript * fix: expose VMModuleScript.prototype also oops I forgot to commit the new files last time * feat(vm): Implement contexts and scripts * feat(vm): implement globalThis * feat(vm): expose node:vm module with global helper functions * refactor(vm): rename VMModuleScript to NodeVMScript * feat: implement script options * doc: add TODOs for runIn*Context options
2023-05-18Fixes #2924Gravatar Jarred Sumner 1-0/+8
2023-05-18Implement `expect().toBeCloseTo()` (#2870)Gravatar Degreat 1-1/+98
2023-05-18Fixes #2928 (#2939)Gravatar Jarred Sumner 1-1/+1
* Fixes #2928 * another case * Fix console.log with utf-16 string mismatched quotes * Fix issue with json * Even more cases --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-17Fixes https://github.com/oven-sh/bun/issues/2931Gravatar Jarred Sumner 1-1/+4
2023-05-17Support static string values in our class bindings generatorGravatar Jarred Sumner 2-2/+26
2023-05-17Make `BuildError` and `ResolveError` use C++ instead of JSC C APIGravatar Jarred Sumner 20-500/+2052
Fixes memory leak with private data never being cleared Fixes a case where a ResolveError could actually be a BuildError
2023-05-17Finish bumpingjarred/webkit-upgrade-may-17Gravatar Jarred Sumner 4-4/+34
2023-05-17Do the WebKit upgradeGravatar Jarred Sumner 14-26/+17
2023-05-16Fix segfault on passing undefined to bun.build (#2902)Gravatar dave caruso 1-0/+5
2023-05-16feat(WebSocketServer) WebSocketServer wrapper + socket.io initial support ↵Gravatar Ciro Spaciari 2-7/+862
(#2880) * WebSocketServer wrapper + socket.io initial support * fix up backpressure * fix up backpressure * fix http address * add socket.io tests * add closing tests * add connection state recovery tests for socket.io * add handshake test * add middeware tests for socket.io * added socket.io socket middleware tests * add more socket.io test comment/skip hang tests * add pending package for tests * add server attachment servers for socket.io * add utility-methods tests for socket.io * rename * rename * add messaging-many socket.io tests * add namespaces tests to socket.io * skip some tests * fmt * add packages to general package.json
2023-05-15More error message cleanupGravatar Jarred Sumner 1-1/+1
2023-05-15Make `bun build --compile` a little more resilient, output better errors, ↵Gravatar Jarred Sumner 2-0/+32
and clean up files
2023-05-15Fix bug with `req.url` set incorrectly (#2881)Gravatar Jarred Sumner 1-7/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-14Fix `process.argv` with standaloneGravatar Jarred Sumner 1-7/+13
2023-05-14fix(spawn) add Uint8Array support for stdout (#2866)Gravatar Ciro Spaciari 1-50/+95
* add array_buffer support for stdout * fix comment * fix param name on baby_list * keep test names consistent * add more test cases
2023-05-14feat(Timer.refresh) add refresh support on Timer (#2874)Gravatar Ciro Spaciari 8-27/+272
* add refresh support on Timer * fix this return * add refresh setTimeout tests * fix tests and add setInterval test * use setCached for arguments and callback --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-05-14Single-file standalone Bun executables (#2879)Gravatar Jarred Sumner 2-0/+98
* Add LIEF * Compile LIEF * Implement support for embedding files on macOS * proof of concept * Add zstd * Implement runtime support * Move some code around * Update .gitmodules * Upgrade zig https://github.com/ziglang/zig/pull/15278 * leftover * leftover * delete dead code * Fix extname * Revert "Upgrade zig" This reverts commit dd968f30bffb6c06e34302645a3a4468c957fb4e. * Revert "leftover" This reverts commit 7664de7686276cfba431103847d35b9270433dee. * Revert "leftover" This reverts commit 498005be06a8a1747d48824310e5a020b1f90d97. * various fixes * it works! * leftover * Make `zig build` a little faster * give up on code signing support * Support Linux & macOS * Finish removing LIEF * few more * Add zstd to list of deps * make it pretty --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-12proper stub for sockets (#2868)Gravatar Ciro Spaciari 1-8/+80
2023-05-12`root` bundle option (#2859)Gravatar Dylan Conway 1-0/+31
* handle multiple output files and `[dir]` * get the realpath of `root_dir` * duplicate output paths * add `rootdir` to `JSBundler` * use realpath of input file * add tests for naming and root --------- Co-authored-by: Dave Caruso <me@paperdave.net>
2023-05-12fix large stdout output (#2850)Gravatar Ciro Spaciari 1-0/+16
* fix large stdout output * remove skip from #2674 for testing * add big stdout test using spawnSync * add bunEnv on big stdout test
2023-05-11oops (#2863)Gravatar dave caruso 2-3/+3
* oops * oops part 2
2023-05-11Allow reading config from within plugins, and partially implement esbuild ↵Gravatar dave caruso 5-107/+152
`initialOptions` (#2861) * Implement plugin build.config and initialOptions * update types * default initialoptions entrypoints
2023-05-11call stop before emitGravatar Jarred Sumner 1-1/+1
2023-05-11fixupGravatar Jarred Sumner 1-1/+2
2023-05-11[node:http] handle errors generated by fetchGravatar Jarred Sumner 1-28/+33
2023-05-11[node:http] Fix `close()` to accept a callback and implement ↵Gravatar Jarred Sumner 1-5/+23
`closeAllConnections`
2023-05-11Fix `OutputKind`, add "use client" and "use server"Gravatar Jarred Sumner 1-0/+2
2023-05-11bundler tests and improve `Bun.build` return type (#2833)Gravatar dave caruso 6-72/+111
* importstar_ts * tests * run acorn test suite * bench tweaks * test * bun.build tests very incomplete * remove dataurl and base64 loaders from tests since they dont work yet * tests * stuff * stuff * add errors and array of blobs * work so far * docs * requested changes * fix overwrite docs * remove this file
2023-05-11fix child process tests (#2584)Gravatar Dylan Conway 1-12/+7
* always handle exit on next tick * emit spawn immediately
2023-05-11fix redirect: \'manual\' and setTimeout on node:http request (#2848)Gravatar Ciro Spaciari 1-4/+20
2023-05-11fix(fs) mkdtemp and mkdtempSync errors (#2851)Gravatar Ciro Spaciari 2-9/+19
* fix mkdtemp * fmt * fix errno
2023-05-11add support for { all: true } option on dns.lookup (#2846)Gravatar Ciro Spaciari 1-2/+22
2023-05-11Report timings for failing tests tooGravatar Jarred Sumner 1-5/+15
2023-05-11[bun test] Add timings to successful testsGravatar Jarred Sumner 1-6/+28
2023-05-10Implement `describe.skip` (#2836)Gravatar Degreat 1-3/+29
* Implement describe.skip * Add more tests to cover hooks
2023-05-10feat(fetch) add redirect: 'error' support (#2845)Gravatar Ciro Spaciari 1-13/+14
* add redirect: 'error' support * fix typo * fix typo * refactor FetchRedirect enum * fix FetchRedirect * updated
2023-05-10Clean-up 85b4be5f7189e51e63672ddc874e7c6e09ae8befGravatar Jarred Sumner 3-38/+38
- We don't need to make `Bun__fetch` exported in every C++ header file - We shouldn't return JSObjectRef, its an unnecessary wrapper - The version of `fetch` on the Bun global should be non-configurable so that it is safe for anyone who wants to use that without a user-modifiable one
2023-05-10fix(fetch) fix fetch inheritance (#2842)Gravatar Ciro Spaciari 5-32/+48
* patch fetch function inheritance * fmt * fix reserveCapacity and number of arguments for fetch * change Bun.fetch to use Fetch.jsFunction * merge Fetch.jsFunction and Fetch.call * remove commented code
2023-05-10Implement `BuildArtifact`Gravatar Jarred Sumner 14-2/+1083
2023-05-09Expose bindings for `Map`Gravatar Jarred Sumner 5-5/+112
2023-05-09Add `name` propertyGravatar Jarred Sumner 5-2/+130
2023-05-09Fix extra semicolonGravatar Jarred Sumner 2-15/+1
2023-05-09Fix `make headers` (May 9th 2023 edition)Gravatar Jarred Sumner 1-0/+8
2023-05-09add `WebAssemblyInstance` and `WebAssemblyGCObject` js types (#2835)Gravatar Dylan Conway 2-2/+8
* add `WebAssemblyInstance` and `WebAssemblyGCObject` * update c api
2023-05-09Re-run builtins generatorGravatar Jarred Sumner 1-2/+6
2023-05-09Fix regression with `bun test` not recursively scanning the directory treeGravatar Jarred Sumner 1-1/+2
2023-05-09fix #2820 (#2832)Gravatar dave caruso 1-18/+12