@mikro-orm/core 7.0.4-dev.11 → 7.0.4-dev.12
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/metadata/types.d.ts +1 -1
- package/package.json +1 -1
- package/types/EnumArrayType.d.ts +1 -1
- package/utils/Utils.js +1 -1
package/metadata/types.d.ts
CHANGED
|
@@ -499,7 +499,7 @@ export interface EmbeddableOptions<Owner> {
|
|
|
499
499
|
abstract?: boolean;
|
|
500
500
|
}
|
|
501
501
|
export interface EnumOptions<T> extends PropertyOptions<T> {
|
|
502
|
-
items?: (number | string)[] | (() => Dictionary);
|
|
502
|
+
items?: readonly (number | string)[] | (() => Dictionary);
|
|
503
503
|
array?: boolean;
|
|
504
504
|
/** for postgres, by default it uses text column with check constraint */
|
|
505
505
|
nativeEnumName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.0.4-dev.
|
|
3
|
+
"version": "7.0.4-dev.12",
|
|
4
4
|
"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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
package/types/EnumArrayType.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { EntityProperty } from '../typings.js';
|
|
|
6
6
|
export declare class EnumArrayType<T extends string | number = string> extends ArrayType<T> {
|
|
7
7
|
private readonly owner;
|
|
8
8
|
private readonly items?;
|
|
9
|
-
constructor(owner: string, items?: T[] | undefined, hydrate?: (i: string) => T);
|
|
9
|
+
constructor(owner: string, items?: readonly T[] | undefined, hydrate?: (i: string) => T);
|
|
10
10
|
convertToDatabaseValue(value: T[] | null, platform: Platform, context?: TransformContext): string | null;
|
|
11
11
|
getColumnType(prop: EntityProperty, platform: Platform): string;
|
|
12
12
|
}
|
package/utils/Utils.js
CHANGED
|
@@ -129,7 +129,7 @@ export function parseJsonSafe(value) {
|
|
|
129
129
|
/** Collection of general-purpose utility methods used throughout the ORM. */
|
|
130
130
|
export class Utils {
|
|
131
131
|
static PK_SEPARATOR = '~~~';
|
|
132
|
-
static #ORM_VERSION = '7.0.4-dev.
|
|
132
|
+
static #ORM_VERSION = '7.0.4-dev.12';
|
|
133
133
|
/**
|
|
134
134
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
135
135
|
*/
|