aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-20implement `Module.prototype._compile` (#5840)Gravatar dave caruso 3-2/+61
2023-09-20feat(runtime): implement `console._stdout` (#5842)Gravatar dave caruso 1-1/+35
* implement console._stdout * nonenum
2023-09-20[bun install] Add `-E` as alias of `--exact` (#5104)Gravatar Jonah Snider 1-2/+2
* [bun install] Add `-E` as alias of `--exact` * Add test for -E flag
2023-09-20feat: switch disableTelemetry to bunfig (#5690)Gravatar Lucas Coratger 1-0/+5
* feat: switch disableTelemetry to bunfig * feat: zig fmt * revert: the env variable and invert the logic of telemetry --------- Co-authored-by: MrPalixir <73360179+MrPalixir@users.noreply.github.com>
2023-09-20Treat `undefined` value as empty in expect.toThrow (#5788)Gravatar LongYinan 1-3/+3
Fix: https://github.com/napi-rs/napi-rs/blob/main/examples/napi/__tests__/test.framework.js#L16-L19
2023-09-20add `emitDecoratorMetadata` (#5777)Gravatar Dylan Conway 14-110/+882
* some progess * needs more tests * make tests easier to debug * get metadata for constructor arg decorators * fix some things * merge `emitDecoratorMetadata` option * remove `^` * bundler tests and get option from tsconfig earlier * remove spaces * fix tests
2023-09-20Call `Error.prepareStackTrace` on `new Error().stack` (#5802)Gravatar Jarred Sumner 4-144/+217
* Always call `Error.prepareStackTrace` * Support node:vm * Remove this * Handle more cases --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20Fix path used in bunx (#5785)Gravatar Jarred Sumner 1-26/+31
* Fix path used in bunx * Add test * Use a different package --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20Fix RedirectURLTooLong errors (#5786)Gravatar ggobbe 1-1/+1
The URL to download the manifest for Artifact Registry in Google is larger than 4092 bytes. cf. issue #4748
2023-09-19Show when a newer version is available in the install screen (#5780)Gravatar Jarred Sumner 3-14/+95
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Fixes #5769 (#5775)Gravatar Jarred Sumner 2-4/+33
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19fix(cli): `bun pm cache rm` command not work (#4571)Gravatar WingLim 1-1/+1
* fix(cli): rm arg is in positionals[1] * chore(cli): add cache remove test * chore: remvoe unnecessary join * chore: run formatter --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-09-19Get artifactory to work (#5744)Gravatar Jarred Sumner 3-49/+112
* Get artifactory to work * Cleanup url normalization a ltitle more * Clean up tests * prettier --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Align fetch() redirect behavior with spec (#5729)Gravatar Jarred Sumner 1-20/+41
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Fixes #3712 (#5730)Gravatar Jarred Sumner 2-5/+9
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Make bun install --verbose more verbose (#5726)Gravatar Jarred Sumner 2-4/+11
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18Encode slashes in package names in the registry manifest request (#5716)Gravatar Jarred Sumner 3-2/+31
* Encode slashes in package names in the registry manifest request Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com> * Update dummy.registry.ts * Fix tests * Add guide for Azure Artifacts * Update azure-artifacts.md * Update azure-artifacts.md * Typo --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
2023-09-18`bun run` fix missing script error on empty file (#5025)Gravatar Julian 1-1/+0
* Fix empty file not found bug * Add tests * fix test --------- Co-authored-by: Jeremy Funk <jeremy@kombo.dev> Co-authored-by: dave caruso <me@paperdave.net>
2023-09-18fix: provide empty string to 0 length process environment variables (#5679)Gravatar Liz 1-9/+3
* fix: provide empty string to len 0 process env vars For process loaded env vars, its a bug to give them the literal value '""' if the provided length is 0. * fix: add test and remove unneeded branch Removes the redundant branch for empty env vars and adds a test for the process specific case. * fix: remove empty_string_value Removes the constant in favor of using the empty values or passing the literal "". * style: format env.test.ts
2023-09-18fix: remove unneeded branch in toJSONWithBytes (#5684)Gravatar Liz 1-5/+1
This branch resulted in the same the same statement so having the branch, is not needed
2023-09-18fix(runtime/node): Allow `new Buffer.alloc()` + Upgrade WebKit (#5699)Gravatar dave caruso 8-168/+413
* make bufferconstructor a static hash table * chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7 * make it constructable now * fix comment * yippee * update CI workflows
2023-09-18Implement `node_api_create_external_string_latin1` and ↵Gravatar Jarred Sumner 5-4/+91
`node_api_create_external_string_utf16` (#5675) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18feat(runtime): Implement `console.Console` (#5448)Gravatar dave caruso 7-5/+818
* prototype * asdfg * It works! * okay its done now fr * self review * ok * fix * fix test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18Fix HTTP listen behavior being non-compliant with node (#5689)Gravatar dave caruso 3-20/+14
* Fix HTTP listen behavior being non-compliant with node * Add error code for address in use * use SystemError --------- Co-authored-by: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com>
2023-09-18fix(config): support for registry url without trailing slash (#5662)Gravatar Ai Hoshino 1-4/+12
* fix(config): support for registry URLs without trailing slash Close: #4589, #5368 * Update src/bunfig.zig * Update src/bunfig.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18In `bun:sqlite`, make sure we set the number tag correctly when creating the ↵Gravatar Jarred Sumner 1-5/+10
JSValue (#5655) * Make sure we set the number tag correctly when returning values from SQLite * Add DOMJIT test * Update JSSQLStatement.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18feat(test): Implement `arrayContaining` (#5572)Gravatar WingLim 11-3/+416
* feat(test): implement `arrayContaining` * feat: early return when expectedArray is empty * feat: add test for toEqual * chore: use `JSC::isArray` * chore: use getIndex for performance * fix: use deepEqual --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18feat(console.log): Print annonymus when class name is unknown (#5595)Gravatar Jibran Kalia 1-1/+1
This matches the functionality in Node.
2023-09-18Add a way to disable the GC timer (#5656)Gravatar Jarred Sumner 2-2/+17
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-17Fix assertion failure in debug buildsGravatar Jarred Sumner 1-1/+1
2023-09-17Fix `make headers`Gravatar Jarred Sumner 1-0/+1
2023-09-17Workaround #5604 (#5615)Gravatar Jarred Sumner 1-8/+12
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-17Added .DS_Store to gitignore-for-init (#5628)Gravatar Cilooth 1-0/+4
2023-09-17fix(install): Return NotSupported when errno == XDEV (#5610)Gravatar pan93412 1-0/+2
2023-09-16Use a better error labelGravatar Jarred Sumner 2-2/+19
2023-09-16fix(child_process) unref next tick so exit/close event can be fired before ↵Gravatar Ciro Spaciari 1-4/+28
application exits (#5481) * unref next tick so exit callback can be called * fmt + test * oops * add ref_count * update pending * comment and fix
2023-09-16feat(encoding): TextDecoder support undefined (#5387)Gravatar WingLim 1-0/+3
* feat(encoding): TextDecoder support undefined * chore: format test file
2023-09-16fix(fetch) handle 100 continue (#5496)Gravatar Ciro Spaciari 1-1/+9
* handle 100 continue * move comment * cleanup * fmt
2023-09-16Make this error message clearer (#5603)Gravatar Jarred Sumner 3-8/+63
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-16fix: node compatibility with empty path string (#4693)Gravatar MrPalixir 1-10/+2
Co-authored-by: MrPalixir <73360179+MrPalixir@users.noreply.github.com>
2023-09-16webkit upgrade (#5535)Gravatar Dylan Conway 10-37/+55
* update files * Update cold-jsc-start.cpp * bump webkit
2023-09-15mark bindingGravatar Dylan Conway 1-0/+1
2023-09-15Update build-idGravatar Jarred Sumner 1-1/+1
2023-09-15fix(node/fs.watch): Check first char before trimming event filenames (#5505)Gravatar David Hewitt 1-11/+2
* Add failing test * fix(node/fs.watch): Don't lose first char in event * run prettier
2023-09-15fix(bundler): Add a space before minified require (#5521)Gravatar David Hewitt 1-0/+2
Fixes #5501
2023-09-15fix(request) handle undefined/null/empty signal on request (#5503)Gravatar Ciro Spaciari 1-2/+1
* handle undefined/null/empty signal on request * better approach
2023-09-15Update InternalModuleRegistryConstants.hGravatar Dylan Conway 1-2/+2
2023-09-15Add missing visitorsbun-v1.0.2Gravatar Jarred Sumner 1-1/+3
cc @paperdave
2023-09-15feat(runtime): add `process.binding` `uv`/`natives`/`config` + make global ↵Gravatar dave caruso 31-1175/+1637
object properties lazy (#5355) * binding uv * we did that * some more bindings * fix doc * fix uv * yo * static hash table nonsense <3 * huge refactor to the global object i am not ready for merge conflicts * it works part 3 * lose --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-15Update build-idGravatar Jarred Sumner 1-1/+1