-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Move the 'marked' lib to the settings app and update it #13474
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
Conversation
The `marked` dependency was out of date and isn't used by any app except the settings pages. Hence it's move there and updated to resolve security vulnerabilities. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
Can we leave it in core? there are quite some apps using it. |
|
I assumed it was just settings. That is the issue with this kind of dependency loading. You never know who it uses. And when you update them you don't know which apps break. On that note, there were actually breaking changes in this update, but none effected settings as far as I can tell. We should aim to get rid of that. Dependencies should be shipped with the apps. This lib is 20kb in size, so the duplication overhead is negligible IMO. Edit: we're facing a well known problem here: https://en.wikipedia.org/wiki/Dependency_hell. In contrast to php/composer, Javascript will allow us to fix it. |
Maybe for 1 more version. But apps should ship their own dependencies. Else we can never update a dependency (see jquery) because some app might depends on something
So be it. We do aggressive caching. But else we risk breaking all the apps every time we update a library. |
|
I'm closing this and will push another PR to bundle a separate version for settings. @nickvergessen please ship your own for the announcements as well. We'll remove the one from core in Nextcloud 17. |
|
Thats a good enough solution. Just dont want to have breaking js apps all the time, just after we spoke about brekaing apps on php level. |
|
@nickvergessen well sure. But this is like using private namespace ;) |
|
@ChristophWurst @rullzer I've added a note of the deprecation of the shipped marked to #12915. We should keep track there which libraries we want to get rid of in an upcoming version, so developers can prepare 😉 |
The
markeddependency was out of date and isn't used by any app exceptthe settings pages. Hence it's move there and updated to resolve security
vulnerabilities.
Replaces #13462