All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added support for Node 20.
- Officially removed support for Node 12. Node 12 compatibility broke with the introduction of TypeScript support in version 3.0.0.
- Added support for asynchronous jobs for ID and Business verifications.
- Added Enhanced Document Verification to the SmileIdentityCore class.
- Updated
WebApi
to remove theid_type
as a required field for DocV Job Type.
- Added JSDocs to the
WebApi
class. - Added
BASIC_KYC
,UPDATE_PHOTO
, andCOMPARE_USER_INFO
toJOB_TYPE
. - Defined
sidServerMapping
in constants. - Added TypeScript support.
- Added support for running business verification jobs through
IDApi
.
- Allowed
WebApi
to submitconsent_information
as part ofid_info
. - Refactored
get_web_token
code, moved fromWebApi
class intoweb-token
file. Improved test coverage. - Refactored
Utilities
class. - Refactored
WebApi
class. Eliminated_private
. - Switched to using Jest for tests.
- Added support for Node 18.
- Added
examples/
directory with examples for each job type. - Exported maps for
JOB_TYPE
andIMAGE_TYPE
. - Added
source_sdk
andsource_sdk_version
fields on submit_job requests. - Ran tests and linter in CI for every supported version of Node.
- Removed
options
argument fromIDApi.submit_job
. This argument is no longer used now thatsec_key
is no longer supported. - Improved test coverage.
- Linted the codebase.
- Updated documentation in README.md to reflect other Smile SDK docs.
- Created
src/helpers.js
. Refactored common code into a separate file and increased test coverage. - Refactored IDApi class.
- Removed
sec_key
based authentication. FunctionsSignature.generate_sec_key
andSignature.confirm_sec_key
should be replaced withSignature.generate_signature
andSignature.confirm_signature
respectively. - Dropped support for Node 10.
- .git files are once again being ignored with an npm version bump.
- Added ID API class.
- Added the ability to query ID Api from the Web API class.
- Updated the documentation to include Web Api (job type 5) and ID API.
- Amended the success response when job status is false to be a JSON String containing {"success":true,"smile_job_id":"job_id"}
- Removed the id_info validations for Web API (only validate the id_number, id_type, and country).
- Changed the way that we import the classes from the modules (not backward compatible) e.g.,
require("smile-identity-core").WebAPI
.