Dylan Conway
0268807be2
fix workspace dependency install ( #6092 )
...
* handle `*`
* test
* always use the package name
* more tests
* install dependency in each
2023-09-26 21:53:14 -07:00
Liz
d7b43f8ea1
fix: support console.dir options object correctly ( #6059 )
...
* fix: support console,dir options object correctly
`console.dir` can be passed a second argument which is a object of options.
This implements that logic with the currently supported properties: `depth`
and `colors`.
I used node as a reference for implementation details.
Fixes: https://github.com/oven-sh/bun/issues/6039
* style: format zig file
* fix: implement changes from review
Implements changes requested from review, like adding
more test cases and refactoring code style.
2023-09-26 19:47:37 -07:00
Ciro Spaciari
648d5aecf3
fix server end of stream, fix fetch not streaming without content-length or chunked encoding, fix case when stream do not return a promise on pull ( #6086 )
2023-09-26 19:31:20 -07:00
Dylan Conway
aec0d35f9b
no this value ( #6063 )
2023-09-25 23:27:55 -07:00
Jarred Sumner
6cde1d3b89
Add Module._extensions ( #5998 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-25 16:09:09 -07:00
Jarred Sumner
6d842e7dcb
Make error message for new URL(invalid) better ( #6032 )
...
* Make error message for `new URL(invalid)` better
Thanks to @karlcow https://github.com/WebKit/WebKit/pull/13802
* redact
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-25 16:07:33 -07:00
axel escalada
bbc70d2b73
Fix create command with template prefixed with @ char #6007 ( #6013 )
...
* fix create command with template prefixed with @ char
* add typescript test for create command
* format test
2023-09-25 05:22:47 -07:00
Jarred Sumner
3f463786a5
Correctly fix #5888 ( #6000 )
...
* Update our MultiArrayList
* More consistent CI
* Fix serialization issue
* Update bun.lockb
* Update bun.lockb
* fixup
* Fix `Bin{}`
* `bun update` should not cache the manifest
* Make bun install tests more consistent
* This differs by platform evidently
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-24 17:43:59 -07:00
Jarred Sumner
b6a4161cc5
Fixes #5985 ( #5986 )
...
* Fixes #5985
* Update confirm-fixture.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-24 03:16:51 -07:00
Ai Hoshino
a5908e9f27
fix(lockfile): ensure all bytes of union are initialized before serialization. ( #5957 )
2023-09-23 20:09:45 -07:00
Dylan Conway
966b636e5d
isBinary ( #5944 )
2023-09-22 19:48:36 -07:00
Ai Hoshino
1445775d64
fix(runtime): exclude unevaluated module in require.cache ( #5903 )
...
Close : #5898
2023-09-22 18:40:06 -07:00
dave caruso
25e69c71e7
Implement module.parent ( #5889 )
...
* Make module.parent work
* yay
* oops
* yay
2023-09-21 22:09:55 -07:00
Dylan Conway
9d5459221f
fix #5865 ( #5890 )
...
* make sure types are the same
* tests
2023-09-21 21:02:34 -07:00
Colin McDonnell
b218c40a5d
Hide env elapsed time when loglevel=info ( #5882 )
...
* Hide env elapsed time when loglevel=info
* Updates
* Update
* Fix test
2023-09-21 20:07:25 -07:00
Jarred Sumner
e34ff61339
Don't use arena in node:fs ( #5863 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 18:59:01 -07:00
Liz
b297fabd17
fix: correctly pass the encrypted(bool) property on "Socket" for express.js ( #5878 )
...
* fix: correctly pass the encrypted property on "Socket" for express.js
Express relies on this for setting the requests protocol.
Since this is on a dummy object, a property is simply set with the actual value.
Which seams okay as a workaround.
* chore: add generated files
* chore: add test
* refactor: set property directly rather then through a getter
2023-09-21 18:44:05 -07:00
dave caruso
b05e10cd8b
fix(node:fs): use the right copyFile constants ( #5874 )
2023-09-21 18:42:49 -07:00
Dylan Conway
4a1573e007
decorator metadata defaults and rest args
2023-09-21 12:20:53 -07:00
Jarred Sumner
0b4a34bbd6
Fix test failures ( #5862 )
...
* Fix test failures
* Fixes #5851
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 07:56:44 -07:00
Jarred Sumner
d1e9b33cac
On Linux, respect memory limit from cgroups ( #5849 )
...
* Implement `process.constrainedMemory()`
* Add a comment
* Handle max
* Missing header
* We can use WTF::ramSize now
* Update WebKit
* Update ZigGlobalObject.cpp
* WebKit
* ✂️
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-21 07:25:18 -07:00
Jarred Sumner
abfc10afeb
Revert "feat(encoding): support BOM detection ( #5550 )"
...
This reverts commit 5f66b4e729 .
This caused test failures in text-encoder. cc @WingLim
2023-09-21 07:10:07 -07:00
Jarred Sumner
a18ef053a4
Don't await plugins
2023-09-21 06:16:31 -07:00
Jarred Sumner
6abc9af472
Add another test
2023-09-21 06:04:58 -07:00
Jarred Sumner
e1cf08b3a6
Fixes #5859
2023-09-21 05:48:40 -07:00
Jarred Sumner
01d2cb5d98
Prettier
2023-09-21 00:51:48 -07:00
Jibran Kalia
e0c5debc57
fix(console.log): change default depth from 8 to 2 ( #5839 )
...
This make it as the same default depth in Node.
Source: 480ab8c3a4/doc/api/console.md (L285)
2023-09-20 23:42:44 -07:00
Ai Hoshino
b00588e98c
fix(fetch): fix redirect in relative path location. ( #5781 )
...
* fix(fetch): fix redirect in relative path location.
* fix utf-8 encoding
* use server.reload
* check buf size
* add RedirectURLTooLong test
2023-09-20 23:34:00 -07:00
dave caruso
b7951511a3
fix(run): interpret extensionless files as typescript ( #5711 )
...
* test
* gadsgsagdsa
* add better err msg
* r
* oops
* ok
2023-09-20 19:48:46 -07:00
Ciro Spaciari
b65862e23b
fix(ffi) fix size limit for dlopen ( #5516 )
...
* fix size limit
* 63
* throw error
* ffi.test.js
* add macos tests
* oops
2023-09-20 18:50:10 -07:00
WingLim
5f66b4e729
feat(encoding): support BOM detection ( #5550 )
...
* fix(encoding): export `getIgnoreBOM`
* feat(encoding): support ignoreBOM
* fix(encoding): not replace BOM to 0xFFFD
* chore: use strict equal
2023-09-20 18:44:05 -07:00
Ai Hoshino
7319142fd8
feat(node:dns): implement dns.lookupService ( #5613 )
...
* feat(node:dns): implement dns.lookupService
Close : #4347
* fix flags
* add `getSockaddr`
* fix sockaddr size
* flaky test
2023-09-20 18:43:08 -07:00
dave caruso
365fc0d39d
implement Module.prototype._compile ( #5840 )
2023-09-20 18:31:57 -07:00
dave caruso
34d191be67
feat(runtime): implement console._stdout ( #5842 )
...
* implement console._stdout
* nonenum
2023-09-20 18:28:07 -07:00
Ashcon Partovi
64a717ab33
Run bun fmt
2023-09-20 17:24:09 -07:00
Jonah Snider
67defd95af
[bun install] Add -E as alias of --exact ( #5104 )
...
* [bun install] Add `-E` as alias of `--exact`
* Add test for -E flag
2023-09-20 11:14:55 -07:00
Dylan Conway
689b28455c
add emitDecoratorMetadata ( #5777 )
...
* 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-20 08:10:03 -07:00
Jarred Sumner
ff7f642099
Call Error.prepareStackTrace on new Error().stack ( #5802 )
...
* 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-20 05:52:59 -07:00
Jarred Sumner
1456c72648
Fixes #5800
...
Fixes #5800
2023-09-20 04:33:38 -07:00
Jarred Sumner
5d09a06100
Fix path used in bunx ( #5785 )
...
* 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-20 01:00:29 -07:00
Jarred Sumner
5defdf3e28
Fixes #5769 ( #5775 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 18:16:51 -07:00
WingLim
ddb1189b2d
fix(cli): bun pm cache rm command not work ( #4571 )
...
* 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-19 16:54:54 -07:00
Jarred Sumner
8677ae9fb1
Get artifactory to work ( #5744 )
...
* 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-19 08:01:47 -07:00
Jarred Sumner
66d490d109
Align fetch() redirect behavior with spec ( #5729 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 05:51:05 -07:00
Jarred Sumner
19fc8ecba2
Fixes #3712 ( #5730 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-19 05:50:23 -07:00
Jarred Sumner
cc54b62fac
Encode slashes in package names in the registry manifest request ( #5716 )
...
* 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 23:27:02 -07:00
Jarred Sumner
9d3f60d44e
Prettier
2023-09-18 21:30:17 -07:00
Julian
1b949d4f5a
bun run fix missing script error on empty file (#5025 )
...
* 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-18 20:14:32 -07:00
Liz
0647216687
fix: provide empty string to 0 length process environment variables ( #5679 )
...
* 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-18 18:14:29 -07:00
dave caruso
eb1dc7eede
fix(runtime/node): Allow new Buffer.alloc() + Upgrade WebKit ( #5699 )
...
* make bufferconstructor a static hash table
* chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7
* make it constructable now
* fix comment
* yippee
* update CI workflows
2023-09-18 17:33:58 -07:00