@mikro-orm/core 7.2.4-dev.11 → 7.2.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.
@@ -641,7 +641,7 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName e
641
641
  '~discriminatorColumn'?: TBaseDiscriminatorColumn;
642
642
  });
643
643
  properties: TProperties | ((properties: PropertyBuilders) => TProperties);
644
- primaryKeys?: TPK & InferPrimaryKeyConstraint<TProperties>[];
644
+ primaryKeys?: TPK & NoInfer<InferPrimaryKeyConstraint<TProperties>>[];
645
645
  hooks?: DefineEntityHooks;
646
646
  repository?: () => TRepository;
647
647
  filters?: Dictionary<{
@@ -667,16 +667,16 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName e
667
667
  /** Alias for `discriminator`. */
668
668
  discriminatorColumn?: TDiscriminatorColumn;
669
669
  discriminatorValue?: TDiscriminatorValue;
670
- versionProperty?: AllKeys<TProperties, TBase>;
671
- concurrencyCheckKeys?: Set<AllKeys<TProperties, TBase>>;
672
- serializedPrimaryKey?: AllKeys<TProperties, TBase>;
670
+ versionProperty?: NoInfer<AllKeys<TProperties, TBase>>;
671
+ concurrencyCheckKeys?: Set<NoInfer<AllKeys<TProperties, TBase>>>;
672
+ serializedPrimaryKey?: NoInfer<AllKeys<TProperties, TBase>>;
673
673
  indexes?: {
674
674
  properties?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[];
675
675
  name?: string;
676
676
  type?: string;
677
677
  options?: Dictionary;
678
678
  expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>;
679
- where?: PartialWhere<TProperties, TBase>;
679
+ where?: NoInfer<PartialWhere<TProperties, TBase>>;
680
680
  columns?: IndexColumnOptions[];
681
681
  include?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[];
682
682
  fillFactor?: number;
@@ -689,7 +689,7 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName e
689
689
  name?: string;
690
690
  options?: Dictionary;
691
691
  expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>;
692
- where?: PartialWhere<TProperties, TBase>;
692
+ where?: NoInfer<PartialWhere<TProperties, TBase>>;
693
693
  deferMode?: DeferMode | `${DeferMode}`;
694
694
  columns?: IndexColumnOptions[];
695
695
  include?: NoInfer<AllKeys<TProperties, TBase>> | NoInfer<AllKeys<TProperties, TBase>>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.2.4-dev.11",
3
+ "version": "7.2.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/utils/Utils.js CHANGED
@@ -153,7 +153,7 @@ export function parseJsonSafe(value) {
153
153
  /** Collection of general-purpose utility methods used throughout the ORM. */
154
154
  export class Utils {
155
155
  static PK_SEPARATOR = '~~~';
156
- static #ORM_VERSION = '7.2.4-dev.11';
156
+ static #ORM_VERSION = '7.2.4-dev.12';
157
157
  /** Default session variable name backing an RLS filter argument (`current_setting('mikro.<filter>.<arg>')`). */
158
158
  static getRlsSettingName(filterName, argName) {
159
159
  return `mikro.${filterName}.${argName}`;