starfederation / datastar

A real-time hypermedia framework.
https://data-star.dev/
MIT License
707 stars 40 forks source link

Sync Golang and JavaScript versions #173

Closed blinkinglight closed 2 weeks ago

blinkinglight commented 1 month ago

Currently, the version needs to be tracked manually with the existing helpers. It would be helpful if the datastar Go package could automatically inject its version into the CDN JavaScript include, ensuring the Golang package version remains in sync with the JavaScript version used.

delaneyj commented 2 weeks ago

This will be addressed in the new build process... By using esbuild as a library I'm also autogenerating https://github.com/starfederation/datastar/blob/main/code/go/sdk/version.go