aboutsummaryrefslogtreecommitdiff
path: root/src/watcher.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-25[fs.watch] fix reference/deinit (#3396)Gravatar Ciro Spaciari 1-8/+12
* fix js reference * fix close oops * refactor + hasPendingActivity * fmt * fix race conditions * fixup * add test calling close on error event * fix close inside close + test * cleanup
2023-06-23[feat] fs.watch (#3249)Gravatar Ciro Spaciari 1-11/+57
* initial support * add types * fix comment * fix types * bigfix up * more fixes * fix some encoding support for watch * fix rename event * fixup * fix latin1 * add fs_events, still failing some tests * fixuup * remove unecesary check * readd tests ops * this is necessary? just testing CI/CD weird errors * just use dupe here * cleanup and fix deinit * fix zig upgrade
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-7/+7
* 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 cc930ceb1c5b4db9614a7638596948f704544ab8. --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-1/+1
2023-04-09Remove usages of `void{}` in favor of `{}`Gravatar Jarred Sumner 1-1/+1
See https://github.com/ziglang/zig/issues/15213
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-2/+2
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-5/+5
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-27Update watcher.zigGravatar Jarred Sumner 1-2/+2
2023-01-27🪦Gravatar Jarred Sumner 1-1/+6
2023-01-27Add a commentGravatar Jarred Sumner 1-0/+10
2023-01-27[`[bun hot]`] More reliability improvements to macOS watcherGravatar Jarred Sumner 1-17/+46
2023-01-26More reliable `bun --hot` on LinuxGravatar Jarred SUmner 1-8/+45
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-4/+4
* @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 * :camera: * 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-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-1/+1
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-9/+6
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-1/+1
2022-04-08Update watcher.zigGravatar Jarred Sumner 1-1/+5
2022-04-08[bun dev] Fix race condition in file watcherGravatar Jarred Sumner 1-9/+31
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-15/+15
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-4/+1
2022-02-27WASMGravatar Jarred Sumner 1-4/+11
2022-01-04minor perf optimization: remove this loop on macOSGravatar Jarred Sumner 1-4/+6
2022-01-01:nail_care:Gravatar Jarred Sumner 1-15/+7
2022-01-01[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)Gravatar Jarred SUmner 1-13/+57
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-31Attempt to fix watcher issue with repl.itGravatar Jarred Sumner 1-6/+15
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-25/+32
* 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-29zig fmtGravatar Jarred Sumner 1-2/+0
2021-12-27Prepare to run unit tests & remove some dead code (#92)Gravatar Jarred Sumner 1-0/+2
* 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-6/+3
2021-11-09Fix missing symbol error for pre-macOS 11bun-v0.0.48Gravatar Jarred Sumner 1-3/+4
2021-10-03Fix various macOS-specific compile errors and run `zig fmt`Gravatar Jarred Sumner 1-21/+21
2021-10-031% perf improvements on Linuxjarred/linuxGravatar Jarred SUmner 1-33/+29
2021-10-02Linux works now.Gravatar Jarred SUmner 1-24/+71
2021-10-01Add support for INotify-based filesystem watcherGravatar Jarred Sumner 1-65/+270
2021-10-01Split out the macOS specific partsGravatar Jarred Sumner 1-67/+86
2021-09-30Support remapping macro pathsGravatar Jarred Sumner 1-1/+10
2021-09-05package.jsonGravatar Jarred Sumner 1-35/+38
Former-commit-id: 2299f44cc9092dad2ef48ea54af2555c192a723e
2021-08-26Fix unbundled importsGravatar Jarred Sumner 1-1/+2
Former-commit-id: f221da115c1afcd136648c9683d8e9907005a128
2021-08-21Fix watcher when you move files/dirs around. It'll bust the cache and ↵Gravatar Jarred Sumner 1-54/+92
recreate it (and leak memory) Former-commit-id: 8faf6127547411c1fdcee9e4e7440825f21ecd99
2021-08-20Support directories in WatcherGravatar Jarred Sumner 1-10/+178
Former-commit-id: af0813dc3c8cc93874a1903e7b4c92fc5817337a
2021-08-17alright thats the renameGravatar Jarred Sumner 1-1/+0
Former-commit-id: 0faf61249e76382dfb1aa8721249474eae920753
2021-08-10This is alotGravatar Jarred Sumner 1-3/+10
Former-commit-id: 4b2a396611ec03270dc768b70e488b0f5eee2a37
2021-08-05alright server-side reloading code worksGravatar Jarred Sumner 1-1/+2
Former-commit-id: a49ef52eec1037014e3c9cda1a09f387a01116b8
2021-07-28WIPGravatar Jarred Sumner 1-2/+4
Former-commit-id: 60cc85dc0652b34e9c7ec409f32ba635cc4b2e51
2021-07-26Fix build issuesGravatar Jarred Sumner 1-4/+3
Former-commit-id: 5164b69b57e8c11666591823c5b83435facce5c8
2021-06-18CSS HMR!Gravatar Jarred Sumner 1-4/+0
Former-commit-id: 3f10c8790629ab157d9377759cc50a4b962cc6f4
2021-06-18100x!!Gravatar Jarred Sumner 1-0/+12
Former-commit-id: e0fa2e78da8083dc590c4b1f3d016ba545261b84
2021-06-14extremely close!!!!!Gravatar Jarred Sumner 1-3/+9
Former-commit-id: 44fce3c5e800f3fb3fbc139a38f14eae9e0c0225
2021-06-12little kqueue fs watcherGravatar Jarred Sumner 1-0/+232
Former-commit-id: f93472101aa7338b3cdfc9db5c936d010f4cda82