-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Webnative 0.35 #89
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Why is this necessary? Is it just because the signature of the method has changed, or is there a semantic reason why "program" is better than "app". TBH I think "app" is more generically understandable by developers. |
That came out of discussion with Boris who found the usage of |
I think the issue might be in Should this be updated with the |
That did the trick, thanks! Was expecting a type error for this one. |
Deploying with
|
Latest commit: |
8eeb9e2
|
Status: | ✅ Deploy successful! |
Preview URL: | https://5a254e95.webnative-template.pages.dev |
Branch Preview URL: | https://icidasset-webnative-0-35.webnative-template.pages.dev |
… limit error message
So it seems the page is double mounted exclusively when it is the |
@icidasset i've got a fix 👍🏼, will push it shortly |
Okay, I think my fix for the delegate route re-mounting may have fixed this too because I can't recreate it anymore. I'll keep an eye on it though 👍🏼 |
Yup, seems to be all fixed! 🎉 |
Waiting on the official 0.35 release! |
Upgrade to to Webnative
v0.35
.Changes:
webnative.app()
has been replaced bywebnative.program()
. Which is now the sole entry point of webnative (no moreinitialise
orpermissionedApp
either). The reason for the rename is to avoid confusion with Webnative apps, the ones you create via the CLI or dashboard.authed
WAT session variable has been replaced bysession
. A Webnative program will only give you a session if you're authenticated. I didn't want two variables representing roughly the same state so I removedauthed
Uint8Array
s to the filesystem. That means that strings, files and blobs all have to be converted to Uint8Arrays first. I added one util function for that and strings are converted with TextEncoder/TextDecoder (or use the uint8arrays library).I created a program store because this is the main interaction point to do something with your program. As opposed to using the webnative global. For example, before you'd callwebnative.auth.isUsernameValid()
, now you'd useprogram.auth.isUsernameValid()
. Reasoning here is that global state has been removed from webnative, so all state lives in your createdProgram
. I'm not entirely sure creating a store was the right approach here, since I'm not familiar with Svelte. Let me know if there's a better way to do this.Let me know if anything else needs explaining or if you have ideas to further improve any of the API.
Remaining issues: