nextrush 4.0.0-beta.0 → 4.0.0-beta.2
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/dist/nextjs.d.ts +1 -0
- package/dist/nextjs.js +8 -0
- package/dist/nextjs.js.map +1 -0
- package/package.json +23 -14
package/dist/nextjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppSource, NextHandlerOptions, NextRouteContext, NextRouteHandler, NextRouteHandlers, NextRouteParams, handle } from '@nextrush/adapter-nextjs';
|
package/dist/nextjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/nextjs.ts"],"sourcesContent":["/**\n * NextRush Next.js Adapter — mount a NextRush app in a Next.js App Router\n * route handler\n *\n * Import from `nextrush/nextjs` when building an API route inside a Next.js\n * (App Router) project. This entry is a plain re-export — unlike\n * `nextrush/class`, `@nextrush/adapter-nextjs` never imports `next` at module\n * scope (its one `next/server` import, resolving `after()`, is deferred to\n * the first request), so no dynamic-import peer guard is needed here.\n *\n * @packageDocumentation\n * @module nextrush/nextjs\n *\n * @example\n * ```typescript\n * // app/api/[[...route]]/route.ts\n * import { createApp, createRouter } from 'nextrush';\n * import { handle } from 'nextrush/nextjs';\n *\n * const app = createApp();\n * const api = createRouter();\n * api.get('/hello', (ctx) => ctx.json({ message: 'Hello Next.js!' }));\n * app.route('/api', api);\n *\n * export const { GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS } = handle(app);\n * ```\n */\n\nexport { handle } from '@nextrush/adapter-nextjs';\nexport type {\n AppSource,\n NextHandlerOptions,\n NextRouteContext,\n NextRouteHandler,\n NextRouteHandlers,\n NextRouteParams,\n} from '@nextrush/adapter-nextjs';\n"],"mappings":";;;AA4BA,SAASA,cAAc;","names":["handle"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextrush",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "Minimal, modular, blazing fast Node.js framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"./class": {
|
|
15
15
|
"types": "./dist/class.d.ts",
|
|
16
16
|
"import": "./dist/class.js"
|
|
17
|
+
},
|
|
18
|
+
"./nextjs": {
|
|
19
|
+
"types": "./dist/nextjs.d.ts",
|
|
20
|
+
"import": "./dist/nextjs.js"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
"files": [
|
|
@@ -62,18 +66,22 @@
|
|
|
62
66
|
"./dist/class.js"
|
|
63
67
|
],
|
|
64
68
|
"dependencies": {
|
|
65
|
-
"@nextrush/adapter-node": "4.0.0-beta.
|
|
66
|
-
"@nextrush/core": "4.0.0-beta.
|
|
67
|
-
"@nextrush/errors": "4.0.0-beta.
|
|
68
|
-
"@nextrush/router": "4.0.0-beta.
|
|
69
|
-
"@nextrush/types": "4.0.0-beta.
|
|
69
|
+
"@nextrush/adapter-node": "4.0.0-beta.2",
|
|
70
|
+
"@nextrush/core": "4.0.0-beta.2",
|
|
71
|
+
"@nextrush/errors": "4.0.0-beta.2",
|
|
72
|
+
"@nextrush/router": "4.0.0-beta.2",
|
|
73
|
+
"@nextrush/types": "4.0.0-beta.2"
|
|
70
74
|
},
|
|
71
75
|
"peerDependencies": {
|
|
72
76
|
"reflect-metadata": "^0.2.2",
|
|
73
|
-
"@nextrush/
|
|
74
|
-
"@nextrush/
|
|
77
|
+
"@nextrush/adapter-nextjs": "1.0.0-beta.1",
|
|
78
|
+
"@nextrush/class": "1.0.0-beta.2",
|
|
79
|
+
"@nextrush/di": "4.0.0-beta.2"
|
|
75
80
|
},
|
|
76
81
|
"peerDependenciesMeta": {
|
|
82
|
+
"@nextrush/adapter-nextjs": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
77
85
|
"@nextrush/class": {
|
|
78
86
|
"optional": true
|
|
79
87
|
},
|
|
@@ -89,12 +97,13 @@
|
|
|
89
97
|
"tsup": "^8.5.1",
|
|
90
98
|
"typescript": "^6.0.3",
|
|
91
99
|
"vitest": "^4.1.10",
|
|
92
|
-
"@nextrush/
|
|
93
|
-
"@nextrush/
|
|
94
|
-
"@nextrush/class": "1.0.0-beta.
|
|
95
|
-
"@nextrush/
|
|
96
|
-
"@nextrush/
|
|
97
|
-
"@nextrush/
|
|
100
|
+
"@nextrush/adapter-nextjs": "1.0.0-beta.1",
|
|
101
|
+
"@nextrush/body-parser": "4.0.0-beta.1",
|
|
102
|
+
"@nextrush/class": "1.0.0-beta.2",
|
|
103
|
+
"@nextrush/compression": "3.0.6-beta.0",
|
|
104
|
+
"@nextrush/cors": "4.0.0-beta.1",
|
|
105
|
+
"@nextrush/di": "4.0.0-beta.2",
|
|
106
|
+
"@nextrush/helmet": "4.0.0-beta.1"
|
|
98
107
|
},
|
|
99
108
|
"scripts": {
|
|
100
109
|
"build": "tsup",
|