github lynx-family/lynx-stack @lynx-js/web-mainthread-apis@0.8.0

latest releases: @lynx-js/offscreen-document@0.1.4, @lynx-js/cache-events-webpack-plugin@0.0.2, @lynx-js/web-constants@0.16.0...
5 months ago

Minor Changes

  • refactor: remove web-elements/lazy and loadNewTag (#123)

    • remove @lynx-js/web-elements/lazy
    • remove loadElement
    • remove loadNewTag callback

    This is a breaking change

    Now we removed the default lazy loading preinstalled in web-core

    Please add the following statement in your web project

    import "@lynx-js/web-elements/all";
    
  • feat: use shadowroot to isolate one lynx-view (#198)

    Before this commit, we have been detecting if current browser supports the @scope rule.
    This allows us to scope one lynx-view's styles.

    After this commit we always create a shadowroot to scope then.

    Also for the new shadowroot pattern, we add a new attribute inject-head-links.
    By default, we will iterate all <link rel="stylesheet"> in the <head>, and use @import url() to import them inside the shadowroot.
    Developers could add a inject-head-links="false" to disable this behavior.

Patch Changes

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.