@514labs/moose-lib 0.6.244-ci-6-gbb6c4d8d → 0.6.244-ci-1-g1f019cce

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.
@@ -192,9 +192,7 @@ declare enum ClickHouseEngines {
192
192
  ReplicatedMergeTree = "ReplicatedMergeTree",
193
193
  ReplicatedReplacingMergeTree = "ReplicatedReplacingMergeTree",
194
194
  ReplicatedAggregatingMergeTree = "ReplicatedAggregatingMergeTree",
195
- ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree",
196
- ReplicatedCollapsingMergeTree = "ReplicatedCollapsingMergeTree",
197
- ReplicatedVersionedCollapsingMergeTree = "ReplicatedVersionedCollapsingMergeTree"
195
+ ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree"
198
196
  }
199
197
  /**
200
198
  * Drops an existing view if it exists.
@@ -492,23 +490,6 @@ type SummingMergeTreeConfig<T> = BaseOlapConfig<T> & {
492
490
  engine: ClickHouseEngines.SummingMergeTree;
493
491
  columns?: string[];
494
492
  };
495
- /**
496
- * Configuration for CollapsingMergeTree engine
497
- * @template T The data type of the records stored in the table.
498
- */
499
- type CollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
500
- engine: ClickHouseEngines.CollapsingMergeTree;
501
- sign: keyof T & string;
502
- };
503
- /**
504
- * Configuration for VersionedCollapsingMergeTree engine
505
- * @template T The data type of the records stored in the table.
506
- */
507
- type VersionedCollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
508
- engine: ClickHouseEngines.VersionedCollapsingMergeTree;
509
- sign: keyof T & string;
510
- ver: keyof T & string;
511
- };
512
493
  interface ReplicatedEngineProperties {
513
494
  keeperPath?: string;
514
495
  replicaName?: string;
@@ -557,28 +538,6 @@ type ReplicatedAggregatingMergeTreeConfig<T> = Omit<AggregatingMergeTreeConfig<T
557
538
  type ReplicatedSummingMergeTreeConfig<T> = Omit<SummingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
558
539
  engine: ClickHouseEngines.ReplicatedSummingMergeTree;
559
540
  };
560
- /**
561
- * Configuration for ReplicatedCollapsingMergeTree engine
562
- * @template T The data type of the records stored in the table.
563
- *
564
- * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
565
- * which manages replication automatically. For self-hosted with ClickHouse Keeper,
566
- * provide both parameters or neither (to use server defaults).
567
- */
568
- type ReplicatedCollapsingMergeTreeConfig<T> = Omit<CollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
569
- engine: ClickHouseEngines.ReplicatedCollapsingMergeTree;
570
- };
571
- /**
572
- * Configuration for ReplicatedVersionedCollapsingMergeTree engine
573
- * @template T The data type of the records stored in the table.
574
- *
575
- * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
576
- * which manages replication automatically. For self-hosted with ClickHouse Keeper,
577
- * provide both parameters or neither (to use server defaults).
578
- */
579
- type ReplicatedVersionedCollapsingMergeTreeConfig<T> = Omit<VersionedCollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
580
- engine: ClickHouseEngines.ReplicatedVersionedCollapsingMergeTree;
581
- };
582
541
  /**
583
542
  * Configuration for S3Queue engine - only non-alterable constructor parameters.
584
543
  * S3Queue-specific settings like 'mode', 'keeper_path', etc. should be specified
@@ -719,7 +678,7 @@ type IcebergS3Config<T> = Omit<BaseOlapConfig<T>, "orderByFields" | "orderByExpr
719
678
  * @template T The data type of the records stored in the table.
720
679
  */
721
680
  type LegacyOlapConfig<T> = BaseOlapConfig<T>;
722
- type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | CollapsingMergeTreeConfig<T> | VersionedCollapsingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | ReplicatedCollapsingMergeTreeConfig<T> | ReplicatedVersionedCollapsingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
681
+ type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
723
682
  /**
724
683
  * Union of all engine-specific configurations (new API)
725
684
  * @template T The data type of the records stored in the table.
@@ -1933,7 +1892,7 @@ type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => vo
1933
1892
  interface FrameworkApp {
1934
1893
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
1935
1894
  callback?: () => WebAppHandler;
1936
- routing?: any;
1895
+ routing?: (req: http.IncomingMessage, res: http.ServerResponse) => void;
1937
1896
  }
1938
1897
  interface WebAppConfig {
1939
1898
  mountPath: string;
@@ -192,9 +192,7 @@ declare enum ClickHouseEngines {
192
192
  ReplicatedMergeTree = "ReplicatedMergeTree",
193
193
  ReplicatedReplacingMergeTree = "ReplicatedReplacingMergeTree",
194
194
  ReplicatedAggregatingMergeTree = "ReplicatedAggregatingMergeTree",
195
- ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree",
196
- ReplicatedCollapsingMergeTree = "ReplicatedCollapsingMergeTree",
197
- ReplicatedVersionedCollapsingMergeTree = "ReplicatedVersionedCollapsingMergeTree"
195
+ ReplicatedSummingMergeTree = "ReplicatedSummingMergeTree"
198
196
  }
199
197
  /**
200
198
  * Drops an existing view if it exists.
@@ -492,23 +490,6 @@ type SummingMergeTreeConfig<T> = BaseOlapConfig<T> & {
492
490
  engine: ClickHouseEngines.SummingMergeTree;
493
491
  columns?: string[];
494
492
  };
495
- /**
496
- * Configuration for CollapsingMergeTree engine
497
- * @template T The data type of the records stored in the table.
498
- */
499
- type CollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
500
- engine: ClickHouseEngines.CollapsingMergeTree;
501
- sign: keyof T & string;
502
- };
503
- /**
504
- * Configuration for VersionedCollapsingMergeTree engine
505
- * @template T The data type of the records stored in the table.
506
- */
507
- type VersionedCollapsingMergeTreeConfig<T> = BaseOlapConfig<T> & {
508
- engine: ClickHouseEngines.VersionedCollapsingMergeTree;
509
- sign: keyof T & string;
510
- ver: keyof T & string;
511
- };
512
493
  interface ReplicatedEngineProperties {
513
494
  keeperPath?: string;
514
495
  replicaName?: string;
@@ -557,28 +538,6 @@ type ReplicatedAggregatingMergeTreeConfig<T> = Omit<AggregatingMergeTreeConfig<T
557
538
  type ReplicatedSummingMergeTreeConfig<T> = Omit<SummingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
558
539
  engine: ClickHouseEngines.ReplicatedSummingMergeTree;
559
540
  };
560
- /**
561
- * Configuration for ReplicatedCollapsingMergeTree engine
562
- * @template T The data type of the records stored in the table.
563
- *
564
- * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
565
- * which manages replication automatically. For self-hosted with ClickHouse Keeper,
566
- * provide both parameters or neither (to use server defaults).
567
- */
568
- type ReplicatedCollapsingMergeTreeConfig<T> = Omit<CollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
569
- engine: ClickHouseEngines.ReplicatedCollapsingMergeTree;
570
- };
571
- /**
572
- * Configuration for ReplicatedVersionedCollapsingMergeTree engine
573
- * @template T The data type of the records stored in the table.
574
- *
575
- * Note: keeperPath and replicaName are optional. Omit them for ClickHouse Cloud,
576
- * which manages replication automatically. For self-hosted with ClickHouse Keeper,
577
- * provide both parameters or neither (to use server defaults).
578
- */
579
- type ReplicatedVersionedCollapsingMergeTreeConfig<T> = Omit<VersionedCollapsingMergeTreeConfig<T>, "engine"> & ReplicatedEngineProperties & {
580
- engine: ClickHouseEngines.ReplicatedVersionedCollapsingMergeTree;
581
- };
582
541
  /**
583
542
  * Configuration for S3Queue engine - only non-alterable constructor parameters.
584
543
  * S3Queue-specific settings like 'mode', 'keeper_path', etc. should be specified
@@ -719,7 +678,7 @@ type IcebergS3Config<T> = Omit<BaseOlapConfig<T>, "orderByFields" | "orderByExpr
719
678
  * @template T The data type of the records stored in the table.
720
679
  */
721
680
  type LegacyOlapConfig<T> = BaseOlapConfig<T>;
722
- type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | CollapsingMergeTreeConfig<T> | VersionedCollapsingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | ReplicatedCollapsingMergeTreeConfig<T> | ReplicatedVersionedCollapsingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
681
+ type EngineConfig<T> = MergeTreeConfig<T> | ReplacingMergeTreeConfig<T> | AggregatingMergeTreeConfig<T> | SummingMergeTreeConfig<T> | ReplicatedMergeTreeConfig<T> | ReplicatedReplacingMergeTreeConfig<T> | ReplicatedAggregatingMergeTreeConfig<T> | ReplicatedSummingMergeTreeConfig<T> | S3QueueConfig<T> | S3Config<T> | BufferConfig<T> | DistributedConfig<T> | IcebergS3Config<T>;
723
682
  /**
724
683
  * Union of all engine-specific configurations (new API)
725
684
  * @template T The data type of the records stored in the table.
@@ -1933,7 +1892,7 @@ type WebAppHandler = (req: http.IncomingMessage, res: http.ServerResponse) => vo
1933
1892
  interface FrameworkApp {
1934
1893
  handle?: (req: http.IncomingMessage, res: http.ServerResponse, next?: (err?: any) => void) => void;
1935
1894
  callback?: () => WebAppHandler;
1936
- routing?: any;
1895
+ routing?: (req: http.IncomingMessage, res: http.ServerResponse) => void;
1937
1896
  }
1938
1897
  interface WebAppConfig {
1939
1898
  mountPath: string;
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BjzQVzW-.mjs';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-CBTXNlql.mjs';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CBTXNlql.mjs';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-CwNwv0e0.mjs';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-bZEbqrMe.mjs';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-bZEbqrMe.mjs';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-91E-CWRB.js';
2
- import { K as ApiUtil, a4 as MooseClient } from './index-CBTXNlql.js';
3
- export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-CBTXNlql.js';
1
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-2eoeppzc.js';
2
+ import { K as ApiUtil, a4 as MooseClient } from './index-bZEbqrMe.js';
3
+ export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae as ConsumptionHelpers, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, aa as QueryClient, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 as dropView, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-bZEbqrMe.js';
4
4
  import * as _clickhouse_client from '@clickhouse/client';
5
5
  import { KafkaJS } from '@confluentinc/kafka-javascript';
6
6
  import http from 'http';
package/dist/index.js CHANGED
@@ -720,8 +720,6 @@ var ClickHouseEngines = /* @__PURE__ */ ((ClickHouseEngines2) => {
720
720
  ClickHouseEngines2["ReplicatedReplacingMergeTree"] = "ReplicatedReplacingMergeTree";
721
721
  ClickHouseEngines2["ReplicatedAggregatingMergeTree"] = "ReplicatedAggregatingMergeTree";
722
722
  ClickHouseEngines2["ReplicatedSummingMergeTree"] = "ReplicatedSummingMergeTree";
723
- ClickHouseEngines2["ReplicatedCollapsingMergeTree"] = "ReplicatedCollapsingMergeTree";
724
- ClickHouseEngines2["ReplicatedVersionedCollapsingMergeTree"] = "ReplicatedVersionedCollapsingMergeTree";
725
723
  return ClickHouseEngines2;
726
724
  })(ClickHouseEngines || {});
727
725
  function dropView(name) {
@@ -2612,16 +2610,9 @@ var WebApp = class {
2612
2610
  if (typeof app.callback === "function") {
2613
2611
  return app.callback();
2614
2612
  }
2615
- if (app.routing && typeof app.routing === "object") {
2616
- return async (req, res) => {
2617
- const fastifyApp = app;
2618
- if (fastifyApp.routing && typeof fastifyApp.routing.handle === "function") {
2619
- fastifyApp.routing.handle(req, res);
2620
- } else {
2621
- throw new Error(
2622
- "Fastify app detected but not properly initialized. Ensure .ready() is called before passing to WebApp."
2623
- );
2624
- }
2613
+ if (typeof app.routing === "function") {
2614
+ return (req, res) => {
2615
+ app.routing(req, res);
2625
2616
  };
2626
2617
  }
2627
2618
  throw new Error(
@@ -2629,11 +2620,12 @@ var WebApp = class {
2629
2620
  - A function (raw Node.js handler)
2630
2621
  - An object with .handle() method (Express, Connect)
2631
2622
  - An object with .callback() method (Koa)
2632
- - An object with .routing property (Fastify after .ready())
2623
+ - An object with .routing function (Fastify)
2633
2624
 
2634
2625
  Examples:
2635
2626
  Express: new WebApp("name", expressApp)
2636
2627
  Koa: new WebApp("name", koaApp)
2628
+ Fastify: new WebApp("name", fastifyApp)
2637
2629
  Raw: new WebApp("name", (req, res) => { ... })
2638
2630
  `
2639
2631
  );