Meghan Denny
065eae5a95
tidy: use std.mem.zeroes instead of loop or memset ( #8138 )
...
* use std.mem.zeroes instead of loop or memset
* Update src/bun.js/api/bun.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-12 23:56:51 -08:00
Meghan Denny
9fa13aec09
fix signalNumberToNameMap assignment for SIGINFO ( #8132 )
2024-01-12 23:53:35 -08:00
Jarred Sumner
3e703c4c76
For build scripts, symlink zig.exe to zig on posix ( #8147 )
...
* Add `zig.exe` as a symlink of `zig` on posix
* Update scripts/download-zig.sh
Co-authored-by: dave caruso <me@paperdave.net >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: dave caruso <me@paperdave.net >
2024-01-12 23:52:07 -08:00
Jarred Sumner
01453be2d1
Move function from a header to a .cpp file
2024-01-12 23:48:14 -08:00
Jarred Sumner
9b32516bcb
Implement tty_wrap in process.binding ( #8130 )
...
* Implement `tty_wrap` in process.binding
Fixes #4694
* [autofix.ci] apply automated fixes
* Rename some things
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-12 23:31:18 -08:00
Jarred Sumner
7e787d2a5a
Move console methods from exports.zig to ConsoleObject.zig ( #8145 )
...
* ZigConsoleClient -> ConsoleObject
* Rename more
* Rename more
* ZigConsoleClientFormatter -> ConsoleObject
* More renaming
* Wire up console.profile?
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-12 23:15:36 -08:00
dave caruso
b7a32b87ab
fix(bundler): improve external require transpilation on all targets ( #8057 )
...
* fix(build): do not emit import.meta.require for browsers/node.js
* update test snapshots
* sweep
* prefer require ref instead of `import.meta.require`
* remove option i did not use
* stuff
* remove rewrite_require_resolve
* ok
* ok
* wooooo
* [autofix.ci] apply automated fixes
* fix bugs
* ok
* [autofix.ci] apply automated fixes
* OOOOOPPPPPPPPPPPPS
* fix Bun.Transpiler regressions
* fix(bundler): make --splitting ensure --outdir
* fix final
* oops
* [autofix.ci] apply automated fixes
* use require.resolve
* revert but ... it no longer crashes there
* ok
* [autofix.ci] apply automated fixes
* fix fetch test
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-01-12 22:15:51 -08:00
Meghan Denny
0491ff4186
tidy: remove some redundant bun.toFD calls ( #8136 )
...
* remove some redundant bun.toFD calls
* windows fix
2024-01-12 19:46:56 -08:00
Meghan Denny
943c72c8a1
allow StringOrTinyString to hold 31 bytes ( #8134 )
2024-01-12 19:43:50 -08:00
Meghan Denny
cb6f4b9f4d
tidy: remove if(false) dead block ( #8129 )
...
* remove if(false) dead block
* remove if (true) {...}
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2024-01-12 18:18:19 -08:00
Meghan Denny
45bd2264e3
more small undefined fixes ( #8133 )
2024-01-12 18:17:53 -08:00
Meghan Denny
8733748eb6
remove bun.assertDefined, comparing against undefined is UB ( #8137 )
2024-01-12 18:16:04 -08:00
Kaio Duarte
66fa317390
fix(node:url): handle url with missing host on url.parse ( #8126 )
...
* fix(node:url): handle url with missing host on `url.parse`
* lazy load punycode module
* use URL class
* add comment and also extra sanity check tests
* extra test
---------
Co-authored-by: dave caruso <me@paperdave.net >
2024-01-12 18:11:10 -08:00
Dylan Conway
ef0e96a2b2
fix(install): add warning and skip patched packages ( #8143 )
...
* add warning and skip patched packages
* also overrides
* comment
2024-01-12 18:03:30 -08:00
Meghan Denny
b0d326dfb9
zig_backend stage1 doesnt exist anymore ( #8140 )
2024-01-12 17:44:03 -08:00
Meghan Denny
517d5ecde9
remove more big endian handling ( #8139 )
2024-01-12 17:43:30 -08:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
Georgijs
0cd7fa1a63
fix(webkit:performance): correctly track size of measures map ( #8128 )
...
Co-authored-by: Georgijs Vilums <georgijs@bun.sh >
2024-01-12 14:58:05 -08:00
Ashcon Partovi
2fe0f90d36
Fix loose comparisons and incorrect tag length in semver ( #8108 )
2024-01-12 15:31:58 -07:00
Jarred Sumner
0783b4bf0e
Implement import.meta.{dirname, filename} for Node.js compatibility ( #8127 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-12 14:26:50 -08:00
Kaio Duarte
4f96bc416b
fix(bun-install): gracefully handle missing package removal ( #8091 )
...
* fix(bun-install): gracefully handle missing package removal
* update bun remove test
2024-01-12 14:08:58 -08:00
hugo-syn
f43ecd8aa2
chore: Fix multiple typos ( #8121 )
2024-01-12 14:07:40 -08:00
Ashcon Partovi
31db26b054
Fix error when null/undefined is passed to stdio in spawn/spawnSync ( #8110 )
...
* Fix error when null/undefined is passed to stdio in spawn/spawnSync
* Change conditional
2024-01-12 14:05:55 -08:00
Aayush
f5675284c7
fix(docs): prisma not installed as dev dependency ( #8119 )
2024-01-12 03:23:47 -08:00
Dylan Conway
98d253d9bb
fix(install): incremental support for windows ( #7991 )
...
* update for windows
* use correct sizes
* mode
* fchmod and correct error checking
* some progress
* walker_skippable.zig for windows
* no segfault
* comptime only
* normalize
* create files in .bin
* bun.sys.write
* string formatters in bun.fmt, diriterator enum
* isAllASCII comptime
* update more
* some cleanup
* fix 1
* fix 2
* simlink
* cast
* remove normalize
* to zig err
* update fchmod
* fixup
* fix running bin files
* --bun for running binaries
* --bun for scripts
* remove binary linking
* update
* remove todo
* todos
* fix
* simlink
* cast
* more cast
2024-01-11 22:00:47 -08:00
Meghan Denny
9846383b01
all: make bun.FileDescriptor a unique type ( #8022 )
...
* all: make bun.FileDescriptor a unique type
# Conflicts:
# src/bun.js/api/bun/socket.zig
# src/bun.js/api/bun/spawn.zig
# src/deps/uws.zig
* need this change too
* convert another bun.FD.asDir call
* more fixes + linux
* fix this size
* accidentally flipped these fd numbers
* more fixes + windows
# Conflicts:
# src/deps/uws.zig
* dont include type name in serialization
* add another TODO
* resolve review comments
* address more pr comments
* build fixes post-rebase
* another rebase fix
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-11 19:59:48 -08:00
Dylan Conway
fbe4ed206a
More bun install hoisting tests ( #8112 )
...
* hoisting tests
* more comments on hoistDependency
* fix test
2024-01-11 16:57:24 -08:00
Erik
15263664b6
fix : #7932 ( #8038 )
...
* updating package with child peerDependency doesn't keep old version
* [autofix.ci] apply automated fixes
* fixed TODO test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-11 16:38:39 -08:00
Ciro Spaciari
4611b84352
incremental(windows) add TransmitFile and some fixes for fetch, h2 and http ( #8089 )
...
* fix win header decoding zig issue
* fix libuv file read lifecycle
* upload working without sendfile (yet)
* undo
* oops uncoment expect
* add TransmitFile aka sendfile on windows
* cleanup
* [autofix.ci] apply automated fixes
---------
Co-authored-by: cirospaciari <ciro.spaciai@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-11 16:38:13 -08:00
hugo-syn
922ff08a80
chore: Fix multiple typos ( #8105 )
2024-01-11 16:37:36 -08:00
Jarred Sumner
4c933f733b
Fixes #7001 ( #7861 )
...
* Fixes #7001
* One more test
* Use `disturbed`
* [autofix.ci] apply automated fixes
* Fix failing test
* Test is no longer todo!
* Make bodyUsed work too
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-11 16:25:26 -08:00
Ciro Spaciari
f1c3e87a06
incremental(windows) setTimeout, setInterval and setImmediate should work ( #8101 )
...
* fix compilation and types for FD option using usockets
* comment
* clarify HOST_MAME_MAX on windows
* use libuv for timers on windows
* [autofix.ci] apply automated fixes
* fix linux build
---------
Co-authored-by: cirospaciari <ciro.spaciai@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-11 15:09:40 -08:00
Jarred Sumner
0bfe3760f6
Remove musl libraries from trusted dependencies because bun doesn't support musl yet
2024-01-10 21:13:20 -08:00
Ashcon Partovi
68bc548dce
Fix 'Not a string or buffer' from zlibBufferSync ( #8085 )
...
* Fix 'Not a string or buffer' from zlibBufferSync
* Use `Buffer2`
2024-01-10 15:13:53 -08:00
Dylan Conway
7d4cef53a8
construct package paths without getFdPath for lifecycle scripts ( #8056 )
...
* use abs paths instead of getFdPath for lifecycle scripts
* fix aliased packages
* oops
* logs
* remove assert
2024-01-09 23:30:41 -08:00
Jarred Sumner
b400b36ca5
Bump!
bun-v1.0.22
2024-01-09 15:40:28 -08:00
Hanaasagi
36d4f09d28
fix(socket): fix 0.0.0.0 binding address ( #7366 )
...
* fix(socket): fix `0.0.0.0` binding address
Close : #7355
* test
* test
---------
Co-authored-by: dave caruso <me@paperdave.net >
2024-01-09 13:48:56 -08:00
Jarred Sumner
e77e1c1a58
perf: 5% - 10% faster new Headers(object) & new URLSearchParams(object) ( #8028 )
...
* 5%-10% faster `new Headers(object)`
* Add another test
* Remove extra parentheses
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-09 13:45:45 -08:00
Aarvin R
6e1ef49ad4
fix #8067 plugin fileapis ( #8068 )
...
- use Bun.file() instead of readFileSync
2024-01-09 13:00:31 -08:00
Jarred Sumner
2daade39a9
Don't close the file descriptor since close_range will get it anyway
2024-01-09 03:33:58 -08:00
Jarred Sumner
ae78441b25
Fixes #8010 ( #8064 )
...
* Don't use posix_spawn on Linux
* Make it work
* Avoid closing inherited file descriptors
* Hopefully fix test failures
* Reset close-on-exec flag
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-09 03:11:31 -08:00
Kainoa Kanter
fb8b47b2db
chore: sort default-trusted-dependencies.txt ( #7837 )
...
* chore: sort default-trusted-dependencies.txt
* remove old trusted deps
2024-01-08 20:36:39 -08:00
Markus Ekholm
9a0dadad24
feat: implemented assert.doesNotMatch ( #8008 )
...
* implemented assert.doesNotMatch
* fixed assert.match and assert.doesNotMatch tests and ensure it throws when actual is not a string
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-08 17:31:54 -08:00
Archaeopteryx
f27fc77b3b
docs: add missing comma in examples ( #8018 )
2024-01-08 16:21:44 -08:00
Lino Le Van
88fcfa4461
chore: fix typos in js_parser.zig ( #7804 )
...
* chore: fix typos in js_parser.zig
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Lino Le Van <linolevan@Linos-MacBook-Air.local >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-08 15:22:30 -08:00
John-David Dalton
9d56ea4880
Add icu4c to macOS install dependencies section ( #8050 )
2024-01-08 14:48:16 -08:00
karmabadger
b488734c50
docs: Update dev env instructions for Fedora ( #8014 )
...
* Update contributing.md
Added documentation for the installation of the perl Math::BigInt module
* Update contributing.md
merged the fedora perl math bigint module with the other dependencies
2024-01-08 14:42:06 -08:00
Jarred Sumner
8f975ec8ec
Faster Buffer.concat, fixes #8034 ( #8039 )
...
* Faster, safer `Buffer.concat`
* Use wrappers when creating `Buffer` in C++
* Bun.concatArrayBuffers small optimization
* Add comment
* Add tests
* Ignore empty buffers
* Add assertion
* Update buffer-concat.mjs
* Update buffer-concat.mjs
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-08 14:37:18 -08:00
Pramit Sharma
1aee55524a
Update hash-a-password.md ( #8048 )
...
Fixed a possible typo and improved grammar and conciseness throughout
2024-01-08 12:59:15 -07:00
Jake Gordon
8805e6150a
Remove rogue word in doc ( #8047 )
2024-01-08 12:42:01 -07:00