@dudousxd/nestjs-codegen 0.10.0 → 0.11.0

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/index.d.cts CHANGED
@@ -296,6 +296,6 @@ interface FastDiscoveryOptions {
296
296
  }
297
297
  declare function discoverContractsFast(opts: FastDiscoveryOptions): Promise<RouteDescriptor[]>;
298
298
 
299
- declare const VERSION = "0.10.0";
299
+ declare const VERSION = "0.11.0";
300
300
 
301
301
  export { type ChainModuleRendererOptions, CodegenError, ConfigError, type FastDiscoveryOptions, type JsonSchema, type MocksEmitOptions, type OpenApiDocument, type OpenApiEmitOptions, type OpenApiInfo, RenderContext, RenderedModule, ResolvedConfig, RouteDescriptor, SchemaModule, SchemaNode, type TsTypeContext, UserConfig, VERSION, ValidationAdapter, type Watcher, acquireLock, buildMocksFile, buildOpenApiSpec, createChainModuleRenderer, defineConfig, discoverContractsFast, emitApi, emitForms, emitMocks, emitOpenApi, emitRoutes, extractSchemaFromDto, generate, loadConfig, renderTsType, resolveConfig, schemaModuleToJsonSchema, schemaNodeToJsonSchema, toObjectKey, typeNameFor, watch };
package/dist/index.d.ts CHANGED
@@ -296,6 +296,6 @@ interface FastDiscoveryOptions {
296
296
  }
297
297
  declare function discoverContractsFast(opts: FastDiscoveryOptions): Promise<RouteDescriptor[]>;
298
298
 
299
- declare const VERSION = "0.10.0";
299
+ declare const VERSION = "0.11.0";
300
300
 
301
301
  export { type ChainModuleRendererOptions, CodegenError, ConfigError, type FastDiscoveryOptions, type JsonSchema, type MocksEmitOptions, type OpenApiDocument, type OpenApiEmitOptions, type OpenApiInfo, RenderContext, RenderedModule, ResolvedConfig, RouteDescriptor, SchemaModule, SchemaNode, type TsTypeContext, UserConfig, VERSION, ValidationAdapter, type Watcher, acquireLock, buildMocksFile, buildOpenApiSpec, createChainModuleRenderer, defineConfig, discoverContractsFast, emitApi, emitForms, emitMocks, emitOpenApi, emitRoutes, extractSchemaFromDto, generate, loadConfig, renderTsType, resolveConfig, schemaModuleToJsonSchema, schemaNodeToJsonSchema, toObjectKey, typeNameFor, watch };
package/dist/index.js CHANGED
@@ -803,7 +803,11 @@ function buildRequestModel(c) {
803
803
  urlExpr,
804
804
  optsExpr,
805
805
  responseType: `${TA}['response']`,
806
- queryKeyExpr: `[${flat}, input] as const`
806
+ // When no input is supplied the key omits the trailing element entirely
807
+ // (`[name]` rather than `[name, undefined]`) so the bare `.queryKey()` is a
808
+ // clean prefix that partial-matches every parametrized variant — making it
809
+ // directly usable for `invalidateQueries`.
810
+ queryKeyExpr: `(input === undefined ? [${flat}] as const : [${flat}, input] as const)`
807
811
  };
808
812
  }
809
813
  function renderFetcherRequest(req) {
@@ -4583,7 +4587,7 @@ function createChainModuleRenderer(opts) {
4583
4587
  }
4584
4588
 
4585
4589
  // src/index.ts
4586
- var VERSION = "0.10.0";
4590
+ var VERSION = "0.11.0";
4587
4591
  export {
4588
4592
  CodegenError,
4589
4593
  ConfigError,