aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2023-05-08Add a couple helpersGravatar Jarred Sumner 1-1/+12
2023-05-08Fix memory issues with `loader` and `define` in JSBundlerGravatar Jarred Sumner 1-42/+42
2023-05-08Make the enum serializer more flexibleGravatar Jarred Sumner 1-4/+4
2023-05-08implement build api `define` and `loaders` (#2805)Gravatar dave caruso 4-16/+106
* parse error logs * clean up types * remove --jsx-production. use NODE_ENV instead * add define to js api * add loaders to js api * fixups * sourcemap * typo fix * remove label, comment dir just for now * test tweaks * test work * make optional enums actually optional. allows `sourcemap: undefined` * overload host ram test * string tests * tests * test for 2815 * requested changes * sort this list * remove this test file now that it passes * oops * add --format * finish ts tests * doc typos related to define and loader
2023-05-08added some improvements on server (#2803)Gravatar Ciro Spaciari 3-137/+239
* added some improvements on server * undo unintended change * clean data handler before end calls * refactor * make ctx.resp nullable --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-05-07Add tracy (#2817)Gravatar Jarred Sumner 1-0/+9
* Add tracy * RTLD * Linux needs LD_PRELOAD * More tracing * Inline this --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-06[Bun.build] Add error when an `onResolve` plugin returns a `namespace` which ↵Gravatar Jarred Sumner 2-7/+21
has no loader
2023-05-06fix crash when there are lots of build errorsGravatar Jarred Sumner 1-3/+4
2023-05-06Fix `make headers`Gravatar Jarred Sumner 1-0/+5
2023-05-06Fix `make headers`Gravatar Jarred Sumner 1-0/+3
2023-05-06Fix a memory leakGravatar Jarred Sumner 1-0/+1
2023-05-06Use `isFile()` helperGravatar Jarred Sumner 1-1/+1
2023-05-05[napi] Fix crash in `napi_create_external_buffer`Gravatar Jarred Sumner 1-1/+1
This impacted LightningCSS when garbage collection ran. cc @devongovett
2023-05-04Add `UNLIKELY`Gravatar Jarred Sumner 1-2/+2
2023-05-04Revert "Add `setNoDelay`"Gravatar Jarred Sumner 1-4/+2
This reverts commit 8b6dd0c7e1c78a37da693dc216b18f32caa61927.
2023-05-04Throw error on non-file urlGravatar Jarred Sumner 1-1/+11
2023-05-04Add `setNoDelay`Gravatar Jarred Sumner 1-2/+4
2023-05-04Add no-op for ClientRequest.{setNoDelay,setTimeout}Gravatar Ashcon Partovi 1-0/+9
2023-05-02Add `__ulock_wait2` polyfillGravatar Jarred Sumner 1-0/+24
cc @kzc
2023-04-30Bun Test matchers even/odd. Also, .toContains fix and truthy (#2754)Gravatar Will Richards 2 7-3/+203
* bun test matcher tests for even/odd, few more truthy tests, and fix for contains empty string * implementation of even/odd matchers * didn't add the codegen bindings * linted
2023-04-30Implement source maps (#2770)Gravatar Dylan Conway 1-1/+1
* wip * Begin computing source map tables * source map progress * external source maps * fix merge * remove `@as` coercion * inline source maps and output source map shifts * fix `codeWithSourceMapShifts()` after merge * remove second call to `findReachableFiles()` * use `worker.allocator`, remove comment * don't reuse memory for source and sourceContents * don't reuse `quote_buf` * fix writing to stdout * Add comment * Don't include a sourcemap if the text was empty * Make the parser faster * +16% faster sourcemap generation @dylan-conway I'll need you to look this over to make sure I didn't mess anything up Though it currently doesn't generate the offsets in the right order... * 30% performance improvement to Bun.build() * Print `debugId` in source maps cc @mitsuhiko @notzeeg --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-01[install] handle `devDependencies` of local folders (#2781)Gravatar Alex Lam S.L 1-1/+1
fixes #2653
2023-04-29Fix plugin namespaces always being set to `"flie"`Gravatar Jarred Sumner 2-3/+4
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 6-21/+53
2023-04-28fix several memory issues related to pluginsGravatar Jarred Sumner 1-2/+5