aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-22Write out builtins with TypeScript + Minify them (#2999)Gravatar dave caruso 23-8146/+0
* start work drafting how builtins will work * work on ts builtin * builtins stuff so far * builtins * done for today * continue work * working on it * bindings so far * well, it builds. doesnt run * IT RUNS * still lots of ts errors but it is functional * sloppy mode
2023-05-22[node:buffer] Add missing `inspect` functionbun-v0.6.3Gravatar Jarred Sumner 1-0/+7
cc @paperdave
2023-05-11oops (#2863)Gravatar dave caruso 1-1/+1
* oops * oops part 2
2023-05-11Allow reading config from within plugins, and partially implement esbuild ↵Gravatar dave caruso 1-1/+21
`initialOptions` (#2861) * Implement plugin build.config and initialOptions * update types * default initialoptions entrypoints
2023-05-08implement build api `define` and `loaders` (#2805)Gravatar dave caruso 1-0/+4
* 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-06[Bun.build] Add error when an `onResolve` plugin returns a `namespace` which ↵Gravatar Jarred Sumner 1-0/+7
has no loader
2023-05-06fix crash when there are lots of build errorsGravatar Jarred Sumner 1-3/+4
2023-04-29Fix plugin namespaces always being set to `"flie"`Gravatar Jarred Sumner 1-1/+1
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 1-2/+18
2023-04-25now it worksGravatar Jarred Sumner 1-7/+6
2023-04-25typoGravatar Jarred Sumner 1-1/+3
2023-04-25Implement `onResolve` plugins in `Bun.build()`, support multiple onLoad and ↵Gravatar Jarred Sumner 6-5/+423
onResolve plugins (#2739) * its 2023 * WIP `onResolve` plugins * more progress * it compiles * Lots of small fixes * Seems to work excluding entry points * Update BundlerPluginBuiltins.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-04Implement `import.meta.main` (#2556)Gravatar Jarred Sumner 1-1/+6
* 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-0/+31
* 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-07improve `Buffer` compatibility with Node.js (#2341)Gravatar Alex Lam S.L 1-9/+263
* improve `Buffer` compatibility with Node.js * use `memmove()` allow `encoding` to be `undefined`
2023-03-06feat(tty): add some `tty.WriteStream` methods to `process.{stdout, stderr}` ↵Gravatar Derrick Farris 1-0/+23
(#2320) * feat(stdio): add some `tty.WriteStream` methods * chore(builtins): add process builtin gen'd code
2023-02-14don't break esbuildGravatar Jarred Sumner 1-1/+1
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-30/+10
2023-01-28[buffer] Add missing `offset` propertyGravatar Jarred Sumner 1-1/+6
2023-01-27`Buffer.from` doesn't need to be the Buffer constructorGravatar Jarred Sumner 1-10/+7
2023-01-22stub out process.stdin.setRawModeGravatar Jarred Sumner 1-0/+1
2023-01-21Refactor `new Buffer` to pass Node.js testsGravatar Jarred Sumner 1-6/+2
2023-01-21[Buffer] Add deprecated `parent` propertyGravatar Jarred Sumner 1-0/+6
2023-01-21[buffer] Add faster path for Uint8ArrayGravatar Jarred Sumner 1-0/+6
2023-01-21[buffer] Make Buffer.from pass more testsGravatar Jarred Sumner 1-37/+59
2023-01-18Fixes #1831Gravatar Jarred Sumner 1-5/+12
2023-01-0410x faster `new Buffer` (#1717)Gravatar Jarred Sumner 2-38/+46
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-28Move some code upGravatar Jarred Sumner 1-7/+4
2022-12-28Fix `ReadableStream.pipeTo`Gravatar Jarred Sumner 1-1/+1
2022-12-17bug compatible with `stdin.on("readable")` (#1626)Gravatar Alex Lam S.L 1-3/+26
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-583/+0
* 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-16add tests for `process.stdin` (#1621)Gravatar Alex Lam S.L 1-1/+1
2022-12-15[process.stdin] Support reading from process.stdin in the same tickGravatar Jarred Sumner 1-2/+17
2022-12-15fix(stream): make Readable.read work w/o _construct implemented (#1613)Gravatar Derrick Farris 1-5/+0
* 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-13Avoid creating closureGravatar Jarred Sumner 1-7/+13
2022-12-13make `process.stdin` work under TTY (#1611)Gravatar Alex Lam S.L 1-49/+35
- workarounds for #1607 & #1608 fixes #1604
2022-12-11Add _readGravatar Jarred Sumner 1-2/+17
2022-12-10override `process.stdin.on()` correctly (#1603)Gravatar Alex Lam S.L 1-1/+1
* override `process.stdin.on()` correctly fixes #1601 * add tests
2022-12-05Make `console` an `AsyncIterable`Gravatar Jarred Sumner 2-27/+139
2022-12-05`process.stdin` exists but doesn't totally work yetGravatar Jarred Sumner 1-15/+12
2022-12-04Add some basic tests for process.stdoutGravatar Jarred Sumner 1-5/+11
2022-12-03`process.stdout` and `process.stderr`Gravatar Jarred Sumner 2-24/+600
2022-12-02Propagate reason in AbortSignal and reuse in ReadableStream.pipeToGravatar Jarred Sumner 1-9/+4
Similar to https://github.com/WebKit/WebKit/pull/7013
2022-12-02Update TransformStream options getters to check for undefinedGravatar Jarred Sumner 1-4/+8
This is essentially copied from https://github.com/WebKit/WebKit/pull/7021
2022-11-28Ensure we report errors in controller.closeGravatar Jarred Sumner 1-1/+9
2022-11-27Handle more cases with printing objectsGravatar Jarred Sumner 1-0/+2
2022-11-25Fix double freeGravatar Jarred SUmner 1-7/+14
2022-11-25[streams] Always call startGravatar Jarred Sumner 1-6/+4
2022-11-24Add extra checkGravatar Jarred Sumner 1-1/+1
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-24/+65
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>