Skip to content

Funix 0.3.6

Choose a tag to compare

@Konoyoru435 Konoyoru435 released this 28 Feb 20:34
· 596 commits to main since this release

0.3.6 (2023-03-01)

Highlights

  • If the function response is longer than 300ms, the submit button will be disabled until the response is complete;
  • Add the show_source_code parameter, which allows developers to export their Python function code to the frontend for users to read (external imports, variables, etc. cannot be parsed);
  • Add the rename parameter to modify the name of the function on the frontend, in order to solve the problem of conflict between the function export API and Funix, for special characters you also need to use the path parameter;
  • A more beautiful error display, using alert instead of displaying the raw JSON directly;
  • Add a draggable element in the middle of the input and input panels to adjust the width of the panel;
  • Frontend and backend share the same port, but you can still access other people's backend services through your frontend.

Breaking Changes

  • For the Code hint type, the content attribute name is modified to code;
  • For types based on BasicFileType such as Images: e.g. single images use the Image type, multiple images should use the typing.List[Image] type;
  • In 0.3.5 (Because of my laziness, there is no release information at 0.3.5): Python 3.9 and below are no longer supported.

Bug Fixes

  • add TypeAlias (4f5c8cc)
  • remove 2d array conversion (da604a8)
  • allow elements to be reused in if_then (a479a27)
  • use typing.List[Image] instead of Images to support multiple images (eef284f)

Features

  • change the default front-end port to 3000 (5bf9809)
  • disable the submit button while waiting for response (7c653d0)
  • change response timeout to 300ms (4ebe261)
  • add show_source_code option (c77c640)
  • handle errors returned from backend (31cfaa5)
  • support optional argument (0df97a4)
  • add footer (37622ff)
  • modify footer style, text and add icons (92847e7)
  • modify the source section to be collapsible (bac67b7)
  • change width of input and output panels (e7b03eb)
  • adjust the width setting (26ddc63)
  • use the same port for frontend and backend (#60) (84920e0)
  • add rename parameter (27fcb8f)

Refactors

  • change content to code (20c7fdd)
  • decorator: replace __args__ with getattr (a83d06b)

Documents