@stacksjs/orm 0.75.629 → 0.75.632

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 (2) hide show
  1. package/dist/native.d.ts +14 -5
  2. package/package.json +24 -24
package/dist/native.d.ts CHANGED
@@ -26,11 +26,20 @@ export declare function createNativeModelApi(options: {
26
26
  authorize: (request: Request, model: string, ability: string) => boolean | Promise<boolean>
27
27
  }): (request: Request) => Promise<Response | null>;
28
28
  /** Explicit model registry: the compiled app never discovers source files at runtime. */
29
+ /**
30
+ * What a native app hands this module of each of its models.
31
+ *
32
+ * A model call returns its value where it is written, and a write is a
33
+ * promise only on a model that declares something to wait for; every call
34
+ * below is awaited, which takes either. Typed `Promise<unknown>`, this
35
+ * rejected every model since the in-place API, and each native app's
36
+ * `createNativeModelApi({ models })` stopped compiling.
37
+ */
29
38
  export declare interface NativeModel {
30
39
  [MODEL_DEFINITION]: StacksModelDefinition
31
- find: (id: number) => Promise<unknown>
32
- create: (data: Record<string, unknown>) => Promise<unknown>
33
- update: (id: number, data: Record<string, unknown>) => Promise<unknown>
34
- destroy: (id: number) => Promise<unknown>
35
- limit: (count: number) => { offset: (offset: number) => { get: () => Promise<unknown> } }
40
+ find: (id: number) => unknown
41
+ create: (data: Record<string, unknown>) => unknown
42
+ update: (id: number, data: Record<string, unknown>) => unknown
43
+ destroy: (id: number) => unknown
44
+ limit: (count: number) => { offset: (offset: number) => { get: () => unknown } }
36
45
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.629",
5
+ "version": "0.75.632",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -63,32 +63,32 @@
63
63
  "prepublishOnly": "bun run build"
64
64
  },
65
65
  "dependencies": {
66
- "@stacksjs/cache": "0.75.629",
67
- "@stacksjs/cli": "0.75.629",
68
- "@stacksjs/config": "0.75.629",
69
- "@stacksjs/database": "0.75.629",
70
- "@stacksjs/env": "0.75.629",
71
- "@stacksjs/error-handling": "0.75.629",
72
- "@stacksjs/events": "0.75.629",
73
- "@stacksjs/logging": "0.75.629",
74
- "@stacksjs/model-meta": "0.75.629",
75
- "@stacksjs/pagination": "0.75.629",
76
- "@stacksjs/path": "0.75.629",
77
- "@stacksjs/query-builder": "0.75.629",
78
- "@stacksjs/realtime": "0.75.629",
79
- "@stacksjs/router": "0.75.629",
80
- "@stacksjs/storage": "0.75.629",
81
- "@stacksjs/strings": "0.75.629",
66
+ "@stacksjs/cache": "0.75.632",
67
+ "@stacksjs/cli": "0.75.632",
68
+ "@stacksjs/config": "0.75.632",
69
+ "@stacksjs/database": "0.75.632",
70
+ "@stacksjs/env": "0.75.632",
71
+ "@stacksjs/error-handling": "0.75.632",
72
+ "@stacksjs/events": "0.75.632",
73
+ "@stacksjs/logging": "0.75.632",
74
+ "@stacksjs/model-meta": "0.75.632",
75
+ "@stacksjs/pagination": "0.75.632",
76
+ "@stacksjs/path": "0.75.632",
77
+ "@stacksjs/query-builder": "0.75.632",
78
+ "@stacksjs/realtime": "0.75.632",
79
+ "@stacksjs/router": "0.75.632",
80
+ "@stacksjs/storage": "0.75.632",
81
+ "@stacksjs/strings": "0.75.632",
82
82
  "@stacksjs/ts-validation": "^0.5.7",
83
- "@stacksjs/validation": "0.75.629",
84
- "bun-query-builder": "^0.6.2",
83
+ "@stacksjs/validation": "0.75.632",
84
+ "bun-query-builder": "^0.6.4",
85
85
  "stripe": "23.0.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@stacksjs/auth": "0.75.629",
89
- "@stacksjs/payments": "0.75.629",
90
- "@stacksjs/queue": "0.75.629",
91
- "@stacksjs/search-engine": "0.75.629"
88
+ "@stacksjs/auth": "0.75.632",
89
+ "@stacksjs/payments": "0.75.632",
90
+ "@stacksjs/queue": "0.75.632",
91
+ "@stacksjs/search-engine": "0.75.632"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@stacksjs/auth": {
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "devDependencies": {
105
- "@stacksjs/types": "0.75.629",
105
+ "@stacksjs/types": "0.75.632",
106
106
  "better-dx": "^0.2.39"
107
107
  }
108
108
  }