Document allowed version values in fern.config.json - #7233
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration
Bot
requested review from
jkonrath-postman and
nerminamiller-postman
as code owners
October 2, 2026 17:10
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1790960968-fern-config-version-values.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Fern CLI now accepts only an exact semver version,
"latest", or"*"forversioninfern.config.json. It used to accept any string. This change matters for security, because the CLI installs and runs whatever version that field names. Customers who pin the CLI version can now see which values are valid, so av-prefixed version or a range like^5.40.0won't surprise them with a validation error.Implements docs for: fix(cli): reject non-semver versions in fern.config.json (fern-api/fern#17945)
Pages changed
fern/products/docs/pages/getting-started/project-structure.mdxandfern/products/sdks/project-structure.mdx(both have the samefern.config.jsonsection): added one paragraph covering:"latest","*"vprefix, ranges, dist-tags, surrounding whitespace, andfile:/npm:/git/URL specsfern/products/cli-api-reference/pages/general-commands.mdx: one sentence each underfern upgrade --versionandfern downgrade. Both commands now check the version the same way before they writefern.config.json(isValidProjectConfigVersion).fern check --warningsreports 0 errors. The only Vale error is atsdks/project-structure.mdx:51("that is"). It's in an unchanged line and was already there.Link to Devin session: https://app.devin.ai/sessions/76bd1188a1734b9fac32e42fd2efeec8
Open in Devin Desktop: https://app.devin.ai/desktop/session/76bd1188a1734b9fac32e42fd2efeec8?variant=devin