@decohere/data-typeorm 0.0.1-dev.124 → 0.0.1-dev.126

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.
@@ -42,7 +42,7 @@ class BuilderExtensions {
42
42
  // The container disposes only what it has handed out, and nothing may ever ask for a
43
43
  // DataSource by its token. Resolving each here makes the root container own it, as one of
44
44
  // its first instances, so it is closed last: after hosted services and other services
45
- // that use it (#541).
45
+ // that use it.
46
46
  builder.registerPostBuildStep((container)=>{
47
47
  for (const name of names)container.resolve((0, _injectdatasource.typeOrmDataSourceToken)(name));
48
48
  });
@@ -30,7 +30,7 @@ class TypeOrmUnitOfWork {
30
30
  /**
31
31
  * Hand the connection back to the pool, rolling back first if a transaction is still open
32
32
  * (e.g. the request failed before commit). Otherwise the next user of that pooled
33
- * connection would inherit the half-finished transaction (#502).
33
+ * connection would inherit the half-finished transaction.
34
34
  */ async [Symbol.asyncDispose]() {
35
35
  if (this.queryRunner.isReleased) {
36
36
  return;
@@ -6,7 +6,7 @@ import { ProviderMap } from "./dialect-map.js";
6
6
  }
7
7
  /**
8
8
  * A DataSource the container can close: TypeORM's has `destroy()` but no `Symbol.asyncDispose`,
9
- * so disposing the app's container used to leave its connections open (#541).
9
+ * so disposing the app's container used to leave its connections open.
10
10
  */ export class ManagedDataSource extends DataSource {
11
11
  async [Symbol.asyncDispose]() {
12
12
  if (this.isInitialized) await this.destroy();
@@ -32,7 +32,7 @@ export class BuilderExtensions {
32
32
  // The container disposes only what it has handed out, and nothing may ever ask for a
33
33
  // DataSource by its token. Resolving each here makes the root container own it, as one of
34
34
  // its first instances, so it is closed last: after hosted services and other services
35
- // that use it (#541).
35
+ // that use it.
36
36
  builder.registerPostBuildStep((container)=>{
37
37
  for (const name of names)container.resolve(typeOrmDataSourceToken(name));
38
38
  });
@@ -20,7 +20,7 @@ export class TypeOrmUnitOfWork {
20
20
  /**
21
21
  * Hand the connection back to the pool, rolling back first if a transaction is still open
22
22
  * (e.g. the request failed before commit). Otherwise the next user of that pooled
23
- * connection would inherit the half-finished transaction (#502).
23
+ * connection would inherit the half-finished transaction.
24
24
  */ async [Symbol.asyncDispose]() {
25
25
  if (this.queryRunner.isReleased) {
26
26
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/data-typeorm",
3
- "version": "0.0.1-dev.124",
3
+ "version": "0.0.1-dev.126",
4
4
  "description": "TypeORM and Postgres adapter for @decohere/data: DataSource, migrations and least-privilege roles",
5
5
  "keywords": [
6
6
  "typescript",
@@ -33,11 +33,11 @@
33
33
  "test": "echo \"Error: no test specified\" && exit 1"
34
34
  },
35
35
  "dependencies": {
36
- "@decohere/core": "0.0.1-dev.124",
37
- "@decohere/crucible": "0.0.1-dev.124",
38
- "@decohere/data": "0.0.1-dev.124",
39
- "@decohere/http": "0.0.1-dev.124",
40
- "@decohere/scribe": "0.0.1-dev.124",
36
+ "@decohere/core": "0.0.1-dev.126",
37
+ "@decohere/crucible": "0.0.1-dev.126",
38
+ "@decohere/data": "0.0.1-dev.126",
39
+ "@decohere/http": "0.0.1-dev.126",
40
+ "@decohere/scribe": "0.0.1-dev.126",
41
41
  "pg": "^8.16.3",
42
42
  "pino-pretty": "^13.1.3",
43
43
  "typeorm": "^0.3.31"
@@ -7,7 +7,7 @@ export type ConnectionOptions = ConnectionInfo & {
7
7
  };
8
8
  /**
9
9
  * A DataSource the container can close: TypeORM's has `destroy()` but no `Symbol.asyncDispose`,
10
- * so disposing the app's container used to leave its connections open (#541).
10
+ * so disposing the app's container used to leave its connections open.
11
11
  */
12
12
  export declare class ManagedDataSource extends DataSource {
13
13
  [Symbol.asyncDispose](): Promise<void>;
@@ -12,7 +12,7 @@ export declare class TypeOrmUnitOfWork implements IUnitOfWork {
12
12
  /**
13
13
  * Hand the connection back to the pool, rolling back first if a transaction is still open
14
14
  * (e.g. the request failed before commit). Otherwise the next user of that pooled
15
- * connection would inherit the half-finished transaction (#502).
15
+ * connection would inherit the half-finished transaction.
16
16
  */
17
17
  [Symbol.asyncDispose](): Promise<void>;
18
18
  /** Prefer `await using` / async disposal; this starts the same cleanup without waiting. */