@strapi/database 4.7.0-beta.0 → 4.7.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720
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.
|
@@ -16,11 +16,18 @@ class PostgresDialect extends Dialect {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
async initialize() {
|
|
19
|
+
// Don't cast DATE string to Date()
|
|
19
20
|
this.db.connection.client.driver.types.setTypeParser(
|
|
20
21
|
this.db.connection.client.driver.types.builtins.DATE,
|
|
21
22
|
'text',
|
|
22
23
|
(v) => v
|
|
23
|
-
);
|
|
24
|
+
);
|
|
25
|
+
// Don't parse JSONB automatically
|
|
26
|
+
this.db.connection.client.driver.types.setTypeParser(
|
|
27
|
+
this.db.connection.client.driver.types.builtins.JSONB,
|
|
28
|
+
'text',
|
|
29
|
+
(v) => v
|
|
30
|
+
);
|
|
24
31
|
this.db.connection.client.driver.types.setTypeParser(
|
|
25
32
|
this.db.connection.client.driver.types.builtins.NUMERIC,
|
|
26
33
|
'text',
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function isScalar(type: string): boolean
|
|
2
|
-
export function isNumber(type: string): boolean
|
|
3
|
-
export function isString(type: string): boolean
|
|
4
|
-
export function isComponent(type: string): boolean
|
|
5
|
-
export function isDynamicZone(type: string): boolean
|
|
6
|
-
export function isRelation(type: string): boolean
|
|
1
|
+
export function isScalar(type: string): boolean;
|
|
2
|
+
export function isNumber(type: string): boolean;
|
|
3
|
+
export function isString(type: string): boolean;
|
|
4
|
+
export function isComponent(type: string): boolean;
|
|
5
|
+
export function isDynamicZone(type: string): boolean;
|
|
6
|
+
export function isRelation(type: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/database",
|
|
3
|
-
"version": "4.7.0-
|
|
3
|
+
"version": "4.7.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720",
|
|
4
4
|
"description": "Strapi's database layer",
|
|
5
5
|
"homepage": "https://strapi.io",
|
|
6
6
|
"bugs": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"node": ">=14.19.1 <=18.x.x",
|
|
44
44
|
"npm": ">=6.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3d6a31eb083e9d44afcf98f68c107fb7567e5720"
|
|
47
47
|
}
|