aboutsummaryrefslogtreecommitdiff
path: root/src/analytics/analytics_thread.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-4/+4
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-0/+2
(#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-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-1/+1
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-1/+1
2022-07-05delete thisGravatar Jarred Sumner 1-37/+3
2022-03-17query_string_map -> urlGravatar Jarred Sumner 1-1/+1
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-12/+12
2022-03-04Update analytics_thread.zigGravatar Jarred Sumner 1-2/+2
2022-02-20[bun dev] Implement open in editor for transpiled filesGravatar Jarred Sumner 1-0/+1
2022-01-27[bunfig] Implement config file formatGravatar Jarred Sumner 1-0/+2
2022-01-24No io_uring for Ubuntu 20.04Gravatar Jarred SUmner 1-2/+20
2022-01-23Update analytics_thread.zigGravatar Jarred Sumner 1-0/+8
2022-01-05Fix crash that sometimes happens after 30 secondsGravatar Jarred Sumner 1-1/+4
2022-01-04Improve error handling when out of file handlesGravatar Jarred Sumner 1-1/+4
2022-01-03Implement a crash reporter and improve some error handling in `bun install`Gravatar Jarred Sumner 1-0/+35
2022-01-02copy: replace Bun with bun (#99)Gravatar luke miles 1-1/+1
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-01:nail_care:Gravatar Jarred Sumner 1-2/+1
2022-01-01[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)Gravatar Jarred SUmner 1-7/+8
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.
2021-12-30[internal] Move network_thread into http packageGravatar Jarred Sumner 1-1/+1
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-11/+20
* 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 * :camera: * 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-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-2/+5
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
2021-12-24Fix rare crash when new thread is created, possibly only on muslGravatar Jarred Sumner 1-2/+1
2021-12-18cleanupGravatar Jarred Sumner 1-1/+1
2021-12-18Delete synchronous HTTP client!Gravatar Jarred Sumner 1-19/+27
2021-11-09Fix missing symbol error for pre-macOS 11bun-v0.0.48Gravatar Jarred Sumner 1-2/+3
2021-10-06unamebun-v0.0.34Gravatar Jarred Sumner 1-3/+3
2021-10-06Missing `@TypeOf`Gravatar Jarred Sumner 1-1/+1
2021-10-05analytics is good enough for nowGravatar Jarred Sumner 1-0/+157
2021-10-05Async analytics works nowGravatar Jarred Sumner 1-18/+44
Requests are ~60 bytes and the thread mostly sleeps, so it should be pretty low overhead overall.
2021-10-05Add `BUN_DISABLE_ANALYTICS` flag to disable analytics and automatically ↵Gravatar Jarred Sumner 1-2/+9
disable analytics when running inside `hyperfine`
2021-10-05Simple analyticsGravatar Jarred Sumner 1-0/+341