aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-18fix(node:buffer): fix the behavior of `totalLength` in `Buffer.concat` (#6574)Gravatar Ai Hoshino 1-3/+9
* fix(node:buffer): fix the behavior of `totalLength` in `Buffer.concat` Close: #6570 Close: #3639 * fix buffer totalLength type --------- Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
2023-10-18fix: online docs moved (#6579)Gravatar Mountain/\Ash 1-1/+1
2023-10-18build-id++Gravatar Dylan Conway 1-1/+1
2023-10-18fix(web): stub `performance.getEntriesByName` (#6542)Gravatar Liz 1-0/+18
2023-10-17update root package variableGravatar Dylan Conway 1-8/+3
2023-10-17fix #4766 (#6563)Gravatar Pierre CM 1-4/+4
2023-10-17Update ZigGeneratedClasses.cppGravatar Dylan Conway 1-2/+0
2023-10-17use npm alias in dependencies (#6545)Gravatar Dylan Conway 6-29/+111
* aliased package in dependencies * other buf * make sure version works * make sure overrides don't override alias * tests * update * comments
2023-10-17fix(node:http): fix `server.address()` (#6442)Gravatar Ai Hoshino 8-10/+350
Closes #6413, #5850
2023-10-16fix(runtime): make some things more stable (partial jsc debug build) (#5881)Gravatar dave caruso 96-1368/+1651
* make our debug assertions work * install bun-webkit-debug * more progress * ok * progress... * more debug build stuff * ok * a * asdfghjkl * fix(runtime): fix bad assertion failure in JSBufferList * ok * stuff * upgrade webkit * Update src/bun.js/bindings/JSDOMWrapperCache.h Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fix message for colin's changes * okay * fix cjs prototype * implement mainModule * i think this fixes it all --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-16fix(runtime): improve IPC reliability + organization pass on that code (#6475)Gravatar dave caruso 14-98/+265
* dfghj * Handle messages that did not finish * tidy * ok * a * Merge remote-tracking branch 'origin/main' into dave/ipc-fixes * test failures --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-16fix(test): when tests run with --only the nested describe blocks `.on… (#5616)Gravatar Igor Shapiro 1-13/+22
2023-10-16perf(node:events): optimize `emit(...)` function (#5485)Gravatar Yannik Schröder 2-8/+52
2023-10-16fix: don't remove content-encoding header from header table (#5743)Gravatar Liz 1-2/+3
Closes #5668
2023-10-16fix(sqlite) Insert .all() does not return an array #5872 (#5946)Gravatar Hugo Galan 1-7/+1
* fixing #5872 * removing useless comment
2023-10-16Fix `Response.statusText` (#6151)Gravatar Chris Toshok 8-234/+233
2023-10-16fix-subprocess-argument-missing (#6407)Gravatar Nicolae-Rares Ailincai 1-1/+1
* fix-subprocess-argument-missing * fix-tests * nitpick, these should === not just be undefined --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-10-16fix(node:worker_threads): ensure threadId property is exposed on ↵Gravatar Jérôme Benoit 3-10/+9
worker_threads instance (#6521) * fix: ensure threadId property is exposed on worker_threads instance Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * fix: rename lazy worker_threads module properties Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * fix: add getter for threadId Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: improve worker_threads UTs Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: fix lazy loading Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: fix worker_threads test Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org> * fix: return the worker threadId Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> * test: refine worker_threads expectation on threadId Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org> --------- Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com> Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
2023-10-16Fix use before define bug in sqliteGravatar Ashcon Partovi 2-5/+5
Fixes #6481
2023-10-16fix(jest): fix toStrictEqual on same URLs (#6528)Gravatar João Alisson 1-13/+10
Fixes #6492
2023-10-16Fix `toHaveBeenCalled` having wrong error signatureGravatar Ashcon Partovi 1-2/+2
Fixes #6527
2023-10-16Fix `request.url` having incorrect portGravatar Ashcon Partovi 1-1/+1
Fixes #6443
2023-10-16Fix #6467Gravatar Ashcon Partovi 1-3/+3
2023-10-16Update InternalModuleRegistryConstants.hGravatar Dylan Conway 1-3/+3
2023-10-14fix(net/tls) fix pg hang on end + hanging on query (#6487)Gravatar Ciro Spaciari 2-7/+23
* fix pg hang on end + hanging on query * remove dummy function * fix node-stream * add test * fix test * return error in test * fix test use once instead of on * fix OOM * generated * 💅 * 💅
2023-10-13fix installing dependencies that match workspace versions (#6494)Gravatar Dylan Conway 2-2/+4
* check if dependency matches workspace version * test * Update lockfile.zig * set resolution to workspace package id
2023-10-13fix lockfile struct padding (#6495)Gravatar Dylan Conway 3-3/+18
* integrity padding * error message for bytes at end of struct
2023-10-13[node:dns] Fix unnecessary array creation + prettierGravatar Jarred Sumner 2-12/+9
2023-10-13fix(node): dns lookup deprecated behavior (#6391)Gravatar João Alisson 2-3/+16
Co-authored-by: alisson <alisson@Ubuntu.myguest.virtualbox.org> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-13fix(error): correct the `path` field in syscall error message. (#6370)Gravatar Ai Hoshino 1-6/+23
* fix(error): correct the `path` field in syscall error message. Close: #6336 * fix pathlike union case
2023-10-13Fix dns.lookup returning wrong address for family (#6474)Gravatar Ashcon Partovi 1-3/+4
* Fix #6452 * Fix formatting
2023-10-12Upgrade zig to 0.12.0-dev.888+130227491 (#6471)Gravatar dave caruso 8-26/+28
* update build.zig * save * works? * better workaround * fix install * Fix compiler crash
2023-10-12fix editing package json when adding github dependency (#6432)Gravatar Dylan Conway 2-12/+13
* fix package name added to package json * check for github tag * remove alloc * some tests * fix test
2023-10-12fix(install): re-evaluate overrides when removedbun-v1.0.6Gravatar dave caruso 2-2/+20
2023-10-12feat(install): support npm overrides/yarn resolutions, one level deep only ↵Gravatar dave caruso 5-28/+473
(#6435) * disable zig fmt on generated ResolvedSourceTag.zig * overrides * it works * ok * a --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-11fix #6416 (#6430)Gravatar Dylan Conway 1-1/+8
* make sure latest is checked after prerelease * test and fix * test for when latest matches prerelease
2023-10-11Bump WebKitGravatar Jarred Sumner 1-0/+0
2023-10-11Bump!Gravatar Jarred Sumner 1-1/+1
2023-10-11Update JSCUSocketsLoopIntegration.cppGravatar Dylan Conway 1-2/+2
2023-10-11feat(install): automatically migrate package-lock.json to bun.lockb (#6352)bun-v1.0.5Gravatar dave caruso 10-246/+1710
* work so far * stuff * a * basics work * stuff * yoo * build lockfile * correct * f * a * install fixture havent tested * i made it worse * lol * be more reasonable * make the test easier to pass because bun install doesn't handle obscure lockfile edge cases :/ * a * works now * ok * a * a * cool * nah * fix stuff * l * a * idfk * LAME * prettier errors * does this fix tests? * Add more safety checks to Integrity * Add another check * More careful lifetime handling * Fix linux debugger issue * a * tmp dir and snapshot test --------- Co-authored-by: Jarred SUmner <jarred@jarredsumner.com>
2023-10-10Fix lifecycle scripts not running on reinstallation (#6376)Gravatar Arden Sinclair 1-0/+38
* Include trusted dependencies in lockfile * Add a remote dependency to lifecycle script test
2023-10-10feat(test): implement `toEqualIgnoringWhitespace` (#6293)Gravatar Elad Bezalel 4-0/+116
* feat(test): implement `toEqualIgnoringWhitespace` * equality check in matcher & incorrect arg error
2023-10-10fix: form data content type (#6380)Gravatar saurabh 1-2/+5
* fix: form data content type * fix: condition if no extension for file
2023-10-10make peer dependencies install by default (#6396)Gravatar Dylan Conway 3-14/+126
* peer dependencies * default true * add test * cleanup * some tests * skip peer deps if they are non optional * remove debug print, fix build * iterate peer dependencies
2023-10-09fix(AbortSignal/fetch) fix AbortSignal.timeout, fetch lock behavior and ↵Gravatar Ciro Spaciari 18-46/+99
fetch errors (#6390) * fix abort signal and fetch error * fix fetch error and lock behavior
2023-10-09fix: support uint8 exit code range (#6303)Gravatar Liz 1-2/+2
The exit code support is between 0-255 and not only in the signed positive range (0-127). Node.js does not seam to throw on a bigger integer and just wraps around, but throwing a error is a good approach and makes the behaviour more defined. This allows the range to be 0-255 Fixes: https://github.com/oven-sh/bun/issues/6284
2023-10-07feat(KeyObject) (#5940)Gravatar Ciro Spaciari 25-67/+3013
* oops * createSecretKey but weird error * use the right prototype, do not add a function called export lol * HMAC JWT export + base64 fix * Fix Equals, Fix Get KeySize, add complete export RSA * fix RSA export * add EC exports * X25519 and ED25519 export + fixes * fix default exports * better asymmetricKeyType * fix private exports * fix symmetricKeySize * createPublicKey validations + refactor * jwt + der fixes * oopsies * add PEM into createPublicKey * cleanup * WIP * bunch of fixes * public from private + private OKP * encrypted keys fixes * oops * fix clear tls error, add some support to jwk and other formats on publicEncrypt/publicDecrypt * more fixes and tests working * more fixes more tests * more clear hmac errors * more tests and fixes * add generateKeyPair * more tests passing, some skips * fix EC key from private * fix OKP JWK * nodejs ignores ext and key_ops on KeyObject.exports * add EC sign verify test * some fixes * add crypto.generateKeyPairSync(type, options) * more fixes and more tests * fix hmac tests * jsonwebtoken tests * oops * oops2 * generated files * revert package.json * vm tests * todos instead of failues * toBunString -> toString * undo simdutf * improvements * unlikely * cleanup * cleanup 2 * oops * move _generateKeyPairSync checks to native
2023-10-06Fix memory leak in fetch() (#6350)Gravatar Jarred Sumner 1-2/+0
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-10-05fix(serve): fix `close_connection` behaviour in `endWithoutBody` (#6315)Gravatar Ai Hoshino 3-8/+32
Close: #6031
2023-10-05WebCryptoAPI: remove JWK "EdDSA" alg checks (#6294)Gravatar Filip Skokan 1-2/+0