Future stuff...
1.3.4 - 2020-10-24
- Renamed key
prepublish
toprepare
inpackage.json
in order to keep same behavior and prepare for future removal of theprepublish
script.
1.3.3 - 2020-10-24
- Updated all dependencies
- Moved from
yarn
tonpm
.
- Security issues
1.3.2 - 2020-10-24
- Remove
npm
dependency in order to resolve security issues.
1.3.1 - 2020-10-24
- Security issues posted by dependabot.
1.3.0 - 2019-09-10
- New middleware option
middleware.throwOnError
that will throw the errors from withinshapeshifter
and let the user manually handle them. Setting this totrue
will affect allshapeshifter
-actions. - New ACTION option
ACTION.payload.throwOnError
that will throw any error resulting from the specific action dispatched and let the user manually handle it.
1.2.0 - 2019-08-31
- New middleware option
middleware.axios
that allows for global configuration of all shapeshifter actions. HoweverACTION.axios
will override any property set through the middleware set up with the same name.
1.1.1 - 2019-08-28
- Accidentally published using
yarn
, silly me
1.1.0 - 2019-08-28
- Added
defined()
utility function - Added
optional()
utility function, based ondefined()
- Added
lowerCaseObjectKeys()
utility function - Added tests to
handleStatusResponse()
- Added tests to
handleResponse()
- Added tests to
handleRepeater()
- Added dependency: axios-mock-adapter
- Added
"resolutions"
key topackage.json
to letyarn
enforce the dependencies of dependencies to use versions that resolve vulnerability issues - Added dependencies:
eslint
,eslint-config-airbnb-base
&eslint-plugin-import
- Added script command
lint
- Added script command
lint
toprepublish
hook with--max-warning=0
, meaning it exits on warnings too - Added
.eslintrc.js
- Added
.eslintignore
to ignore build directory
- Moved from using monads to validate middleware options to instead make use of
defined()
andoptional()
to determine if options are invalid, required and missing or simply optional - Moved from using monads to validate action options to instead make use of
defined()
andoptional()
to determine if options are invalid, required and missing or simply optional - Moved definition of request payload to its own module
- Moved handling of ETag to its own module, where we make use of the added
lowerCaseObjectKeys()
utility function - Moved default options to its own module
- Refactored
handleStatusResponse()
- Refactored
handleResponse()
- Moved repeater functionality to its own module
- Upgraded
@babel
scoped dependencies to deal with vulnerability issues - Upgraded test dependencies to deal with vulnerability issues
- Upgraded
npm
dependency to deal with vulnerability issues - From not having enforced code-style to having applied linting rules and done changes to the entire project
- Dependency: folktale
1.0.1 - 2019-06-25
- Only
console.error
the message of a canceled call to avoid double-arrows in the console
1.0.0 - 2019-06-24
- This
CHANGELOG.md
- Added own custom errors,
ResponseWithErrors
,ResponseWithError
,ResponseWithBadStatusCode
,ResponseRepeatReject
,ResponseNotModified
,ResponseErrorMessage
,ResponseErrorMessage
- Added helper method to recognize shapeshifter errors,
src/utils/isShapeshifterError.js
- Only dispatch
failure()
on axios errors or on shapeshifter errors - Not throwing anymore in the
.catch()
-handler, insteadconsole.error
it - Changed from anonymous to named callback function in the
.catch()
-handler for a more readable stack trace - Replace where applicable with new introduced errors
- Started replacing e.g.
deepEqual
's with sinon assertions - Started making heavier use of mocks to disable the
console.error
orconsole.warn
in tests and at the same time verify their usage - Corrected typo in test title
- Bubbling
error
from within the shapeshifter.catch()
-handler, instead it just logs the error
- Swallowing errors. Added test case that checks if e.g. a
SyntaxError
aftersuccess()
has been called and logs the error. At the same time we shouldn't callfailure()
neither calldispatch()
in the.catch()
-handler - Added test case that ensures if response is
304
("Not Modified") that we won't calldispatch()
and that we won't log it as an error