Allow installing components using a specific version (deterministic installs) #155
maciej-winware
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey @maciej-winware, thanks for the suggestion. I'll add this to out backlog. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem or use case
Currently the CLI version can be pinned, for example:
npx untitledui@0.1.55 add button
However, the CLI fetches components from the Untitled without specifying any component version. As a result, the installed component code may change over time even when using the same CLI version.
Additionally, there does not appear to be any publicly accessible versioning for the React components themselves (e.g., tags, releases, or versioned component snapshots). This makes it impossible to install or reference a specific component version.
For teams integrating Untitled UI components into production codebases, this creates several risks:
Installing components should be deterministic so that the same command always produces the same component code.
Proposed solution
Allow installing components using a specific version. For example:
npx untitledui@0.1.55 add button@0.1.55or
npx untitledui@0.1.55 add button --components-version 0.1.55This could be implemented by:
Ideal solution - publish versioned react components as an npm package (@untitledui/react). Using npm for component distribution simplifies versioning and reproducibility.
The key requirement is that component installs should be reproducible for a given version.
Alternatives considered
No response
Examples or mockups
No response
Beta Was this translation helpful? Give feedback.
All reactions