🌿 ✨ [Scheduled] Upgrade Fern CLI #156
Merged
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.
Upgrading from
0.46.16to0.50.12- Changelog0.50.12fix:Increase undici timeouts to make sure thatfern generate --docscompletes.0.50.11fix:The CLI now supports a--log-level traceoption to filter out noise from thedebug log level.
0.50.10fix:An addition to the broken link checker to further reduce false positives.0.50.9fix:The Fern CLI no longer logs the full API request when finishing docs registration,reducing unnecessary log output.
0.50.8fix:An additional fix to the OpenRPC parser for respecting tags whenorganizing methods in the API Reference.
26 additional updates, see more
0.50.7fix:The OpenRPC parser now respects method names as well as tags fororganization the navigation.
0.50.6fix:The broken link checker is updated to reduce false positives.0.50.5fix:The Fern CLI is updated to create the organization if it doesn't exist whenfern tokenis called.0.50.4internal:The docs.yml now supports a separate configurtation forfeature-flagswhich allows Fern to renderpieces of content depending on whether or not certain feature flags are enabled for particular user.
This feature is in alpha stage; please contact [email protected] to learn more!
0.50.3internal:Fixes an issue where optional, nullable properties resulted in a double optional in theIRv55 -> IRv54 migration.
0.50.2fix:The docs now includes alpha support for parsing openrpc specs. To leverage this feature,simply define an API section in your docs.yml and point at an openrpc spec.
0.50.1fix:Fixes an issue where nullable schemas were not coerced into optional values.fix:Fixes an issue wherefern checkwould fail for optional, nullable properties.0.50.0internal:The CLI is capable of migrating the latest TypeScript generator to IRv55.0.49.1fix:The OpenAPI v2 parser now supportsx-fern-global-headersand fixes an issue with generating webhook content.0.49.0feat:The OpenAPI importer now supports respecting nullable properties in schemas. When enabled, nullable properties willbe preserved in the gnerated SDK. By default (without this setting), nullable properties are treated as
optional.To enable this, configure the setting in your
generators.yml:0.48.1fix:The Mintlify docs importer now correctly generates the proper display-name key in the docs.yml file.0.48.0feat:Adds support for nullable types in the Fern definition, such as the following:0.47.6feat:The IR now pulls in additional request properties from the OAuth getToken endpoint to support custom OAuth schemas.0.47.5feat:Fixes an issue with broken link checking in the OpenAPI v2 parser.0.47.4feat:Allows for creating nullable types and pass formats on strings using the OpenAPI v2 parser.0.47.3feat:Add the JSON schema to the generators.yml file for validation and autocomplete.0.47.2feat:The CLI now supports checking for broken links in your docs. You will see warnings infern checkif your docs link to anypage that can't be resolved, and the
--strict-broken-linksoption will cause the command to fail (exit with a non-zero exit code) ifany broken links are found. You can also run the new command
fern docs broken-linksto only check for broken links (ignoringother possible errors), with the
--strictoption to cause the command to fail if any broken links are found.0.47.1feat:Fixes a bug where the OpenAPI parser stopped respecting the =unions: v1setting in yourgenerators.ymlwhich configures the parser to generate moreidiomatic discriminated unions.
0.47.0feat:The CLI now supports publishing docs using the improved OpenAPI v2 parser. You can setopenapi-parser-v2: truein your
docs.ymlto use the new parser.0.46.23feat:The CLI now validates that method and group name overrides in OpenAPI settings are not duplicated.0.46.22feat:Support configuration of Google Analytics and Google Tag Manager in API Docs.0.46.21fix:The CLI now supports theprefer-undiscriminated-unions-with-literalssetting in OpenAPI settings.0.46.20feat:Thefern initcommand now supports a--mintlifyoption. You can pass inthe path to your
mint.jsonand the Fern CLI will generate a fern documentationwebsite.
0.46.19fix:If a schema in OpenAPI or AsyncAPI hasadditionalProperties: truethen the Fern CLI will now respect bringing inexample properties that are not defined in the schema. Previously, the CLI would skip them.
0.46.18fix:If an object or request is annotated withextra-properties: truethen the user can provide an example that includesextra properties that are no longer in the schema.
For example, check out this fern definition
0.46.17fix:Support parsing string values for boolean defaults in OpenAPI schemas.