@duraxis/orm 0.3.0 → 0.5.0

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.
@@ -2,7 +2,6 @@ import type { EntityMetadata } from "../metadata/entity-metadata.js";
2
2
  import type { Relations } from "../query/find-options.js";
3
3
  import type { RepositoryRuntime } from "../repository/repository-options.js";
4
4
  export declare class RelationLoader<TEntity extends object> {
5
- #private;
6
5
  private readonly metadata;
7
6
  private readonly runtime;
8
7
  constructor(metadata: EntityMetadata<TEntity>, runtime: RepositoryRuntime);
@@ -8,6 +8,7 @@ export declare class OrmTransactionManager implements TransactionContext {
8
8
  private readonly database;
9
9
  private readonly transaction;
10
10
  private readonly registry;
11
+ get signal(): AbortSignal;
11
12
  constructor(database: DuraxisDatabase, transaction: Transaction, registry: MetadataRegistry);
12
13
  getRepository<TEntity extends object>(entity: EntityClass<TEntity>): Repository<TEntity>;
13
14
  close(): void;
@@ -1,5 +1,6 @@
1
1
  import type { EntityClass } from "../metadata/entity-metadata.js";
2
2
  import type { Repository } from "../repository/repository.js";
3
3
  export interface TransactionContext {
4
+ readonly signal?: AbortSignal;
4
5
  getRepository<TEntity extends object>(entity: EntityClass<TEntity>): Repository<TEntity>;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duraxis/orm",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Decorator-based entity mapping and repositories for the Duraxis database.",
5
5
  "license": "ISC",
6
6
  "author": "João Paulo Dias <joaopdias.dev@gmail.com>",
@@ -45,12 +45,12 @@
45
45
  "CHANGELOG.md"
46
46
  ],
47
47
  "dependencies": {
48
- "@duraxis/core": "0.3.0"
48
+ "@duraxis/core": "0.5.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@duraxis/storage": "0.1.2",
52
- "@duraxis/storage-memory": "0.1.3",
53
- "@duraxis/storage-disk": "0.1.3"
51
+ "@duraxis/storage": "0.2.1",
52
+ "@duraxis/storage-memory": "0.2.1",
53
+ "@duraxis/storage-disk": "0.2.1"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "vite build && tsc -p tsconfig.build.json",