@mikro-orm/core 7.1.3-dev.5 → 7.1.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.1.3-dev.5",
3
+ "version": "7.1.3",
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",
@@ -151,6 +151,12 @@ export interface ConnectionOptions {
151
151
  driverOptions?: Dictionary;
152
152
  /** Callback to execute when a new connection is created. */
153
153
  onCreateConnection?: (connection: unknown) => Promise<void>;
154
+ /**
155
+ * Callback to execute every time a connection is acquired from the pool, e.g. to set
156
+ * request-scoped session variables before each query (such as for row-level security).
157
+ * Supported by the PostgreSQL, MySQL/MariaDB, and MSSQL drivers; ignored by other drivers (SQLite, libSQL, Oracle).
158
+ */
159
+ onReserveConnection?: (connection: unknown) => Promise<void>;
154
160
  /**
155
161
  * SQLite/libSQL: databases to attach on connection.
156
162
  * Each attached database acts as a schema, accessible via `schema.table` syntax.
package/utils/Utils.js CHANGED
@@ -141,7 +141,7 @@ export function parseJsonSafe(value) {
141
141
  /** Collection of general-purpose utility methods used throughout the ORM. */
142
142
  export class Utils {
143
143
  static PK_SEPARATOR = '~~~';
144
- static #ORM_VERSION = '7.1.3-dev.5';
144
+ static #ORM_VERSION = '7.1.3';
145
145
  /**
146
146
  * Checks if the argument is instance of `Object`. Returns false for arrays.
147
147
  */