@solidjs/start 0.7.7 → 1.0.0-rc.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/dist/router/routes.js +2 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.jsx +0 -1
- package/package.json +9 -2
package/dist/router/routes.js
CHANGED
|
@@ -7,7 +7,7 @@ function defineRoutes(fileRoutes) {
|
|
|
7
7
|
return id.startsWith(o.id + "/");
|
|
8
8
|
});
|
|
9
9
|
if (!parentRoute) {
|
|
10
|
-
routes.push({ ...route, id, path: id.replace(/\/\([^)/]+\)/g, "").replace(
|
|
10
|
+
routes.push({ ...route, id, path: id.replace(/\/\([^)/]+\)/g, "").replace(/\([^)/]+\)/g, "") });
|
|
11
11
|
return routes;
|
|
12
12
|
}
|
|
13
13
|
processRoute(parentRoute.children || (parentRoute.children = []), route, id.slice(parentRoute.id.length), full);
|
|
@@ -38,7 +38,7 @@ const router = createRouter({
|
|
|
38
38
|
routes: fileRoutes.reduce((memo, route) => {
|
|
39
39
|
if (!containsHTTP(route))
|
|
40
40
|
return memo;
|
|
41
|
-
let path = route.path.replace(/\(
|
|
41
|
+
let path = route.path.replace(/\([^)/]+\)/g, "").replace(/\*([^/]*)/g, (_, m) => `**:${m}`);
|
|
42
42
|
if (/:[^/]*\?/g.test(path)) {
|
|
43
43
|
throw new Error(`Optional parameters are not supported in API routes: ${path}`);
|
|
44
44
|
}
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { StartServer } from "./StartServer";
|
|
2
2
|
export { createHandler } from "./handler";
|
|
3
3
|
export { getServerFunctionMeta } from "./serverFunction";
|
|
4
|
-
export
|
|
4
|
+
export type { DocumentComponentProps, Asset, HandlerOptions, ContextMatches, ResponseStub, FetchEvent, RequestEventLocals, PageEvent, APIEvent, APIHandler, ServerFunctionMeta } from "./types";
|
package/dist/server/index.jsx
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidjs/start",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://start.solidjs.com/",
|
|
8
|
+
"bugs": "https://github.com/solidjs/solid-start/issues",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/solidjs/solid-start.git",
|
|
12
|
+
"directory": "packages/start"
|
|
13
|
+
},
|
|
7
14
|
"publishConfig": {
|
|
8
15
|
"access": "public"
|
|
9
16
|
},
|
|
@@ -44,7 +51,7 @@
|
|
|
44
51
|
}
|
|
45
52
|
},
|
|
46
53
|
"devDependencies": {
|
|
47
|
-
"solid-js": "^1.8.
|
|
54
|
+
"solid-js": "^1.8.16",
|
|
48
55
|
"vinxi": "^0.3.10",
|
|
49
56
|
"typescript": "^5.4.2"
|
|
50
57
|
},
|