-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update external dependencies #86
Conversation
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.
Hello Tim!
Thanks for helping to keep up with the dependencies!
I think there's no problem in replacing pako 2.0.4 with 2.1.0.
Looking at the diff there seems to be literally a single change in pako_inflate.min.js
: the version number 😁
This is hardly surprising surprising (if I don't overlook something) since pako's changelog is quite easy to grasp.
But something seems to be wrong with highlight.js:
main:
PR:
Could you please have a look at this issue?
I used https://stubidp.sustainsys.com for testing.
Hmm, I just realized I've seen this same issue elsewhere ... Seems they have changed some defaults between 11.3 and 11.8 or something |
What's a bit strange: I can't reproduce the unwanted behaviour out of SAML-tracer. Have a look at this fiddle: https://jsfiddle.net/fkwb3p8e/1/ There's a token string assigned to a div's Any ideas? |
The only possible explanation I found is in the highlight.js docs:
I think maybe that's that we're seeing in your screenshot.. |
I saw that recommendation, too. But I'm not sure it "applies" to us. SAML-tracer has always represented the highlighting token this way and never used a And the hint only talks about line breaks... 🤔 |
I guess the highlight package has changed over time too... |
I took the liberty to update hljs to version 11.9.0. Whatever was changed with this version... The highlighting works now in any case again as desired... @tvdijen: Would you please have a look, too? |
Hmmm... I just took a look at the diff in our repo from version 11.8.0 to 11.9.0: |
I just googled to get an updated version of the highlight.min.js file.. I was not aware of any additional packages. How did you update to 11.9? |
Ah, I think I understand where I went wrong :') Good to know this, because I was going to create a workflow for auto-updating our dependencies, but this means I have to build a custom highlight.min.js package |
Ah ok :-) Here you can define the included packages. That's where I picked XML and HTTP. I then downloaded the ZIP file and took the highlight.min.js file. |
Very interesting! How are you going to achieve this? Using GitHub actions or something? |
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.
Regarding the PR: From my perspective everything seems to look ok and you can merge the PR 😊
Let me rephrase that: My goal was to migrate the build-script to actions: Now, this will work because the NPM-package for Highlight.js includes all 190-something languages. I could slightly improve this by building my own highlight.min.js file based on |
That sounds really promising, Tim! However I would suggest that we should discuss this in another issue resp. alongside another PR's discussion, do you agree? Do you agree then in merging this PR here? |
Needs testing, but the changelogs give no reason to expect any issues