@solidjs/start 1.1.2 → 1.1.4

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.
@@ -10,7 +10,7 @@ function defineRoutes(fileRoutes) {
10
10
  routes.push({
11
11
  ...route,
12
12
  id,
13
- path: id.replace(/\/\([^)/]+\)/g, "").replace(/\([^)/]+\)/g, "")
13
+ path: id.replace(/\([^)/]+\)/g, "").replace(/\/+/g, "/")
14
14
  });
15
15
  return routes;
16
16
  }
@@ -48,8 +48,8 @@ const router = createRouter({
48
48
  if (!containsHTTP(route))
49
49
  return memo;
50
50
  let path = route.path
51
- .replace(/\/\([^)/]+\)/g, "")
52
51
  .replace(/\([^)/]+\)/g, "")
52
+ .replace(/\/+/g, "/")
53
53
  .replace(/\*([^/]*)/g, (_, m) => `**:${m}`)
54
54
  .split("/")
55
55
  .map(s => (s.startsWith(":") || s.startsWith("*") ? s : encodeURIComponent(s)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "vinxi": "^0.5.3"
60
60
  },
61
61
  "dependencies": {
62
- "@tanstack/server-functions-plugin": "^1.105.2",
62
+ "@tanstack/server-functions-plugin": "^1.119.2",
63
63
  "@vinxi/plugin-directives": "^0.5.0",
64
64
  "@vinxi/server-components": "^0.5.0",
65
65
  "defu": "^6.1.2",