Jarred Sumner
84fd6a514a
Do the WebKit upgrade
2023-05-17 09:55:24 -07:00
Dylan Conway
bf1216021e
resolve rope before pushing to previous string ( #2909 )
2023-05-16 17:19:56 -07:00
Harry Yep
2f4162e692
fix: broken link ( #2897 )
2023-05-16 17:08:45 -07:00
dave caruso
ad20b13985
Fix segfault on passing undefined to bun.build ( #2902 )
2023-05-16 17:08:00 -07:00
Dylan Conway
1ad8c54c90
fix asset naming output paths ( #2904 )
...
* rename to `src_path` and `dest_path`, use `dest_path` for output
* format
* option for compile
2023-05-16 17:07:40 -07:00
Jarred Sumner
78229da760
Bump
bun-v0.6.1
2023-05-16 11:44:03 -07:00
Jarred Sumner
3adadffc0e
Fixes #2895
2023-05-16 11:43:09 -07:00
Colin McDonnell
366eba78f0
Tweaks to bundler docs ( #2867 )
...
* WIP
* Fix typo
* Updates
* Document --compile
* Add bundler benchmark
* Remove esbuild
* Add bench to docs
* Add buttons
* Updates
2023-05-16 10:47:00 -07:00
Jarred Sumner
60bc804c58
Bump
bun-v0.6.0
2023-05-16 09:31:04 -07:00
Jarred Sumner
65237b3054
Update run-cjs.test.ts
2023-05-16 08:52:14 -07:00
dave caruso
c842f5bfe3
Fix running commonjs modules as entry point ( #2885 )
...
* fix cjs run issue
* use a primordial
* fix behavior
* fix it again
* fix tste
2023-05-16 08:49:35 -07:00
Ciro Spaciari
fe74c948cd
feat(WebSocketServer) WebSocketServer wrapper + socket.io initial support ( #2880 )
...
* WebSocketServer wrapper + socket.io initial support
* fix up backpressure
* fix up backpressure
* fix http address
* add socket.io tests
* add closing tests
* add connection state recovery tests for socket.io
* add handshake test
* add middeware tests for socket.io
* added socket.io socket middleware tests
* add more socket.io test comment/skip hang tests
* add pending package for tests
* add server attachment servers for socket.io
* add utility-methods tests for socket.io
* rename
* rename
* add messaging-many socket.io tests
* add namespaces tests to socket.io
* skip some tests
* fmt
* add packages to general package.json
2023-05-16 08:48:17 -07:00
Dylan Conway
9c85483a81
handle printing missing expressions and add tests ( #2872 )
...
* handle missing expressions and add tests
* minify missing expression blocks in parser
2023-05-15 21:50:44 -07:00
dave caruso
29572737ab
bundler testing ( #2886 )
...
* bundler testing
* add requireVarThenExport test
* work towards adding more esbuild tests
* tests
* remove this file
2023-05-15 21:18:52 -07:00
dave caruso
dce4a15e69
Change the debug id suffix to hex encoded "bun!bun!" ( #2890 )
2023-05-15 21:15:32 -07:00
Colin McDonnell
a52715597a
Add plugins for yaml & RSC ( #2888 )
...
* WIP
* WIP
* Add yaml plugin
* Publish v0.0.1
* Updates
* Start RSC plugin - not finished
* Add readme
* Updates
* Add shell dirs for a few other plugins
2023-05-15 20:37:03 -07:00
Jarred Sumner
b2a750e186
remove incorrect comment
2023-05-15 10:55:35 -07:00
Jarred Sumner
dd11f02a45
[bun build] builds w/ sourcemaps get 15% faster
...
parallelize quoting source contents
2023-05-15 08:49:54 -07:00
Jarred Sumner
1088a22802
Add TODO
2023-05-15 06:33:20 -07:00
Jarred Sumner
9076a981e8
Set files with #! as executable
2023-05-15 06:31:21 -07:00
Jarred Sumner
8eaf30c022
[bun build] Automatically set target to bun when a hashbang is provided
2023-05-15 06:30:55 -07:00
Jarred Sumner
0a879be328
[bun build --compile] Avoid creating holes
2023-05-15 05:57:46 -07:00
Jarred Sumner
ddb6de2fe6
[bun build --compile] Add some retry logic for opening the files
2023-05-15 05:57:27 -07:00
Jarred Sumner
8a68f3aa71
Remove unused dockerfile
2023-05-15 05:19:24 -07:00
Jarred Sumner
386eec31ac
More error message cleanup
2023-05-15 05:17:15 -07:00
Jarred Sumner
9c19383843
Fix crash when importing a file with an unknown extension
2023-05-15 04:35:59 -07:00
Jarred Sumner
47d2e2cb19
Make bun build --compile a little more resilient, output better errors, and clean up files
2023-05-15 04:35:21 -07:00
Jarred Sumner
4d751db27a
More DCE
2023-05-15 02:36:43 -07:00
Jarred Sumner
4ec2ed4f6c
Fix broken test
2023-05-15 01:56:59 -07:00
Jarred Sumner
e7e4030299
Fix bug with req.url set incorrectly ( #2881 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-15 01:52:51 -07:00
Jarred Sumner
d3a72a1254
Set more things to const
2023-05-15 00:00:13 -07:00
Jarred Sumner
44417e9d1e
github actions doesn't like SSH submodules
2023-05-14 23:51:24 -07:00
Jarred Sumner
9acf854f5b
Workaround https://github.com/ziglang/zig/issues/15715
2023-05-14 23:38:55 -07:00
Jarred Sumner
8cce69e7c2
wip
2023-05-14 23:14:45 -07:00
Jarred Sumner
a425376c3d
Fix process.argv with standalone
2023-05-14 23:09:19 -07:00
Jarred Sumner
c367408233
a little less inline
2023-05-14 21:15:35 -07:00
Jarred Sumner
328d09129a
Fix scope chain bug
2023-05-14 20:56:06 -07:00
Ciro Spaciari
e096a03e3e
fix(spawn) add Uint8Array support for stdout ( #2866 )
...
* add array_buffer support for stdout
* fix comment
* fix param name on baby_list
* keep test names consistent
* add more test cases
2023-05-14 10:22:02 -07:00
Ciro Spaciari
bf9e40d5b4
feat(Timer.refresh) add refresh support on Timer ( #2874 )
...
* add refresh support on Timer
* fix this return
* add refresh setTimeout tests
* fix tests and add setInterval test
* use setCached for arguments and callback
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-05-14 10:18:56 -07:00
Jarred Sumner
2a66229b0f
fixup
2023-05-14 06:31:17 -07:00
Jarred Sumner
688637d835
fix flags
2023-05-14 06:30:47 -07:00
Jarred Sumner
893f70fee4
Single-file standalone Bun executables ( #2879 )
...
* Add LIEF
* Compile LIEF
* Implement support for embedding files on macOS
* proof of concept
* Add zstd
* Implement runtime support
* Move some code around
* Update .gitmodules
* Upgrade zig
https://github.com/ziglang/zig/pull/15278
* leftover
* leftover
* delete dead code
* Fix extname
* Revert "Upgrade zig"
This reverts commit dd968f30bf .
* Revert "leftover"
This reverts commit 7664de7686 .
* Revert "leftover"
This reverts commit 498005be06 .
* various fixes
* it works!
* leftover
* Make `zig build` a little faster
* give up on code signing support
* Support Linux & macOS
* Finish removing LIEF
* few more
* Add zstd to list of deps
* make it pretty
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-14 06:13:39 -07:00
dave caruso
7f25aa9e08
windows path compatibility ( #2869 )
...
* winndows path compatibility
* change * to "star" and fix import
---------
Co-authored-by: cirospaciari <ciro.spaciari@gmail.com >
2023-05-12 17:39:28 -03:00
Ciro Spaciari
f48f48795b
proper stub for sockets ( #2868 )
2023-05-12 09:27:17 -07:00
Jarred Sumner
8f3b648602
finish #2864
2023-05-12 08:53:23 -07:00
Dylan Conway
5f897589fc
disable sloppy mode block level functions when not bundling ( #2864 )
...
* enable only during bundling
* add `willUseNumberRenamer()`
2023-05-12 08:32:24 -07:00
Dylan Conway
4d5d0d075a
root bundle option (#2859 )
...
* handle multiple output files and `[dir]`
* get the realpath of `root_dir`
* duplicate output paths
* add `rootdir` to `JSBundler`
* use realpath of input file
* add tests for naming and root
---------
Co-authored-by: Dave Caruso <me@paperdave.net >
2023-05-12 07:33:07 -07:00
Jarred Sumner
c815716899
[bundler] Don't wait on sourcmaps that don't exist
2023-05-12 07:28:56 -07:00
Jarred Sumner
6f0f506e95
[bundler] De-optimize import defaultIdentifier from './foo.cjs'
2023-05-12 07:28:40 -07:00
Jarred Sumner
da10cd6010
[bundler] Empty ESM gets undefined, empty CJS gets {}
2023-05-12 07:27:53 -07:00