CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 23:53:02 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neo4j/neo4j-javascript-driver.git
etag: W/"127b1b8959026ef48c1424bf987be68e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=cL%2BF3GRtTTEQmrNxPte6egBvzCoWNOgai%2BO4R6%2BlugaN1Ffqb8AfezXSRU52MqQqlE4aacR7%2Bjr8A%2F1nEMjYiYDi80%2FRAlkf7UIu9RctTLxspl8ZzhvyEmGAgZc%2BAJCNoK6h15m1TIaSoJx%2Fpf%2FckyShmXFmk1H1uiByY2RPTGEdoY6vFKQKGTxshrIdEcPtpMiLr76nFAN2EGshJ1BvXduDc%2BZp8xLfrBhloKOSYh6Rt4ycd9xDnZPYdgZf31RQjtkYNXjZHaJF%2Bfi%2BrrGNJw%3D%3D--oFBPqKGj8C7xORa0--0jAzoviWknk4crAQ1bGtvg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.387087635.1753228381; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:53:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:53:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B9F2:2FAFD7:1D4A07:288F9B:6880245D
Introduce explicity resource management to Driver and Session objects… · neo4j/neo4j-javascript-driver@e191168 · GitHub
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/integer.ts
Copy file name to clipboardExpand all lines: packages/core/src/result.ts
Copy file name to clipboardExpand all lines: packages/core/src/session.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/driver.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/integer.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/result.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/session.ts
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit e191168
authored
Introduce explicity resource management to Driver and Session objects (#1154)
This is a TC39 [proposal](https://github.com/tc39/proposal-explicit-resource-management) which is already implemented in Typescript 5.2, core-js, babel and other polyfill tools.
This feature enables the user create the driver or a session with the `await using` keywords and then do not have to close the resource afterwards, since this resources will be closed after leaving the block which were created at.
For example:
```typescript
await using driver = neo4j.driver(uri, authToken)
await using session = driver.session()
await session.executeRead(tx => "RETURN 1")
```
Since Deno is more strict with typescript, small fixes had to be done in the driver.
* Add a value to Result[Symbol.toStringTag].
* Fix Integer.shiftRight function to add proper integer conversion it.
A package.json file was added to the `neo4j-driver-deno` folder for making easier to integrate the test runners to the environments.1 parent 91dd8bf commit e191168Copy full SHA for e191168
File tree
Expand file treeCollapse file tree
15 files changed
+102
-9
lines changedFilter options
- packages
- core/src
- neo4j-driver-deno
- lib/core
- test
- neo4j-driver/src
- testkit-backend
- testkit
Expand file treeCollapse file tree
15 files changed
+102
-9
lines changed+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
| 43 | + | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
779 | 785 |
| |
780 | 786 |
| |
781 | 787 |
| |
|
packages/core/src/integer.ts
Copy file name to clipboardExpand all lines: packages/core/src/integer.ts+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
695 | 695 |
| |
696 | 696 |
| |
697 | 697 |
| |
| 698 | + | |
698 | 699 |
| |
699 | 700 |
| |
700 | 701 |
| |
701 |
| - | |
| 702 | + | |
702 | 703 |
| |
703 | 704 |
| |
704 | 705 |
| |
|
packages/core/src/result.ts
Copy file name to clipboardExpand all lines: packages/core/src/result.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
378 |
| - | |
| 378 | + | |
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
|
packages/core/src/session.ts
Copy file name to clipboardExpand all lines: packages/core/src/session.ts+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
564 | 570 |
| |
565 | 571 |
| |
566 | 572 |
| |
|
packages/neo4j-driver-deno/lib/core/driver.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/driver.ts+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
779 | 785 |
| |
780 | 786 |
| |
781 | 787 |
| |
|
packages/neo4j-driver-deno/lib/core/integer.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/integer.ts+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
695 | 695 |
| |
696 | 696 |
| |
697 | 697 |
| |
| 698 | + | |
698 | 699 |
| |
699 | 700 |
| |
700 | 701 |
| |
701 |
| - | |
| 702 | + | |
702 | 703 |
| |
703 | 704 |
| |
704 | 705 |
| |
|
packages/neo4j-driver-deno/lib/core/result.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/result.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
378 |
| - | |
| 378 | + | |
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
|
packages/neo4j-driver-deno/lib/core/session.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/session.ts+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
564 | 570 |
| |
565 | 571 |
| |
566 | 572 |
| |
|
packages/neo4j-driver-deno/package.json
Copy file name to clipboard+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
You can’t perform that action at this time.
0 commit comments