3.12.0
(feat): Add support for publishing to npmjs.org using OIDC from GitHub Actions.
To use OIDC for publishing to npmjs.org, you need to follow two steps:
-
Follow the instructions in “Step 1: Add a trusted publisher on npmjs.com”.
-
Set the
output.tokenfield toOIDCin generators.yml to enable this feature:This will take care of “Step 2: Configure your CI/CD workflow”.
For local generation, you’ll need Fern CLI version 0.94.0 or later.
(feat): Update GitHub Actions setup-node action to v4 in the generated CI workflow.
3.11.1
(fix): Generate streaming response section in README.md for streaming response endpoints.
3.11.0
(feat): Add linter and formatter configuration options to configure code linters and formatters for the generated SDK.
linter:biome: Use Biome as the code linter. This is the default.none: Do not include a code linter.
formatter:biome: Use Biome as the code formatter. This is the default.prettier: Use Prettier as the code formatter.
For consistency, the package.json scripts will always include the following scripts:
lint: Run the configured linter.lint:fix: Run the configured linter with auto-fix.format: Run the configured formatter.format:check: Run the configured formatter in check mode.check: Run both the linter and formatter in check mode.check:fix: Run both the linter and formatter with auto-fix. When thelinteris set tonone,lintandlint:fixscripts will echo a message indicating that no linter is configured.