Dylan Conway
c4557e57a1
add bun pm ls for printing lockfiles ( #1612 )
...
* list directory structure from lockfile
* dim connectors and versions
2022-12-13 22:47:46 -08:00
Jarred Sumner
f61d9e340d
[bun:jsc] Introduce profile function
2022-12-13 20:47:51 -08:00
Jarred Sumner
47a2548cbf
Fix crash in startSamplingProfiler
2022-12-13 20:39:49 -08:00
Jarred Sumner
5516adec57
Avoid creating closure
2022-12-13 19:16:51 -08:00
Alex Lam S.L
4e920d73b7
make process.stdin work under TTY ( #1611 )
...
- workarounds for #1607 & #1608
fixes #1604
2022-12-13 19:02:20 -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
5bbaa7b400
Fix bug where importing a binary file throws a SyntaxError. Instead, return the public path for that file
2022-12-13 18:17:26 -08:00
Jarred Sumner
7d15a040fd
Add missing if
2022-12-13 15:12:14 -08:00
Dylan Conway
3236a99b2d
missing id when over 8 packages
2022-12-13 11:37:50 -08:00
Jarred Sumner
e98aae195c
fix UB
2022-12-13 00:15:41 -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
1bed749d8c
some bugs make you feel like a 🤡
2022-12-12 22:39:15 -08:00
Jarred Sumner
bbe66a4367
Add missing space
2022-12-12 19:29:25 -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
Dylan Conway
bbc2dacd84
markbinding for utf8 length from utf16le
2022-12-12 13:41:55 -08:00
Dylan Conway
0bb9493e47
fix fallback install method
2022-12-12 13:38:12 -08:00
Jarred Sumner
d5b11be769
[internal] Add helper to make it easier to print whitespace
2022-12-12 00:28:37 -08:00
Jarred Sumner
007133d060
[Transpiler] Implement minifyWhitespace option
2022-12-11 23:28:53 -08:00
Jarred Sumner
6279358cbc
[internal] further cleanup for hoistSymbols
2022-12-11 20:25:20 -08:00
Jarred Sumner
ca34a09a4d
fixup
2022-12-11 19:29:27 -08:00
Jarred Sumner
b746579863
[internal] Change HashMap implementation for storing symbols
2022-12-11 18:41:54 -08:00
Jarred Sumner
27e40b0836
Update WebKit
...
cc @cirospaciari you will need to re-download the precompiled WebKit build from the releases page https://github.com/oven-sh/WebKit/releases/tag/dec11 because there is one small WebKit API change. LMK if you have any trouble with that
2022-12-11 16:14:53 -08:00
Jarred Sumner
fad1742410
[transpiler] Never trim exports
2022-12-11 13:55:31 -08:00
Jarred Sumner
768f4539e8
[transpiler] Fix unbalanced class_name scope
...
surprised this was never caught sooner
2022-12-11 13:55:15 -08:00
Jarred Sumner
37b16a9007
Add _read
2022-12-11 13:01:41 -08:00
Jarred Sumner
a2d96f9040
Fix checking the UTF-16 length twice
2022-12-11 13:01:24 -08:00
Jarred Sumner
9d94f148dc
Avoid re-visting AST nodes which create scopes
2022-12-11 11:55:06 -08:00
Jarred Sumner
5cf64b07be
Fix segfault in release mode when module list is empty
2022-12-10 22:25:33 -08:00
Jarred Sumner
2a7687fff8
Regenerate builtins
2022-12-10 22:24:34 -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
c6f3044654
[transpiler] Fix issue with async macros in bun build
2022-12-10 15:30:09 -08:00
Jarred Sumner
b374c67c16
[transpiler] Fix bug with === on statically-known rope strings
2022-12-10 15:29:53 -08:00
Jarred Sumner
ce960f9506
♻️
2022-12-10 00:37:32 -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
79138c4c7c
Add "bun" to list
2022-12-09 16:10:33 -08:00
Colin McDonnell
24fbcb8f52
Exclude other ts declaration file extensions ( #1596 )
...
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
2022-12-09 14:26:33 -08:00
Jarred Sumner
51e437e8a0
EventEmitter - return original this value for better chainability
2022-12-08 18:27:16 -08:00
Jarred Sumner
3150ff49a7
fix dirname on an empty string
2022-12-07 21:41:30 -08:00
Dylan Conway
0b94ccdf8c
disable assignment on user specified assigns
2022-12-07 21:29:32 -08:00
Dylan Conway
845421c44b
fix __require linker collision ( #1585 )
2022-12-07 20:39:55 -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
Jarred Sumner
a13e64c286
Update html_rewriter.zig
2022-12-07 00:37:40 -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
Dylan Conway
d9306c2681
first_non_ascii != offset
2022-12-06 21:46:20 -08:00
Dylan Conway
aa17f97d13
fix failing text decoder test
2022-12-06 21:04:38 -08:00
Jarred Sumner
e547efbf4a
Don't call getters in console.log
2022-12-06 20:20:08 -08:00
Jarred Sumner
3d243e5e95
Fix node:stream/consumers
2022-12-06 19:56:36 -08:00