Dylan Conway
661355546a
zig upgrade ( #3667 )
...
* upgrade
* more fixes
* Bump Zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-18 01:20:20 -07:00
Dylan Conway
5fa13625a1
upgrade zig to v0.11.0-dev.3737+9eb008717 ( #3374 )
...
* progress
* finish `@memset/@memcpy` update
* Update build.zig
* change `@enumToInt` to `@intFromEnum` and friends
* update zig versions
* it was 1
* add link to issue
* add `compileError` reminder
* fix merge
* format
* upgrade to llvm 16
* Revert "upgrade to llvm 16"
This reverts commit cc930ceb1c .
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-21 23:38:18 -07:00
Jarred Sumner
ea47ed0ee5
Fix broken autocomplete
2023-04-19 00:01:27 -07:00
Jarred Sumner
7bd6a1f86d
Remove usages of void{} in favor of {}
...
See https://github.com/ziglang/zig/issues/15213
2023-04-09 05:39:05 -07:00
Alex Lam S.L
9b0f12883c
[install] reduce parallel HTTP requests under heavy load ( #2536 )
...
* [install] reduce parallel HTTP requests under heavy load
* make `max_simultaneous_requests` atomic
2023-04-02 22:32:19 -07:00
Dylan Conway
3f04f8d0a6
Upgrade Zig ( #2151 )
...
* fixup
* Upgrade Zig
* Remove bad assertion
* strings
* bump
* mode -> optimize
* optimize
* Linux build
* Update bindgen.zig
2023-02-23 23:57:19 -08:00
Alex Lam S.L
f0fa760479
[semver] parse ^ & ~ expressions correctly ( #1854 )
...
* [semver] parse `^` & `~` expressions correctly
* handle semver ranges correctly against build tags
2023-01-21 04:16:26 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -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
Jarred Sumner
0ce709d96a
Make new HTTP client more stable
2022-09-16 00:53:03 -07:00
Jarred SUmner
0815c83974
Improve event loop reliability on Linux
2022-08-13 06:07:18 -07:00
Jarred Sumner
780b919e26
delete this
2022-07-05 13:03:02 -07:00
Jarred Sumner
74f4c8bcab
query_string_map -> url
2022-03-17 01:27:35 -07:00
Jarred Sumner
701d6ec45d
rename _global -> bun
2022-03-08 18:54:54 -08:00
Jarred Sumner
427c39b858
Update analytics_thread.zig
2022-03-04 00:20:59 -08:00
Jarred Sumner
946404a365
[bun dev] Implement open in editor for transpiled files
2022-02-20 16:21:45 -08:00
Jarred Sumner
32733210dc
[bunfig] Implement config file format
2022-01-27 01:25:09 -08:00
Jarred SUmner
ecea12d206
No io_uring for Ubuntu 20.04
2022-01-24 19:12:58 -08:00
Jarred Sumner
28f77b9823
Update analytics_thread.zig
2022-01-23 21:14:38 -08:00
Jarred Sumner
4b717fe554
Fix crash that sometimes happens after 30 seconds
2022-01-05 16:41:58 -08:00
Jarred Sumner
0edf6fd1e4
Improve error handling when out of file handles
2022-01-04 18:29:21 -08:00
Jarred Sumner
0960f3d6d1
Implement a crash reporter and improve some error handling in bun install
2022-01-03 22:17:34 -08:00
luke miles
7f33846005
copy: replace Bun with bun ( #99 )
...
Most CLI tools have the style convention of referring to themselves in
lowercase. It is, after all, the name that users type in when using
the tool. This PR maintains that convention in bun.
"Drop the uppercase B, it's cleaner"
2022-01-02 03:09:51 -08:00
Jarred Sumner
7f1b5c09de
💅
2022-01-01 19:35:05 -08:00
Jarred SUmner
a17088363f
[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)
...
Text editors like Replit save through atomic file updates. In an inotify filesystem watcher (Linux), that appears to be a delete followed by moving the file to the directory. Now when known files are moved into a directory, the watcher sends the file change notification to the browser(s). From there, the browser looks at it's files to determine whether or not
Additionally, if an existing HMR connection does not know about a file ID passed to it, it asks the browser to reply with the file path and then starts watching that file. This improves HMR reliabiality if Bun had been restarted but the page hadn't been restarted.
2022-01-01 01:53:50 -08:00
Jarred Sumner
b1c3fce49b
[internal] Move network_thread into http package
2021-12-30 21:27:27 -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
336a4b6ac2
Prepare to run unit tests & remove some dead code ( #92 )
...
* Remove some dead code
* 💀 code
* Fix the zig tests
* [JS Printer] Print integers faster & less scientific notation on decimals
* 💀 dead code
* skip
* Run all the unit tests
2021-12-27 18:06:31 -08:00
Jarred Sumner
143973e031
Fix rare crash when new thread is created, possibly only on musl
2021-12-24 20:44:25 -08:00
Jarred Sumner
39d8b0c8c1
cleanup
2021-12-18 21:03:26 -08:00
Jarred Sumner
430fe09d6d
Delete synchronous HTTP client!
2021-12-18 20:23:10 -08:00
Jarred Sumner
b126392a8e
Fix missing symbol error for pre-macOS 11
2021-11-09 14:13:58 -08:00
Jarred Sumner
2dcb465d50
Upgrade to latest peechy
2021-10-24 16:48:47 -07:00
Jarred Sumner
4ee2fdf1c6
uname
2021-10-06 19:32:32 -07:00
Jarred Sumner
cd273daa1b
Missing @TypeOf
2021-10-06 19:31:19 -07:00
Jarred Sumner
3b10cfae80
analytics is good enough for now
2021-10-05 23:08:06 -07:00
Jarred Sumner
bd14ad9e6e
Async analytics works now
...
Requests are ~60 bytes and the thread mostly sleeps, so it should be pretty low overhead overall.
2021-10-05 17:50:05 -07:00
Jarred Sumner
dfe74cb5c4
Add BUN_DISABLE_ANALYTICS flag to disable analytics and automatically disable analytics when running inside hyperfine
2021-10-05 03:11:35 -07:00
Jarred Sumner
00e7b7c3d5
Simple analytics
2021-10-05 02:27:49 -07:00