Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00
Alex Lam S.L
f78f423d0b
emit 206 Partial Content only for partial response ( #1670 )
...
fixes #1668
2022-12-27 16:34:33 -08:00
Alex Lam S.L
c4ca4c70d1
[install] specify auth-type ( #1667 )
2022-12-26 15:15:58 -08:00
Alex Lam S.L
d94b96d9f4
[install] use specified base URL as default fallback within scopes ( #1665 )
2022-12-26 00:25:59 -08:00
Alex Lam S.L
74251fbf5e
[install] use default URL when only auth token is specified ( #1664 )
...
Previously it would default to `http://localhost/ ` which was inconsistent with the case sans token.
Use official `npm` registry as fallback in both cases.
2022-12-25 21:20:35 -08:00
Jarred Sumner
3ceb2655d8
Add test for stat()
2022-12-21 14:57:04 -08:00
Ethan Burrell
4f7d06500c
fix jest hooks in bun-test ( #1639 )
...
* fix(jest) fix broken jest hooks
* add tests
2022-12-21 14:36:44 -08:00
Alex Lam S.L
06487ef64f
add tests for #1633 ( #1635 )
...
- `setImmediate(fn, ...args)`
- `setInterval(fn, delay, ...args)`
- `setTimeout(fn, delay, ...args)`
2022-12-20 21:34:25 -08:00
Alex Lam S.L
2b622162ef
bug compatible with stdin.on("readable") ( #1626 )
2022-12-17 22:37:45 -08:00
Jarred Sumner
feea8824f1
Delete Oniguruma ( #1625 )
...
* Update .gitmodules
* Delete oniguruma
* Delete Oniguruma
* Make this test less flaky
* ✂️
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-12-17 15:41:47 -08:00
Jarred Sumner
d66831c4f3
Update transpiler.test.js
2022-12-17 12:26:19 -08:00
Jarred Sumner
24be0f4fc5
Implement node:util/types
...
Fixes #1617
2022-12-17 12:26:19 -08:00
Alex Lam S.L
68fd43313d
add tests for process.stdin ( #1621 )
2022-12-16 20:40:41 -08:00
Jarred Sumner
3c20290e49
[js parser] Fix bug where const {resolve} = require throws "require is not defined"
2022-12-15 21:48:38 -08:00
Jarred Sumner
3ea983578f
[node:process] Implement process.argv0, process.execPath
...
Fixes https://github.com/oven-sh/bun/issues/1599
2022-12-15 17:31:18 -08:00
Derrick Farris
6a1fc20835
fix(stream): make Readable.read work w/o _construct implemented ( #1613 )
...
* fix(stream): put Readable._readableState.constructed default in spec (true, not false)
* cleanup(readable): remove unnecessary _construct methods
* test(stream): add test for Readable w/o _construct method
2022-12-15 00:25:19 -08:00
Jarred Sumner
a92258355d
Don't call debug streams getter when not in debug
2022-12-13 19:01:25 -08:00
Jarred Sumner
de8ace9fbe
Add a test for importing unknown file types as file loader
2022-12-13 18:17:26 -08:00
Jarred Sumner
5741d4f9b4
[crypto] Implement scryptSync
...
Fixes https://github.com/oven-sh/bun/issues/1228
2022-12-13 00:15:29 -08:00
Jarred Sumner
f649aae36f
[crypto] Implement crypto.timingSafeEqual
...
This uses BoringSSL's memcmp function
Fixes https://github.com/oven-sh/bun/issues/1308
2022-12-12 19:29:25 -08:00
Derrick Farris
9f9db85a94
fix(stream): Fix Readable.pipe() ( #1606 )
...
* fix(stream): fix some debug logs that were breaking .pipe
* fix(stream): another debug fix
* test(stream): add test for .pipe
2022-12-12 18:58:28 -08:00
Jarred Sumner
14efd03b48
📷
2022-12-12 00:40:00 -08:00
Jarred Sumner
b57f51fda2
Add a test for some scopes
2022-12-11 14:18:09 -08:00
Jarred Sumner
b5519af7e7
cleanup some tests
2022-12-11 12:58:48 -08:00
Alex Lam S.L
780f7de843
override process.stdin.on() correctly ( #1603 )
...
* override `process.stdin.on()` correctly
fixes #1601
* add tests
2022-12-10 21:51:02 -08:00
Jarred Sumner
660eb46b17
[transpiler] Improve constant propagation
2022-12-10 21:36:14 -08:00
Jarred Sumner
ab49f95ef2
📷
2022-12-10 00:19:19 -08:00
Jarred Sumner
047754d5dd
Implement simple version of inlining single-use expressions and statements
2022-12-10 00:19:19 -08:00
Jarred Sumner
88538b7c2c
Deprecate very incomplete Solid.js JSX transform
...
We don't have time to do a good job of this and Bun.plugin makes it possible to use Solid with Bun
2022-12-09 16:41:38 -08:00
Jarred Sumner
2fe5b4da2f
📷
2022-12-07 21:41:30 -08:00
Jarred Sumner
42ea8b2402
[node:events] EventEmitter#on and EventEmitter#off should return the EventEmitter instance
2022-12-07 14:06:18 -08:00
Derrick Farris
60d0e6b73f
fix(stream): Fix Transform class constructor fn ( #1583 )
...
* fix(stream): fix ReadableFromWeb class, fix Transform
* test(stream): add tests for .call on stream constructors
2022-12-07 00:18:10 -08:00
Colin McDonnell
5ea8fe8c90
Update types ( #1581 )
...
* Fix TS types, improve child_process types
* Add prettier
* Add ArrayBuffer types
* Add namespace Bun, improve types for SharedArrayBuffer, add toStrictEqual
* Improve types, add test files for types
* Update type tests
* Fix typo
* Add stdio
* Stdio types
* Use latest setup-bun
* Update action
* Update action
* Update action
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2022-12-06 18:48:02 -08:00
Dylan Conway
84b2cc1739
fix child process test
2022-12-06 18:15:20 -08:00
Dylan Conway
5f3a6f2bf3
add server scheduleDeinit, ignore logs in test
2022-12-06 17:10:14 -08:00
Dylan Conway
51d69d8c85
fix event emitter cast
2022-12-06 16:25:39 -08:00
Jarred Sumner
9665d7d216
Add some more text decoder tests
2022-12-05 11:37:04 -08:00
Jarred Sumner
0ea8de4087
Make console an AsyncIterable
2022-12-05 11:35:34 -08:00
Jarred Sumner
79094e6643
more tests for event emitter weirdness
2022-12-05 00:42:02 -08:00
Jarred Sumner
1564f75d06
Update test-test.test.ts
2022-12-04 23:30:25 -08:00
Jarred Sumner
af0bc28c51
Update child_process
2022-12-04 08:15:02 -08:00
Jarred Sumner
8830cbc51e
[test] Ensure console.log(globalThis) doesn't crash
2022-12-04 06:55:12 -08:00
Jarred Sumner
23c90a76c2
Rename file
2022-12-04 06:54:56 -08:00
Jarred Sumner
f052e66df5
Add some basic tests for process.stdout
2022-12-04 02:53:04 -08:00
Jarred Sumner
2bcae716d1
Silence incorrect test failure
2022-12-04 02:28:15 -08:00
Jarred Sumner
0617896d70
[Bun.serve] Implement Content-Range support with Bun.file()
2022-12-04 00:55:05 -08:00
Jarred Sumner
35bf039dfb
[test] Add a couple tests for subarray toEqual
2022-12-03 23:57:13 -08:00
Jarred Sumner
04658776e4
Push failing tests
2022-12-02 23:17:40 -08:00
Dylan Conway
369e9f3fbd
add deps for make test command
2022-12-02 22:36:23 -08:00
Jarred Sumner
fe4f39fd17
Add AbortSignal.timeout
2022-12-02 20:48:57 -08:00