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
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
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
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
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
8189f78eed
Maybe fix bug with onExit callback?
2022-11-07 14:57:47 -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
Jarred Sumner
c00359a521
[bun:test] Implement done callback with support for async functions
2022-11-07 04:49:10 -08:00
Jarred Sumner
71d0e14210
[bun:test] Implement expect in faster Zig bindings
2022-11-07 00:53:24 -08:00
Jarred Sumner
d925367cae
[bindings generator] Support cached values that do not correspond to properties and support call() functions
2022-11-07 00:51:36 -08:00
Jarred Sumner
179cd18f70
Handle types which do not support getting an object
2022-11-07 00:50:49 -08:00
Jarred Sumner
072cd5a745
Fix UAF in canary
2022-11-07 00:50:32 -08:00
Jarred Sumner
e45f72e8e4
Automatically install npm packages when running a script in Bun's runtime ( #1459 )
...
* Update bundler.zig
* WIP
* Update README.md
* Update README.md
* wip
* Support running scripts without package.json
* Add `--no-auto-install` and `--prefer-offline` flags
* WIP
* wip
* Update headers-handwritten.h
* WIP
* Build fixes
* Fix UAF
* Update install.zig
* Must call .allocate()
* Micro-optimization: only call .timestamp() once per tick when installing packages
* Support progress bar
* Extend the timestamp for package staleness checks to 1 day
* Add `--prefer-latest`, `-i` CLI Flags
* Fix crash
* Support line text manually being set on an Error instance
* Add a few more fields for error messages
* Fix bug when counting 8 character strings in string builder
* Implement error handling for automatic package installs!
* Fix crash
* Make it say module when there's a slash
* Update module_loader.zig
* Ban dependency versions in import specifiers when a package.json is present
* Remove unused field
* Update README.md
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-11-06 21:42:05 -08:00
Carter Snook
645cf90335
chore: remove space lookalike ( #1465 )
2022-11-06 18:03:06 -08:00
Jarred Sumner
e5b2e3c602
Fixes https://github.com/oven-sh/bun/issues/1451
2022-11-06 18:00:01 -08:00
Jarred Sumner
897d7bd564
Add way to explicitly coercion object to int32
2022-11-06 17:59:32 -08:00
Jarred Sumner
07cb04e311
Fix symbol error with make headers
...
cc @lawrencecchen
2022-11-06 17:45:16 -08:00
Jarred Sumner
b1fcc9e6bf
Fix bug when passing ABI Types as integers
2022-11-06 17:45:05 -08:00
Jarred Sumner
1f174b9d95
Fixes https://github.com/oven-sh/bun/issues/1462
2022-11-06 16:14:46 -08:00
Jarred Sumner
1cb5a73243
[TypeScript] Fix export = value
2022-11-06 15:26:12 -08:00
Derrick Farris
be108c0fea
feat(child_process): add node:child_process polyfill ( #1424 )
...
* feat(child_process): beginning of child_process, add ChildProcess and spawn base case
* fix(child_process): remove invalid single arg array syntax (thanks Copilot)
* refactor(child_process): unhack Readable.on, move stuff into node:stream
* feat(child_process): add more params for spawn, refactor, add fromWeb() to Readable
* feat(child_process): finish rest of exports (minus fork), refactor, add tests
* cleanup(streams): remove a bunch of unnecessary stuff
* cleanup(child_process): remove dead refs
* fix(child_process): fix stdio
* fix(child_process): change stdio to bunStdio
* test(child_process): uncomment timeout test
* test(child_process): fix hanging tests
* test(child_process): remove stray console.log
* test(child_process): fix cwd test for linux
* refactor(child_process): divide paths for encoded vs raw execFile stdio
* fix(child_process): fix logic for execFile slow path
2022-11-06 13:43:42 -08:00
Derrick Farris
4e3fb8ed5b
fix(subprocess): fix typo in spawnSync ( #1464 )
2022-11-06 03:41:32 -08:00
zhiyuan
9d3f1e0d26
Fix fetch api to accept stringifier object ( #1460 )
...
* fetch accept stringifier object
* test: update fetch params tests
2022-11-05 18:51:02 -07:00