Skip to content

Releases: openwebf/webf

0.13.0

02 Dec 15:28
316860b
Compare
Choose a tag to compare

The biggest update since the webf/kraken release.

  1. The DOM API and C++ bindings had been redesigned and refactored. #18
    1. DOM node operations methods such as Node.appendChild and Node.insertBefore are 2x - 5x faster than 0.12.0.
    2. The new C++ bindings system can keep the bridge code safer to avoid crashes.
  2. Add CSS StyleSheets support. #11
    1. Support load CSS with <link /> element.
    2. Support load CSS with <style /> element.
  3. Flutter Widgets System had been redesigned and refactored, now all flutter widgets can be used to define your HTMLElements, including from Flutter material design, pub.dev, and yours. #58
  4. Add CSS animation support. #41
  5. Sync the latest features from quickjs offical. #165

Others Features

  • Add cookie support. #65

  • Add Quickjs column number support. #116

  • Support return value from webf. invokeModule API. #54

    Upgrade from 0.12.0

    This feature could lead to the following error if you using web.addWebfModuleListener API in 0.12.0.

    TypeError: Failed to execute '__webf_add_module_listener__' : 2 argument required, but 1 present.
            at __webf_add_module_listener__ (native)
            at <anonymous> (internal://:127)
            at <eval> (internal://:135)
    

    Please add the target module name to the first arguments:

    before

    webf.addWebfModuleListener(function(moduleName, event, data) {
      if (moduleName == 'AlarmClock') {
         // ...
      }
    });

    After

    webf.addWebfModuleListener('AlarmClock', function(event, data) {
     // ...
    });

Bug Fixed

  • CSS hsl() not works. #23
  • flex:1 failed when the parent node style has minHeight/minWidth property. #28
  • Fix overflow not works with transform. #48
  • Fix memory leaks caused by CSSLengthValue and ModuleManager. #57
  • Fix animation shaking when controlling the animation with touch events. #67
  • Fix webf_bridge.xcframework and quickjs.xcframework did not product when run flutter build ios-frameworks command. #71
  • Fix dynamic library not found in some android devices. #91
  • Fix position and transform to cause a more scrollable area. #112
  • Fix the size of HTMLElement is not always equal to the viewport. #122
  • Fix collapsedMarginBottom seems work incorrectly. #132
  • Fix opacity after transform not work. #142
  • Fix set attribute with CSS vars not work. #155

0.12.0

03 Aug 16:19
a40a351
Compare
Choose a tag to compare

Big News

  • Set flutter version requirement to v3.0.5.

Bug Fixed

Features