Skip to content

Commit 596bea0

Browse files
committed
version bump. description updated
1 parent c74a288 commit 596bea0

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
### Use the power of Neo4j graph database in your Angular app
1+
### Neo4j Bolt driver wrapper for Angular
2+
3+
Use Neo4j Bolt driver for JavaScript from your Angular application. A special browser version of the driver supports connecting to Neo4j over WebSockets.
24

35
#### Installation
46

@@ -19,7 +21,7 @@ export class AppModule { }
1921
```
2022

2123
### Usage
22-
The module includes a service and a design-free component utilizing this service: login form and query form. You are welcome to use this component as a foundation for your custom one.
24+
The module includes a service and a design-free component using this service: login form and query form. You are welcome to use this component as a foundation for your custom one.
2325

2426
The fastest way to test everything:
2527

@@ -32,9 +34,9 @@ Use the service in your own component:
3234
```javascript
3335
import { AngularNeo4jService } from './angular-neo4j.service';
3436
...
35-
constructor(pprivate neo4j: AngularNeo4jService) {}
37+
constructor(private neo4j: AngularNeo4jService) {}
3638
```
37-
- `connect( url: string, username: string, password: string, encrypted?: boolean )` - Connect to your Neo4j instance
39+
- `connect( url: string, username: string, password: string, encrypted?: boolean )` - Connect to your Neo4j instance. Returns a promise with a driver instance.
3840
```javascript
3941

4042
const url = 'bolt://localhost:7687';
@@ -55,7 +57,7 @@ Use the service in your own component:
5557
}
5658
});
5759
```
58-
- `run( query: string, params?: object)` - Run the query with parameters. Returns array of records.
60+
- `run( query: string, params?: object)` - Run the query with parameters. Returns a promise with array of records.
5961
```javascript
6062

6163
const query = 'MATCH (n:USER {name: {name}}) RETURN n';
@@ -65,11 +67,15 @@ Use the service in your own component:
6567
console.log(res);
6668
});
6769
```
68-
- `disconnect()` - Close the active driver
70+
- `disconnect()` - Close the active driver.
6971
```javascript
7072
this.neo4j.disconnect()
7173
```
7274

75+
### Note on security
76+
77+
Do not hardcode your Neo4j username and password in the Angular app - always use login form to authenticate.
78+
7379
## License
7480

7581
MIT © [Maxim Salnikov](mailto:[email protected])

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
2+
"author": {
3+
"name": "Maxim Salnikov",
4+
"email": "[email protected]"
5+
},
26
"name": "angular-neo4j",
3-
"version": "0.0.0",
7+
"description": "Neo4j Bolt driver wrapper for Angular",
8+
"version": "0.6.0",
49
"license": "MIT",
510
"scripts": {
611
"ng": "ng",
@@ -10,7 +15,8 @@
1015
"lint": "ng lint",
1116
"e2e": "ng e2e",
1217
"build:lib": "gulp --gulpfile gulpfile.lib.js",
13-
"version": "sync-json -v --property version --source package.json src/lib/package.json"
18+
"version":
19+
"sync-json -v --property version --source package.json src/lib/package.json"
1420
},
1521
"private": true,
1622
"dependencies": {

src/lib/package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"author": {
3-
3+
"name": "Maxim Salnikov",
4+
"email": "[email protected]"
45
},
56
"bugs": {
67
"url": "https://github.com/webmaxru/angular-neo4j/issues"
78
},
89
"name": "angular-neo4j",
9-
"version": "0.1.0",
10+
"description": "Neo4j Bolt driver wrapper for Angular",
11+
"version": "0.6.0",
1012
"repository": {
1113
"type": "git",
1214
"url": "git+https://github.com/webmaxru/angular-neo4j.git"
@@ -18,10 +20,12 @@
1820
"es2015": "./esm2015/angular-neo4j.js",
1921
"module": "./esm5/angular-neo4j.es5.js",
2022
"typings": "./angular-neo4j.d.ts",
23+
"dependencies": {
24+
"neo4j-driver": "^1.6.0"
25+
},
2126
"peerDependencies": {
2227
"@angular/core": "^5.0.0",
2328
"@angular/common": "^5.0.0",
24-
"@angular/forms": "^5.0.0",
25-
"neo4j-driver": "^1.6.0"
29+
"@angular/forms": "^5.0.0"
2630
}
2731
}

0 commit comments

Comments
 (0)