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
huseeiin
237b5eded6
Update to-json.md ( #8046 )
...
better title
2024-01-08 11:56:30 -07:00
Jarred Sumner
437faa9444
Tweaks to lifecycle script enqueue ( #8037 )
...
* Tweaks to lifecycle script enqueue
* Use helper
* Use `bun.openDir`
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-07 21:05:11 -08:00
Jarred Sumner
e65bab75bc
Fixes #8010 ( #8025 )
...
* Fixes #8010
* Update install.zig
* Copy the metahash when cleaning the lockfile
* Save more, but error less
* Change copy when there are no more dependencies
* Tweak some tests
* Update bun-add.test.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-07 06:16:31 -08:00
Jarred Sumner
d985e4db65
Use SQLiteError in a test
2024-01-07 03:11:40 -08:00
Jarred Sumner
9a267db105
[bun:sqlite] Ban new SQLiteError()
2024-01-07 01:42:27 -08:00
Jarred Sumner
06c530ba2e
Fix crash when exiting bun test ( #8026 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-07 00:02:08 -08:00
Jarred Sumner
a1e742734a
Fixes #5178 ( #8023 )
...
* Fixes #5178
* Update comment
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-06 18:47:13 -08:00
Jarred Sumner
0dc6108bd3
Make PerformanceEntry use 40% less memory ( #8016 )
...
* Make PerformanceEntry use 40% less memory
* slightly faster create array of elements
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-06 16:05:03 -08:00
Georgijs
ecdde88670
implement PerformanceObserver and friends ( #8011 )
...
* implement PerformanceObserver, PerformanceMeasure, PerformanceMark and friends
* add PerformanceObserver test, clean up other performance tests
* [autofix.ci] apply automated fixes
* Small cleanup
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-05 22:39:29 -08:00
Lucas Coratger
2fd85ef0e6
fix: params in help menu for commands update and install ( #7998 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-05 22:27:16 -08:00