aboutsummaryrefslogtreecommitdiff
path: root/src/router.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-18zig upgrade (#3667)Gravatar Dylan Conway 1-11/+11
* upgrade * more fixes * Bump Zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-21upgrade zig to `v0.11.0-dev.3737+9eb008717` (#3374)Gravatar Dylan Conway 1-16/+16
* 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-05-08Fix bug in Bun.build() where it wouldn't pick up changes to directories on ↵Gravatar Jarred Sumner 1-1/+1
rebuilds (#2824) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-28bundler tests: rest of default.test.ts and starting jsx tests (#2765)Gravatar dave caruso 1-2/+2
2023-04-22Make `Bun.build` more reliable (#2718)Gravatar Jarred Sumner 1-2/+2
* One possible implementation to make `Bun.build` work better * Pass allocator in * Make our temporary buffers a little safer * rename * Fix memory corruption in symbol table * Add support for deferred idle events in ThreadPool * Free more memory * Use a global allocator FS cache * more `inline` * Make duping keys optional in StringMap * Close file handles more often * Update router.zig * wip possibly delete this commit * Fix memory issues and reduce memory usage * > 0.8 * Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask * We don't need to clone this actually * Fix error * Format * Fixup * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-04-19Fix broken autocompleteGravatar Jarred Sumner 1-2/+2
2023-02-24prefer `bun.copy()` over `std.mem.copy()` (#2152)Gravatar Alex Lam S.L 1-7/+3
2023-02-23Upgrade Zig (#2151)Gravatar Dylan Conway 1-3/+4
* fixup * Upgrade Zig * Remove bad assertion * strings * bump * mode -> optimize * optimize * Linux build * Update bindgen.zig
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 1-1/+1
2023-01-13move more thingsGravatar Jarred SUmner 1-2/+2
2023-01-10 use `strings.hasPrefixComptime()` (#1755)Gravatar Alex Lam S.L 1-2/+2
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-12/+12
* @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-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-6/+6
2022-12-01[bun bun] Fix incorrect package.hashGravatar Jarred Sumner 1-8/+30
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-2/+2
2022-11-22Introduce `Bun.FileSystemRouter` APIGravatar Jarred Sumner 1-14/+28
2022-08-17New Zig <> C++ bindings generator. +20% faster HTTP serverGravatar Jarred Sumner 1-2/+2
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-1/+1
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-1/+1
2022-03-17move some code aroundGravatar Jarred Sumner 1-1/+1
2022-03-14Switch to std.HashMap for DirEntry storeGravatar Jarred Sumner 1-1/+1
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-15/+15
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-1/+1
2022-02-27WASMGravatar Jarred Sumner 1-2/+2
2022-02-21Wrap some usages of `assert` in a conditionalGravatar Jarred Sumner 1-2/+2
See https://github.com/ziglang/zig/issues/10942
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-30/+30
* 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-326/+327
* 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-11-16[router] Improve test coverage & handle case-sensitive static routes betterGravatar Jarred Sumner 1-3/+140
2021-11-16[router] Fix case sensitivity bug with route paramsGravatar Jarred Sumner 1-2/+2
2021-11-16[router] Tweak sorting order & update routing testsGravatar Jarred Sumner 1-20/+58
2021-11-16[router] Update router testsGravatar Jarred Sumner 1-75/+84
2021-11-16[router] Fix bug with dynamic route params for route segments in the middleGravatar Jarred Sumner 1-1/+1
2021-11-16[router] small cleanupGravatar Jarred Sumner 1-5/+7
2021-11-16[router] Fix edgecase with trailing slashes in directory pathGravatar Jarred Sumner 1-1/+3
2021-10-25[router] Don't log the route names since that's not necessary anymorejarred/rewrite-routerGravatar Jarred Sumner 1-1/+0
2021-10-20Fix index + static routeGravatar Jarred Sumner 1-2/+4
2021-10-20rewrote most of the routerGravatar Jarred Sumner 1-1254/+984
2021-10-18Starting to rewrite the router to fix some bugs and support catch-all + ↵Gravatar Jarred Sumner 1-127/+1096
optional routes
2021-10-14Update router.zigGravatar Jarred Sumner 1-0/+212
2021-09-23Fix crash when loading JS fails really quicklyGravatar Jarred Sumner 1-1/+1
2021-09-20Fix handling when file metadata store stored exceeds statically allocated ↵Gravatar Jarred Sumner 1-41/+37
count (at time of writing, 16k)
2021-09-08upgradeGravatar Jarred Sumner 1-1/+1
2021-08-31Add display name field to frameworks, improve logging, add counters, addGravatar Jarred Sumner 1-10/+16
Former-commit-id: b2cf011b6c6405a786fe22367e1cd4e6c2c4c90f
2021-08-31Fallback, fragments, printer compat, better errorsGravatar Jarred Sumner 1-1/+1
Former-commit-id: 486e8c9d460eeebea024e96dbabcb7f2bfaffafb
2021-08-23Fix resolve bug with mixed-case node_modulesGravatar Jarred Sumner 1-3/+4
Former-commit-id: 5bdae0ee491e28b49ceed6136f04e0c1feddc808
2021-08-21Fix watcher when you move files/dirs around. It'll bust the cache and ↵Gravatar Jarred Sumner 1-17/+17
recreate it (and leak memory) Former-commit-id: 8faf6127547411c1fdcee9e4e7440825f21ecd99
2021-08-19Log level + onimportcssGravatar Jarred Sumner 1-2/+12
Former-commit-id: 12ba9b9bc288573e3a5099adfa14c486c4cc980c
2021-08-17log error on respondWith rejection,Gravatar Jarred Sumner 1-3/+3
Former-commit-id: 8f6312a17dc9811d54e4dc31d9ada68e98bae891
2021-08-14lotsGravatar Jarred Sumner 1-4/+19
Former-commit-id: 0b8128cb3b4db02f9d33331b4c2c1b595156e6c8
2021-08-11client-side entry point works and also generates a correct url on the serverGravatar Jarred Sumner 1-1/+10
Former-commit-id: 272e52f55e44e998b9238e4173de37bfc6a05a94