9.0.0 (2023-09-17)
- fix!: order function correctly orders arrays (172598d)
- the order function was not ordering array values which would lead to non-deterministic ordering if using arrays
8.3.5 (2023-09-17)
- use file extension to meet ts requirementnts (5e867cb)
- Revert "chore: debug gh action for exit code" (f59439d)
8.3.4 (2023-02-14)
- remove badge as reporting incorrect statuses (a069683)
8.3.3 (2023-02-13)
- Remove
stringToBuffer
and replace withBuffer#from
([2597079][https://github.com/connorjburton/hmac-auth-express/commit/2597079f5f0ed519fa439460454ab3a69486d353])
8.3.2 (2022-03-13)
- reduce published package size from 334kb to 36kb (e7d5801)
8.3.1 (2022-03-13)
- remove a === b in order func as not a possible state (5bca1e4)
8.3.0 (2022-03-07)
- add option to order body (c7558d1)
8.2.0 (2021-08-23)
- allow secret parameter to be a function to support dynamic secrets (e612eff)
8.1.0 (2021-07-18)
- exposing generate function to easily generate hmac digests (7996b40)
- updating benchmark tool to use new default header (7836d75)
8.0.1-8.0.2 (2021-07-11)
- published version did not include all compiled files correctly
8.0.0 (2021-07-11)
- changed default header to authorization
- package now exclusively uses named exports
- error is now exported as
AuthError
rather thanHMACAuthError
- importing
AuthError
is now done directly onhmac-auth-express
rather thanhmac-auth-express/src/errors
- now supports empty objects and arrays as request bodies (640bcbe)
7.0.0 (2021-07-04)
- addition of express peer dependency may fail installations of users using express <4
- changes to package.json & e2e test (4b17f33)
- Added Github Actions
- Removed Travis integration
- Bumped
jest
from26.3.0
to27.0.6
- Breaking Inversed
timeDiff
value in comparison againstminInterval
option so option parameters are consistent.
- Updated
parseInt
call to passradix
parameter of10
- Bumped
jest
from26.2.2
to26.3.0
- Breaking Support for plain arrays in the request body. Previously a plain array request body would be rejected, this change could potentially allow unexpected behaviour, thus the breaking change.
- Bumped
jest
from24.9.0
to26.2.2
options.minInterval
for out of sync times (requests from the future)
- Bumped
acorn
from5.7.3
to5.7.4
- Added Travis CI for running tests on pull requests
- Added automatic NPM publish on master push
- Added Travis CI badge to readme
- Updated changelog to include correct date for 4.0.0
- Tests, 100% coverage
.vscode/launch.json
that includes test configuration for easily debugging tests
- Breaking The UNIX timestamp's used is now expected to be 13 characters long, not 10 (i.e already divided by
1000
). See Migration Guide - Improved validation for checking if the HMAC digest exists in the header
- Improved validation for checking if
request.body
is set
- Breaking Changed error handling to pass the error to express' error handler instead of sending a response internally. See Migration Guide
- Uses
req.originalUrl
instead ofreq.baseUrl
- Updated changelog
- Changed readme to include details about timing safe
- Breaking Added the supplied unix timestamp to the HMAC signature to ensure the timestamp provided is the timestamp in the HMAC digest
- Moved validation to it's own
validateArguments.js
file - Added validaton for
options.maxInterval
andoptions.error
- Added comments to
index.js