0.41.14-rc0

(fix): The Fern CLI now safely handles a npx file exists error by retrying the command on failure. This error typically happens when two or more instances of the Fern CLI are running npx at the same time.

0.41.13

(fix): fern generate --local no longer crashes on large API Definitions because we stream the JSON to file instead of calling JSON.stringify. See PR 4640.

0.41.12

(feat): Adds availability to inlined properties for HTTP Requests, Webhooks, and WebSockets for Fern Definition and OpenAPI. You can add availability like so:

Fern Definition:

1Request:
2 name: InlineRequest
3 properties:
4 random:
5 type: string
6 availability: pre-release

OpenAPI:

1requestBody:
2content:
3 application/json:
4 schema:
5 type: object
6 properties:
7 random:
8 type: string
9 x-fern-availability: beta

0.41.11

(feat): Adds availability and display-names to discriminated union values. Now, in your docs, you can mark your union values with custom names and show their availability. You can do so by adding the following to your API definition:

1MyUnionType:
2 union:
3 UnionValue1:
4 docs: The first union value
5 type: string
6 display-name: Union Value One
7 availability: beta
8 UnionValue2:
9 docs: The second union value
10 type: integer
11 display-name: Union Value Two
12 availability: deprecated