silgi 0.41.62 → 0.42.1

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.
@@ -586,7 +586,15 @@ function resolveGroupSyntax(group) {
586
586
  return groups;
587
587
  }
588
588
 
589
- const DEFAULT_FUNCTION_EXPORT_NAMES = ["createSchema", "createService", "createResolver", "createShared", "createMiddleware"];
589
+ const DEFAULT_FUNCTION_EXPORT_NAMES = [
590
+ "createSchema",
591
+ "createService",
592
+ "createWebSocket",
593
+ // Added
594
+ "createResolver",
595
+ "createShared",
596
+ "createMiddleware"
597
+ ];
590
598
  const DEFAULT_INTERFACE_EXTENDS_NAMES = ["ExtendShared", "ExtendContext"];
591
599
  function generateUniqueIdentifier(filePath, exportName) {
592
600
  const fileBaseName = basename(filePath);
@@ -595,6 +603,8 @@ function generateUniqueIdentifier(filePath, exportName) {
595
603
  }
596
604
  function categorizeExports(exportedEntities, filePath, functionExportCategories = {
597
605
  createService: "service",
606
+ createWebSocket: "websocket",
607
+ // Added
598
608
  createSchema: "schema",
599
609
  createShared: "shared",
600
610
  createResolver: "resolver",
@@ -659,6 +669,9 @@ function registerExportsWithHooks(silgiInstance, runtimeExports, typeExports, pa
659
669
  case "service":
660
670
  options.services.push(uniqueId);
661
671
  break;
672
+ case "websocket":
673
+ options.services?.push?.(uniqueId);
674
+ break;
662
675
  case "shared":
663
676
  options.shareds.push(uniqueId);
664
677
  break;
@@ -744,10 +757,29 @@ async function extractExportEntitiesFromFile(absoluteFilePath, functionExportNam
744
757
  if (Array.isArray(decls)) {
745
758
  for (const decl of decls) {
746
759
  if (decl.type === "VariableDeclarator" && decl.id.type === "Identifier" && decl.init && decl.init.type === "CallExpression" && decl.init.callee.type === "Identifier" && functionExportNames.includes(decl.init.callee.name)) {
760
+ let servicePath;
761
+ let serviceMethod;
762
+ if (decl.init.callee.name === "createService" || decl.init.callee.name === "createWebSocket") {
763
+ const firstArg = decl.init.arguments?.[0];
764
+ if (firstArg && firstArg.type === "ObjectExpression" && Array.isArray(firstArg.properties)) {
765
+ for (const prop of firstArg.properties) {
766
+ if (prop.type === "Property" && prop.key.type === "Identifier") {
767
+ if (prop.key.name === "path" && prop.value.type === "Literal" && typeof prop.value.value === "string") {
768
+ servicePath = prop.value.value;
769
+ }
770
+ if (prop.key.name === "method" && prop.value.type === "Literal" && typeof prop.value.value === "string") {
771
+ serviceMethod = prop.value.value;
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
747
777
  exportEntities.push({
748
778
  name: decl.id.name,
749
779
  type: "function",
750
- funcName: decl.init.callee.name
780
+ funcName: decl.init.callee.name,
781
+ servicePath,
782
+ serviceMethod
751
783
  });
752
784
  }
753
785
  }
@@ -766,6 +798,8 @@ async function scanSilgiExports(path, packageName, silgiInstance = useSilgiCLI()
766
798
  functionExportNames.forEach((name) => {
767
799
  if (name === "createService")
768
800
  functionExportCategories[name] = "service";
801
+ else if (name === "createWebSocket")
802
+ functionExportCategories[name] = "websocket";
769
803
  else if (name === "createSchema")
770
804
  functionExportCategories[name] = "schema";
771
805
  else if (name === "createShared")
@@ -815,6 +849,21 @@ async function scanSilgiExports(path, packageName, silgiInstance = useSilgiCLI()
815
849
  functionExportNames,
816
850
  interfaceExtendsNames
817
851
  );
852
+ const seenServiceSignatures = /* @__PURE__ */ new Map();
853
+ for (const entity of exportEntities) {
854
+ if ((entity.funcName === "createService" || entity.funcName === "createWebSocket") && entity.servicePath && entity.serviceMethod) {
855
+ const key = `${entity.serviceMethod}:${entity.servicePath}`;
856
+ if (seenServiceSignatures.has(key)) {
857
+ throw new Error(
858
+ `Duplicate ${entity.funcName} detected for path "${entity.servicePath}" and method "${entity.serviceMethod}".
859
+ First found in: ${seenServiceSignatures.get(key)}
860
+ Duplicate in: ${absoluteFilePath}
861
+ Please ensure each service path/method combination is unique.`
862
+ );
863
+ }
864
+ seenServiceSignatures.set(key, absoluteFilePath);
865
+ }
866
+ }
818
867
  const allExportedEntities = exportEntities;
819
868
  const { runtimeExports, typeExports } = categorizeExports(
820
869
  allExportedEntities,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.41.62";
4
+ const version = "0.42.1";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -259,16 +259,16 @@ async function resolveImportsOptions(options) {
259
259
  function getSilgiImportsPreset() {
260
260
  return [
261
261
  // TODO: buraya bizim importlarimiz gelecek.
262
- {
263
- from: "silgi",
264
- imports: [
265
- "createShared",
266
- "useSilgi",
267
- "createService",
268
- "createSchema",
269
- "createRouter"
270
- ]
271
- },
262
+ // {
263
+ // from: 'silgi',
264
+ // imports: [
265
+ // 'createShared',
266
+ // 'useSilgi',
267
+ // 'createService',
268
+ // 'createSchema',
269
+ // 'createRouter',
270
+ // ],
271
+ // },
272
272
  // {
273
273
  // from: 'nitropack/runtime',
274
274
  // imports: ['useRuntimeConfig', 'useAppConfig'],
@@ -1,4 +1,4 @@
1
- import { SilgiRuntimeConfig, SilgiConfig, Silgi, SilgiEvent, SilgiRuntimeContext, WebSocketOptions, SilgiSchema, RouteEntry, CustomRequestInit, SilgiCLI, SilgiStorageBase, MergeAll, Resolvers, SilgiURL, BaseMethodSchema, HTTPMethod, StandardSchemaV1, ServiceSetupsForMethods, ServiceDefinitionByMethodAndPath, Routers, ServiceSetup, SilgiRuntimeShareds, StorageConfig } from 'silgi/types';
1
+ import { SilgiRuntimeConfig, SilgiConfig, Silgi, SilgiEvent, SilgiRuntimeContext, WebSocketOptions, SilgiSchema, RouteEntry, CustomRequestInit, SilgiCLI, SilgiStorageBase, MergeAll, Resolvers, SilgiURL, BaseMethodSchema, HTTPMethod, StandardSchemaV1, ServiceSetup, WebSocketServiceSetup, Routers, SilgiRuntimeShareds, StorageConfig } from 'silgi/types';
2
2
  import { ServerRequest, ServerRuntimeContext } from 'srvx';
3
3
  import { UseContext } from 'unctx';
4
4
  import { Storage, StorageValue } from 'unstorage';
@@ -305,7 +305,8 @@ declare function createSchema<Key extends string, Schema extends BaseMethodSchem
305
305
  * Tip güvenliğini artırmak için ServiceSetup objesini doğrudan döndürür.
306
306
  */
307
307
  declare function defineServiceSetup<Method extends HTTPMethod, Path extends keyof Routers, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false>(setup: Omit<ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>, 'method' | 'path'>): Omit<ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>, 'method' | 'path'>;
308
- declare function createService<Path extends string, Method extends HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false>(params: ServiceSetupsForMethods<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>): ServiceDefinitionByMethodAndPath<Path, Method, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
308
+ declare function createService<Path extends string, Method extends HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false>(params: ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>): Record<`http:${Method}:${Path}`, ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>>;
309
+ declare function createWebSocket<Path extends string, Method extends HTTPMethod>(params: WebSocketServiceSetup<Method, Path>): Record<`websocket:${Method}:${Path}`, WebSocketServiceSetup<Method, Path>>;
309
310
 
310
311
  declare function createShared(shared: Partial<SilgiRuntimeShareds>): SilgiRuntimeShareds;
311
312
 
@@ -314,4 +315,4 @@ declare function useSilgiStorage<T extends StorageValue = StorageValue>(base?: S
314
315
 
315
316
  declare const autoImportTypes: string[];
316
317
 
317
- export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage };
318
+ export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage };
@@ -1326,9 +1326,14 @@ function defineServiceSetup(setup) {
1326
1326
  }
1327
1327
  function createService(params) {
1328
1328
  const method = params.method || "ALL";
1329
- const type = params.websocket ? "websocket" : "http";
1330
1329
  return {
1331
- [`${type}:${method}:${params.path}`]: params
1330
+ [`http:${method}:${params.path}`]: params
1331
+ };
1332
+ }
1333
+ function createWebSocket(params) {
1334
+ const method = params.method || "ALL";
1335
+ return {
1336
+ [`websocket:${method}:${params.path}`]: params
1332
1337
  };
1333
1338
  }
1334
1339
 
@@ -1343,4 +1348,4 @@ const autoImportTypes = [
1343
1348
  "ExtractQueryParamsFromURI"
1344
1349
  ];
1345
1350
 
1346
- export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage };
1351
+ export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage } from './core/index.mjs';
1
+ export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage } from './core/index.mjs';
2
2
  export { c as createMiddleware } from './shared/silgi.DTwQEdSr.mjs';
3
3
  import 'silgi/types';
4
4
  import 'srvx';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage } from './core/index.mjs';
1
+ export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage } from './core/index.mjs';
2
2
  export { s as silgiCLICtx, t as tryUseSilgiCLI, u as useSilgiCLI } from './_chunks/silgiApp.mjs';
3
3
  import 'node:async_hooks';
4
4
  import 'unctx';
@@ -23,7 +23,7 @@ import { TransactionOptions, BuiltinDriverName, StorageValue, Storage } from 'un
23
23
  import { ServerRequest } from 'srvx';
24
24
  import { C as CreateMiddlewareResult } from '../shared/silgi.DTwQEdSr.mjs';
25
25
  import { Defu } from 'defu';
26
- import * as crossws from 'crossws';
26
+ import { Hooks, ResolveHooks } from 'crossws';
27
27
  import { silgiFetch } from 'silgi';
28
28
  import { useRuntimeConfig } from 'silgi/runtime';
29
29
  import { Unimport } from 'unimport';
@@ -292,9 +292,9 @@ declare namespace StandardSchemaV1 {
292
292
  interface ServicesObject {
293
293
  }
294
294
  interface WebSocketOptions {
295
- resolve?: crossws.ResolveHooks;
296
- hooks?: Partial<crossws.Hooks>;
297
- adapterHooks?: Partial<crossws.Hooks>;
295
+ resolve?: ResolveHooks;
296
+ hooks?: Partial<Hooks>;
297
+ adapterHooks?: Partial<Hooks>;
298
298
  }
299
299
  type SlashCount<S extends string, Count extends any[] = []> = S extends `${infer _Prefix}/${infer Rest}` ? SlashCount<Rest, [any, ...Count]> : Count['length'];
300
300
  type Max4Slashes<S extends keyof Routers> = SlashCount<S> extends 0 | 1 | 2 | 3 ? S : never;
@@ -336,7 +336,6 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
336
336
  path: Path;
337
337
  method?: Method;
338
338
  handler?: ServiceHandler<Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
339
- websocket?: Partial<crossws.Hooks>;
340
339
  rules?: MergeRouteRules;
341
340
  modules?: Partial<SetupModuleOption>;
342
341
  storage?: StorageConfig<ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>>;
@@ -345,6 +344,13 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
345
344
  pathParams?: PathParams;
346
345
  queryParams?: QueryParams;
347
346
  }
347
+ interface WebSocketServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends string = string> {
348
+ path: Path;
349
+ websocket: Partial<Hooks>;
350
+ method?: Method;
351
+ rules?: MergeRouteRules;
352
+ modules?: Partial<SetupModuleOption>;
353
+ }
348
354
  /**
349
355
  * Represents a fully resolved service definition that maps route paths
350
356
  * to their handler and configurations.
@@ -357,6 +363,9 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
357
363
  interface ResolvedServiceDefinition {
358
364
  [key: string]: ServiceSetup<any, any, any, any, any, any, any, any>;
359
365
  }
366
+ interface ResolvedWebSocketServiceDefinition {
367
+ [key: string]: WebSocketServiceSetup<any, any>;
368
+ }
360
369
  /**
361
370
  * SilgiURL tipi
362
371
  */
@@ -369,18 +378,6 @@ interface SilgiURL {
369
378
  pathParams?: Record<string, string | undefined>;
370
379
  queryParams?: Record<string, string>;
371
380
  }
372
- type ServiceSetupsForMethods<Method extends HTTPMethod = HTTPMethod, Path extends string = string, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false> = ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
373
- /**
374
- * Sadece belirtilen HTTP methodları için anahtar üretir.
375
- * Varsayılan olarak tüm methodlar çıkar.
376
- *
377
- * Örnek:
378
- * ServiceDefinitionByMethodAndPath<'/foo', ..., 'GET' | 'POST'>
379
- * // Sadece "GET:/foo" ve "POST:/foo" anahtarları olur.
380
- */
381
- type ServiceDefinitionByMethodAndPath<Path extends string, Method extends HTTPMethod = HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false> = {
382
- [M in Method as `${M}:${Path}`]: ServiceSetup<M, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
383
- };
384
381
 
385
382
  interface SilgiCLI {
386
383
  _ignore?: Ignore;
@@ -777,7 +774,7 @@ interface MetaData extends Record<string, unknown> {
777
774
  interface SilgiRoute {
778
775
  route?: string;
779
776
  method?: HTTPMethod;
780
- service?: ResolvedServiceDefinition[keyof ResolvedServiceDefinition];
777
+ service?: ResolvedServiceDefinition[keyof ResolvedServiceDefinition] & ResolvedWebSocketServiceDefinition[keyof ResolvedWebSocketServiceDefinition];
781
778
  middleware?: MiddlewareSetup;
782
779
  }
783
780
  interface Silgi {
@@ -788,7 +785,7 @@ interface Silgi {
788
785
  routerPrefixs: string[];
789
786
  schemas: ResolvedSchemaDefinition;
790
787
  resolvers: IResolvers<any, any>[];
791
- services: ResolvedServiceDefinition;
788
+ services: ResolvedServiceDefinition & ResolvedWebSocketServiceDefinition;
792
789
  shared: SilgiRuntimeShareds;
793
790
  plugins: SilgiAppPlugin[];
794
791
  framework?: {
@@ -1304,4 +1301,4 @@ interface LoadConfigOptions {
1304
1301
  }
1305
1302
 
1306
1303
  export { StandardSchemaV1 };
1307
- export type { AllPaths, AllPrefixes, AppConfig, Awaitable, BaseMethodSchema, BuildSilgi, CaptureError, CapturedErrorContext, CommandType, Commands, CreateMiddlewareParams, CustomRequestInit, DeepPartial, DeepRequired, DefaultHooks, DefineFrameworkOptions, DotenvOptions, EnvOptions, EventHandlerResponse, EventProtocol, ExtendContext, ExtendShared, ExtractNamespace, ExtractPathParamKeys, ExtractPathParams, ExtractPrefix, ExtractRoute, GenImport, GenerateAppOptions, HTTPMethod, HasPathParams, HookResult, LoadConfigOptions, Max4Slashes, MergeAll, MergeRouteRules, MergedSilgiSchema, MetaData, MethodSchemas, MiddlewareHandler, MiddlewarePath, MiddlewareSetup, ModuleDefinition, ModuleHookContext, ModuleMeta, ModuleOptionsCustom, ModuleSetupInstallResult, ModuleSetupReturn, NamespacesForPrefix, NitroBuildInfo, RequiredServiceType, ResolvedMiddlewareDefinition, ResolvedModuleMeta, ResolvedModuleOptions, ResolvedSchema, ResolvedSchemaDefinition, ResolvedServiceDefinition, ResolvedSilgiTemplate, Resolvers, RouteEntry, RouteRules, RouterParams, Routers, RoutesForPrefixAndNamespace, ScanFile, Schema, ServiceDefinitionByMethodAndPath, ServiceHandler, ServiceHandlerInput, ServiceSetup, ServiceSetupsForMethods, ServicesObject, SetupModuleOption, Silgi, SilgiAppPlugin, SilgiCLI, SilgiCLIConfig, SilgiCLIHooks, SilgiCLIOptions, SilgiCommands, SilgiCompatibility, SilgiCompatibilityIssue, SilgiCompatibilityIssues, SilgiConfig, SilgiEvent, SilgiFetchClient, SilgiFetchOptions, SilgiFrameworkInfo, SilgiHooks, SilgiModule, SilgiModuleInput, SilgiModuleOptions, SilgiOptions, SilgiPreset, SilgiPresetMeta, SilgiRoute, SilgiRouterTypes, SilgiRuntimeConfig, SilgiRuntimeContext, SilgiRuntimeDefaultConfig, SilgiRuntimeHooks, SilgiRuntimeMethods, SilgiRuntimeOptions, SilgiRuntimeShareds, SilgiRuntimeSharedsExtend, SilgiSchema, SilgiStorageBase, SilgiTemplate, SilgiURL, StandardHTTPMethod, StorageConfig, StorageKeyGenerator, StorageKeyParams, StorageMounts, TSReference, TrimAfterFourSlashes, WebSocketOptions, WildcardVariants, WithPathParams };
1304
+ export type { AllPaths, AllPrefixes, AppConfig, Awaitable, BaseMethodSchema, BuildSilgi, CaptureError, CapturedErrorContext, CommandType, Commands, CreateMiddlewareParams, CustomRequestInit, DeepPartial, DeepRequired, DefaultHooks, DefineFrameworkOptions, DotenvOptions, EnvOptions, EventHandlerResponse, EventProtocol, ExtendContext, ExtendShared, ExtractNamespace, ExtractPathParamKeys, ExtractPathParams, ExtractPrefix, ExtractRoute, GenImport, GenerateAppOptions, HTTPMethod, HasPathParams, HookResult, LoadConfigOptions, Max4Slashes, MergeAll, MergeRouteRules, MergedSilgiSchema, MetaData, MethodSchemas, MiddlewareHandler, MiddlewarePath, MiddlewareSetup, ModuleDefinition, ModuleHookContext, ModuleMeta, ModuleOptionsCustom, ModuleSetupInstallResult, ModuleSetupReturn, NamespacesForPrefix, NitroBuildInfo, RequiredServiceType, ResolvedMiddlewareDefinition, ResolvedModuleMeta, ResolvedModuleOptions, ResolvedSchema, ResolvedSchemaDefinition, ResolvedServiceDefinition, ResolvedSilgiTemplate, ResolvedWebSocketServiceDefinition, Resolvers, RouteEntry, RouteRules, RouterParams, Routers, RoutesForPrefixAndNamespace, ScanFile, Schema, ServiceHandler, ServiceHandlerInput, ServiceSetup, ServicesObject, SetupModuleOption, Silgi, SilgiAppPlugin, SilgiCLI, SilgiCLIConfig, SilgiCLIHooks, SilgiCLIOptions, SilgiCommands, SilgiCompatibility, SilgiCompatibilityIssue, SilgiCompatibilityIssues, SilgiConfig, SilgiEvent, SilgiFetchClient, SilgiFetchOptions, SilgiFrameworkInfo, SilgiHooks, SilgiModule, SilgiModuleInput, SilgiModuleOptions, SilgiOptions, SilgiPreset, SilgiPresetMeta, SilgiRoute, SilgiRouterTypes, SilgiRuntimeConfig, SilgiRuntimeContext, SilgiRuntimeDefaultConfig, SilgiRuntimeHooks, SilgiRuntimeMethods, SilgiRuntimeOptions, SilgiRuntimeShareds, SilgiRuntimeSharedsExtend, SilgiSchema, SilgiStorageBase, SilgiTemplate, SilgiURL, StandardHTTPMethod, StorageConfig, StorageKeyGenerator, StorageKeyParams, StorageMounts, TSReference, TrimAfterFourSlashes, WebSocketOptions, WebSocketServiceSetup, WildcardVariants, WithPathParams };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.41.62",
4
+ "version": "0.42.1",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {