aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/builtins/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-06-15direct streams mostly workjarred/directGravatar Jarred Sumner 4-471/+485
2022-06-15wip direct streamsGravatar Jarred Sumner 5-56/+496
2022-06-12ArrayBufferSink works and it's good.Gravatar Jarred Sumner 1-1/+3
2022-06-09`new Response(stream).arrayBuffer()` + 3 moreGravatar Jarred Sumner 2-1/+52
- `new Response(stream).arrayBuffer()` - `new Response(stream).json()` - `new Response(stream).text()` - `new Response(stream).blob()`
2022-06-07Web Streams API (#176)Gravatar Jarred Sumner 17-0/+4539
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more * Implement `Blob.stream()` * Update streams.test.js * Fix sourcemaps crash * [TextEncoder] 3x faster in hot loops * reading almost works * start to implement native streams * Implement `Blob.stream()` * Implement `Bun.file(pathOrFd).stream()` * Add an extra function * [fs.readFile] Improve performance * make jsc bindings a little easier to work with * fix segfault * faster async/await + readablestream optimizations * WebKit updates * More WebKit updates * Add releaseWEakrefs binding * `bun:jsc` * More streams * Update streams.test.js * Update Makefile * Update mimalloc * Update WebKit * Create bun-jsc.test.js * Faster ReadableStream * Fix off by one & exceptions * Handle empty files/blobs * Update streams.test.js * Move streams to it's own file * temp * impl #1 * take two * good enough for now * Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers` * jsxOptimizationInlining * Fix crash * Add `jsxOptimizationInline` to Bun.Transpiler * Update Transpiler types * Update js_ast.zig * Automatically choose production mode when NODE_ENV="production" * Update cli.zig * [jsx] Handle defaultProps when inlining * Update transpiler.test.js * uncomment some tests Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-05-16Still not correct!bun-v0.0.83Gravatar Jarred Sumner 1-1/+1
2022-05-16work around test failureGravatar Jarred Sumner 1-1/+2
2022-05-16`bun:sqlite` (#167)Gravatar Jarred Sumner 1-10/+2
* :scissors: * Add the slow version * draw the rest of the owl * Fix crash when allocating lots of memory * [Bun.Transipiler] Support passing objects * [JS Parser] Support passing objects to macros via Bun.Transpiler * Update JSSQLStatement.cpp * Embed SQLite * Add SQLite to Dockerfile * [sqlite] Add quick one-off queries without creating a whole object * [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind` * Implement `bun:sqlite` * return null * Fix updating query * Update bun.d.ts * more tests * Support variadic arguments, write tests and add types * Update sqlite.d.ts * Update sqlite.d.ts * latest * Implement `Database.loadExtension` and `Database.setCustomSQLite` * Support `require.resolve` * [napi] Improve string performance * [bun.js] Support some of `node:module` * another test * [sqlite] Support serialize & deserialize * [`bun:ffi`] Implement `CFunction` and `linkSymbols` * [bun.js] Fix crash in `Buffer.from` * Update sqlite.test.js * Document linkSymbols * docs * Update README.md
2022-05-11[napi] Stub a couple moreGravatar Jarred Sumner 1-1/+1
2022-05-11[bun.js] Implement `import.meta.require`Gravatar Jarred Sumner 1-0/+62
This allows synchronous dynamic loading of `.node`, `.json`, and `.toml` files. It is not a CommonJS require, but it can be used that way so long as the content is not JavaScript.
2022-04-30[bun.js] Implement `Buffer.from` and `Buffer.copy`Gravatar Jarred Sumner 2-23/+107
2022-04-29[bun.js] Implement unsafe.{`arrayBufferToPtr`, `arrayBufferFromPtr`, ↵Gravatar Jarred Sumner 1-50/+40
`bufferFromPtr`}
2022-04-29add more to buffer implementationGravatar Jarred Sumner 1-4/+69
2022-04-28more work on bufferGravatar Jarred Sumner 1-0/+236