Colin McDonnell
|
f7f1b60444
|
Add bun-types, add typechecking, add child_process types (#1475)
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
|
2022-11-09 15:40:40 -08:00 |
|
Jarred Sumner
|
da257336b0
|
Fix #1354
|
2022-11-09 15:11:14 -08:00 |
|
Jarred Sumner
|
565996a087
|
Support TypeScript satisfies
Credit: @magic-akari, almost identical diff in https://github.com/evanw/esbuild/pull/2509/files#diff-ccc0bde7223236d93490b727b272f15765a2674be12a4c310b83b9555bef8816
|
2022-11-09 01:30:02 -08:00 |
|
Jarred Sumner
|
fac1c49727
|
Fixup
|
2022-11-09 01:15:36 -08:00 |
|
Jarred Sumner
|
3a760ec0ec
|
Update response.zig
|
2022-11-09 01:12:35 -08:00 |
|
Jarred Sumner
|
d90a638101
|
Re-enable workaround for 127.0.0.01
|
2022-11-09 01:12:35 -08:00 |
|
Dylan Conway
|
047a8d3f0d
|
Error.captureStackTrace implementation (#1476)
* capture stack trace formatting, tests
* fix callsite methods, stack formatting or undefined
* isNative, tests for callsite methods
* Update src/bun.js/bindings/ZigGlobalObject.cpp
* Update src/bun.js/bindings/ZigGlobalObject.cpp
* template and macros for visitchildren
* static strings, handle infinity and clamp stacktracelimit
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
|
2022-11-09 00:37:57 -08:00 |
|
Jarred Sumner
|
2c4777f579
|
[libarchive][bun install] Fix file permissions not always being passed correctly in bun install
Fixes #1092
|
2022-11-09 00:32:50 -08:00 |
|
Jarred Sumner
|
0642cf31f3
|
[bun install] Support bin with bun link
|
2022-11-08 23:51:02 -08:00 |
|
Jarred Sumner
|
b1b3f7af54
|
Update bindings.cpp
|
2022-11-08 22:39:45 -08:00 |
|
Jarred Sumner
|
cb41d77d2a
|
Fixes #1426
|
2022-11-08 22:27:22 -08:00 |
|
Jarred Sumner
|
0fd7d3a8c3
|
Fix incorrectly reporting URL sizes to GC in some cases
|
2022-11-08 22:26:58 -08:00 |
|
Jarred Sumner
|
8bc459ba99
|
Guard against closing the same pid twice
|
2022-11-08 22:08:49 -08:00 |
|
Jarred Sumner
|
5c312ec0c9
|
Only perform this check on macOS
|
2022-11-08 22:07:59 -08:00 |
|
Jarred Sumner
|
bf92c36be1
|
Fixes #1320
Tests pass now on linux
|
2022-11-08 22:05:59 -08:00 |
|
Jarred Sumner
|
253cb391b3
|
Remove base64 library
|
2022-11-08 21:32:08 -08:00 |
|
Jarred Sumner
|
55c262a321
|
handle undefined better
|
2022-11-08 21:31:21 -08:00 |
|
Jarred Sumner
|
af3931371e
|
Fix Buffer.from(text, "base64") and Buffer.toString("base64")
|
2022-11-08 21:30:54 -08:00 |
|
Derrick Farris
|
9ccc455f8d
|
Fix child_process tests (#1471)
* test(child_process): fix broken tests, add our-assert pkg for testing
* test(child_process): replace console.log with debug()
* test(child_process): rename our-assert -> node-test-helpers, use Bun.peek for subproc.exited
|
2022-11-08 15:33:47 -08:00 |
|
Jarred Sumner
|
8b0a3c75cb
|
Fix #1473
|
2022-11-08 15:30:09 -08:00 |
|
Jarred Sumner
|
fac4efb9b9
|
Add a test for DOMJIT call version of TextDecoder
|
2022-11-08 15:28:30 -08:00 |
|
Jarred Sumner
|
f17080df7f
|
Add a couple more tests for typeof
|
2022-11-08 15:27:55 -08:00 |
|
Jarred Sumner
|
2077e563b7
|
Fix failing transpiler tests
|
2022-11-08 15:26:29 -08:00 |
|
Jarred Sumner
|
1604666988
|
20% faster TextDecoder on small inputs
|
2022-11-08 12:55:45 -08:00 |
|
Jarred Sumner
|
6c6e680d91
|
Allow read_only packages to check the cache
|
2022-11-08 03:02:20 -08:00 |
|
Jarred Sumner
|
9f222c5ed2
|
Default enable optional dependencies for remote packages
|
2022-11-08 03:01:41 -08:00 |
|
Jarred Sumner
|
3d0b297306
|
Fix error message
|
2022-11-08 03:01:30 -08:00 |
|
Jarred Sumner
|
ce5cbb0491
|
Install optional dependencies for auto-install
|
2022-11-08 03:01:12 -08:00 |
|
Jarred Sumner
|
9bf03a84c1
|
Update crypto.js
|
2022-11-08 00:29:32 -08:00 |
|
Jarred Sumner
|
3e9bb6859b
|
Stack allocate arguments to make it actually threadsafe
|
2022-11-08 00:28:14 -08:00 |
|
Jarred Sumner
|
86f0b08b8d
|
Add missing exports
|
2022-11-08 00:14:17 -08:00 |
|
Jarred Sumner
|
38db5f1c83
|
Fix Buffer.slice and Buffer.subarray
|
2022-11-08 00:07:25 -08:00 |
|
Jarred Sumner
|
9f10724eda
|
cast
|
2022-11-07 21:53:31 -08:00 |
|
Jarred Sumner
|
bb8c803bdf
|
Fix newline normalization
credit: @Validark
|
2022-11-07 21:43:38 -08:00 |
|
Jarred Sumner
|
9d167deb10
|
Credit: @Validark
|
2022-11-07 21:43:38 -08:00 |
|
Niles Salter
|
093fe1bae9
|
Add more tags to be usable with typeof (#1258)
|
2022-11-07 21:10:19 -08:00 |
|
Niles Salter
|
9dc3fbcfc4
|
Remove improper coercion of environment variables (#1256)
|
2022-11-07 21:04:49 -08:00 |
|
Jarred Sumner
|
be9bab5c29
|
Update ZigGlobalObject.cpp
|
2022-11-07 20:52:21 -08:00 |
|
Jarred Sumner
|
52eac73726
|
Fix peek test
|
2022-11-07 20:49:19 -08:00 |
|
Jarred Sumner
|
f05e23ed20
|
Return a rejected promise if there was an error
|
2022-11-07 20:43:53 -08:00 |
|
Jarred Sumner
|
b4abb0f337
|
Visit all the fields
|
2022-11-07 20:43:34 -08:00 |
|
Jarred Sumner
|
41c983b386
|
clean up some reliability issues with automatic install
|
2022-11-07 19:50:54 -08:00 |
|
Jarred Sumner
|
f84b2ec6d1
|
Handle threadsafety issue
|
2022-11-07 19:50:54 -08:00 |
|
Ikko Ashimine
|
e0cb7e4342
|
Fix typo in Dockerfile (#1468)
specifc -> specific
|
2022-11-07 18:39:44 -08:00 |
|
Jarred Sumner
|
204f514633
|
[JS Parser] Do not perform the visit pass if the parse pass had "tolerable" errors
|
2022-11-07 16:00:14 -08:00 |
|
Jarred Sumner
|
5005188a13
|
Fix a couple failing tests
|
2022-11-07 15:20:47 -08:00 |
|
Jarred Sumner
|
8189f78eed
|
Maybe fix bug with onExit callback?
|
2022-11-07 14:57:47 -08:00 |
|
Jarred Sumner
|
2eb19a96b1
|
Support unlimited arguments in process.nextTick
|
2022-11-07 14:14:19 -08:00 |
|
Jarred Sumner
|
fd26d2e9fa
|
Fix missing error in process.nextTick and queueMicrotask
|
2022-11-07 14:13:55 -08:00 |
|
Jarred Sumner
|
370d9c2931
|
[bun:test] Rejected promises should cause tests to fail
|
2022-11-07 05:13:54 -08:00 |
|