fimo 0.3.5 → 0.3.6

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "bundled": true,
3
3
  "bundler": "esbuild",
4
- "bundledAt": "2026-07-07T13:12:48.433Z",
5
- "cliVersion": "0.3.5",
4
+ "bundledAt": "2026-07-08T08:54:28.669Z",
5
+ "cliVersion": "0.3.6",
6
6
  "external": [
7
7
  "oxc-parser",
8
8
  "fsevents"
@@ -7,9 +7,24 @@ export interface FimoReactRouterRoute {
7
7
  children?: FimoReactRouterRoute[];
8
8
  [key: string]: unknown;
9
9
  }
10
+ /**
11
+ * Structural minimum a route entry must satisfy. Deliberately WITHOUT an
12
+ * index signature so framework types like React Router's `RouteConfigEntry`
13
+ * (which has none) remain assignable, and generic so callers get their own
14
+ * entry type back — `fimoRoutes(routes) satisfies RouteConfig` must keep
15
+ * compiling in project code.
16
+ */
17
+ interface FimoRouteShape {
18
+ id?: string;
19
+ path?: string;
20
+ file?: string;
21
+ index?: boolean;
22
+ children?: FimoRouteShape[];
23
+ }
10
24
  export interface FimoRoutesOptions {
11
25
  config?: Pick<FimoConfig, 'i18n'>;
12
26
  rootDir?: string;
13
27
  }
14
- export declare function fimoRoutes<const T extends readonly FimoReactRouterRoute[]>(routes: T, options?: FimoRoutesOptions): FimoReactRouterRoute[];
28
+ export declare function fimoRoutes<T extends FimoRouteShape>(routes: readonly T[], options?: FimoRoutesOptions): T[];
29
+ export {};
15
30
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/runtime/react-router/routes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,I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,CAAC,CAAC,SAAS,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,GAAE,iBAAsB,GAAG,CAAC,EAAE,CA4B/G"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Fimo CLI - create, deploy, and manage Fimo projects",
5
5
  "bin": {
6
6
  "fimo": "dist/cli/index.js"
@@ -21,7 +21,7 @@
21
21
  "cmdk": "^1.1.1",
22
22
  "date-fns": "^4.1.0",
23
23
  "embla-carousel-react": "^8.6.0",
24
- "fimo": "0.3.5",
24
+ "fimo": "0.3.6",
25
25
  "input-otp": "^1.4.2",
26
26
  "isbot": "^5",
27
27
  "lucide-react": "^0.577.0",