Skip to content

Fix user agent #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 16, 2016
Merged

Fix user agent #174

merged 3 commits into from
Dec 16, 2016

Conversation

lutovich
Copy link
Contributor

No description provided.

It previously was `neo4j-javascript/[object Object]` because of an incorrect
usage of default import. This commit makes it `neo4j-javascript/0.0.0-dev`.
Part after `/` will be changed by the pre-release gulp script.
Command `gulp set --version <VERSION>` was meant to change version in
`version.js` which is later used in driver's user agent. However it tried to
modify `package.json` file instead of `version.js`.

This commit makes it operate on the correct file.
Version is set in `package.json` (used as npm package version) and in
`src/version.js` (used to create driver's user agent string).

Script is named `versionRelease` and requires `VERSION` env variable to be set.
Examples:
```
    VERSION=1.1.5 npm run versionRelease
    VERSION=1.1.5-rc01 npm run versionRelease
    VERSION=1.1.5-alpha03 npm run versionRelease
```
@technige technige merged commit 29b983a into neo4j:1.1 Dec 16, 2016
@lutovich lutovich deleted the 1.1-fix-user-agent branch September 21, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants