News for hackers. Stuff that matters.
Re:ING open-sources Lion, a library of accessible and flexib... by Vinnl on Friday February 14, 2020 @12:45AM (#22324239)
I'm not sure whether it's still the case with lit-html, but back when Polymer was a thing, you'd better make sure all Web Components on your page were compatible with the same version, and also didn't build on top of incompatible versions of the same shared component. This really made it a pain in the behind to integrate many different components built by many different teams into the same application, especially if there also was a library of shared components used by all teams.

Anyone from ING present who can share whether this is still the case?

Re:ING open-sources Lion, a library of accessible and flexib... by ergo14 on Saturday February 15, 2020 @02:03AM (#22333815)
I think you mean you can't have same element redeclared? Then yes this is still the case, and at least for now it will be - for any library that can output custom elements. Every component is a real interactable HTML element, imagine <div> or <p> would work differently. I believe there is some work for multiple component registries but I'm not tracking the progress on that. This is HTML thing - it is not a library specific problem. It might get solved eventually https://github.com/w3c/webcomponents/issues/716.

I come from python world where you have same restriction for all packages so it never occured to me as a serious problem :) We just pin ranges in libraries. And application itself pins specific versions in place.

Re:ING open-sources Lion, a library of accessible and flexib... by Vinnl on Saturday February 15, 2020 @06:04AM (#22334553)
Yes. I come from React, and if two components I depend on each depend on different versions of the same component, I can load them both no problem. When I worked with Web Components, that required that I contacted the authors of both components to get them to upgrade to the new version of the same time - which of course became exponentially more effort as we used more components.
Re:ING open-sources Lion, a library of accessible and flexib... by ergo14 on Sunday February 16, 2020 @09:17AM (#22341633)
This is how HTML tags work currently. You are better off with something else if you want to sidestep this. At least for now.