Skip to content

Commit 4663360

Browse files
authored
Export Releasable interface on Core (#1195)
This release enables better typesafe implementation of ConnectionProviders.
1 parent 839733b commit 4663360

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/core/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import NotificationFilter, {
7676
} from './notification-filter'
7777
import Result, { QueryResult, ResultObserver } from './result'
7878
import EagerResult from './result-eager'
79-
import ConnectionProvider from './connection-provider'
79+
import ConnectionProvider, { Releasable } from './connection-provider'
8080
import Connection from './connection'
8181
import Transaction from './transaction'
8282
import ManagedTransaction from './transaction-managed'
@@ -160,6 +160,7 @@ const forExport = {
160160
Session,
161161
Driver,
162162
Connection,
163+
Releasable,
163164
types,
164165
driver,
165166
json,
@@ -224,6 +225,7 @@ export {
224225
Result,
225226
EagerResult,
226227
ConnectionProvider,
228+
Releasable,
227229
Connection,
228230
Transaction,
229231
ManagedTransaction,

packages/neo4j-driver-deno/lib/core/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import NotificationFilter, {
7676
} from './notification-filter.ts'
7777
import Result, { QueryResult, ResultObserver } from './result.ts'
7878
import EagerResult from './result-eager.ts'
79-
import ConnectionProvider from './connection-provider.ts'
79+
import ConnectionProvider, { Releasable } from './connection-provider.ts'
8080
import Connection from './connection.ts'
8181
import Transaction from './transaction.ts'
8282
import ManagedTransaction from './transaction-managed.ts'
@@ -160,6 +160,7 @@ const forExport = {
160160
Session,
161161
Driver,
162162
Connection,
163+
Releasable,
163164
types,
164165
driver,
165166
json,
@@ -224,6 +225,7 @@ export {
224225
Result,
225226
EagerResult,
226227
ConnectionProvider,
228+
Releasable,
227229
Connection,
228230
Transaction,
229231
ManagedTransaction,

0 commit comments

Comments
 (0)