Skip to content

Commit

Permalink
Implement streaming client for hoard-js
Browse files Browse the repository at this point in the history
- Remove use of oneof - note this should be backwards compatible
- Update to version 7 and write changelog
- Code cleanup and refactor

Signed-off-by: Silas Davis <[email protected]>
  • Loading branch information
Silas Davis committed Dec 3, 2019
1 parent a0f05b2 commit 22ce590
Show file tree
Hide file tree
Showing 49 changed files with 2,831 additions and 1,405 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
mocha: true
},
extends: [
'standard'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018
},
rules: {}
}
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# [Monax Hoard](https://github.com/monax/hoard) Changelog
## [Unreleased]
## [7.0.0] - 2019-12-02
This release makes some changes to the Hoard protobuf and service that are backwards compatible for clients - Hoard v6 clients should work with Hoard v7 but hoard-js v7 will not work entirely correctly with Hoard v6 due to removal of oneof.

### Changed
- [API] Drop use of oneof in protobuf files - allow singleton fields to be sent with streamable fields
- [API] Enforce that we only receive exactly one salt and grant spec in streams and that they come first
- [NODEJS] Expose streaming promise client-side API to take advantage of streaming rather than loading entire file into buffer

### Fixed
- Ignoring Spec if Salt present in single message


## [6.0.0] - 2019-10-11
Expand Down Expand Up @@ -136,7 +145,7 @@ This is the first Hoard open source release and includes:
- Hoar-Daemon hoard
- Hoar-Control hoarctl CLI

[Unreleased]: https://github.com/monax/hoard/compare/v6.0.0...HEAD
[7.0.0]: https://github.com/monax/hoard/compare/v6.0.0...v7.0.0
[6.0.0]: https://github.com/monax/hoard/compare/v5.1.0...v6.0.0
[5.1.0]: https://github.com/monax/hoard/compare/v5.0.1...v5.1.0
[5.0.1]: https://github.com/monax/hoard/compare/v5.0.0...v5.0.1
Expand Down
11 changes: 9 additions & 2 deletions NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Added
- Document streaming service
This release makes some changes to the Hoard protobuf and service that are backwards compatible for clients - Hoard v6 clients should work with Hoard v7 but hoard-js v7 will not work entirely correctly with Hoard v6 due to removal of oneof.

### Changed
- [API] Drop use of oneof in protobuf files - allow singleton fields to be sent with streamable fields
- [API] Enforce that we only receive exactly one salt and grant spec in streams and that they come first
- [NODEJS] Expose streaming promise client-side API to take advantage of streaming rather than loading entire file into buffer

### Fixed
- Ignoring Spec if Salt present in single message

Loading

0 comments on commit 22ce590

Please sign in to comment.