Closed timcosgrove closed 7 years ago
https://github.com/SassDoc/sassdoc/pull/489 changes the behavior of verbose. Unfortunately this seems to run afoul of reserved key checks.
sassdoc.ensureEnvironment() instantiates the env (checking for config.verbose) and then invokes env.load(config)
env.load(config)
Given the case where config is a plain object, env.load() invokes env.loadObject(): https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L59
env.load()
env.loadObject()
env.loadObject() checks for reserved configuration keys: https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L79
verbose was added as a key in https://github.com/SassDoc/sassdoc/pull/489: https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L19
verbose
Given all this, it seems like there would be no way to call sassdoc(configObject) where the configObject has a key of verbose, despite sassdoc making use of the verbose key elsewhere.
Will create a basic POC gist.
https://gist.github.com/timcosgrove/3864a0d7ff7b95e4b5324b3499635426
Thanks for reporting, we will try to fix this ASAP. In the meantime you could downgrade to 2.2.0.
2.2.0
Appreciate the attention!
We'll shrinkwrap if we have to. Thank you~!
Should be fixed as of sassdoc@2.2.2.
sassdoc@2.2.2
https://github.com/SassDoc/sassdoc/pull/489 changes the behavior of verbose. Unfortunately this seems to run afoul of reserved key checks.
sassdoc.ensureEnvironment() instantiates the env (checking for config.verbose) and then invokes
env.load(config)
Given the case where config is a plain object,
env.load()
invokesenv.loadObject()
: https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L59env.loadObject()
checks for reserved configuration keys: https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L79verbose
was added as a key in https://github.com/SassDoc/sassdoc/pull/489: https://github.com/SassDoc/sassdoc/blob/c575fc5dea32aed590825531dc21d252573f92de/src/environment.js#L19Given all this, it seems like there would be no way to call sassdoc(configObject) where the configObject has a key of
verbose
, despite sassdoc making use of the verbose key elsewhere.Will create a basic POC gist.