[SEMVER_MAJOR]
Removed transpiling dependencies and scripts. octomore now requires nodejs>= 7.6.0
for nativeasync
function support.[SEMVER_MINOR]
getCacheId
now receives theoptions
object that is also passed togetUri
andretriever
as a second parameter. This means that you can now, optionally, base your cache id on the uri (as returned bygetUri
) as well as any additional options passed to the document.
[SEMVER_MINOR]
Refactored logging - while default functionality remains unchanged you can now inject your own logger object intocreateDocument
andcreateFileCache
(see README for details)[SEMVER_MINOR]
Removed debug output fromcreateTransformer
- it was overly verbose and hardly useful but would have been awkward to integrate with the aforementioned changes in logging
- Refactored linting config: due to recent updates of the standard package we no longer need to include all sorts of
eslint-*
dev dependencies and configs to lint es6 code. [SEMVER_PATCH]
Removed various redundantreturn await
statements[SEMVER_PATCH]
request
function is now injected into HTTP retrievers for easier mocking (see README)
[SEMVER_PATCH]
Transformers will no longer output warnings viaconsole.warn
- they will now use thedebug
module instead
[SEMVER_MAJOR]
RemoveduriTemplate
param - document URIs will now always be determined by the providedgetUri
function[SEMVER_PATCH]
Fixed a bug that caused properties with a booleanfalse
spec to still be included in transformed output
[SEMVER_MINOR]
Second level transform specs can now be objects (will be wrapped bycreateTransformer
)
[SEMVER_PATCH]
Iterating transformers will now correctly handle undefined source values (i.e. they will not do anything, as opposed to iterating over an array with one element -undefined
)
[SEMVER_PATCH]
Addedjson
config property tocreateFileCache
[SEMVER_MINOR]
createDocument
now provides agetUri
function by default[SEMVER_MINOR]
AddedcreateAdditiveTransformer
function