neo4j-driver 5.2.0 → 5.4.0-alpha01

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.
package/.babelrc CHANGED
@@ -6,12 +6,5 @@
6
6
  ],
7
7
  "plugins": [
8
8
  "@babel/plugin-transform-runtime",
9
- ],
10
- "env": {
11
- "test": {
12
- "plugins": [
13
- "istanbul"
14
- ]
15
- }
16
- }
9
+ ]
17
10
  }
package/README.md CHANGED
@@ -78,6 +78,27 @@ var driver = neo4j.driver(
78
78
  )
79
79
  ```
80
80
 
81
+ From `5.4.0`, this version is also exported as ECMA Script Module.
82
+ It can be imported from a module using the following statements:
83
+
84
+ ```javascript
85
+ // Direct reference
86
+ import neo4j from 'lib/browser/neo4j-web.esm.min.js'
87
+
88
+ // unpkg CDN non-minified , version X.Y.Z where X.Y.Z >= 5.4.0
89
+ import neo4j from 'https://unpkg.com/browse/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.js'
90
+
91
+ // unpkg CDN minified for production use, version X.Y.Z where X.Y.Z >= 5.4.0
92
+ import neo4j from 'https://unpkg.com/browse/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.min.js'
93
+
94
+ // jsDelivr CDN non-minified, version X.Y.Z where X.Y.Z >= 5.4.0
95
+ import neo4j from 'https://cdn.jsdelivr.net/npm/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.js'
96
+
97
+ // jsDelivr CDN minified for production use, version X.Y.Z where X.Y.Z >= 5.4.0
98
+ import neo4j from 'https://cdn.jsdelivr.net/npm/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.min.js'
99
+
100
+ ```
101
+
81
102
  It is not required to explicitly close the driver on a web page. Web browser should gracefully close all open
82
103
  WebSockets when the page is unloaded. However, driver instance should be explicitly closed when it's lifetime
83
104
  is not the same as the lifetime of the web page: