Liz
66debb1ce4
fix: support custom file type in Bun.file ( #6512 )
...
* fix: support custom file type in Bun.file
In the docs it seamed to suggest this is something supported,
it seamed to be only supported in JSDOMFiles or blob.
This Adds the 2 properties `type` and `lastModified` to be supported on `Bun.file`
Fixes: https://github.com/oven-sh/bun/issues/6507
* fix: implement changes requested in review
Add changes requested in the review and add a test for a non standard
mimetype
2023-10-19 22:26:27 -07:00
Ashcon Partovi
d5d9fc4684
Fix websocket upgrade ( #6564 )
...
* Remove ancient changelog
* Fix `Host` header excluding port in WebSocket upgrade
* `byteSlice()`
* Revert `byteSlice()`
2023-10-19 22:24:45 -07:00
Liz
f6b694ee2c
fix(install): dont replace git urls when already present ( #6607 )
...
* fix: dont replace git urls when already present
* fix: set request e_string
* test: add test for git url duplication
2023-10-19 21:28:59 -07:00
Dylan Conway
bb623196a3
fix install add ( #6609 )
...
* fix add package
* update test
* initWithCLI once
* skip searching for workspaces if package json was created
2023-10-19 19:17:38 -07:00
Ai Hoshino
0173571b19
fix(node:buffer): fix the behavior of totalLength in Buffer.concat ( #6574 )
...
* 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-18 14:30:53 -07:00
Mountain/\Ash
e7cba822e4
fix: online docs moved ( #6579 )
2023-10-18 12:57:46 -07:00
Dylan Conway
aedc8c0ead
build-id++
2023-10-18 11:02:44 -07:00
Liz
9c0cd5c030
fix(web): stub performance.getEntriesByName ( #6542 )
2023-10-18 10:04:45 -07:00
Dylan Conway
2f10398c74
update root package variable
2023-10-17 23:10:10 -07:00
Pierre CM
e731eff382
fix #4766 ( #6563 )
2023-10-17 16:56:27 -07:00
Dylan Conway
a57d7ecb5b
Update ZigGeneratedClasses.cpp
2023-10-17 16:46:31 -07:00
Dylan Conway
d187563d36
use npm alias in dependencies ( #6545 )
...
* aliased package in dependencies
* other buf
* make sure version works
* make sure overrides don't override alias
* tests
* update
* comments
2023-10-17 16:34:03 -07:00
Ai Hoshino
e91436e524
fix(node:http): fix server.address() ( #6442 )
...
Closes #6413 , #5850
2023-10-17 13:18:14 -07:00
dave caruso
98d19fa624
fix(runtime): make some things more stable (partial jsc debug build) ( #5881 )
...
* 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-16 21:22:43 -07:00
dave caruso
a3958190e8
fix(runtime): improve IPC reliability + organization pass on that code ( #6475 )
...
* 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-16 20:01:24 -07:00
Igor Shapiro
01e04e3341
fix(test): when tests run with --only the nested describe blocks `.on… ( #5616 )
2023-10-16 16:33:02 -07:00
Yannik Schröder
0853e19f53
perf(node:events): optimize emit(...) function ( #5485 )
2023-10-16 16:18:40 -07:00
Liz
a9b8e3ecc8
fix: don't remove content-encoding header from header table ( #5743 )
...
Closes #5668
2023-10-16 16:11:44 -07:00
Hugo Galan
bec6161dce
fix(sqlite) Insert .all() does not return an array #5872 ( #5946 )
...
* fixing #5872
* removing useless comment
2023-10-16 16:08:58 -07:00
Chris Toshok
c5354951ba
Fix Response.statusText ( #6151 )
2023-10-16 15:57:16 -07:00
Nicolae-Rares Ailincai
f1658e2e58
fix-subprocess-argument-missing ( #6407 )
...
* fix-subprocess-argument-missing
* fix-tests
* nitpick, these should === not just be undefined
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-10-16 15:31:14 -07:00
Jérôme Benoit
d9c0273421
fix(node:worker_threads): ensure threadId property is exposed on 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-16 15:19:38 -07:00
Ashcon Partovi
d65b1fd80b
Fix use before define bug in sqlite
...
Fixes #6481
2023-10-16 15:14:15 -07:00
João Alisson
7becb5ec74
fix(jest): fix toStrictEqual on same URLs ( #6528 )
...
Fixes #6492
2023-10-16 15:14:15 -07:00
Ashcon Partovi
c3f5baa091
Fix toHaveBeenCalled having wrong error signature
...
Fixes #6527
2023-10-16 15:14:15 -07:00
Ashcon Partovi
e31ed84b1b
Fix request.url having incorrect port
...
Fixes #6443
2023-10-16 15:14:15 -07:00
Ashcon Partovi
2996ef7156
Fix #6467
2023-10-16 15:14:15 -07:00
Dylan Conway
2b1f3438e6
Update InternalModuleRegistryConstants.h
2023-10-16 14:21:39 -07:00
Ciro Spaciari
a87aa2fafe
fix(net/tls) fix pg hang on end + hanging on query ( #6487 )
...
* 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-14 16:16:49 -07:00
Dylan Conway
9b5e66453b
fix installing dependencies that match workspace versions ( #6494 )
...
* check if dependency matches workspace version
* test
* Update lockfile.zig
* set resolution to workspace package id
2023-10-13 20:37:48 -07:00
Dylan Conway
46f978838d
fix lockfile struct padding ( #6495 )
...
* integrity padding
* error message for bytes at end of struct
2023-10-13 20:37:06 -07:00
Jarred Sumner
d7062eb367
[node:dns] Fix unnecessary array creation + prettier
2023-10-13 17:57:43 -07:00
João Alisson
851dc9aadc
fix(node): dns lookup deprecated behavior ( #6391 )
...
Co-authored-by: alisson <alisson@Ubuntu.myguest.virtualbox.org >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-13 17:52:57 -07:00
Ai Hoshino
d08e112d41
fix(error): correct the path field in syscall error message. ( #6370 )
...
* fix(error): correct the `path` field in syscall error message.
Close : #6336
* fix pathlike union case
2023-10-13 17:51:36 -07:00
Ashcon Partovi
77d7e47019
Fix dns.lookup returning wrong address for family ( #6474 )
...
* Fix #6452
* Fix formatting
2023-10-13 17:47:05 -07:00
dave caruso
584e6dd1c2
Upgrade zig to 0.12.0-dev.888+130227491 ( #6471 )
...
* update build.zig
* save
* works?
* better workaround
* fix install
* Fix compiler crash
2023-10-12 19:38:33 -07:00
Dylan Conway
691cf338c2
fix editing package json when adding github dependency ( #6432 )
...
* fix package name added to package json
* check for github tag
* remove alloc
* some tests
* fix test
2023-10-12 15:02:05 -07:00
dave caruso
969da088f5
fix(install): re-evaluate overrides when removed
2023-10-12 02:03:02 -07:00
dave caruso
2fbb95142a
feat(install): support npm overrides/yarn resolutions, one level deep only ( #6435 )
...
* disable zig fmt on generated ResolvedSourceTag.zig
* overrides
* it works
* ok
* a
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-12 00:44:15 -07:00
Dylan Conway
755e16d962
fix #6416 ( #6430 )
...
* make sure latest is checked after prerelease
* test and fix
* test for when latest matches prerelease
2023-10-11 20:41:12 -07:00
Jarred Sumner
b1063edf3e
Bump WebKit
2023-10-11 20:04:15 -07:00
Jarred Sumner
edb4cbac2b
Bump!
2023-10-11 19:05:52 -07:00
Dylan Conway
a59a69e21b
Update JSCUSocketsLoopIntegration.cpp
2023-10-11 15:26:55 -07:00
dave caruso
1bf28e0d77
feat(install): automatically migrate package-lock.json to bun.lockb ( #6352 )
...
* 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-11 02:27:07 -07:00
Arden Sinclair
39446ebdb8
Fix lifecycle scripts not running on reinstallation ( #6376 )
...
* Include trusted dependencies in lockfile
* Add a remote dependency to lifecycle script test
2023-10-10 21:13:42 -07:00
Elad Bezalel
c2c3b0d4a9
feat(test): implement toEqualIgnoringWhitespace ( #6293 )
...
* feat(test): implement `toEqualIgnoringWhitespace`
* equality check in matcher & incorrect arg error
2023-10-10 20:27:19 -07:00
saurabh
9a90d90966
fix: form data content type ( #6380 )
...
* fix: form data content type
* fix: condition if no extension for file
2023-10-10 20:08:32 -07:00
Dylan Conway
05781dd91e
make peer dependencies install by default ( #6396 )
...
* 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-10 20:05:58 -07:00
Ciro Spaciari
6301778a58
fix(AbortSignal/fetch) fix AbortSignal.timeout, fetch lock behavior and fetch errors ( #6390 )
...
* fix abort signal and fetch error
* fix fetch error and lock behavior
2023-10-09 19:56:48 -07:00
Liz
a9e1792607
fix: support uint8 exit code range ( #6303 )
...
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-09 11:47:38 -07:00