Smarter Component Updates via Block Versioning #585
mmailaender
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey sorry for the delay in response I have been trying to give this some thought but I have been pretty busy. A few concerns:
I do think there is value to this definitely something to continue to think about. |
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.
-
As my current understanding,
jsrepo's CLI checks for updates by comparing the user’s local block implementation with the server’s current version. If any differences exist, it shows a diff. However, this approach lacks context — especially when both the user and the server have made changes — making updates harder to reason about or safely apply.Problem:
Without explicit version tracking:
Proposed Solution: Block Versioning
Introduce versioning for each block at the time the user fetches it.
How it works:
When a user installs a block, it's tagged with a version identifier (e.g.
Button@v1.2.0).On update, the CLI compares three versions:
v1.2.0– the version originally installedaltered-v1.2.0– the modified version on the user’s machinev1.3.0– the latest version from the serverThis enables a 3-way diff:
With the help of an LLM, the CLI could:
Classify user vs server changes semantically
Determine mergeability, offering intelligent suggestions:
Benefits:
Beta Was this translation helpful? Give feedback.
All reactions