-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove dependency on wiki.js for story-startup and navigator #4200
Conversation
I'm happy with this, but I think we should leave the existing methods on the wiki object for backwards compatibility. |
Why did you close it? ... We can add a deprecated warning into the removed code, instead of removing it. Then after eg 2 versions we can remove it |
@pmario - closed it because I thought this wouldn't be of interest |
I think the existing implementation is a bug, if you have 2 navigator widgets, that work for different stories. ... So imo it has to be fixed anyway. I would add a eg: So if a developer uses the "old" function they should immediately see, that there is something wrong. .. BUT old plugins still work. We could check our plugins and those of other important and core plugins, to see, if someone uses this function. ... But that's definitely much more work. |
may be: |
I checked my plugins. 1 of them actually uses the "old" function. ... So Jeremy is right! |
@pmario @Jermolene - now the old code is still in place, I've put it back. Should I add a console log that marks them as deprecated? |
I think there should be a console.log() |
@Jermolene ... needs to decide it. |
@Jermolene do you have any thoughts on this one? |
Hi @BurningTreeC @pmario we have a precedent in
|
@Jermolene - I'd need advice where to put the console log and how to handle it it's already been displayed |
Hi @BurningTreeC for the moment we can just use console.log in the usual way; if there are issues with the amount of logging then we can address them later. |
Ok @Jermolene, I've added the console logs like @pmario suggested in a post above |
Thanks @BurningTreeC |
This removes the indirection through wiki.js to access addToStory and addToHistory in story.js
It's probably the first step to simplify the story-navigator mechanisms