Skip to content

Funix 0.3.8

Choose a tag to compare

@Konoyoru435 Konoyoru435 released this 20 Mar 03:37
· 534 commits to main since this release

0.3.8 (2023-03-20)

Highlights

  • Support a new widget password, now you can use this widget to create a password input box;
  • Support type range in parameters, now you can use this type to create a int slider;
  • Use tuple for widget configuration now, example here:
from funix import funix


@funix(
    widgets = {"box": ("code", {"langauge": "python"})}
)
def test(box: str) -> str:
    return box
  • Added some basic built-in types, import theme by from funix.widget.builtin import *, you can read examples for more information;
  • You can use new_funix_type to define your own type now, no need to use widgets anymore;
  • Support file and media uploads, and the backend receives bytes (Funix does not store files locally). Likewise, the backend can return bytes (your return type should be Image or something like that).

Breaking Changes

  • Themes should now be defined using python script, instead of yaml;
  • Widget configuration should now use tuple, instead of str;

Bug Fixes

  • if dump_frontend_config cannot update the config, then use the user config (5925608)
  • widgets with config do not work with new_funix_type (e0e4b0c)
  • add hint type check in return result (92cb08a)
  • NSInternalInconsistencyException in macOS (f705500)
  • fix list return (965e556)
  • add __args__ check, fix bool default (2be75a4)
  • handle List[range], fix invalid widgets config with range type (c145203)
  • theme example (6cee215)

Features

  • support media preview in page (e298de8)
  • support file upload (7da5753)
  • support code input box (5bee2ca)
  • add a simple example for custom types (cad07d1)
  • support custom typing in theme (b9f651c)
  • add new_funix_type to define type and widget (eaae949)
  • support build-in types (87a2442)
  • use update to support default config (c783d46)
  • widgets with parameters as tuples (#59) (5863e08)
  • add discord link (7a759a8)
  • support range type (9e7d01d)
  • better port check, use ipaddress (8e00177)
  • update examples and minor UI change (18fff2c)
  • add password widget (a0f6fb7)

Performances

Documents

Merges