Skip to content

web-fragments@0.8.2

Latest

Choose a tag to compare

@github-actions github-actions released this 06 Nov 21:27
· 14 commits to main since this release

Patch Changes

  • #279 32dbfd6 Thanks @IgorMinar! - fix(client): improve pierced preserveStyle resiliency

    In more complex applications, especially those relying on constructed stylesheets, it was possible to for CSS stylesheets to get corrupted during the portaling operation (when pierced fragment is being moved into the newly constructed CSR-ed DOM of the host application).

    This change makes the portaling operation much more resilient and avoids most of the problems.

    Interestingly, we now do employ the atomic DOM move API (moveBefore), which falls a bit short for our needs as it causes the styles to be reloaded during the move operation. This change works around that shortcoming.

    This change also introduces better support for adoptedStylesheets and CSS stylesheets in general.

  • #267 85697c6 Thanks @IgorMinar! - fix(gateway): close tag in reframed init HTML response

    We've observed that some middlewares append strings to the reframed init html. Simple append results in the new string becoming part of the title which is causes problems for reframed library as well as the injected code/html as that's not how it was intended to be used.

    By closing the title tag, even though not needed by the browser, the html becomes more resilient.

  • #219 11f47f3 Thanks @IgorMinar! - fix: move the default WF styles into an injected inline style sheet

    Instead of using a constructed style sheet, we now inject the styles into the response as an inline style sheet.

    This prevents FOUC during bootstrap and also simplifies the code.