@fastify/react 0.2.0-rc.1 → 0.3.0
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/index.js +3 -1
- package/package.json +2 -6
package/index.js
CHANGED
|
@@ -143,7 +143,9 @@ export function createRoute ({ client, handler, errorHandler, route }, scope, co
|
|
|
143
143
|
// Extend with route context initialization module
|
|
144
144
|
RouteContext.extend(client.context)
|
|
145
145
|
|
|
146
|
-
scope.
|
|
146
|
+
scope.route({
|
|
147
|
+
url: route.path,
|
|
148
|
+
method: ['GET', 'POST', 'PUT', 'DELETE'],
|
|
147
149
|
onRequest,
|
|
148
150
|
// If either getData or onEnter are provided,
|
|
149
151
|
// make sure they run before the SSR route handler
|
package/package.json
CHANGED
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
"main": "index.js",
|
|
4
4
|
"name": "@fastify/react",
|
|
5
5
|
"description": "The official @fastify/vite renderer for React",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.3.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"virtual/create.jsx",
|
|
9
|
-
"virtual/create.tsx",
|
|
10
9
|
"virtual/root.jsx",
|
|
11
|
-
"virtual/root.tsx",
|
|
12
10
|
"virtual/layouts.js",
|
|
13
11
|
"virtual/layouts/default.jsx",
|
|
14
12
|
"virtual/context.js",
|
|
15
|
-
"virtual/context.ts",
|
|
16
13
|
"virtual/mount.js",
|
|
17
|
-
"virtual/mount.ts",
|
|
18
14
|
"virtual/resource.js",
|
|
19
15
|
"virtual/core.jsx",
|
|
20
16
|
"virtual/routes.js",
|
|
@@ -49,7 +45,7 @@
|
|
|
49
45
|
"eslint-plugin-react": "latest"
|
|
50
46
|
},
|
|
51
47
|
"peerDependencies": {
|
|
52
|
-
"@fastify/vite": "^5.0.
|
|
48
|
+
"@fastify/vite": "^5.0.5"
|
|
53
49
|
},
|
|
54
50
|
"publishConfig": {
|
|
55
51
|
"access": "public"
|