When promisifying, store does not preserve disableNunjucks property#2670
When promisifying, store does not preserve disableNunjucks property#2670stevenjoezhang merged 4 commits intohexojs:masterfrom
Conversation
This was causing difficulties in a less-maintained renderer I was using, but I think this may also count as a bug upstream.
|
Hmm, I don't think |
|
You're correct! It's only Promise.method that doesn't preserve the property. |
|
@tcr Is that possible to pass in all the configuration to the sync process? If later on, new configuration needed/added, our goal is to not modify the same piece of code again. |
|
@NoahDragon Would that be a proposal that instead of attaching disableNunjucks to the rendering function, it's passed in as an extra argument (or something) to the register method? One way I can think of is to change The change would impact #2593 in either case—let me know if you think one of these is a good idea. cc @be5invis |
|
@NoahDragon
|
|
I raised an issue (petkaantonov/bluebird#1484) to request retaining custom properties on |
|
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
How to testgit clone -b patch-1 https://github.com/tcr/hexo.git
cd hexo
npm install
npm test |
SukkaW
left a comment
There was a problem hiding this comment.
Since Bluebird is no longer actively maintained, I guess we can accept this workaround for now.
We could, however, replace Bluebird.method with Bluebird.promisfy in the future.
This was causing difficulties in a less-maintained renderer I was using, but I think this may also count as a bug upstream.