@bleedingdev/modern-js-server-core 3.2.0-ultramodern.0 → 3.2.0-ultramodern.2

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.
Files changed (72) hide show
  1. package/package.json +5 -5
  2. package/dist/types/adapters/node/helper/index.d.ts +0 -6
  3. package/dist/types/adapters/node/helper/loadCache.d.ts +0 -2
  4. package/dist/types/adapters/node/helper/loadConfig.d.ts +0 -3
  5. package/dist/types/adapters/node/helper/loadEnv.d.ts +0 -3
  6. package/dist/types/adapters/node/helper/loadPlugin.d.ts +0 -3
  7. package/dist/types/adapters/node/helper/utils.d.ts +0 -21
  8. package/dist/types/adapters/node/hono.d.ts +0 -19
  9. package/dist/types/adapters/node/index.d.ts +0 -5
  10. package/dist/types/adapters/node/node.d.ts +0 -17
  11. package/dist/types/adapters/node/plugins/index.d.ts +0 -3
  12. package/dist/types/adapters/node/plugins/nodeServer.d.ts +0 -6
  13. package/dist/types/adapters/node/plugins/resource.d.ts +0 -11
  14. package/dist/types/adapters/node/plugins/static.d.ts +0 -25
  15. package/dist/types/constants.d.ts +0 -26
  16. package/dist/types/context.d.ts +0 -3
  17. package/dist/types/helper.d.ts +0 -10
  18. package/dist/types/hono.d.ts +0 -3
  19. package/dist/types/index.d.ts +0 -14
  20. package/dist/types/plugins/compat/hooks.d.ts +0 -8
  21. package/dist/types/plugins/compat/index.d.ts +0 -3
  22. package/dist/types/plugins/contractGateAutopilot.d.ts +0 -35
  23. package/dist/types/plugins/contractGateSnapshotStore.d.ts +0 -57
  24. package/dist/types/plugins/default.d.ts +0 -7
  25. package/dist/types/plugins/favicon.d.ts +0 -2
  26. package/dist/types/plugins/index.d.ts +0 -11
  27. package/dist/types/plugins/log.d.ts +0 -2
  28. package/dist/types/plugins/mfCache.d.ts +0 -12
  29. package/dist/types/plugins/middlewares.d.ts +0 -2
  30. package/dist/types/plugins/monitors.d.ts +0 -6
  31. package/dist/types/plugins/processedBy.d.ts +0 -2
  32. package/dist/types/plugins/render/csrRscRender.d.ts +0 -2
  33. package/dist/types/plugins/render/dataHandler.d.ts +0 -5
  34. package/dist/types/plugins/render/index.d.ts +0 -3
  35. package/dist/types/plugins/render/inject.d.ts +0 -7
  36. package/dist/types/plugins/render/render.d.ts +0 -16
  37. package/dist/types/plugins/render/renderRscHandler.d.ts +0 -2
  38. package/dist/types/plugins/render/serverActionHandler.d.ts +0 -2
  39. package/dist/types/plugins/render/ssrCache.d.ts +0 -18
  40. package/dist/types/plugins/render/ssrRender.d.ts +0 -26
  41. package/dist/types/plugins/render/utils.d.ts +0 -3
  42. package/dist/types/plugins/route.d.ts +0 -2
  43. package/dist/types/plugins/telemetry.d.ts +0 -309
  44. package/dist/types/serverBase.d.ts +0 -38
  45. package/dist/types/types/config/bff.d.ts +0 -142
  46. package/dist/types/types/config/dev.d.ts +0 -4
  47. package/dist/types/types/config/html.d.ts +0 -15
  48. package/dist/types/types/config/index.d.ts +0 -35
  49. package/dist/types/types/config/output.d.ts +0 -20
  50. package/dist/types/types/config/security.d.ts +0 -4
  51. package/dist/types/types/config/server.d.ts +0 -402
  52. package/dist/types/types/config/share.d.ts +0 -3
  53. package/dist/types/types/config/source.d.ts +0 -7
  54. package/dist/types/types/config/tools.d.ts +0 -2
  55. package/dist/types/types/index.d.ts +0 -4
  56. package/dist/types/types/plugins/base.d.ts +0 -57
  57. package/dist/types/types/plugins/index.d.ts +0 -2
  58. package/dist/types/types/plugins/plugin.d.ts +0 -31
  59. package/dist/types/types/render.d.ts +0 -24
  60. package/dist/types/types/requestHandler.d.ts +0 -48
  61. package/dist/types/types/server.d.ts +0 -67
  62. package/dist/types/utils/entry.d.ts +0 -3
  63. package/dist/types/utils/env.d.ts +0 -2
  64. package/dist/types/utils/error.d.ts +0 -8
  65. package/dist/types/utils/index.d.ts +0 -9
  66. package/dist/types/utils/middlewareCollector.d.ts +0 -12
  67. package/dist/types/utils/publicDir.d.ts +0 -40
  68. package/dist/types/utils/request.d.ts +0 -17
  69. package/dist/types/utils/serverConfig.d.ts +0 -8
  70. package/dist/types/utils/storage.d.ts +0 -5
  71. package/dist/types/utils/transformStream.d.ts +0 -5
  72. package/dist/types/utils/warmup.d.ts +0 -1
@@ -1,12 +0,0 @@
1
- export type CollectMiddlewaresResult = {
2
- web: any[];
3
- api: any[];
4
- };
5
- export declare const mergeExtension: (users: any[]) => {
6
- middleware: any[];
7
- };
8
- export declare const createMiddlewareCollecter: () => {
9
- getMiddlewares: () => CollectMiddlewaresResult;
10
- addWebMiddleware: (input: any) => void;
11
- addAPIMiddleware: (input: any) => void;
12
- };
@@ -1,40 +0,0 @@
1
- import type { ServerNormalizedConfig } from '../types';
2
- /**
3
- * Normalize publicDir configuration to an array of strings
4
- * @param publicDir - publicDir configuration (string | string[] | undefined)
5
- * @returns Array of publicDir paths, or empty array if not configured
6
- */
7
- export declare function normalizePublicDir(publicDir?: string | string[]): string[];
8
- /**
9
- * Normalize a single publicDir path by removing leading './' and trailing '/'
10
- * @param dir - Directory path to normalize
11
- * @returns Normalized directory path
12
- */
13
- export declare function normalizePublicDirPath(dir: string): string;
14
- /**
15
- * Get route prefixes from publicDir configuration
16
- * Files from publicDir are copied to dist/{dir}/, so the route prefix is /{dir}
17
- * @param publicDir - publicDir configuration (string | string[] | undefined)
18
- * @returns Array of route prefixes (e.g., ['/locales'])
19
- */
20
- export declare function getPublicDirRoutePrefixes(publicDir?: string | string[]): string[];
21
- /**
22
- * Get regex patterns from publicDir configuration for static file matching
23
- * Files from publicDir are copied to dist/{dir}/, so the pattern is {dir}/
24
- * @param publicDir - publicDir configuration (string | string[] | undefined)
25
- * @returns Array of patterns (e.g., ['locales/'])
26
- */
27
- export declare function getPublicDirPatterns(publicDir?: string | string[]): string[];
28
- /**
29
- * Resolve publicDir paths to absolute paths
30
- * @param publicDir - publicDir configuration (string | string[] | undefined)
31
- * @param appDirectory - Application root directory
32
- * @returns Array of absolute paths
33
- */
34
- export declare function resolvePublicDirPaths(publicDir?: string | string[], appDirectory?: string): string[];
35
- /**
36
- * Get publicDir configuration from server config
37
- * @param serverConfig - Server normalized config
38
- * @returns publicDir configuration or undefined
39
- */
40
- export declare function getPublicDirConfig(serverConfig?: ServerNormalizedConfig): string | string[] | undefined;
@@ -1,17 +0,0 @@
1
- export type Query = Record<string, string>;
2
- export declare function parseQuery(req: Request): Query;
3
- export type HeadersData = Record<string, string | undefined>;
4
- export declare function parseHeaders(request: Request): HeadersData;
5
- /**
6
- * The function is modified based on
7
- * https://github.com/honojs/hono/blob/main/src/utils/url.ts
8
- *
9
- * MIT Licensed
10
- * https://github.com/honojs/hono/blob/main/LICENSE
11
- *
12
- */
13
- export declare function getPathname(request: Request): string;
14
- export declare function getHost(request: Request): string;
15
- type Cookie = Record<string, string>;
16
- export declare function parseCookie(req: Request): Cookie;
17
- export {};
@@ -1,8 +0,0 @@
1
- import type { CliConfig, ServerConfig } from '../types';
2
- /**
3
- * 对配置进行合并,cliConfig 与 serverConfig 进行深合并
4
- */
5
- export declare const loadConfig: ({ cliConfig, serverConfig, }: {
6
- cliConfig: CliConfig;
7
- serverConfig: ServerConfig;
8
- }) => ServerConfig;
@@ -1,5 +0,0 @@
1
- declare const createStorage: <T>(storageKey?: symbol) => {
2
- run: <O>(context: T, cb: () => O | Promise<O>) => Promise<O>;
3
- useContext: () => T;
4
- };
5
- export { createStorage };
@@ -1,5 +0,0 @@
1
- type MaybeAsync<I> = I | Promise<I>;
2
- type TransformCb = (tempalte: string) => MaybeAsync<string>;
3
- export declare function createTransformStream(fn?: TransformCb): TransformStream<any, any>;
4
- export declare function transformResponse(response: Response, transformCb: Array<TransformCb> | TransformCb): Response;
5
- export {};
@@ -1 +0,0 @@
1
- export declare function warmup(bundles: Array<string | undefined>): void;