@mikro-orm/core 7.0.0-dev.127 → 7.0.0-dev.128
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/package.json +1 -1
- package/utils/Configuration.d.ts +3 -2
- package/utils/Configuration.js +1 -0
- package/utils/Utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.128",
|
|
5
5
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
package/utils/Configuration.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare const DEFAULTS: {
|
|
|
69
69
|
readonly upsertManaged: true;
|
|
70
70
|
readonly forceEntityConstructor: false;
|
|
71
71
|
readonly forceUndefined: false;
|
|
72
|
+
readonly forceUtcTimezone: true;
|
|
72
73
|
readonly processOnCreateHooksEarly: true;
|
|
73
74
|
readonly ensureDatabase: true;
|
|
74
75
|
readonly ensureIndexes: false;
|
|
@@ -623,9 +624,9 @@ export interface Options<Driver extends IDatabaseDriver = IDatabaseDriver, EM ex
|
|
|
623
624
|
processOnCreateHooksEarly?: boolean;
|
|
624
625
|
/**
|
|
625
626
|
* Force `Date` values to be stored in UTC for datetime columns without timezone.
|
|
626
|
-
* Works for MySQL (`datetime` type)
|
|
627
|
+
* Works for MySQL (`datetime` type), PostgreSQL (`timestamp` type), and MSSQL (`datetime`/`datetime2` types).
|
|
627
628
|
* SQLite does this by default.
|
|
628
|
-
* @default
|
|
629
|
+
* @default true
|
|
629
630
|
*/
|
|
630
631
|
forceUtcTimezone?: boolean;
|
|
631
632
|
/**
|
package/utils/Configuration.js
CHANGED
package/utils/Utils.js
CHANGED
|
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
|
|
|
123
123
|
}
|
|
124
124
|
export class Utils {
|
|
125
125
|
static PK_SEPARATOR = '~~~';
|
|
126
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.128';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|