silgi 0.24.1 → 0.24.3

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,2 +1 @@
1
1
 
2
- export { };
@@ -1,6 +1,7 @@
1
+ #!/usr/bin/env node
1
2
  import { defineCommand, runMain } from 'citty';
2
3
 
3
- const version = "0.24.1";
4
+ const version = "0.24.3";
4
5
  const packageJson = {
5
6
  version: version};
6
7
 
@@ -2,7 +2,7 @@ import { defineCommand, runCommand } from 'citty';
2
2
  import { join, resolve, relative, dirname, basename, extname, isAbsolute } from 'pathe';
3
3
  import { peerDependencies, version } from 'silgi/meta';
4
4
  import { genObjectFromRawEntries, genObjectFromRaw, genObjectFromValues } from 'knitwork';
5
- import { writeFile, relativeWithDot, hash, resolveAlias, directoryToURL, addTemplate, hasError, parseServices, normalizeTemplate, useLogger, initRuntimeConfig, resolveSilgiPath, genEnsureSafeVar, isDirectory } from 'silgi/kit';
5
+ import { writeFile, relativeWithDot, hash, resolveAlias, directoryToURL, addTemplate, hasError, parseServices, normalizeTemplate, useLogger, resolveSilgiPath, genEnsureSafeVar, isDirectory } from 'silgi/kit';
6
6
  import { existsSync, promises, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
7
7
  import { readdir, readFile } from 'node:fs/promises';
8
8
  import consola, { consola as consola$1 } from 'consola';
@@ -26,7 +26,7 @@ import { globby } from 'globby';
26
26
  import ignore from 'ignore';
27
27
  import { parseSync } from '@oxc-parser/wasm';
28
28
  import { klona } from 'klona';
29
- import { useSilgiRuntimeConfig } from 'silgi/runtime';
29
+ import { useSilgiRuntimeConfig, initRuntimeConfig } from 'silgi/runtime';
30
30
  import { createStorage, builtinDrivers } from 'unstorage';
31
31
  import { l as loadOptions, s as silgiGenerateType } from './types.mjs';
32
32
  import { resolveAlias as resolveAlias$1 } from 'pathe/utils';
package/dist/index.d.mts CHANGED
@@ -264,5 +264,7 @@ declare function tryUseSilgiCLI(): SilgiCLI | null;
264
264
 
265
265
  declare function storageMount<T extends Storage = Storage>(silgi?: Silgi): (base: keyof SilgiStorageBase, driver: Parameters<Storage['mount']>[1]) => T;
266
266
 
267
- export { ErrorCategory, ErrorFactory, ErrorSeverity, HttpStatus, SilgiError, createSchema, createService, createShared, createSilgi, createStorage, getEvent, getEventContext, isBaseError, mergeSchemas, mergeServices, mergeShared, parseURI, replaceRuntimeValues, silgiCLICtx, silgiCtx, storageMount, tryUseSilgi, tryUseSilgiCLI, useSilgi, useSilgiCLI, useSilgiStorage };
267
+ declare const autoImportTypes: string[];
268
+
269
+ export { ErrorCategory, ErrorFactory, ErrorSeverity, HttpStatus, SilgiError, autoImportTypes, createSchema, createService, createShared, createSilgi, createStorage, getEvent, getEventContext, isBaseError, mergeSchemas, mergeServices, mergeShared, parseURI, replaceRuntimeValues, silgiCLICtx, silgiCtx, storageMount, tryUseSilgi, tryUseSilgiCLI, useSilgi, useSilgiCLI, useSilgiStorage };
268
270
  export type { BaseError, ErrorMetadata };
package/dist/index.mjs CHANGED
@@ -753,4 +753,11 @@ function storageMount(silgi) {
753
753
  };
754
754
  }
755
755
 
756
- export { ErrorCategory, ErrorFactory, ErrorSeverity, HttpStatus, SilgiError, createSchema, createService, createShared, createSilgi, createStorage, getEvent, getEventContext, isBaseError, mergeSchemas, mergeServices, mergeShared, parseURI, replaceRuntimeValues, silgi, silgiCtx, storageMount, tryUseSilgi, useSilgi, useSilgiStorage };
756
+ const autoImportTypes = [
757
+ "ExtractInputFromURI",
758
+ "ExtractOutputFromURI",
759
+ "ExtractPathParamsFromURI",
760
+ "ExtractQueryParamsFromURI"
761
+ ];
762
+
763
+ export { ErrorCategory, ErrorFactory, ErrorSeverity, HttpStatus, SilgiError, autoImportTypes, createSchema, createService, createShared, createSilgi, createStorage, getEvent, getEventContext, isBaseError, mergeSchemas, mergeServices, mergeShared, parseURI, replaceRuntimeValues, silgi, silgiCtx, storageMount, tryUseSilgi, useSilgi, useSilgiStorage };
@@ -1,3 +1,3 @@
1
- export { useSilgiRuntimeConfig } from './internal/config';
1
+ export { initRuntimeConfig, useSilgiRuntimeConfig } from './internal/config';
2
2
  export { defineSilgiPlugin } from './internal/plugin';
3
3
  export { mergeDeep } from './internal/defu';
@@ -1,3 +1,3 @@
1
- export { useSilgiRuntimeConfig } from "./internal/config.mjs";
1
+ export { initRuntimeConfig, useSilgiRuntimeConfig } from "./internal/config.mjs";
2
2
  export { defineSilgiPlugin } from "./internal/plugin.mjs";
3
3
  export { mergeDeep } from "./internal/defu.mjs";
@@ -1132,7 +1132,4 @@ interface ServiceParseModule {
1132
1132
  (params: ServiceParse): Awaited<void> | void;
1133
1133
  }
1134
1134
 
1135
- declare const autoImportTypes: string[];
1136
-
1137
- export { autoImportTypes };
1138
1135
  export type { AppConfig, Awaitable, BaseNamespaceType, BaseSchemaType, BaseSilgiMethodType, CaptureError, CapturedErrorContext, CommandType, CreateScope, DeepPartial, DefaultHooks, DefaultNamespaces, DefaultRouteConfig, DefaultRouteRules, DotenvOptions, EnvOptions, EventHandlerResponse, ExtendContext, ExtendShared, ExtractInputFromURI, ExtractOutputFromURI, ExtractPathParamsFromURI, ExtractQueryParamsFromURI, ExtractSourceFromURI, FrameworkContext, GenerateAppOptions, GraphQLJSON, HookResult, ImportItem, LoadConfigOptions, MergedSilgiSchema, MethodHandlerType, ModuleDefinition, ModuleHookContext, ModuleMeta, ModuleOptionsCustom, ModuleSetupInstallResult, ModuleSetupReturn, Namespaces, NitroBuildInfo, PrepareCore, RequiredServiceType, ResolvedMethodHandlerType, ResolvedModuleMeta, ResolvedModuleOptions, ResolvedServiceType, ResolvedSilgiTemplate, RouteRules, ScanFile, ServiceParse, ServiceParseModule, ServiceType, Silgi, SilgiAppPlugin, SilgiCLI, SilgiCLIConfig, SilgiCLIDynamicConfig, SilgiCLIHooks, SilgiCLIOptions, SilgiCommands, SilgiCompatibility, SilgiCompatibilityIssue, SilgiCompatibilityIssues, SilgiConfig, SilgiEvents, SilgiFrameworkInfo, SilgiFunction, SilgiHooks, SilgiModule, SilgiModuleInput, SilgiModuleOptions, SilgiNamespaces, SilgiOperation, SilgiOptions, SilgiPreset, SilgiPresetMeta, SilgiRouteRules, SilgiRouterTypes, SilgiRuntimeActions, SilgiRuntimeConfig, SilgiRuntimeContext, SilgiRuntimeHooks, SilgiRuntimeMethods, SilgiRuntimeOptions, SilgiRuntimeRouteRules, SilgiRuntimeRouteRulesConfig, SilgiRuntimeShareds, SilgiRuntimeSharedsExtend, SilgiSchema, SilgiServiceInterface, SilgiStorageBase, SilgiTemplate, SilgiURIs, StorageConfig, StorageKeyGenerator, StorageKeyParams, StorageMounts, TSReference, URIsTypes };
@@ -1,8 +1 @@
1
- const autoImportTypes = [
2
- "ExtractInputFromURI",
3
- "ExtractOutputFromURI",
4
- "ExtractPathParamsFromURI",
5
- "ExtractQueryParamsFromURI"
6
- ];
7
1
 
8
- export { autoImportTypes };
package/lib/config.mjs CHANGED
@@ -1,5 +1,5 @@
1
- function defineNitroConfig(config) {
1
+ function defineSilgiConfig(config) {
2
2
  return config
3
3
  }
4
4
 
5
- export { defineNitroConfig }
5
+ export { defineSilgiConfig }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.24.1",
4
+ "version": "0.24.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -18,6 +18,8 @@
18
18
  "./runtime/internal": "./dist/runtime/internal/index.mjs",
19
19
  "./runtime/meta": "./lib/runtime-meta.mjs"
20
20
  },
21
+ "main": "./dist/index.mjs",
22
+ "types": "./dist/index.d.mts",
21
23
  "bin": {
22
24
  "silgi": "./dist/cli/index.mjs"
23
25
  },
@@ -99,10 +101,10 @@
99
101
  "untyped": "^2.0.0"
100
102
  },
101
103
  "devDependencies": {
102
- "@antfu/eslint-config": "^4.10.2",
104
+ "@antfu/eslint-config": "^4.11.0",
103
105
  "@nuxt/kit": "^3.16.1",
104
106
  "@nuxt/schema": "^3.16.1",
105
- "@silgi/ecosystem": "^0.3.0",
107
+ "@silgi/ecosystem": "^0.3.3",
106
108
  "@types/node": "^22.13.11",
107
109
  "@types/semver": "^7.5.8",
108
110
  "@vitest/coverage-v8": "3.0.5",