aboutsummaryrefslogtreecommitdiff
path: root/src/router.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2021-08-09Split up + generate client & server bundles, support framework +router in ↵Gravatar Jarred Sumner 1-0/+1
GenerateNodeModulesBundle , read framework from package.json + rename "publicURL" to "origin" + add import.meta.filepath Former-commit-id: 1e76ebb5375247231181ec19a6396c6acf4684fb
2021-08-07getImportedStyles hookGravatar Jarred Sumner 1-6/+7
Former-commit-id: 730eb465fb23bcfa23842f293712cfc2cf51d363
2021-08-07SSR!Gravatar Jarred Sumner 1-2/+12
Former-commit-id: bbc23b382c2eec15436fad632f5efe06e8e8360d
2021-08-07Clean up logic for choosing when to use filesystem router or public dirGravatar Jarred Sumner 1-6/+11
Former-commit-id: 84bb17d9e0dd6e31995afb7b2f49436187fc9f76
2021-08-07Dynamic routes resolve! Just gotta pass query params to the JS correctlyGravatar Jarred Sumner 1-54/+59
Former-commit-id: 2c4d3184a4f06ba9dd7d27d653834589796ebd0f
2021-08-05router almost worksGravatar Jarred Sumner 1-21/+69
Former-commit-id: a8b9d27bd0946f9c48bd8e4b5b5c2031aa434f28
2021-07-18WIP bindingsGravatar Jarred Sumner 1-28/+30
Former-commit-id: 74e75d692550c3bd0071f5f9215b0dfe5454d28e
2021-07-13alrightGravatar Jarred Sumner 1-0/+644
Former-commit-id: ab73c7b323c222e5d1172c07036653ca98aa8e6b