Skip to content

Commit

Permalink
Merge pull request #74 from onfido/prepare-release
Browse files Browse the repository at this point in the history
Release 0.8.0 preparation
  • Loading branch information
rfreitas authored Oct 10, 2016
2 parents d5702f8 + b5a62dc commit 5d4b709
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
18 changes: 10 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ This project adheres to the Node default version scheme, meaning It's safe to us
The standard for the caret can [be found here](https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004).
Breaking changes result in a different major. UI changes that might break customizations on top of the sdk, will be treated as breaking changes too.

## [New version]

### Added
- Internal: The document capture step now has a strategy to cope with slow responses from the server when requesting to validate documents. If the number of unprocessed documents is 3+, it stops sending more until a response is given.
- Public: The capture screen UI now includes an upload button fallback, for whenever the user is experiencing problems with the webcam.
- Internal: `webp` falls back to `jpeg` in case the browser does not support it.
## [0.8.0]

### Changed
- Public: Captures are now returned as `png` instead of `webp`, `webp` is still used internally for streaming to the server.
- Public: Captures are now returned as `png` instead of `webp`, although `webp` is still used internally for streaming to the server.
- Public: the captures returned by `Onfido.getCaptures()` have a simplified signature of just `{id,image,documentType}`.
- Public: It's now possible to open and close the modal by calling `.setOptions({isModalOpen:boolean})`
- Internal: The modal has been refactored to be fully reactive, `vanilla-modal` has been replaced with a fork of `react-modal`.
- Internal: Updated to `[email protected]`, selectors are now more general as in they are no longer specific to each capture type, some new selectors are also being used.
- Internal: `Camera`, `Capture` and `Uploader` have been refactored, the pure part of the components have been separated from the "impure"/state logic part. This adds flexibility and encapsulation.
- Internal: `Camera`, `Capture` and `Uploader` have been refactored, the pure part of the components have been separated from the state logic part. This adds flexibility and encapsulation.
- Internal: The `Capture` component now orchestrates all the state logic of the `Uploader` component, this allows to join the camera and uploader state logic together.

### Added
- Public: The capture screen UI now includes an upload button fallback, for whenever the user experiences problems with the webcam.
- Internal: When requesting to validate documents there is now a strategy to cope with slow responses from the server. If the number of unprocessed documents is 3+, the client stops sending more requests until a response is given.
- Internal: `webp` falls back to `jpeg` in case the browser does not support it.


## [0.7.0]

Expand Down Expand Up @@ -64,7 +65,8 @@ Breaking changes result in a different major. UI changes that might break custom

The standard for this change log can be found [here](http://keepachangelog.com/).

[0.7.0]: https://github.com/onfido/onfido-sdk-ui/compare/0.5.1...0.7.0
[0.8.0]: https://github.com/onfido/onfido-sdk-ui/compare/0.7.0...0.8.0
[0.7.0]: https://github.com/onfido/onfido-sdk-ui/compare/0.6.1...0.7.0
[0.6.1]: https://github.com/onfido/onfido-sdk-ui/compare/0.5.1...0.6.1
[0.5.1]: https://github.com/onfido/onfido-sdk-ui/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/onfido/onfido-sdk-ui/compare/0.4.0...0.5.0
30 changes: 23 additions & 7 deletions dist/onfido.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onfido-sdk-ui",
"version": "0.7.0",
"version": "0.8.0",
"description": "JavaScript SDK view layer for Onfido identity verification",
"scripts": {
"predev": "npm run build",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Capture/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export default class Capture extends Component {
image, imageLossy
})

createSocketPayload = ({id,messageType,imageLossy,documentType}) => JSON.stringify({id,messageType,image: imageLossy,documentType})
createSocketPayload = ({id,messageType,imageLossy,documentType}) =>
JSON.stringify({id,messageType,image: imageLossy,documentType})

handleDocument(payload) {
const { socket, method, documentType, unprocessedCaptures } = this.props
Expand Down

0 comments on commit 5d4b709

Please sign in to comment.