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
dave caruso
333e217c32
feat(runtime): Implement console.Console ( #5448 )
...
* 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-18 16:29:56 -07:00
dave caruso
f77df12894
Fix HTTP listen behavior being non-compliant with node ( #5689 )
...
* 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-18 14:57:48 -07:00
Ai Hoshino
bab9889601
fix(config): support for registry url without trailing slash ( #5662 )
...
* 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-18 04:32:02 -07:00
Jarred Sumner
b27b04690b
In bun:sqlite, make sure we set the number tag correctly when creating the 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-18 03:01:19 -07:00
WingLim
c7de270bbb
feat(test): Implement arrayContaining ( #5572 )
...
* 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-18 02:59:09 -07:00
Jibran Kalia
c66d4a724b
feat(console.log): Print annonymus when class name is unknown ( #5595 )
...
This matches the functionality in Node.
2023-09-18 00:33:07 -07:00
Jarred Sumner
bca88b67e3
Workaround #5604 ( #5615 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-17 17:38:03 -07:00
Ciro Spaciari
4e0c589562
fix(child_process) unref next tick so exit/close event can be fired before 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-16 22:44:13 -07:00
WingLim
a098c6e5f6
feat(encoding): TextDecoder support undefined ( #5387 )
...
* feat(encoding): TextDecoder support undefined
* chore: format test file
2023-09-16 22:41:52 -07:00
Ciro Spaciari
383d5b55d6
fix(fetch) handle 100 continue ( #5496 )
...
* handle 100 continue
* move comment
* cleanup
* fmt
2023-09-16 21:55:41 -07:00
MrPalixir
0a318ecca1
fix: node compatibility with empty path string ( #4693 )
...
Co-authored-by: MrPalixir <73360179+MrPalixir@users.noreply.github.com >
2023-09-16 18:51:18 -07:00
David Hewitt
43c463f078
fix(node/fs.watch): Check first char before trimming event filenames ( #5505 )
...
* Add failing test
* fix(node/fs.watch): Don't lose first char in event
* run prettier
2023-09-15 21:21:15 -07:00
David Hewitt
787281ee5e
fix(bundler): Add a space before minified require ( #5521 )
...
Fixes #5501
2023-09-15 21:19:49 -07:00
Ciro Spaciari
cb057e61ba
fix(request) handle undefined/null/empty signal on request ( #5503 )
...
* handle undefined/null/empty signal on request
* better approach
2023-09-15 21:19:26 -07:00
Ciro Spaciari
b54e3f3c04
fix(corking) uncork if needed ( #5525 )
...
* fix size limit
* uncork if needed instead of terminating
* undo unrelated changes
2023-09-15 21:18:57 -07:00
dave caruso
29b22175bf
feat(runtime): add process.binding uv/natives/config + make global 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-15 08:22:06 -07:00
Jarred Sumner
75697890ce
Rename this file
2023-09-15 07:10:30 -07:00
Jarred Sumner
a39b0d86a0
Fixes #5465 ( #5468 )
...
* Fixes #5465
Fixes #5465
* Update tty.js
* Update InternalModuleRegistryConstants.h
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 06:53:39 -07:00
Jarred Sumner
6cc5872765
Fixes #5461 ( #5467 )
...
* Fixes #5461
* Update runtime-transpiler.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 06:04:34 -07:00
Jarred Sumner
898962770e
Implement URL.canParse ( #5463 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 05:36:06 -07:00
Ai Hoshino
7d0db82bb3
fix(proxy): allow empty string http_proxy env. ( #5464 )
...
Close : #5380
2023-09-15 05:24:03 -07:00
Jarred Sumner
4b00144211
Revert "decode regex if needed ( #5167 )"
...
This reverts commit 32664df254 .
2023-09-15 05:07:22 -07:00
Jarred Sumner
56c471a005
Make bun run --silent omit "error: "..." exited with code 1 ( #5459 )
...
* Make --silent behave as expected
* Make the "tsconfig.json extends" error a debug level
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-15 04:21:43 -07:00
Jarred Sumner
20f61b2369
Fix test
2023-09-15 04:10:05 -07:00
Jarred Sumner
9168be4f15
Add missing "size" getter to URLSearchParams prototype
2023-09-15 03:50:03 -07:00
Dylan Conway
d26addeca1
dup and close file descriptors ( #5341 )
...
* track one shot fds
* dup fd
* skip for rearm on mac
* dup if fd
* cleanup
* force unregister on close
* deinitForceUnregister
* test
* add prompts
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-09-15 01:39:42 -07:00