@rebasepro/server-postgres 0.19.2-canary.g201749f → 0.19.2-canary.g2cd43e9
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.es.js +47 -10
- package/dist/index.es.js.map +1 -1
- package/dist/services/row-pipeline.d.ts +12 -3
- package/package.json +7 -7
|
@@ -29,6 +29,15 @@ export type RelationStyle = "ref" | "inline";
|
|
|
29
29
|
* to unwrap that same level back out.
|
|
30
30
|
*/
|
|
31
31
|
export declare function isJunctionRelation(relation: ResolvedRelation): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Apply {@link toRestScalar} across a row, leaving undeclared columns alone.
|
|
34
|
+
*
|
|
35
|
+
* Exported because the include loader attaches related rows itself, and a
|
|
36
|
+
* target rendered differently from its parent is the shape bug this whole file
|
|
37
|
+
* exists to prevent — a date was a string at the top level and a
|
|
38
|
+
* `{ __type: "date" }` envelope one level down, in the same response.
|
|
39
|
+
*/
|
|
40
|
+
export declare function toRestValues(row: Record<string, unknown>, collection: CollectionConfig): Record<string, unknown>;
|
|
32
41
|
/** Render one target row in the requested style. */
|
|
33
42
|
/**
|
|
34
43
|
* Drop every column this caller may not read.
|
|
@@ -80,9 +89,9 @@ export declare function toFlatRow(row: Record<string, unknown>, collection: Coll
|
|
|
80
89
|
*
|
|
81
90
|
* Values are the ones the database returned, except where that contradicts the
|
|
82
91
|
* declared type: a `number` property is served as a number (see
|
|
83
|
-
* {@link coerceDeclaredNumber})
|
|
84
|
-
*
|
|
85
|
-
*
|
|
92
|
+
* {@link coerceDeclaredNumber}) and a `date` as RFC 3339, which is what this
|
|
93
|
+
* server's own OpenAPI document says a date column is (see
|
|
94
|
+
* {@link toRestDate}).
|
|
86
95
|
*
|
|
87
96
|
* Keyed by the row rather than by the relation list — a REST fetch only loads
|
|
88
97
|
* the relations `include` asked for, so the row is the authority on which are
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebasepro/server-postgres",
|
|
3
|
-
"version": "0.19.2-canary.
|
|
3
|
+
"version": "0.19.2-canary.g2cd43e9",
|
|
4
4
|
"description": "PostgreSQL data source backend implementation for Rebase with Drizzle ORM",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"execa": "^9.6.1",
|
|
51
51
|
"pg": "^8.22.0",
|
|
52
52
|
"ws": "^8.21.1",
|
|
53
|
-
"@rebasepro/
|
|
54
|
-
"@rebasepro/common": "0.19.2-canary.
|
|
55
|
-
"@rebasepro/
|
|
56
|
-
"@rebasepro/
|
|
57
|
-
"@rebasepro/
|
|
53
|
+
"@rebasepro/types": "0.19.2-canary.g2cd43e9",
|
|
54
|
+
"@rebasepro/common": "0.19.2-canary.g2cd43e9",
|
|
55
|
+
"@rebasepro/server": "0.19.2-canary.g2cd43e9",
|
|
56
|
+
"@rebasepro/utils": "0.19.2-canary.g2cd43e9",
|
|
57
|
+
"@rebasepro/codegen": "0.19.2-canary.g2cd43e9"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@electric-sql/pglite": "0.5.6",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
71
|
"vite": "^8.1.5",
|
|
72
72
|
"vitest": "^4.1.10",
|
|
73
|
-
"@rebasepro/client": "0.19.2-canary.
|
|
73
|
+
"@rebasepro/client": "0.19.2-canary.g2cd43e9"
|
|
74
74
|
},
|
|
75
75
|
"gitHead": "d935eefa5aa8d1009a2398cfac2c1e4ee9aeb6b6",
|
|
76
76
|
"publishConfig": {
|