@stacksjs/orm 0.70.228 → 0.70.230
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/auto-crud.d.ts +21 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +18 -18
- package/dist/utils.d.ts +2 -1
- package/package.json +4 -4
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttributesElements, Model, ModelElement, RelationConfig, TableNames } from '@stacksjs/types';
|
|
1
|
+
import type { AttributesElements, BaseBelongsToMany, Model, ModelElement, ModelNames, RelationConfig, TableNames } from '@stacksjs/types';
|
|
2
2
|
export declare function modelTableName(model: Model | ModelPath): Promise<string>;
|
|
3
3
|
export declare function getModelName(model: Model, modelPath: string): string;
|
|
4
4
|
export declare function getTableName(model: Model, modelPath: string): TableNames;
|
|
@@ -20,3 +20,4 @@ export declare function formatDate(date: Date | number | string): string;
|
|
|
20
20
|
export declare function extractDate(date: Date): string;
|
|
21
21
|
export declare function toTimestamp(date: Date): number;
|
|
22
22
|
declare type ModelPath = string;
|
|
23
|
+
declare type LegacyBelongsToMany = ModelNames | BaseBelongsToMany<ModelNames>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/orm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.230",
|
|
6
6
|
"description": "The Stacks ORM integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"bun-query-builder": "^0.1.63"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@stacksjs/config": "0.70.
|
|
65
|
+
"@stacksjs/config": "0.70.230",
|
|
66
66
|
"better-dx": "^0.2.17",
|
|
67
|
-
"@stacksjs/query-builder": "0.70.
|
|
68
|
-
"@stacksjs/types": "0.70.
|
|
67
|
+
"@stacksjs/query-builder": "0.70.230",
|
|
68
|
+
"@stacksjs/types": "0.70.230"
|
|
69
69
|
}
|
|
70
70
|
}
|