From b7e5711989df5aa9145b6815ed44d4f01960ef7e Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Fri, 9 Oct 2026 11:31:01 -0700 Subject: [PATCH] Updated to latest version of fern --- .github/actions/setup-fern/action.yml | 2 +- fern/fern.config.json | 2 +- scripts/fern/README.md | 4 ++-- scripts/fern/example-cache.test.cjs | 2 +- scripts/fern/run.cjs | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup-fern/action.yml b/.github/actions/setup-fern/action.yml index 89ed43717..8f9691c0a 100644 --- a/.github/actions/setup-fern/action.yml +++ b/.github/actions/setup-fern/action.yml @@ -9,7 +9,7 @@ runs: - name: Install pinned Fern shell: bash run: | - npm install --prefix "$RUNNER_TEMP/vapi-fern" --no-save --no-audit --no-fund fern-api@5.112.0 + npm install --prefix "$RUNNER_TEMP/vapi-fern" --no-save --no-audit --no-fund fern-api@5.151.1 echo "FERN_CLI_PATH=$RUNNER_TEMP/vapi-fern/node_modules/fern-api/cli.cjs" >> "$GITHUB_ENV" - name: Test cache safeguards shell: bash diff --git a/fern/fern.config.json b/fern/fern.config.json index aa2e23690..58c2baf35 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "vapi", - "version": "5.112.0" + "version": "5.151.1" } diff --git a/scripts/fern/README.md b/scripts/fern/README.md index 39d896e70..ee197a375 100644 --- a/scripts/fern/README.md +++ b/scripts/fern/README.md @@ -1,6 +1,6 @@ # Fern example cache -Fern 5.112.0 repeatedly generates examples for nested API properties during +Fern 5.151.1 repeatedly generates examples for nested API properties during validation and publication. The GPT-Live docs publish spent about 24 minutes preparing validation and another 25 minutes building the API navigation. Its final deployment took six seconds. @@ -49,7 +49,7 @@ original Fern commands also removes this optimization. ## Local verification ```sh -npm install --prefix /tmp/vapi-fern --no-save fern-api@5.112.0 +npm install --prefix /tmp/vapi-fern --no-save fern-api@5.151.1 export FERN_CLI_PATH=/tmp/vapi-fern/node_modules/fern-api/cli.cjs node --test scripts/fern/example-cache.test.cjs node scripts/fern/run.cjs check --local --log-level debug diff --git a/scripts/fern/example-cache.test.cjs b/scripts/fern/example-cache.test.cjs index 2e42f3c4b..405e6e8bc 100644 --- a/scripts/fern/example-cache.test.cjs +++ b/scripts/fern/example-cache.test.cjs @@ -94,7 +94,7 @@ test('corrupt entries fall back to original generation', (t) => { test('API and prose edits preserve the namespace while tooling changes invalidate it', (t) => { const { directory } = fixture(t); fs.mkdirSync(path.join(directory, 'fern/apis/api'), { recursive: true }); - fs.writeFileSync(path.join(directory, 'fern/fern.config.json'), '{"version":"5.112.0"}'); + fs.writeFileSync(path.join(directory, 'fern/fern.config.json'), '{"version":"5.151.1"}'); fs.writeFileSync(path.join(directory, 'fern/apis/api/openapi.json'), '{}'); const before = inputDigest(directory); fs.writeFileSync(path.join(directory, 'fern/overview.mdx'), 'new prose'); diff --git a/scripts/fern/run.cjs b/scripts/fern/run.cjs index 621c02855..5d3e831fb 100644 --- a/scripts/fern/run.cjs +++ b/scripts/fern/run.cjs @@ -4,9 +4,9 @@ const os = require('node:os'); const { spawnSync } = require('node:child_process'); const { digest } = require('./example-cache.cjs'); -const VERSION = '5.112.0'; -const CLI_SHA256 = '9932a459d6e109b40a1dcf4551317e9737779c5c3750f0c78701c0c4d58d6305'; -const MARKER = 'function u8d({propertySchema:e,breadcrumbs:t,context:r,propertyId:n})'; +const VERSION = '5.151.1'; +const CLI_SHA256 = '1259c794e499472dcd28ed3098ee5dbf6e3245bc7f0dac95faf726683fb4b379'; +const MARKER = 'function gxm({propertySchema:e,breadcrumbs:t,context:r,propertyId:n})'; const MEDIA_MARKER = 'generateOrValidateExample({schema:t,example:r,generateOptionalProperties:n,exampleGenerationStrategy:i})'; function inputDigest(root) { @@ -27,7 +27,7 @@ function main() { if (digest(source) !== CLI_SHA256 || source.split(MARKER).length !== 2 || source.split(MEDIA_MARKER).length !== 2) throw new Error('Unexpected Fern CLI contents. Refusing to apply the cache adapter.'); const temporary = fs.mkdtempSync(path.join(os.tmpdir(), 'vapi-fern-')); const patched = source - .replace(MARKER, 'function u8d(args){return globalThis.__vapiFernExamples(args,()=>vapiOriginalExamples(args))}function vapiOriginalExamples({propertySchema:e,breadcrumbs:t,context:r,propertyId:n})') + .replace(MARKER, 'function gxm(args){return globalThis.__vapiFernExamples(args,()=>vapiOriginalExamples(args))}function vapiOriginalExamples({propertySchema:e,breadcrumbs:t,context:r,propertyId:n})') .replace(MEDIA_MARKER, 'generateOrValidateExample(args){return globalThis.__vapiFernExamples({context:this.context,breadcrumbs:this.breadcrumbs,mediaExampleArgs:args},()=>this.vapiOriginalMediaExample(args))}vapiOriginalMediaExample({schema:t,example:r,generateOptionalProperties:n,exampleGenerationStrategy:i})'); try { const cli = path.join(temporary, 'fern.cjs');