Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
cc @Electroid
|
|
|
|
|
|
|
|
|
|
* ignore webkit for cherry-pick
* toContain and toBeTruthy
* toBe null, undefined, falsy, toHaveProperty, .not
* markBindings
* remove toHaveProperty, undo ignore webkit, more tests
* undo ignore webkit
* remove bad tests
* check if length property exists for toHaveLength()
* fix call signature
* handle argument that is not an integer
* getLengthOfArray returns u64
* switch to truncate
* toHaveLength() edge cases
* add toBooleanSlow()
* infinity, nan, negative
|
|
|
|
|
|
|
|
This also makes it a lot slower
|
|
|
|
|
|
* Make node streams faster
* Fix for macOS, improve performance, handle ref and unref
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
|
|
|
|
|
|
* Fix pipe
* Handle unregistered
* Fix failing test
|
|
|
|
|
|
|
|
|
|
Fixes https://github.com/oven-sh/bun/issues/1417
|
|
* fix(child_process): fix execFileSync options.input
* fix(child_process): debug err, check for Uint8Array too
* fix(child_process): fix ArrayBufferIsView call
* test(child_process): fix missing toString() call on test result
* refactor(child_process): change options.input to input to getter calls
|
|
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
|
|
|
|
Credit: @magic-akari, almost identical diff in https://github.com/evanw/esbuild/pull/2509/files#diff-ccc0bde7223236d93490b727b272f15765a2674be12a4c310b83b9555bef8816
|
|
* capture stack trace formatting, tests
* fix callsite methods, stack formatting or undefined
* isNative, tests for callsite methods
* Update src/bun.js/bindings/ZigGlobalObject.cpp
* Update src/bun.js/bindings/ZigGlobalObject.cpp
* template and macros for visitchildren
* static strings, handle infinity and clamp stacktracelimit
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
|
|
|
|
|
|
* test(child_process): fix broken tests, add our-assert pkg for testing
* test(child_process): replace console.log with debug()
* test(child_process): rename our-assert -> node-test-helpers, use Bun.peek for subproc.exited
|
|
|
|
|
|
|
|
|
|
|
|
credit: @Validark
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* feat(child_process): beginning of child_process, add ChildProcess and spawn base case
* fix(child_process): remove invalid single arg array syntax (thanks Copilot)
* refactor(child_process): unhack Readable.on, move stuff into node:stream
* feat(child_process): add more params for spawn, refactor, add fromWeb() to Readable
* feat(child_process): finish rest of exports (minus fork), refactor, add tests
* cleanup(streams): remove a bunch of unnecessary stuff
* cleanup(child_process): remove dead refs
* fix(child_process): fix stdio
* fix(child_process): change stdio to bunStdio
* test(child_process): uncomment timeout test
* test(child_process): fix hanging tests
* test(child_process): remove stray console.log
* test(child_process): fix cwd test for linux
* refactor(child_process): divide paths for encoded vs raw execFile stdio
* fix(child_process): fix logic for execFile slow path
|
|
* fetch accept stringifier object
* test: update fetch params tests
|
|
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
|
|
the `import.meta` object in Bun now has a `primordials` object which makes a handful of globals safe for access. Inside of bun: or node: modules, it is a special object (ownKeys is not implemented, so Object.keys() wont work on it)
- Array
- String
- `isPromise`
- `isCallable`
- `isConstructable`
- `tryGetById(foo, "bar')` which is like foo?.bar
- `arrayPush` which is like `Array.prototype.push`
- `Bun`
- `isAbortSignal`
cc @ThatOneBro @lawrencecchen
|