[0.4.1](https://github.com/TexteaInc/funix/commit/e265171a2f5126c0a3b3662ba6a0d71b6b8a1021) (2023-05-05)
Highlights
- Funix now has debug mode on by default to support hot reloading, but it may break Funix's logic for handling `BytesFile`, which you can turn off with `-D/--no-debug`;
- Added a history function stored in the browser's IndexedDB, with all the history of this function in the right sidebar of the function, and full history in the history dialog. You can roll back history by using the View button (in the history dialog) / clicking on the history item (in the sidebar);
- When the history cannot be saved, a snack bar will pop up alerting the user;
- Added a custom Markdown render to support MUI components and KaTeX.
Breaking Changes
- For frontend users, no more than 5 files can be uploaded, and no single file can exceed 15 MB; the Web API is not affected;
- Users of 0.4.0 should upgrade to 0.4.1, which fixes a vulnerability that could bypass `secret` authentication (Funix app launched with `-s`)
Bug Fixes
- treat title as markdown in appbar title and functions list (https://github.com/TexteaInc/funix/commit/514dae821dd00e36552256826e741b2cc94d07ee, yazawazi) <!-- 1682288904.0 -->
- cli recursive and package opt (https://github.com/TexteaInc/funix/commit/c67a2df558108c3fbacc5aeadde022d5397c4c3a, yazawazi) <!-- 1682307690.0 -->
- `parsed_secret` is `None` (https://github.com/TexteaInc/funix/commit/48f986c1ae584c26d9bb9957f09539d5b3d9ad02, yazawazi) <!-- 1682417885.0 -->
- `treat_as` not in `json_schema_props` (https://github.com/TexteaInc/funix/commit/d3db671a08a77887884b057ab77af758607a3587, yazawazi) <!-- 1682557272.0 -->
- infinite re-rendering due to incorrect `useEffect` (https://github.com/TexteaInc/funix/commit/3053e465810b188c107646fb7240552fe67a7051, yazawazi) <!-- 1683230108.0 -->
- alert box content rendering misalignment (https://github.com/TexteaInc/funix/commit/2f3d76aaa133bb5414158e12ce6b8882709e0e9e, yazawazi) <!-- 1683230108.0 -->
- *secret*: bypass secret auth for with `-s` funix app (important) (https://github.com/TexteaInc/funix/commit/b6b07001aea435aabb243e402ff54720f70093d8, yazawazi) <!-- 1683230108.0 -->
- custom sheet widget roll back state (https://github.com/TexteaInc/funix/commit/3f7fc3d789552ae6b4a9892af7da301191582026, yazawazi) <!-- 1683230108.0 -->
- try to fix infinite re-rendering due to incorrect `jotai` using (https://github.com/TexteaInc/funix/commit/3b00b733f3e27d430a3e49b0342810f8069e15d7, yazawazi) <!-- 1683230108.0 -->
- out of memory (https://github.com/TexteaInc/funix/commit/3a77a90e50af3da67549d05c321a66e939866055, yazawazi) <!-- 1683230108.0 -->
Features
- change footer slogan (https://github.com/TexteaInc/funix/commit/4c67220b1c643efe417a5d365f41c5d53bf4f952, yazawazi) <!-- 1680946011.0 -->
- add `no_debug` argument (https://github.com/TexteaInc/funix/commit/02d75e7f1a3b66908c7513c8a2f0d46184a561e3, yazawazi) <!-- 1680975913.0 -->
- support history in frontend (https://github.com/TexteaInc/funix/commit/73c98f8c79c9550499576a260118efe0551d5410, yazawazi) <!-- 1681522933.0 -->
- support side bar history list (https://github.com/TexteaInc/funix/commit/fd04e7048e546a80dcf6092fef4f45f190a8f625, yazawazi) <!-- 1681860632.0 -->
- add the menu to the side bar history list (https://github.com/TexteaInc/funix/commit/e793c5627940a4a4110290b556721c6178effe1c, yazawazi) <!-- 1682050822.0 -->
- add `secret` argument (https://github.com/TexteaInc/funix/commit/79861b3dda170e5bfd795644fc8c486d0122d962, yazawazi) <!-- 1682387694.0 -->
- do not show `untitled` in side bar history list (https://github.com/TexteaInc/funix/commit/a9b5411454f33fc42bd78a0f9675bd25d2b09dc7, yazawazi) <!-- 1682418380.0 -->
- add custom markdown render to support MUI components (https://github.com/TexteaInc/funix/commit/f54bed5d757c8837e33d4de3546843c1abdcb45e, yazawazi) <!-- 1682589804.0 -->
- major changes in history (https://github.com/TexteaInc/funix/commit/238bcbadc0303a60cc1ebea8691762468f0f5c7c, yazawazi) <!-- 1683230108.0 -->
- support app secret setting in frontend (https://github.com/TexteaInc/funix/commit/7ef49ebe61908649f05b371ce664352d46406c4d, yazawazi) <!-- 1683230108.0 -->
- pop-up snackbar when history cannot be saved (https://github.com/TexteaInc/funix/commit/ae45e62ee222a805d92a9459f720fdd1b6ad1bb0, yazawazi) <!-- 1683230108.0 -->
- change the file size limit to 15 MB (https://github.com/TexteaInc/funix/commit/46893895107c354a63e106292cf7380aa2f96be2, yazawazi) <!-- 1683230108.0 -->
Chores
- do not generate source map in `funix:build` (https://github.com/TexteaInc/funix/commit/3c984b688c0fd8bb42a60f7c97ca50c5ba30fdce, yazawazi) <!-- 1682418962.0 -->