@stacksjs/api 0.75.38 → 0.75.41

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,4 +1,3 @@
1
- import { path } from '@stacksjs/path';
2
1
  import type { SchemaObject } from './generate-types';
3
2
  /**
4
3
  * Map a Stacks validation rule to an OpenAPI 3.0 schema fragment.
@@ -49,18 +48,7 @@ export declare function describedResponses(action: Record<string, unknown> | nul
49
48
  */
50
49
  export declare function generateOpenApi(options?: {
51
50
  write?: boolean
52
- /**
53
- * Produce the canonical, machine-independent document.
54
- *
55
- * The committed `storage/framework/api/openapi.json` is compared byte for
56
- * byte against a fresh generation, so anything that varies by machine or by
57
- * run makes the check either fail for everyone or pass for nobody. Portable
58
- * mode pins those inputs and refuses to emit a document it cannot vouch for.
59
- *
60
- * Defaults to true, because every path that produces or verifies the shared
61
- * artifact must agree. Only the live `GET /__openapi.json` route wants the
62
- * app-flavoured variant, and it opts out explicitly.
63
- */
51
+
64
52
  portable?: boolean
65
53
  }): Promise<OpenApiSpec>;
66
54
  declare interface OpenApiPathItem {
@@ -70,7 +70,7 @@ export declare class MergeValue {
70
70
  export declare class ConditionalValue {
71
71
  public condition: boolean | (() => boolean);
72
72
  public value: any;
73
- public defaultValue?: any;
73
+ public defaultValue: any;
74
74
  constructor(condition: boolean | (() => boolean), value: any, defaultValue?: any);
75
75
  resolve(): any;
76
76
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/api",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.38",
5
+ "version": "0.75.41",
6
6
  "description": "The Stacks API utilities.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -61,15 +61,15 @@
61
61
  "prepublishOnly": "bun run build"
62
62
  },
63
63
  "dependencies": {
64
- "@stacksjs/config": "0.75.38",
65
- "@stacksjs/path": "0.75.38"
64
+ "@stacksjs/config": "0.75.41",
65
+ "@stacksjs/path": "0.75.41"
66
66
  },
67
67
  "devDependencies": {
68
- "@stacksjs/utils": "0.75.38",
68
+ "@stacksjs/utils": "0.75.41",
69
69
  "better-dx": "^0.2.24"
70
70
  },
71
71
  "peerDependencies": {
72
- "@stacksjs/router": "0.75.38"
72
+ "@stacksjs/router": "0.75.41"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "@stacksjs/router": {