aboutsummaryrefslogtreecommitdiff
path: root/src/cache.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-0/+13
(#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-04Rename `is_macro_mode` -> `use_alternate_source_cache`Gravatar Jarred Sumner 1-2/+2
2022-05-19Update cache.zigGravatar Jarred Sumner 1-1/+1
2022-03-31[bun dev] Improve HMR reliability when filesystem is slow or reading large filesGravatar Jarred Sumner 1-11/+28
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-12/+12
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-4/+4
2022-01-04[Bun.js][bun dev] Support macros inside of Bun.jsGravatar Jarred Sumner 1-1/+14
Closes #36
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-23/+33
* 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-21Slightly saferGravatar Jarred SUmner 1-1/+1
2021-10-23[JS Parser] Parser errors should _always_ report an error locationGravatar Jarred Sumner 1-2/+10
2021-10-15PolishGravatar Jarred Sumner 1-69/+12
2021-09-24Remove `cache_files` since it's not used and causes slower Bun compilation timesGravatar Jarred Sumner 1-287/+210
2021-09-04Fixed memory leaks, but SSR is slower. Should move cleanup & restart steps ↵Gravatar Jarred Sumner 1-6/+2
to a real idle timeout Former-commit-id: 9499ee3109cb336deb9380f0190631a30c9da51c
2021-09-02More defensive file handle reuseGravatar Jarred Sumner 1-1/+13
Former-commit-id: 5bb38e0bc75a600d9c1b744990d9e4a1b66edf42
2021-09-02latestGravatar Jarred Sumner 1-14/+16
Former-commit-id: 1086d4f894611c1171f57d9eaf82f9170e9de2d1
2021-09-02Fix UMD, fix PNPM, importing require'd modules in app codeGravatar Jarred Sumner 1-4/+4
Former-commit-id: 3d831ad95904d2123964f2ebccff48f1e9f954e9
2021-08-23Fix resolve bug with mixed-case node_modulesGravatar Jarred Sumner 1-0/+90
Former-commit-id: 5bdae0ee491e28b49ceed6136f04e0c1feddc808
2021-08-20Use the new Lock typeGravatar Jarred Sumner 1-1/+1
Former-commit-id: fcb04d39a1629047ab0a227c2992922725189ca7
2021-08-17IgnoreGravatar Jarred Sumner 1-2/+2
Former-commit-id: b2c4fce705222612b0457481657db3f42db41d1c
2021-06-27starting to workGravatar Jarred Sumner 1-4/+0
Former-commit-id: ae113559c6dd1e1e77b69ee5edee93fe59b4be2e
2021-06-12little kqueue fs watcherGravatar Jarred Sumner 1-6/+9
Former-commit-id: f93472101aa7338b3cdfc9db5c936d010f4cda82
2021-06-06Upgrade hash tableGravatar Jarred Sumner 1-3/+3
Former-commit-id: 5d208f9ea0be4e5f2a682f25b0a20a623ce61091
2021-06-06WIP node module bundlesGravatar Jarred Sumner 1-1/+32
Former-commit-id: 797b2ff557542e9d318c953b840b102695711888
2021-06-04Generate differnet versions of Bundler, Resolver, and Caches at comptime ↵Gravatar Jarred Sumner 1-167/+179
based on whether we're serving over HTTP Former-commit-id: e1a88527060e187ab21ca8890ea9bce2b999885a
2021-06-01wipGravatar Jarred Sumner 1-41/+5
Former-commit-id: a6bc130918f63bfbeac220f4e1fa55f08197e1c1
2021-05-28allGravatar Jarred Sumner 1-4/+20
Former-commit-id: 664dbf569c423280c4fb40d3114e81e0d7b9ddc3
2021-05-16lotsGravatar Jarred Sumner 1-9/+22
Former-commit-id: 9ccb4dd082afbc4f94982bf092360487232d8b60
2021-05-13bug fixes galoreGravatar Jarred Sumner 1-1/+0
Former-commit-id: 72439452918caa05a32d4e3607910901fa2f4f85
2021-05-13okayGravatar Jarred Sumner 1-3/+10
Former-commit-id: b42b239344259197238a7d9deedfe496bfa3c1a0
2021-05-13hmGravatar Jarred Sumner 1-9/+18
Former-commit-id: 28fce4aac174c7cf7a492ca4c5442d57a4f395a3
2021-05-12That's all the errors??Gravatar Jarred Sumner 1-29/+32
Former-commit-id: f9a74df73d2831bfdd8e6f1c0e5c999ea300fc0d
2021-05-12okayGravatar Jarred Sumner 1-0/+14
Former-commit-id: 2c20d88e8d0cf66b32daceb942ba9bf8514f5705
2021-05-10asdasdasdasdGravatar Jarred Sumner 1-4/+183
Former-commit-id: 2b3c0584c623486d8ab5dc838bb7ba861b4395d7
2021-05-091dayGravatar Jarred Sumner 1-0/+9
Former-commit-id: b7d8fe2f3501caa236aba343aefa1741613ca005