From d964cc86d347929ea1f23a759b5f5ceb5e432016 Mon Sep 17 00:00:00 2001 From: lutovich Date: Wed, 4 Apr 2018 12:59:46 +0200 Subject: [PATCH 1/3] Use non-minified file for unpkg Short urls are often used for non-production code and it make sense for referenced file to not be minified. See discussion in https://github.com/vuejs/vue/pull/6618 for more information. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 98951ef99..f0feb709a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "browser": "gulp browser && gulp test-browser" }, "main": "lib/index.js", - "unpkg": "lib/browser/neo4j-web.min.js", + "unpkg": "lib/browser/neo4j-web.js", "types": "types/index.d.ts", "devDependencies": { "async": "^2.4.0", From 3d6da216332a4e718152084e2e9c161005db762f Mon Sep 17 00:00:00 2001 From: lutovich Date: Wed, 4 Apr 2018 13:00:56 +0200 Subject: [PATCH 2/3] Specify browser build to be used by jsdelivr --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f0feb709a..41829beb5 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ }, "main": "lib/index.js", "unpkg": "lib/browser/neo4j-web.js", + "jsdelivr": "lib/browser/neo4j-web.js", "types": "types/index.d.ts", "devDependencies": { "async": "^2.4.0", From 42342531460985f9b00880791e40565f759abf4e Mon Sep 17 00:00:00 2001 From: lutovich Date: Wed, 4 Apr 2018 14:07:01 +0200 Subject: [PATCH 3/3] Update README with CDN links --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 48666d1c5..217034119 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,22 @@ otherwise application shutdown might hang or it might exit with a non-zero exit ## Include in web browser We build a special browser version of the driver, which supports connecting to Neo4j over WebSockets. +It can be included in an HTML page using one of the following tags: ```html + + + + + + + + + + + + ``` This will make a global `neo4j` object available, where you can access the `v1` API at `neo4j.v1`: