Jarred Sumner
11aa17a57c
Support async onLoad callbacks in Bun.plugin
2022-09-05 23:05:22 -07:00
Jarred Sumner
21b8f80a99
[misc] Make debug builds not depend on a specific directory structure
2022-07-28 04:04:53 -07:00
Jarred Sumner
7bb75f5553
Add dynamic require support
2022-06-24 06:59:47 -07:00
Jarred Sumner
78bf1150ff
Fix defaultProps with JSX optimization
2022-06-09 05:09:00 -07:00
Jarred Sumner
43de33afc7
Web Streams API ( #176 )
...
* [bun.js] `WritableStream`, `ReadableStream`, `TransformStream`, `WritableStreamDefaultController`, `ReadableStreamDefaultController` & more
* Implement `Blob.stream()`
* Update streams.test.js
* Fix sourcemaps crash
* [TextEncoder] 3x faster in hot loops
* reading almost works
* start to implement native streams
* Implement `Blob.stream()`
* Implement `Bun.file(pathOrFd).stream()`
* Add an extra function
* [fs.readFile] Improve performance
* make jsc bindings a little easier to work with
* fix segfault
* faster async/await + readablestream optimizations
* WebKit updates
* More WebKit updates
* Add releaseWEakrefs binding
* `bun:jsc`
* More streams
* Update streams.test.js
* Update Makefile
* Update mimalloc
* Update WebKit
* Create bun-jsc.test.js
* Faster ReadableStream
* Fix off by one & exceptions
* Handle empty files/blobs
* Update streams.test.js
* Move streams to it's own file
* temp
* impl #1
* take two
* good enough for now
* Implement `readableStreamToArray`, `readableStreamToArrayBuffer`, `concatArrayBuffers`
* jsxOptimizationInlining
* Fix crash
* Add `jsxOptimizationInline` to Bun.Transpiler
* Update Transpiler types
* Update js_ast.zig
* Automatically choose production mode when NODE_ENV="production"
* Update cli.zig
* [jsx] Handle defaultProps when inlining
* Update transpiler.test.js
* uncomment some tests
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-06-07 22:32:46 -07:00
Jarred Sumner
3c87fbfd37
[bun.js] Implement import.meta.require
...
This allows synchronous dynamic loading of `.node`, `.json`, and `.toml` files.
It is not a CommonJS require, but it can be used that way so long as the content is not JavaScript.
2022-05-11 00:56:35 -07:00
Jarred Sumner
d629cfafd6
E.String gets a Rope
2022-05-05 21:32:19 -07:00
Jarred Sumner
0137e5cf94
[JS Parser] Support explicit removing
2022-04-16 09:29:10 -07:00
Jarred Sumner
964aa40612
Update runtime.zig
2022-04-06 23:36:30 -07:00
Jarred Sumner
3434b9ecf3
Implement error page for HTTP server
2022-03-24 19:08:20 -07:00
Jarred Sumner
f787976bca
[bun.js] Improve support for bundling for node.js
2022-03-19 00:49:01 -07:00
Jarred Sumner
ce742f665a
generate separate interop code for bun
2022-03-19 00:46:24 -07:00
Jarred Sumner
701d6ec45d
rename _global -> bun
2022-03-08 18:54:54 -08:00
Jarred Sumner
ce081f15e9
Optimize sourcemaps
2022-03-07 19:11:12 -08:00
Jarred Sumner
2ccb063d20
[bun.js] Allow disabling runtime imports so bun can build for node
2022-03-01 22:16:09 -08:00
Jarred Sumner
50560e169c
WASM
2022-02-27 23:20:10 -08:00
Jarred Sumner
857e9bee00
Embed React Fast Refresh in Bun
...
Fixes https://github.com/Jarred-Sumner/bun/issues/62
If the project has it's own copy of react fast refresh and is bundling, it will use that instead.
2022-01-29 23:48:39 -08:00
Jarred Sumner
c56ff7efb4
Rename bun:runtime -> bun:wrap so it fits 8 chars
2022-01-22 19:17:03 -08:00
Jarred Sumner
e75c711c68
Upgrade to latest Zig, remove dependency on patched version of Zig ( #96 )
...
* Prepare to upgrade zig
* zig fmt
* AllocGate
* Update data_url.zig
* wip
* few files
* just headers now?
* I think everything works?
* Update mimalloc
* Update hash_map.zig
* Perf improvements to compensate for Allocgate
* Bump
* 📷
* Update bun.lockb
* Less branching
* [js parser] Slightly reduce memory usage
* Update js_parser.zig
* WIP remove unused
* [JS parser] WIP support for `with` keyword
* Remove more dead code
* Fix all the build errors!
* cleanup
* Move `network_thread` up
* Bump peechy
* Update README.md
2021-12-30 21:12:32 -08:00
Jarred Sumner
5105614b83
Improve devcontainer environment errors
2021-12-24 04:49:57 +00:00
Jarred Sumner
cd5c740368
[internal] Fix loading runtime code in debug builds
2021-10-30 20:53:08 -07:00
Jarred Sumner
25ac773cf3
[Bun.js] Add support for Top Level Await!
2021-10-29 23:36:55 -07:00
Jarred Sumner
018ba2c83b
Most of macro implementation
2021-09-26 20:03:49 -07:00
Jarred Sumner
940570af59
skeleton code
2021-09-24 16:41:45 -07:00
Jarred Sumner
638b204d1e
Add __exportValue and __exportDefault to runtime
2021-09-23 19:20:33 -07:00
Jarred Sumner
5dbbad5cc4
Support installing bun from npm
2021-09-14 16:59:21 -07:00
Jarred Sumner
359df89fe3
Fix "browser" map resolution, _almost_ fix symbol collisions, cache absolute paths for file entries
2021-09-12 23:40:12 -07:00
Jarred Sumner
125d88bd65
bun:error.js into separate module, ensure we don't include fast refresh in Bun.js, log build errors to browser console, don't warn for node_modules,
2021-09-11 01:48:23 -07:00
Jarred Sumner
4bd9cccbc9
filepath
2021-09-10 02:34:12 -07:00
Jarred Sumner
fc907e2f81
current
2021-09-09 23:33:34 -07:00
Jarred Sumner
1d1a70c21f
WIP error css
...
Former-commit-id: 36f03bf491cf274f68361e334a706538464ee271
2021-09-07 03:21:58 -07:00
Jarred Sumner
2fa09f7c09
Fix UMD, fix PNPM, importing require'd modules in app code
...
Former-commit-id: 3d831ad95904d2123964f2ebccff48f1e9f954e9
2021-09-02 11:51:52 -07:00
Jarred Sumner
6a5f34a6bc
Fallback, fragments, printer compat, better errors
...
Former-commit-id: 486e8c9d460eeebea024e96dbabcb7f2bfaffafb
2021-08-31 15:03:40 -07:00
Jarred Sumner
8c67007926
Use mimalloc for a 10% boost
...
Former-commit-id: 044e11d720bc6742dc53b30b4e88e8be7e76c419
2021-08-23 02:29:07 -07:00
Jarred Sumner
ae01e9b98d
Move bun-framework-next folder, add tsconfig.json
...
Former-commit-id: cfd7b425f071f200504493fef206afb7c68de6d9
2021-08-17 13:31:33 -07:00
Jarred Sumner
41260ecd18
Support multiple route dirs, fix bundling JSX, fix cjs bug, remove warning about unbundled modules in speedy env,
...
Former-commit-id: ae718dbd05397bed9bc49a77fae20de70b635e82
2021-08-15 21:48:56 -07:00
Jarred Sumner
7245f90b2d
little bit of errors, little bit of bytecode caching. neither finished
...
Former-commit-id: c774c395136d58330aa7cad7e9fa434bcef7d5c6
2021-07-30 00:50:29 -07:00
Jarred Sumner
4a8b254652
esmodules work?
...
Former-commit-id: 5cb5af4416c12518eb195d1b310990fc5c94d6c8
2021-07-28 20:56:29 -07:00
Jarred Sumner
d09194f05a
Support live-reload and fallback
...
Former-commit-id: c3f9d77391
2021-06-20 18:15:13 -07:00
Jarred Sumner
122ef023dd
extremely close!!!!!
...
Former-commit-id: 44fce3c5e8
2021-06-14 01:49:53 -07:00
Jarred Sumner
c51c65325f
I think thats the JS part of HMR
...
Former-commit-id: 43380a4d68
2021-06-12 19:10:08 -07:00
Jarred Sumner
dc3309d130
alright basic stuff works now. still bugs with JS parser
...
Former-commit-id: a1dd2a2a32
2021-06-11 10:53:55 -07:00
Jarred Sumner
d2e1c7955b
The code looks like it might work
...
Former-commit-id: 8070da6ec9
2021-06-10 14:57:08 -07:00
Jarred Sumner
a2d8026810
cool!
...
Former-commit-id: 5ffd8e40b3
2021-06-10 01:07:42 -07:00
Jarred Sumner
ecda693e38
lots
...
Former-commit-id: 7346cdaa5a
2021-06-09 13:26:30 -07:00
Jarred Sumner
da0bb118dc
HTTP fixes + buffer stdout/in + a little HTTP caching
...
Former-commit-id: d49df1df57
2021-06-02 16:39:40 -07:00
Jarred Sumner
ee6643ce8b
wip
...
Former-commit-id: a6bc130918
2021-06-01 20:49:49 -07:00
Jarred Sumner
a58adfcaa2
Starting to work on rutnime
...
Former-commit-id: 23220fd348
2021-05-19 19:30:24 -07:00