New stage! PNPM, latest GUN and no Typescript
With the help of Evan You and Gun community I could finally make latest gun version work as a npm dependency. So there's no more need in adding a bunch of gun files via <script> tag in the html. But then typescript became aware of what is gun
in my code and as the @types for gun are obsolete it could cause a bunch of //@ts-ignore in the code. I've analyzed my actual usage of typescript in the project and found that it eliminated much less confusion than it created! With the power of Mark Nadal's anger at all the bundler and builder that he expressed in the Gun chat, I just got rid of all those type definitions in the code and got all the project back to plain JS. There was not too much to lose, but now the code is much cleaner for those who are not deep in TS. Including me!
Also I've tried PNPM in other projects and it looks more robust. Switching is very easy and it doesn't affect the repo code at all.
Looking forward to try the SEA.certify feature of GUN, that may become a game changer in my data structure.