@mikro-orm/knex 7.0.0-dev.91 → 7.0.0-dev.93

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.
@@ -1,5 +1,4 @@
1
1
  import { CompiledQuery, Kysely } from 'kysely';
2
- import { readFile } from 'node:fs/promises';
3
2
  import { Connection, EventType, RawQueryFragment, Utils, } from '@mikro-orm/core';
4
3
  import { NativeQueryBuilder } from './query/NativeQueryBuilder.js';
5
4
  export class AbstractSqlConnection extends Connection {
@@ -195,6 +194,7 @@ export class AbstractSqlConnection extends Connection {
195
194
  */
196
195
  async loadFile(path) {
197
196
  await this.ensureConnection();
197
+ const { readFile } = globalThis.process.getBuiltinModule('node:fs/promises');
198
198
  const buf = await readFile(path);
199
199
  try {
200
200
  const raw = CompiledQuery.raw(buf.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "7.0.0-dev.91",
3
+ "version": "7.0.0-dev.93",
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
  "type": "module",
6
6
  "exports": {
@@ -57,6 +57,6 @@
57
57
  "@mikro-orm/core": "^6.6.2"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.0.0-dev.91"
60
+ "@mikro-orm/core": "7.0.0-dev.93"
61
61
  }
62
62
  }