Jarred Sumner
6d666da4b9
Update schema after env file change ( #7061 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-11 21:08:08 -08:00
Jarred Sumner
feca0c2647
Delete unused files ( #7060 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-11 21:07:56 -08:00
Jarred Sumner
c49a5a7d7d
When getting properties, treat undefined the same as though the property was not defined ( #7048 )
...
It works this way in JS.
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-11 05:06:24 -08:00
Otger Rogla
450397a277
Fix fetch response skipping body if no content-length ( #6932 ) ( #6991 )
...
* Fix fetch response skipping body if no content-length (#6932 )
* Fix timeout on status 1xx/204/304 without content-length, tests changes
* Fix test that was wrong
* fix fetch response without content-length not disabling keep-alive
---------
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2023-11-11 02:22:05 -08:00
Otger Rogla
eaa9ba99fa
add support for --env-file arg to bun run to load custom env files ( #7032 )
2023-11-11 02:10:47 -08:00
Ashcon Partovi
f0cbc79d8b
Implement server.url ( #7043 )
...
* Implement `server.url`
* Fix memory leak
2023-11-10 23:00:27 -08:00
Lorenzo Donadio
01e0136d7c
fixed small typo in allow_in_out_variance_annotations ( #7030 )
2023-11-10 15:17:08 -08:00
Meghan Denny
84414f8fe8
fix fs.read being passed to util.promisify ( #6999 )
...
* fix fs.read being passed to util.promisify
* Update test/js/node/fs/fs.test.ts
* Update test/js/node/fs/fs.test.ts
* Update src/js/node/fs.js
* Fix write, add more tests, clean up the code
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-09 20:00:41 -08:00
Ciro Spaciari
046d197519
fix asyncLocalStorage disabled ( #7015 )
2023-11-09 17:51:49 -08:00
Dylan Conway
1250655ddb
check for empty in JSValue.jsType ( #7000 )
...
* check for empty
* better comment
* move empty check to before `jsType()`
* Update src/bun.js/test/jest.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-09 14:17:22 -08:00
dave caruso
29b1a4f61b
fix(ffi): fix ffi with large uint32_t values ( #7009 )
...
* fix(ffi): fix ffi with large uint32_t values
* clean up
2023-11-09 12:02:20 -08:00
Ciro Spaciari
2d5698c719
fix(node-fetch) Set-Cookie key on node-fetch.raw() should be set-cookie instead of Set-Cookie to match nodejs behavior ( #7011 )
...
* fix set-cookie header name
* add test
* fix test
* fix test to match nodejs behavior
* oops
2023-11-09 11:59:20 -08:00
Meghan Denny
c08e8a76ef
don't pass script flags to pre- or post- scripts ( #6997 )
2023-11-08 17:44:15 -08:00
Dylan Conway
f7f6233ea8
fix semver edge cases and buffer used for prerelease comparisons ( #6981 )
...
* use different buf for group and manifest versions
* tests
* tests for installs that should fail
* allow `<=<prerelease-version`
* `Bun.semver.satisfies`
* one
* stringify
* symbol tests
* deinit
* arena
* more tests
* fix test
* version always on the left
* `Bun.semver.order`
* handle more edge cases, more tests
* whitespace
* more
2023-11-08 03:36:17 -08:00
Jarred Sumner
6d5c513195
Fixes #6200 ( #6983 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-08 03:28:57 -08:00
Jarred Sumner
131b96bbba
Fix debug build crash
2023-11-07 23:26:22 -08:00
Jarred Sumner
b7587b76e0
Revert "fix: correctly prepend system path to relative urls on pathToFileURL ( #6472 )"
...
This reverts commit 8130d9f3e1 .
This fixes https://github.com/oven-sh/bun/issues/6953
2023-11-07 19:04:25 -08:00
Jarred Sumner
9082193568
Add missing raw method to node-fetch polyfill ( #6976 )
...
* Add missing `raw` method to node-fetch polyfill
* Update node-fetch.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-07 16:58:48 -08:00
Jarred Sumner
b52e503ce4
Fixes #6973 ( #6975 )
...
Fixes #6973
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-07 16:42:25 -08:00
Jarred Sumner
4fbde727d2
Revert d1244c8b1f
...
This fixes #6954 and adds a test. `DOMAttribute` ensures the `this` value of getters are always set.
2023-11-07 04:22:44 -08:00
Jarred Sumner
990ca9cb9d
the real fix
2023-11-07 13:19:58 +01:00
Jarred Sumner
21e32c042e
Speculative fix for #6951
2023-11-07 13:19:58 +01:00
Dylan Conway
d85bd49d87
remove error
2023-11-07 07:55:01 +01:00
Dylan Conway
c0853959c2
cleanup tests
2023-11-07 07:55:01 +01:00
Dylan Conway
fef7920b17
Revert "split('||'), fix up tests"
...
This reverts commit 5fd09153cd .
2023-11-07 07:55:01 +01:00
Dylan Conway
b5a04827e1
split('||'), fix up tests
2023-11-07 07:55:01 +01:00
Dylan Conway
bb5d6fff77
count might be zero for alias
2023-11-07 07:55:01 +01:00
Dylan Conway
75aa963fef
test for invalid version
2023-11-07 07:55:01 +01:00
Dylan Conway
b0126b5962
remove &, mark skip tests as todo
2023-11-07 07:55:01 +01:00
Dylan Conway
a7251047b7
allow no spaces
2023-11-07 07:55:01 +01:00
Dylan Conway
2f301e8404
skip tags in version ranges
2023-11-07 07:55:01 +01:00
Jarred Sumner
c3a7b574c8
Update sys.zig ( #6942 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-06 18:05:46 -08:00
Paul Baumgart
fa25d60df8
fix: remove stray semicolon that causes sqlite3_compileoption_used to always return true on Mac ( #6941 )
2023-11-06 16:52:40 -08:00
Liz
8130d9f3e1
fix: correctly prepend system path to relative urls on pathToFileURL ( #6472 )
...
* fix: correctly prepend system path to relative urls on `pathToFileURL`
The `pathToFileURL` was not handling the case that when a relative link is passed,
it should convert it to a absolute url and prepend the top_folder,
or otherwise described, resolve the path before creating the url.
This does that by calling into buns Path api and using its `resolve` function.
Theres the detail that i used preprocessor directives to determine whether
we are on windows because there does not seam to be a easy way to get that
at runtime in the `BunObject.cpp` file.
Fixes: https://github.com/oven-sh/bun/issues/6456
* fix: add issue id to test name
* fix: implement changes requested in review
* style: fix styling
* Update src/bun.js/bindings/BunObject.cpp
* Update src/bun.js/bindings/BunObject.cpp
* Update src/bun.js/bindings/BunObject.cpp
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-06 13:57:25 -08:00
Jarred Sumner
3ba9647858
Fix a couple bugs with node:http ( #6924 )
...
* Update to latest SIMDUTF
* Fix issue with `Headers.toJSON` having an incorrect size set with set-cookie header
* [node:http] Fix `undefined` when multiple Set-Cookie headers are sent
* Count UTF8 byteLength for headers
This is not necessary, just being cautious.
* Update http-hello.node.mjs
* Be 100% sure the test isn't caching anything
* move this up
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-06 03:51:49 -08:00
Jarred Sumner
98f20170a3
Add more tests for Bun.spawn lifecycle and address edgecase ( #6904 )
...
* FIxup spawn ref / unref
* Fix test failures
* Add test for #3480
* windows
* 🪟
* Skip on linux
* Fix test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-05 00:00:19 -07:00
Dylan Conway
5d1a7d8d5a
Spawn ref count ( #6890 )
...
* fix(Bun.spawn): Fix integer overflow from unref()
* rewite
* has disable flag
* tests
* packed
* remove comments
* make tests more smarter
* unref
* another test
* kevent timeout 0
* possibly fix MacOS x64 baseline action
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-11-04 15:21:37 -07:00
Jarred Sumner
e7a83ad70e
Fix edgecase from eeb3f7be18 ( #6870 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-03 02:58:57 -07:00
Dylan Conway
142cdf1714
more install tests ( #6867 )
...
* some tests
* Apply suggestions from code review
* Update src/install/install.zig
* `zig fmt`
* Update install.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-11-03 02:37:03 -07:00
Dylan Conway
eeb3f7be18
fix jsx key parse and visit order ( #6866 )
...
* jsx key parse and visit order
* only use index
* fix underflow
* oops
* tests
2023-11-02 22:56:40 -07:00
dave caruso
4403c40755
chore: build and publish canary windows builds ( #6834 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-11-02 22:40:00 -07:00
Dylan Conway
2a405f691e
fix #6831 ( #6859 )
...
* latin1 zigstring
* skip check
2023-11-02 15:55:54 -07:00
Jarred Sumner
75393e02b8
Fix assertion
2023-11-02 15:46:18 -07:00
Jarred Sumner
e646853d7a
Fix assertion failure
2023-11-02 15:15:16 -07:00
dave caruso
53d1acb0a5
chore: build system improvements ( #6811 )
...
* build system improvements
* public the secret download link
* typo
* i think i fixed it
* fix ci
* un-bump the cmake version
2023-10-31 17:25:13 -07:00
Anton Golub
732650d6a4
fix: provide nodejs compat for dns methods wrapped with util.promisify ( #6748 )
...
* fix: add nodejs compat for dns methods wrapping with util.promisify
* fix: use single symbol for util.promisify.custom
* style: linting
2023-10-30 23:54:48 -07:00
Jarred Sumner
b29d68bbaf
Fix memory leak in require ( #6790 )
...
* Fix memory leak in require() and add test
* Mark fixtures as generated code
* Add optimization for large files
* Fix small memory leak
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-30 23:54:02 -07:00
Kerem Kat
715be35764
Fix 6281 ( #6809 )
...
* throw an error when `Script` is called without new
fix https://github.com/oven-sh/bun/issues/6281
* fix typo in `File` without constructor error
fix https://github.com/oven-sh/bun/issues/6281
2023-10-30 23:05:32 -07:00
Dylan Conway
e259056bd8
peer dependency and semver prerelease bug fixes ( #6814 )
...
* `order` and `satisfy` prerelease numbers
* remove sorter
* use existing package for peer dep if possible
* fix test, remove loop
* count workspace versions, compare each part of prerelease
* other peer dependencies
* use existing packages if possible
* don't install peer more than once
* fix update tests
2023-10-30 23:04:47 -07:00
Kerem Kat
68146d0544
Fix minify-whitespace case undefined ( #6808 )
...
Print a space before `undefined` in `printUndefined`.
fix https://github.com/oven-sh/bun/issues/6750
2023-10-30 16:15:45 -07:00