Skip to content

Big refactor after upgrading to svelte5

Compare
Choose a tag to compare
@FoHoOV FoHoOV released this 13 Feb 21:00
· 367 commits to master since this release

This release, does not add any new features to this project, just bunch of rewrites to simplfy the code, for instance introducing a new EnhancedForm component which encapsulates the use:superEnhance action and manages the shared state itself.

I made up some conventions in this relesae as well, for instance all imports are in the script context="module and the logic is in the script, also component imports will be at the top of all other imports for the sake of consistency. I hope this convention is right because I have nobody tell me what is wrong and what is not and go by my stug.reverse().

I wish there was somebody to comment or review this project or just see it :(

Things I'm proud of:

  1. draggable/dropzone actions
  2. superEnhace
  3. the whole type safety thing (specially in form actions and the integration of superEnhance with it)
  4. generated clients and how they are integerated with the client-wrapper stuff (again the type safety)
  5. have I mentioned type safety