-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When promisifying, store does not preserve disableNunjucks property #2670
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.