dave caruso
dfd0f3e252
Allow reading config from within plugins, and partially implement esbuild initialOptions ( #2861 )
...
* Implement plugin build.config and initialOptions
* update types
* default initialoptions entrypoints
2023-05-11 22:58:41 -04:00
Jarred Sumner
136b50c746
formatting
2023-05-11 19:31:55 -07:00
Jarred Sumner
5bb42c81e4
give up on this optimization so we can ship
2023-05-11 19:31:39 -07:00
Jarred Sumner
a008e49a40
forgot to commit this
2023-05-11 15:14:43 -07:00
Jarred Sumner
56b8458c62
call stop before emit
2023-05-11 15:10:40 -07:00
Jarred Sumner
7141e19a10
fixup
2023-05-11 15:10:06 -07:00
Jarred Sumner
5c08200b18
[node:http] handle errors generated by fetch
2023-05-11 15:09:30 -07:00
Jarred Sumner
d67bdb7e9b
[node:http] Fix close() to accept a callback and implement closeAllConnections
2023-05-11 15:09:14 -07:00
Jarred Sumner
77eb61a1fe
Fix OutputKind, add "use client" and "use server"
2023-05-11 15:08:18 -07:00
dave caruso
6a163cf933
bundler tests and improve Bun.build return type ( #2833 )
...
* importstar_ts
* tests
* run acorn test suite
* bench tweaks
* test
* bun.build tests very incomplete
* remove dataurl and base64 loaders from tests since they dont work yet
* tests
* stuff
* stuff
* add errors and array of blobs
* work so far
* docs
* requested changes
* fix overwrite docs
* remove this file
2023-05-11 14:42:54 -07:00
Dylan Conway
02cad591f8
fix child process tests ( #2584 )
...
* always handle exit on next tick
* emit spawn immediately
2023-05-11 14:39:44 -07:00
Ciro Spaciari
3530cfac68
fix redirect: \'manual\' and setTimeout on node:http request ( #2848 )
2023-05-11 14:25:21 -07:00
Ciro Spaciari
bc7d0adcf9
fix(fs) mkdtemp and mkdtempSync errors ( #2851 )
...
* fix mkdtemp
* fmt
* fix errno
2023-05-11 14:23:33 -07:00
Ciro Spaciari
d032b73b10
add tests for ws.close ( #2844 )
...
* add tests for ws.close
* add timeout on ws.close tests
2023-05-11 02:30:48 -07:00
Ciro Spaciari
9c166a1bdf
add support for { all: true } option on dns.lookup ( #2846 )
2023-05-11 02:30:20 -07:00
Jarred Sumner
e125ed2aa3
Report timings for failing tests too
2023-05-11 01:16:46 -07:00
Jarred Sumner
5ffee9477c
[bun test] Add timings to successful tests
2023-05-11 00:55:41 -07:00
Degreat
4b79b37a99
Implement describe.skip ( #2836 )
...
* Implement describe.skip
* Add more tests to cover hooks
2023-05-10 23:57:30 -07:00
Ciro Spaciari
f9831e1f6f
feat(fetch) add redirect: 'error' support ( #2845 )
...
* add redirect: 'error' support
* fix typo
* fix typo
* refactor FetchRedirect enum
* fix FetchRedirect
* updated
2023-05-10 23:55:39 -07:00
Dylan Conway
8f4a5903ab
make sure vars can be hoisted in catch scope ( #2847 )
2023-05-10 23:55:27 -07:00
Jarred Sumner
0e5f0940ee
serialize
2023-05-10 23:30:30 -07:00
Jarred Sumner
9d3a95ed96
Add version
2023-05-10 23:03:37 -07:00
Jarred Sumner
2abfa84db7
Implement the benchmark snippet runner minus the sqlite serialization step
2023-05-10 22:50:56 -07:00
Dylan Conway
53fe8d61e7
object empty ast
2023-05-10 21:53:38 -07:00
Jarred Sumner
e1c6adc737
Prepare to run these automatically
2023-05-10 21:37:08 -07:00
Jarred Sumner
5e0eedccb0
Fix test failure in scope order verification
2023-05-10 20:07:12 -07:00
Jarred Sumner
06a03df9a6
Fix assertion
2023-05-10 17:59:55 -07:00
Jarred Sumner
ed5dd3fee1
Fix incorrect assertion
2023-05-10 17:50:02 -07:00
Jarred Sumner
96dc0471ff
Clean-up 85b4be5f71
...
- We don't need to make `Bun__fetch` exported in every C++ header file
- We shouldn't return JSObjectRef, its an unnecessary wrapper
- The version of `fetch` on the Bun global should be non-configurable so that it is safe for anyone who wants to use that without a user-modifiable one
2023-05-10 16:55:13 -07:00
Ciro Spaciari
85b4be5f71
fix(fetch) fix fetch inheritance ( #2842 )
...
* patch fetch function inheritance
* fmt
* fix reserveCapacity and number of arguments for fetch
* change Bun.fetch to use Fetch.jsFunction
* merge Fetch.jsFunction and Fetch.call
* remove commented code
2023-05-10 16:38:52 -07:00
Ciro Spaciari
643aa27a03
fix closing WS with code and reason ( #2843 )
2023-05-10 14:37:29 -07:00
Dylan Conway
e7d4f5fb16
use member from parent scope when hoisting ( #2840 )
2023-05-10 13:12:16 -07:00
Alex Lam S.L
5fd838b9e4
bun add from root folder when call within workspaces (#2841 )
...
- ignore invalid `package.json` from parent directories
- `echo` new lines from `make` targets correctly
2023-05-10 17:22:01 +03:00
Jarred Sumner
5b2c3fe440
clarify the types more
2023-05-10 05:08:22 -07:00
Jarred Sumner
53a198f2f7
Update test
2023-05-10 04:22:03 -07:00
Jarred Sumner
982dc0b441
Implement BuildArtifact
2023-05-10 04:21:53 -07:00
Dylan Conway
1f8c60123d
fix catch scope var declarations ( #2839 )
...
* use `catch_binding` kind and report errors
* make hash optional
2023-05-09 23:52:40 -07:00
Alex Lam S.L
4ccca13001
[install] operator on root package of workspaces ( #2834 )
...
- parse `bunfig.toml` from same directory as `package.json`
- handle `--cwd` correctly
fixes #2592
2023-05-10 08:26:29 +03:00
Jarred Sumner
1e8b9258b2
Expose bindings for Map
2023-05-09 21:47:18 -07:00
Jarred Sumner
c7c5dc1438
Add name property
2023-05-09 21:44:05 -07:00
Jarred Sumner
a5b3056c76
Fix extra semicolon
2023-05-09 21:41:05 -07:00
Jarred Sumner
e8989f9a60
Fix make headers (May 9th 2023 edition)
2023-05-09 21:05:33 -07:00
Jarred Sumner
4346f6afc0
RSC
2023-05-09 20:38:26 -07:00
Dylan Conway
38e72a528d
code splitting option
2023-05-09 20:38:02 -07:00
Dylan Conway
eb2510170f
resolve rope string before returning ( #2838 )
2023-05-09 20:33:26 -07:00
Dylan Conway
1d72bbe96c
space before label ( #2837 )
2023-05-09 20:27:20 -07:00
Dylan Conway
a47e2c6021
add WebAssemblyInstance and WebAssemblyGCObject js types ( #2835 )
...
* add `WebAssemblyInstance` and `WebAssemblyGCObject`
* update c api
2023-05-09 18:37:50 -07:00
Jarred Sumner
5a18d24a96
Re-run builtins generator
2023-05-09 16:17:42 -07:00
Jarred Sumner
d1dd7a7ebb
Add a comment
2023-05-09 15:40:51 -07:00
Jarred Sumner
65eb6db7fa
Fix a memory leak in module resolution
2023-05-09 15:29:32 -07:00