miqro.js 0.1.4 → 0.1.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.
package/dist/cli.js CHANGED
@@ -3098,7 +3098,7 @@ const schema = z.object({
3098
3098
  message: z.string().min(1),
3099
3099
  });
3100
3100
 
3101
- export default {
3101
+ const workflow: Workflow<z.infer<typeof schema>> = {
3102
3102
  config: {
3103
3103
  id: "hello-world",
3104
3104
  name: "Hello World Workflow",
@@ -3109,7 +3109,9 @@ export default {
3109
3109
  console.log("Hello from Miqro!", payload.message);
3110
3110
  console.log("Context workflow ID:", context.workflowId);
3111
3111
  },
3112
- } satisfies Workflow<z.infer<typeof schema>>;
3112
+ };
3113
+
3114
+ export default workflow;
3113
3115
  `;
3114
3116
  await writeFile(sampleWorkflowPath, sampleWorkflow);
3115
3117
  }
package/dist/types.d.ts CHANGED
@@ -22,7 +22,7 @@ export interface WorkflowConfig<T = unknown> {
22
22
  description?: string;
23
23
  auth: AuthConfig;
24
24
  schedule?: string;
25
- schema?: z.ZodType<T>;
25
+ schema?: z.ZodType<T, any, any>;
26
26
  }
27
27
  export interface Workflow<T = unknown> {
28
28
  config: WorkflowConfig<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miqro.js",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Minimal, high-performance microservice engine.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",