Replies: 2 comments 9 replies
-
|
we use CalVer for official builds, semver for developers builds that land on npm where semver is the standard so it's a bit tricky to return something too meaningful, specially because
3rd party scripts might also remove/change at runtime scripts details so a runtime way to do that doesn't feel like the most robust solution we have, we could automate the semver version resolution at build time, but that might not be interesting for official builds. Last, but not least, the https://pyscript.net/version.json entry point gives you the current/latest official version too, so maybe that's all you need? |
Beta Was this translation helpful? Give feedback.
-
|
Whoa, I didn't think it's so complicated! But However I think having |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried
pyscript.versionandpyscript.__version__, neither seems to exist, though it would be useful for logging and diagnostic purposes.Here's what I turned up using now:
It works but looks a bit weird to me.
Beta Was this translation helpful? Give feedback.
All reactions