clear-router 2.8.6 → 2.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![NPM Downloads](https://img.shields.io/npm/dt/clear-router.svg)](https://www.npmjs.com/package/clear-router)
4
4
  [![npm version](https://img.shields.io/npm/v/clear-router.svg)](https://www.npmjs.com/package/clear-router)
5
- [![License](https://img.shields.io/npm/l/clear-router.svg)](https://github.com/arkstack-tmp/clear-router/blob/main/LICENSE)
6
- [![Publish to NPM](https://github.com/arkstack-tmp/clear-router/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/arkstack-tmp/clear-router/actions/workflows/npm-publish.yml)
7
- [![Run Tests](https://github.com/arkstack-tmp/clear-router/actions/workflows/ci.yml/badge.svg)](https://github.com/arkstack-tmp/clear-router/actions/workflows/ci.yml)
5
+ [![License](https://img.shields.io/npm/l/clear-router.svg)](https://github.com/arkstack-hq/clear-router/blob/main/LICENSE)
6
+ [![Publish to NPM](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml)
7
+ [![Run Tests](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml/badge.svg)](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml)
8
8
 
9
9
  Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.
10
10
 
@@ -70,27 +70,27 @@ yarn add clear-router express
70
70
 
71
71
  ### Express JS
72
72
 
73
- See the [Express JS documentation](https://arkstack-tmp.github.io/clear-router/guide/express) for details.
73
+ See the [Express JS documentation](https://arkstack-hq.github.io/clear-router/guide/express) for details.
74
74
 
75
75
  ### H3
76
76
 
77
- See the [H3 documentation](https://arkstack-tmp.github.io/clear-router/guide/h3) for details.
77
+ See the [H3 documentation](https://arkstack-hq.github.io/clear-router/guide/h3) for details.
78
78
 
79
79
  ### Fastify
80
80
 
81
- See the [Fastify documentation](https://arkstack-tmp.github.io/clear-router/guide/fastify) for details.
81
+ See the [Fastify documentation](https://arkstack-hq.github.io/clear-router/guide/fastify) for details.
82
82
 
83
83
  ### Hono
84
84
 
85
- See the [Hono documentation](https://arkstack-tmp.github.io/clear-router/guide/hono) for details.
85
+ See the [Hono documentation](https://arkstack-hq.github.io/clear-router/guide/hono) for details.
86
86
 
87
87
  ### Koa
88
88
 
89
- See the [Koa documentation](https://arkstack-tmp.github.io/clear-router/guide/koa) for details.
89
+ See the [Koa documentation](https://arkstack-hq.github.io/clear-router/guide/koa) for details.
90
90
 
91
91
  ## API Reference
92
92
 
93
- See [API.md](https://arkstack-tmp.github.io/clear-router/api) for complete API documentation.
93
+ See [API.md](https://arkstack-hq.github.io/clear-router/api) for complete API documentation.
94
94
 
95
95
  ## Middleware Execution Order
96
96
 
@@ -115,7 +115,7 @@ npm run test:esm # Test ESM
115
115
  npm run test:ts # Test TypeScript
116
116
  ```
117
117
 
118
- See [TESTING.md](https://arkstack-tmp.github.io/clear-router/testing) for a detailed testing guide.
118
+ See [TESTING.md](https://arkstack-hq.github.io/clear-router/testing) for a detailed testing guide.
119
119
 
120
120
  ## Examples
121
121
 
@@ -146,4 +146,4 @@ MIT License © 2026 ToneFlix Technologies Limited
146
146
 
147
147
  ## Repository
148
148
 
149
- https://github.com/arkstack-tmp/clear-router
149
+ https://github.com/arkstack-hq/clear-router
@@ -7,7 +7,7 @@ require('./core/index.cjs');
7
7
  * @class clear-router ResourceRoutes
8
8
  * @description A ResourceRoutes creates a collection of resourceful routes in a single call
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var ResourceRoutes = class ResourceRoutes {
13
13
  static actions = {
@@ -9,7 +9,7 @@ import { ResourceRouteSelection } from "./ResourceRouteSelection.cjs";
9
9
  * @class clear-router ResourceRoutes
10
10
  * @description A ResourceRoutes creates a collection of resourceful routes in a single call
11
11
  * @author 3m1n3nc3
12
- * @repository https://github.com/arkstack-tmp/clear-router
12
+ * @repository https://github.com/arkstack-hq/clear-router
13
13
  */
14
14
  declare class ResourceRoutes<X = any, M = Middleware$1 | Middleware, H = any> {
15
15
  readonly basePath: string;
@@ -9,7 +9,7 @@ import { ResourceRouteSelection } from "./ResourceRouteSelection.mjs";
9
9
  * @class clear-router ResourceRoutes
10
10
  * @description A ResourceRoutes creates a collection of resourceful routes in a single call
11
11
  * @author 3m1n3nc3
12
- * @repository https://github.com/arkstack-tmp/clear-router
12
+ * @repository https://github.com/arkstack-hq/clear-router
13
13
  */
14
14
  declare class ResourceRoutes<X = any, M = Middleware$1 | Middleware, H = any> {
15
15
  readonly basePath: string;
@@ -7,7 +7,7 @@ import "./core/index.mjs";
7
7
  * @class clear-router ResourceRoutes
8
8
  * @description A ResourceRoutes creates a collection of resourceful routes in a single call
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var ResourceRoutes = class ResourceRoutes {
13
13
  static actions = {
package/dist/Route.cjs CHANGED
@@ -4,7 +4,7 @@
4
4
  * @class clear-router Route
5
5
  * @description A route describes a single enpoint on clear-router
6
6
  * @author 3m1n3nc3
7
- * @repository https://github.com/arkstack-tmp/clear-router
7
+ * @repository https://github.com/arkstack-hq/clear-router
8
8
  */
9
9
  var Route = class {
10
10
  ctx;
package/dist/Route.d.cts CHANGED
@@ -9,7 +9,7 @@ import { HttpMethod, RequestData } from "./types/basic.cjs";
9
9
  * @class clear-router Route
10
10
  * @description A route describes a single enpoint on clear-router
11
11
  * @author 3m1n3nc3
12
- * @repository https://github.com/arkstack-tmp/clear-router
12
+ * @repository https://github.com/arkstack-hq/clear-router
13
13
  */
14
14
  declare class Route<X = any, M = Middleware$1 | Middleware, H = any> {
15
15
  ctx: X;
package/dist/Route.d.mts CHANGED
@@ -9,7 +9,7 @@ import { HttpMethod, RequestData } from "./types/basic.mjs";
9
9
  * @class clear-router Route
10
10
  * @description A route describes a single enpoint on clear-router
11
11
  * @author 3m1n3nc3
12
- * @repository https://github.com/arkstack-tmp/clear-router
12
+ * @repository https://github.com/arkstack-hq/clear-router
13
13
  */
14
14
  declare class Route<X = any, M = Middleware$1 | Middleware, H = any> {
15
15
  ctx: X;
package/dist/Route.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * @class clear-router Route
4
4
  * @description A route describes a single enpoint on clear-router
5
5
  * @author 3m1n3nc3
6
- * @repository https://github.com/arkstack-tmp/clear-router
6
+ * @repository https://github.com/arkstack-hq/clear-router
7
7
  */
8
8
  var Route = class {
9
9
  ctx;
@@ -7,7 +7,7 @@ let node_fs_promises = require("node:fs/promises");
7
7
  * @class clear-router RouteGroup
8
8
  * @description A route group describes a collection of routes on clear-router
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var RouteGroup = class {
13
13
  checks = [];
@@ -7,7 +7,7 @@ import { RouteGroupCondition, RouteGroupOptions, RouteGroupSource } from "./type
7
7
  * @class clear-router RouteGroup
8
8
  * @description A route group describes a collection of routes on clear-router
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  declare class RouteGroup<X = any, M = Middleware$1 | Middleware, H = any, S extends RouteGroupSource = RouteGroupSource> implements PromiseLike<void> {
13
13
  private readonly options;
@@ -7,7 +7,7 @@ import { RouteGroupCondition, RouteGroupOptions, RouteGroupSource } from "./type
7
7
  * @class clear-router RouteGroup
8
8
  * @description A route group describes a collection of routes on clear-router
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  declare class RouteGroup<X = any, M = Middleware$1 | Middleware, H = any, S extends RouteGroupSource = RouteGroupSource> implements PromiseLike<void> {
13
13
  private readonly options;
@@ -7,7 +7,7 @@ import { readdir, stat } from "node:fs/promises";
7
7
  * @class clear-router RouteGroup
8
8
  * @description A route group describes a collection of routes on clear-router
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var RouteGroup = class {
13
13
  checks = [];
@@ -12,7 +12,7 @@ let node_module = require("node:module");
12
12
  * @class clear-router CoreRouter
13
13
  * @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
14
14
  * @author 3m1n3nc3
15
- * @repository https://github.com/arkstack-tmp/clear-router
15
+ * @repository https://github.com/arkstack-hq/clear-router
16
16
  */
17
17
  var CoreRouter = class {
18
18
  static routerStateNamespace = "clear-router:core";
@@ -13,7 +13,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
13
13
  * @class clear-router CoreRouter
14
14
  * @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
15
15
  * @author 3m1n3nc3
16
- * @repository https://github.com/arkstack-tmp/clear-router
16
+ * @repository https://github.com/arkstack-hq/clear-router
17
17
  */
18
18
  declare abstract class CoreRouter {
19
19
  protected static routerStateNamespace: string;
@@ -13,7 +13,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
13
13
  * @class clear-router CoreRouter
14
14
  * @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
15
15
  * @author 3m1n3nc3
16
- * @repository https://github.com/arkstack-tmp/clear-router
16
+ * @repository https://github.com/arkstack-hq/clear-router
17
17
  */
18
18
  declare abstract class CoreRouter {
19
19
  protected static routerStateNamespace: string;
@@ -12,7 +12,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
12
12
  * @class clear-router CoreRouter
13
13
  * @description Core routing logic for clear-router, shared between all supported adapters (Express.js, H3, etc.)
14
14
  * @author 3m1n3nc3
15
- * @repository https://github.com/arkstack-tmp/clear-router
15
+ * @repository https://github.com/arkstack-hq/clear-router
16
16
  */
17
17
  var CoreRouter = class {
18
18
  static routerStateNamespace = "clear-router:core";
@@ -1,2 +1,3 @@
1
1
  import { Bind, BindDecorator, BindFactory, BindToken, BindValue, Container } from "../core/bindings.mjs";
2
+ import "reflect-metadata";
2
3
  export { Bind, BindDecorator, BindFactory, BindToken, BindValue, Container };
@@ -7,7 +7,7 @@ const require_responses = require('../core/responses.cjs');
7
7
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
8
8
  * @author Refkinscallv
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var Router = class Router extends require_CoreRouter.CoreRouter {
13
13
  static routerStateNamespace = "clear-router:express";
@@ -12,7 +12,7 @@ import { Router } from "express";
12
12
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
13
13
  * @author Refkinscallv
14
14
  * @author 3m1n3nc3
15
- * @repository https://github.com/arkstack-tmp/clear-router
15
+ * @repository https://github.com/arkstack-hq/clear-router
16
16
  */
17
17
  declare class Router$1 extends CoreRouter {
18
18
  protected static routerStateNamespace: string;
@@ -12,7 +12,7 @@ import { Router } from "express";
12
12
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
13
13
  * @author Refkinscallv
14
14
  * @author 3m1n3nc3
15
- * @repository https://github.com/arkstack-tmp/clear-router
15
+ * @repository https://github.com/arkstack-hq/clear-router
16
16
  */
17
17
  declare class Router$1 extends CoreRouter {
18
18
  protected static routerStateNamespace: string;
@@ -7,7 +7,7 @@ import { isFetchResponse, resolveResponseMeta, responseWasSent } from "../core/r
7
7
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
8
8
  * @author Refkinscallv
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var Router = class Router extends CoreRouter {
13
13
  static routerStateNamespace = "clear-router:express";
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
6
6
  * @class clear-router Fastify Router
7
7
  * @description Laravel-style routing system for Fastify using shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends require_CoreRouter.CoreRouter {
12
12
  static routerStateNamespace = "clear-router:fastify";
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
10
10
  * @class clear-router Fastify Router
11
11
  * @description Laravel-style routing system for Fastify using shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
10
10
  * @class clear-router Fastify Router
11
11
  * @description Laravel-style routing system for Fastify using shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -6,7 +6,7 @@ import { isFetchResponse, resolveResponseMeta, responseWasSent } from "../core/r
6
6
  * @class clear-router Fastify Router
7
7
  * @description Laravel-style routing system for Fastify using shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends CoreRouter {
12
12
  static routerStateNamespace = "clear-router:fastify";
@@ -7,7 +7,7 @@ let h3 = require("h3");
7
7
  * @class clear-router H3 Router
8
8
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var Router = class Router extends require_CoreRouter.CoreRouter {
13
13
  static routerStateNamespace = "clear-router:h3";
@@ -11,7 +11,7 @@ import { H3 } from "h3";
11
11
  * @class clear-router H3 Router
12
12
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
13
13
  * @author 3m1n3nc3
14
- * @repository https://github.com/arkstack-tmp/clear-router
14
+ * @repository https://github.com/arkstack-hq/clear-router
15
15
  */
16
16
  declare class Router extends CoreRouter {
17
17
  protected static routerStateNamespace: string;
@@ -11,7 +11,7 @@ import { H3 } from "h3";
11
11
  * @class clear-router H3 Router
12
12
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
13
13
  * @author 3m1n3nc3
14
- * @repository https://github.com/arkstack-tmp/clear-router
14
+ * @repository https://github.com/arkstack-hq/clear-router
15
15
  */
16
16
  declare class Router extends CoreRouter {
17
17
  protected static routerStateNamespace: string;
@@ -7,7 +7,7 @@ import { HTTPResponse, getQuery, getRouterParams, readBody } from "h3";
7
7
  * @class clear-router H3 Router
8
8
  * @description Laravel-style routing system for Express.js and H3 with support for CommonJS, ESM, and TypeScript
9
9
  * @author 3m1n3nc3
10
- * @repository https://github.com/arkstack-tmp/clear-router
10
+ * @repository https://github.com/arkstack-hq/clear-router
11
11
  */
12
12
  var Router = class Router extends CoreRouter {
13
13
  static routerStateNamespace = "clear-router:h3";
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
6
6
  * @class clear-router Hono Router
7
7
  * @description Laravel-style routing system for Hono using shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends require_CoreRouter.CoreRouter {
12
12
  static routerStateNamespace = "clear-router:hono";
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
10
10
  * @class clear-router Hono Router
11
11
  * @description Laravel-style routing system for Hono using shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
10
10
  * @class clear-router Hono Router
11
11
  * @description Laravel-style routing system for Hono using shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -6,7 +6,7 @@ import { resolveResponseMeta } from "../core/responses.mjs";
6
6
  * @class clear-router Hono Router
7
7
  * @description Laravel-style routing system for Hono using shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends CoreRouter {
12
12
  static routerStateNamespace = "clear-router:hono";
@@ -6,7 +6,7 @@ const require_responses = require('../core/responses.cjs');
6
6
  * @class clear-router Koa Router
7
7
  * @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends require_CoreRouter.CoreRouter {
12
12
  static routerStateNamespace = "clear-router:koa";
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.cjs";
10
10
  * @class clear-router Koa Router
11
11
  * @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -10,7 +10,7 @@ import { CoreRouter } from "../core/CoreRouter.mjs";
10
10
  * @class clear-router Koa Router
11
11
  * @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
12
12
  * @author 3m1n3nc3
13
- * @repository https://github.com/arkstack-tmp/clear-router
13
+ * @repository https://github.com/arkstack-hq/clear-router
14
14
  */
15
15
  declare class Router extends CoreRouter {
16
16
  protected static routerStateNamespace: string;
@@ -6,7 +6,7 @@ import { isFetchResponse, resolveResponseMeta } from "../core/responses.mjs";
6
6
  * @class clear-router Koa Router
7
7
  * @description Laravel-style routing system for Koa using @koa/router and shared clear-router core
8
8
  * @author 3m1n3nc3
9
- * @repository https://github.com/arkstack-tmp/clear-router
9
+ * @repository https://github.com/arkstack-hq/clear-router
10
10
  */
11
11
  var Router = class Router extends CoreRouter {
12
12
  static routerStateNamespace = "clear-router:koa";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.",
5
5
  "keywords": [
6
6
  "h3",
@@ -17,13 +17,13 @@
17
17
  "commonjs",
18
18
  "h3ravel"
19
19
  ],
20
- "homepage": "https://arkstack-tmp.github.io/clear-router",
20
+ "homepage": "https://arkstack-hq.github.io/clear-router",
21
21
  "bugs": {
22
- "url": "https://github.com/arkstack-tmp/clear-router/issues"
22
+ "url": "https://github.com/arkstack-hq/clear-router/issues"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/arkstack-tmp/clear-router.git"
26
+ "url": "git+https://github.com/arkstack-hq/clear-router.git"
27
27
  },
28
28
  "license": "MIT",
29
29
  "author": "3m1n1nce <3m1n1nce@toneflix.net>",