@mikro-orm/core 7.0.10-dev.7 → 7.0.10-dev.9

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.
@@ -7,7 +7,12 @@ import { ReferenceKind } from '../enums.js';
7
7
  import { helper } from './wrap.js';
8
8
  import { inspect } from '../logging/inspect.js';
9
9
  import { getEnv } from '../utils/env-vars.js';
10
- const entitySymbol = Symbol('Entity');
10
+ // Globally registered so the marker survives the CJS/ESM dual-package hazard
11
+ // (#7515) — `tsx` registers both an ESM and a CJS hook for the CLI and ends up
12
+ // loading `@mikro-orm/core` twice. JSON payloads still cannot forge the marker
13
+ // because Symbol-keyed properties have no JSON representation, which is the
14
+ // threat model the symbol-vs-string switch in f7e59a5ce was guarding against.
15
+ const entitySymbol = Symbol.for('@mikro-orm/core/EntityHelper.entity');
11
16
  /**
12
17
  * @internal
13
18
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.0.10-dev.7",
3
+ "version": "7.0.10-dev.9",
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
@@ -132,7 +132,7 @@ export function parseJsonSafe(value) {
132
132
  /** Collection of general-purpose utility methods used throughout the ORM. */
133
133
  export class Utils {
134
134
  static PK_SEPARATOR = '~~~';
135
- static #ORM_VERSION = '7.0.10-dev.7';
135
+ static #ORM_VERSION = '7.0.10-dev.9';
136
136
  /**
137
137
  * Checks if the argument is instance of `Object`. Returns false for arrays.
138
138
  */