Skip to content

Commit

Permalink
Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiMonads committed Feb 3, 2023
1 parent ee4d40b commit 54a21c4
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 519 deletions.
23 changes: 5 additions & 18 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# Endofunctor

Do you have any ideas? Go to discussions and tell me what you need


| in-progress | next |
|---------- |---------- |
| Coverage | Documentation |
| Debugging | |


Alpha

## About

Expand All @@ -21,6 +13,7 @@ Endofunctor is:
- Functional

## Benchmark

Faster than Hono / [Endofunctor vs. Hono](https://github.com/mimiMonads/hono-functor-benchmark)


Expand Down Expand Up @@ -54,7 +47,7 @@ await serve(
## Add parameters, a query, a status, or a header!

```typescript
// the router auto-detect if you are using (parameters, querries, or Request ) unless you send the arguments out of the scope
// the router auto-detect if you are using (parameters, queries, or Request ) unless you send the arguments out of the scope
// r: (arguments) => outOfScope(arguments),
// you can add or remove them with "add", "delete"

Expand All @@ -76,19 +69,13 @@ await serve(

## Parameters

Parameters must be chained, without gaps.

```typescript
// valid (It is important to note that the following routes are different)

"/hello/:id"
"/hello/:id/"
"/hello/:id/:page/:time"
"/hello/:id/:page/:time/"

// invalid
"/hello/:id/page/:time"
"/hello/:id/page/:time/"

"/hi/:id/page/:time"

```

Expand Down
48 changes: 0 additions & 48 deletions builder/arraySwap.ts

This file was deleted.

2 changes: 1 addition & 1 deletion components/util/badMethod.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export default (_: Request) =>
((re) => re)(new Response(" Method Not Allowed ", { status: 405 }));
((re) => re)(new Response("Method Not Allowed", { status: 405 }));
2 changes: 1 addition & 1 deletion fun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { funRouterOptions } from "./types.ts";
import { ObjectRawResponse } from "./optimizer/types.ts";
import optimizer from "./optimizer/optimize.ts";
import atlas from "./builder/atlas.ts";
import arraySwap from "./builder/arraySwap.ts";


import solver from "./builder/solver.ts";
import split from "./builder/atlas/split.ts";
Expand Down
2 changes: 0 additions & 2 deletions optimizer/staticFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { funRouterOptions } from "../types.ts";
import { ObjectRawResponseStatic } from "./types.ts";
import syncCheckDir from "./syncCheckDir.ts";
import atlas from "../builder/atlas.ts";
import arraySwap from "../builder/arraySwap.ts";
import resolver from "../builder/resolver.ts";
import staticPaths from "./staticPaths.ts";
import mime from "../components/util/mime.ts";

Expand Down
79 changes: 0 additions & 79 deletions test/builder/arraySwap.test.ts

This file was deleted.

57 changes: 0 additions & 57 deletions test/builder/atlas.test.ts

This file was deleted.

2 changes: 0 additions & 2 deletions test/builder/atlas/split.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { assertEquals } from "https://deno.land/std@0.160.0/testing/asserts.ts";
import arraySwap from "../../../builder/arraySwap.ts";
import paths from "../../util/paths.ts";
import optimize from "../../../optimizer/optimize.ts";
import { funRouterOptions } from "../../../types.ts";
import split from "../../../builder/atlas/split.ts"

Deno.test(
Expand Down
2 changes: 1 addition & 1 deletion test/builder/composer/specialString.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Deno.test(
specialString({hasName: "http://localhost:8080/"})(12)([
["GET","/",_ => new Response(),false]
])("http://localhost:8080/"),
null
10
)
)
32 changes: 0 additions & 32 deletions test/builder/resolver.test.ts

This file was deleted.

2 changes: 0 additions & 2 deletions test/builder/sComposer.test.ts

This file was deleted.

19 changes: 0 additions & 19 deletions test/builder/sResolver.test.ts

This file was deleted.

Loading

0 comments on commit 54a21c4

Please sign in to comment.