Skip to content

Fixes dependency version for brutusin-json-forms to specific commit hash#1209

Merged
baltpeter merged 1 commit intodatenanfragen:masterfrom
Jolg42:patch-2-pin-brutusin
Oct 22, 2025
Merged

Fixes dependency version for brutusin-json-forms to specific commit hash#1209
baltpeter merged 1 commit intodatenanfragen:masterfrom
Jolg42:patch-2-pin-brutusin

Conversation

@Jolg42
Copy link
Copy Markdown
Contributor

@Jolg42 Jolg42 commented Oct 21, 2025

While working on #1208 I saw that the brutusin-json-forms is not pinned and outdated since 7 years.

This pull request makes a minor update to the brutusin-json-forms dependency in package.json, pinning it to a specific commit hash for improved stability and reproducibility.

It's slightly better than the default branch on a GitHub repo :)

Comment thread yarn.lock
"brutusin-json-forms@https://github.com/brutusin/json-forms":
"brutusin-json-forms@https://github.com/brutusin/json-forms#44f27b29ef657f545b8a3d162c2b9c90ef137dbc":
version "0.0.0"
resolved "https://github.com/brutusin/json-forms#44f27b29ef657f545b8a3d162c2b9c90ef137dbc"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! But doesn't the resolved entry already pin the version? :)

Copy link
Copy Markdown
Contributor Author

@Jolg42 Jolg42 Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, but it makes the dependency requirement clearer directly in package.json
To take an example with any other package, no package is set with "mypackage": "latest" in the package.json (though they are pinned in the lockfile).
Here the same logic applies.

Copy link
Copy Markdown
Member

@baltpeter baltpeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Jolg42! While I'm not too worried about there suddenly being new commits after seven years, I do agree that this is cleaner and safer. :D

And, just for the record since I'm not sure how discoverable those conversations are: We are very much intending to switch away from brutusin/json-forms eventually for various reasons. I've actually developed a custom Preact JSON schema forms library for our purposes a few years ago that we've been using successfully in a (so far) internal company database editor. More info in #561 and datenanfragen/company-json-generator#17.

@baltpeter baltpeter merged commit 6d2c6c7 into datenanfragen:master Oct 22, 2025
7 checks passed
@welcome
Copy link
Copy Markdown

welcome bot commented Oct 22, 2025

Congrats on your first merge! The resulting deploy will take about twenty minutes to go live.

@Jolg42 Jolg42 deleted the patch-2-pin-brutusin branch October 22, 2025 10:35
@Jolg42
Copy link
Copy Markdown
Contributor Author

Jolg42 commented Oct 22, 2025

@baltpeter I had no idea, nice to see these issues/discussions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants