Skip to content

fix: improper runtime config syntax for nuxt guide #6360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 182 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
12ac4c3
docs: fix typo (#5521)
dylanmoz Apr 3, 2025
fba2bd5
docs: fix highlights in node.js guide (#5519)
AmagiDDmxh Apr 3, 2025
1a02790
docs: update baseten community provider docs (#5517)
philipkiely-baseten Apr 3, 2025
292f543
fix (provider/google-vertex): fix anthropic support for image urls in…
shaper Apr 3, 2025
8362d21
Version Packages (#5525)
github-actions[bot] Apr 3, 2025
c45d100
fix (core): send buffered text in smooth stream when stream parts cha…
lgrammel Apr 3, 2025
4e28bba
Version Packages (#5532)
github-actions[bot] Apr 3, 2025
2c19b9a
chore (ui/react,vue): update more tests to unified test server (#5509)
samdenty Apr 3, 2025
9cfaaf0
docs: Use new `create-nuxt` tool when starting Nuxt projects (#5175)
wobsoriano Apr 3, 2025
bc46777
feat (docs): Helicone observability (#5472)
colegottdank Apr 4, 2025
0ee98df
docs: add local caching middleware recipe (#5540)
nicoalbanese Apr 4, 2025
5952cfb
fix (docs): highlight (#5545)
gentamura Apr 4, 2025
772a2d7
feat (core): Add finishReason field to NoObjectGeneratedError (#5541)
BramMeerten Apr 4, 2025
ed79357
Version Packages (#5536)
github-actions[bot] Apr 4, 2025
2abf7a6
fix (docs): troubleshooting page description (#5551)
lgrammel Apr 4, 2025
1789884
feat (provider/{google, google-vertex}): expose type for validating p…
iteratetograceness Apr 5, 2025
5f61296
fix (docs): correct content outside description in jest docs (#5559)
shaper Apr 5, 2025
bd8b669
Version Packages (#5558)
github-actions[bot] Apr 5, 2025
3d1bd38
feat (core): add chunking functions support to smoothStream (#5548)
lgrammel Apr 5, 2025
5c47bbd
Version Packages (#5561)
github-actions[bot] Apr 5, 2025
665a567
fix (core): consume stream on abort (#5492)
iteratetograceness Apr 5, 2025
8fdc8fe
feat (provider/groq): add llama 4 model (#5565)
shaper Apr 5, 2025
64f37ac
Version Packages (#5564)
github-actions[bot] Apr 5, 2025
1e8e66d
fix (provider/google): allow "OFF" for Google HarmBlockThreshold (#5550)
kvnang Apr 6, 2025
e82024e
feat (provider/azure): add OpenAI responses API support (#5461)
AVtheking Apr 6, 2025
4b97ea9
Version Packages (#5570)
github-actions[bot] Apr 6, 2025
264b1e0
feat (providers/deepinfra): add llama 4 models (#5572)
shaper Apr 6, 2025
e5f6a50
Version Packages (#5573)
github-actions[bot] Apr 6, 2025
3e88f4d
fix (ai/mcp): prevent mutation of customEnv (#5583)
cgoinglove Apr 7, 2025
b8e7fb7
docs: add stackone toolset (#5585)
mattzcarey Apr 7, 2025
7bff5e2
fix: changeset
lgrammel Apr 8, 2025
ddf0454
fix(docs): correct Completions API example by using openai() instead …
faiz-gear Apr 8, 2025
c21fa6d
feat: add transcription with `experimental_transcribe` (#5496)
haydenbleasel Apr 8, 2025
c96e093
Version Packages (#5590)
github-actions[bot] Apr 8, 2025
013faa8
fix (provider/openai): increase transcription model resilience (#5600)
lgrammel Apr 8, 2025
45010dd
Version Packages (#5601)
github-actions[bot] Apr 8, 2025
2669f00
docs: update transcription highlights (#5603)
nicoalbanese Apr 8, 2025
aeba38e
feat (provider/anthropic): Add URL-based PDF support (#5470)
anishsrinivasan Apr 9, 2025
b35e490
Version Packages (#5617)
github-actions[bot] Apr 9, 2025
158ddc4
docs: update llms txt header and remove outdated troubleshooting page…
nicoalbanese Apr 9, 2025
f35277b
chore: improve contributing guide & add PR template checklist (#5627)
samdenty Apr 9, 2025
632cf27
docs: update svelte kit guide to use parts (#5630)
nicoalbanese Apr 9, 2025
c0fa382
docs: remove broken link from vc deployment guide (#5631)
nicoalbanese Apr 9, 2025
0089ef5
docs: update nuxt guide parts (#5632)
nicoalbanese Apr 9, 2025
7b17e33
docs: update intro page (#5633)
nicoalbanese Apr 9, 2025
4c0e864
chore: update docs on `providerOption` levels (#5612)
iteratetograceness Apr 9, 2025
45de936
feat (providers/xai): add grok-3 models (#5644)
shaper Apr 10, 2025
f25b78f
Version Packages (#5645)
github-actions[bot] Apr 10, 2025
cb76856
chore: make pr task checklist easier to follow (#5641)
samdenty Apr 10, 2025
1bbc698
chore(openai-compatible): deprecate simulateStreaming (#5656)
samdenty Apr 10, 2025
dbe53e7
fix (provider/openai): add support for gpt-4o-search-preview model an…
Sma1lboy Apr 10, 2025
84ffaba
fix (provider/openai): transcription fixes (#5667)
haydenbleasel Apr 10, 2025
6097d25
Version Packages (#5659)
github-actions[bot] Apr 10, 2025
452bf12
fix (ai/mcp): improve handling of zero-argument MCP tools (#5670)
iteratetograceness Apr 10, 2025
ad30a89
Version Packages (#5672)
github-actions[bot] Apr 11, 2025
5c171f9
fix (docs): generateObject modelId typo (#5688)
SnehanChakravarthi Apr 11, 2025
96c7d1a
fix (docs): complete phrase in bedrock jsdoc (#5665)
gnapse Apr 11, 2025
01888d9
feat (provider/elevenlabs): add transcription provider (#5643)
haydenbleasel Apr 11, 2025
bdfd0c6
Version Packages (#5694)
github-actions[bot] Apr 11, 2025
0c67917
fix(docs): fix transcription typo (#5695)
haydenbleasel Apr 12, 2025
beef951
feat: add speech synthesis with `experimental_generateSpeech` (#5649)
haydenbleasel Apr 12, 2025
f4f672e
chore (github): switch from bugs/features to support requests in issu…
lgrammel Apr 12, 2025
89b0eed
chore (ci): enable v5 github actions (even on main) (#5706)
lgrammel Apr 12, 2025
9cebe48
chore (providers/xai): update grok-3 model aliases (#5646)
samdenty Apr 12, 2025
3c26c55
feat(providers/azure): add transcribe (#5722)
haydenbleasel Apr 13, 2025
74688db
feat(providers/groq): add transcribe (#5716)
haydenbleasel Apr 13, 2025
bd41167
fix(ai/core): properly handle custom separator in provider registry (…
anatolzak Apr 13, 2025
ebeeb32
fix(providers/xai): edit supported models for structured output (#5715)
mxzinke Apr 14, 2025
47bd16d
Version Packages (#5705)
github-actions[bot] Apr 14, 2025
a7cb932
feat(providers/revai): add transcribe (#5730)
haydenbleasel Apr 14, 2025
69e8344
feat(providers/hume): add speech (#5727)
haydenbleasel Apr 14, 2025
a609a66
Version Packages (#5742)
github-actions[bot] Apr 14, 2025
0d7291a
feat(providers/lmnt): add speech (#5726)
haydenbleasel Apr 14, 2025
b5c9cd4
fix (provider/openai-compatible): change tool_call type schema to nu…
lgrammel Apr 14, 2025
4019639
Version Packages (#5752)
github-actions[bot] Apr 14, 2025
3eeb27f
feat(providers/deepgram): add transcribe (#5721)
haydenbleasel Apr 14, 2025
575339f
feat (providers/openai): add gpt-4.1 models (#5764)
shaper Apr 14, 2025
2ec40af
Version Packages (#5763)
github-actions[bot] Apr 14, 2025
f4f3945
fix (ai/core): filter out empty content/text assistant messages (#5767)
iteratetograceness Apr 15, 2025
e6e1cd9
feat(providers/gladia): add transcribe (#5720)
haydenbleasel Apr 15, 2025
8e5cbb7
Version Packages (#5782)
github-actions[bot] Apr 15, 2025
eaca8c1
docs: move gladia provider (#5790)
nicoalbanese Apr 15, 2025
6e8a73b
feat(providers/fal): add transcribe (#5718)
haydenbleasel Apr 16, 2025
75b9849
fix(provider/openai): update temperature handling for all search prev…
Sma1lboy Apr 16, 2025
2549660
Version Packages (#5798)
github-actions[bot] Apr 16, 2025
980141c
fix (openai): structured output support for responses api model (#5809)
iteratetograceness Apr 16, 2025
8d187f5
Version Packages (#5810)
github-actions[bot] Apr 16, 2025
b69a253
fix(utils/detect-mimetype): add support for detecting id3 tags (#5737)
haydenbleasel Apr 16, 2025
98d954e
feat (providers/openai): add o3 and o4-mini models (#5811)
nicoalbanese Apr 16, 2025
79b6397
Version Packages (#5812)
github-actions[bot] Apr 16, 2025
bd6e457
feat (provider/openai): o4 updates for responses api (#5826)
lgrammel Apr 17, 2025
1bdbabd
Version Packages (#5827)
github-actions[bot] Apr 17, 2025
033f445
fix (provider/cohere): tool calling (#5836)
lgrammel Apr 17, 2025
1f6aba3
Version Packages (#5837)
github-actions[bot] Apr 17, 2025
d55df31
chore (ci): enable turbo concurrency for testing (#5839) (#5840)
lgrammel Apr 17, 2025
7206b1f
fix (examples): avoid mixed message types in `use-chat-streamdata-mul…
iteratetograceness Apr 17, 2025
c56331d
feat (providers/google): add thinking config to provider options (#5842)
shaper Apr 18, 2025
aad8d45
Version Packages (#5853)
github-actions[bot] Apr 18, 2025
5379cc9
fix(ai/mcp-stdio): make `createChildProcess` synchronous to prevent s…
timjuenemann Apr 20, 2025
487a1c0
fix (providers/fal): improve model compatibility (#5855)
shaper Apr 21, 2025
f90feca
Version Packages (#5861)
github-actions[bot] Apr 21, 2025
ab08c97
fix (docs): fix valibotSchema import (#5865)
lgrammel Apr 21, 2025
13492fe
fix(providers/xai): return actual usage when streaming instead of NaN…
samdenty Apr 21, 2025
59e0fcd
Version Packages (#5874)
github-actions[bot] Apr 21, 2025
5b91c6a
fix (docs): fix OpenRouter code examples (#5876)
8enSmith Apr 22, 2025
ca7bce3
feat (providers/openai): add support for reasoning summaries (#5906)
shaper Apr 23, 2025
16e6dd0
Version Packages (#5907)
github-actions[bot] Apr 23, 2025
a2f6c80
chore (automation): enforce `patch` bumps in `.changeset/*.md` files …
gr2m Apr 23, 2025
6dff8d8
docs: update chat-with-pdf page to include updated provider informati…
maxwiseman Apr 23, 2025
5d09f78
fix (docs): fix typo (#5914)
dciccale Apr 23, 2025
cb05e9c
feat(providers/assemblyai): add transcribe (#5697)
haydenbleasel Apr 23, 2025
17aec7a
Revert "chore (automation): enforce `patch` bumps in `.changeset/*.md…
lgrammel Apr 23, 2025
6183b08
feat (providers/google): Add taskType support for Text Embedding Mode…
habeebmoosa Apr 23, 2025
957408b
fix (docs): fix svelte import (#5920)
lgrammel Apr 23, 2025
4d3ce7b
feat (docs): Add docs for Cloudflare AI Gateway provider (#5884)
G4brym Apr 23, 2025
3c2850f
Version Packages (#5918)
github-actions[bot] Apr 23, 2025
d4f53b9
docs: add example of sending custom metadata in middleware (#5910)
nicoalbanese Apr 23, 2025
b217142
chore (automation): enforce `patch` bumps in `.changeset/*.md files` …
gr2m Apr 23, 2025
23571c9
feat(providers/xai): add reasoningEffort option (#5926)
samdenty Apr 23, 2025
64e7554
Version Packages (#5931)
github-actions[bot] Apr 23, 2025
15b8bb8
chore (automation): skip changeset validation if no `.changeset/*.md`…
gr2m Apr 23, 2025
74cd391
feat (providers/openai): support gpt-image-1 image generation (#5938)
shaper Apr 23, 2025
c39ad25
Version Packages (#5940)
github-actions[bot] Apr 23, 2025
baa1988
chore (automation): assign team pull requests to author (#5844) (#5930)
gr2m Apr 24, 2025
ab69574
docs: update image detail terminology and fix broken documentation li…
suekou Apr 24, 2025
137e3fa
docs(providers): fix minor errors in Azure and Bedrock docs (#5943)
Rahul-Lashkari Apr 24, 2025
300b7a5
chore: improve pull request template (#5957)
lgrammel Apr 24, 2025
25d4760
fix (docs): correct example for gpt-image-1 provider options (#5968)
shaper Apr 24, 2025
3cabda9
feat (providers/openai): add gpt-image-1 model id to image settings (…
shaper Apr 25, 2025
47b7e4d
fix (docs): clarify reasoningSummary support and update examples (#5967)
liby Apr 25, 2025
278adc0
Version Packages (#5979)
github-actions[bot] Apr 25, 2025
0432959
feat (ai): add experimental prepareStep callback to generateText (#5985)
lgrammel Apr 25, 2025
79c8c57
Version Packages (#5986)
github-actions[bot] Apr 25, 2025
8a592c2
docs: add Browserless.io documentation link to tools list (#5830)
millerphp Apr 25, 2025
857d6cd
chore (provider/friendli): remove outdated model entry for `meta-llam…
minpeter Apr 25, 2025
dd5450e
feat(provider/openai): add o3 & o4-mini with developer systemMessageM…
dha-aa Apr 25, 2025
cec9f3f
Version Packages (#6001)
github-actions[bot] Apr 25, 2025
f28be14
feat(docs): add Letta community provider (#5904)
4shub Apr 25, 2025
8d7f355
docs: remove Azure web search documentation (#6012)
nicoalbanese Apr 28, 2025
96e2a3e
docs: Add Next.js v14 configuration requirements to LangSmith docs (#…
suekou Apr 28, 2025
8781e61
feat (provider/perplexity): add sonar-deep-research model (#5996)
jhsu Apr 28, 2025
1682a6a
Version Packages (#6021)
github-actions[bot] Apr 28, 2025
c695a7e
feat (provider/google): add new gemini models (#6023)
samdenty Apr 28, 2025
a85ae99
feat (provider/google-vertex): add imagen-3.0-generate-002 (#6024)
samdenty Apr 28, 2025
d866921
Version Packages (#6025)
github-actions[bot] Apr 28, 2025
77b2097
fix(append): support Message.experimental_attachments (#6044)
samdenty Apr 29, 2025
62181ef
fix(react-native): support experimental_attachments without FileList …
samdenty Apr 29, 2025
1d9a12d
Version Packages (#6048)
github-actions[bot] Apr 29, 2025
46cb332
chore (ai/mcp): add `assertCapability` method to experimental MCP cli…
iteratetograceness Apr 29, 2025
d4aa35e
core (ai/mcp): update experimental MCP client documentation for Strea…
iteratetograceness Apr 30, 2025
1ed3755
fix (ai): don't publish mcp-stdio TypeScript files (#6026)
christian-bromann Apr 30, 2025
8b389ae
feat(docs): add Weave observability provider (#6029)
zbirenbaum Apr 30, 2025
5caac29
fix(providers/openai): zod parse error with function (#6074)
samdenty Apr 30, 2025
e69fb20
Version Packages (#6050)
github-actions[bot] Apr 30, 2025
6c59ae7
feat (ui/react): support resuming an ongoing stream (#6052)
jeremyphilemon May 1, 2025
560a070
feat (docs): add Sarvam community provider (#6079)
Mrinank-Bhowmick May 1, 2025
255d52b
Version Packages (#6088)
github-actions[bot] May 1, 2025
23acf65
fix (docs): update formatting in useChat reference docs (#6099)
jeremyphilemon May 1, 2025
fd7c938
feat (docs): add Dify community provider (#4084) (#6067)
warmwind May 2, 2025
845080d
chore: update references to use ai-sdk.dev (#6076)
nicoalbanese May 2, 2025
2afd354
fix(providers/google): accept nullish in safetyRatings (#6124)
samdenty May 5, 2025
5ce269e
Version Packages (#6163)
github-actions[bot] May 6, 2025
a295521
feat(message-validator): include more details in error messages (#6133)
samdenty May 6, 2025
0ca6f2f
feat(providers/google): add gemini-2.5-pro-preview-05-06 (#6178)
samdenty May 6, 2025
c17860a
Version Packages (#6171)
github-actions[bot] May 6, 2025
9cecd28
fix (docs): update Laminar observability provider (#6170)
dinmukhamedm May 7, 2025
2b55a13
fix (docs): typo (#6164)
kathayl May 7, 2025
d87b9d1
fix(provider-utils): fix SSE parser bug (CRLF) (#6197)
twxia May 7, 2025
f3487a3
Version Packages (#6199)
github-actions[bot] May 7, 2025
7765a71
chore (docs): update code snippets to handle race condition when resu…
jeremyphilemon May 8, 2025
b54cb59
fix (ai-sdk/vue): status reactivity (#6234)
nicoalbanese May 9, 2025
396d013
Version Packages (#6249)
github-actions[bot] May 9, 2025
d79f373
fix (docs): mcpClient.tools() need to await (#6186)
georgezouq May 10, 2025
fe24216
feat(providers/google): Add reasoning token output support (#6261)
Und3rf10w May 11, 2025
4b2e1b0
feat(providers/google): Add reasoning token output support (#6284)
lgrammel May 12, 2025
6cd23c0
Version Packages (#6270)
github-actions[bot] May 12, 2025
a149b66
fix (docs): Laminar observability - add note on next.config (#6248)
dinmukhamedm May 13, 2025
c7aa165
chore (github): add version section to support issue template (#6315)
lgrammel May 14, 2025
14c3549
Add Patronus (#6311)
snigdhabanda May 14, 2025
c97ae1a
docs: add v5 alpha announcement (#6344)
nicoalbanese May 16, 2025
bdd06b5
fix (docs): update alpha (#6356)
nicoalbanese May 16, 2025
97d8e48
fix: improper runtime config syntax for nuxt guide
danielkellyio May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/1.support_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Support Request
description: Report a bug, feature request or other issue with the AI SDK.
labels: ['support']
body:
- type: markdown
attributes:
value: |
This template is ask for help regarding an issue that could be a bug or a feature request.
- type: textarea
attributes:
label: Description
description: A detailed description. Please include relevant information such as reproduction steps, code examples, and any other information that might help us understand the issue.
placeholder: |
Reproduction steps, code examples, background, etc...
validations:
required: true
- type: textarea
attributes:
label: AI SDK Version
description: Which version of the AI SDK are you using?
placeholder: |
Examples:
- ai: 4.1.2
- @ai-sdk/react: 2.1.0
- @ai-sdk/openai: 0.5.2
validations:
required: false
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/2.feature_request.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.
We suggest you read the following contributing guide we've created before submitting:
https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

<!-- Why was this change necessary? -->

## Summary

<!-- What did you change? -->

## Verification

<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works end-to-end as expected (independent of automated tests).
Remove the section if it's not needed (e.g. for docs).
-->

## Tasks

<!--
This task list is intended to help you keep track of what you need to do.
Feel free to add tasks and remove unnecessary tasks as needed.
Please check if the PR fulfills the following requirements:
-->

- [ ] Tests have been added / updated (for bug fixes / features)
- [ ] Documentation has been added / updated (for bug fixes / features)
- [ ] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root)
- [ ] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root)

## Future Work

<!--
Feel free to mention things not covered by this PR that can be done in future PRs.
Remove the section if it's not needed.
-->

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->
137 changes: 137 additions & 0 deletions .github/workflows/actions/verify-changesets/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
import fs from 'node:fs/promises';

const BYPASS_LABELS = ['minor', 'major'];

// check if current file is the entry point
if (import.meta.url.endsWith(process.argv[1])) {
// https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request
const pullRequestEvent = JSON.parse(
await fs.readFile(process.env.GITHUB_EVENT_PATH, 'utf-8'),
);

try {
const message = await verifyChangesets(
pullRequestEvent,
process.env,
fs.readFile,
);
await fs.writeFile(
process.env.GITHUB_STEP_SUMMARY,
`## Changeset verification passed ✅\n\n${message || ''}`,
);
} catch (error) {
// write error to summary
console.error(error.message);
await fs.writeFile(
process.env.GITHUB_STEP_SUMMARY,
`## Changeset verification failed ❌

${error.message}`,
);

if (error.path) {
await fs.appendFile(
process.env.GITHUB_STEP_SUMMARY,
`\n\nFile: \`${error.path}\``,
);
}

if (error.content) {
await fs.appendFile(
process.env.GITHUB_STEP_SUMMARY,
`\n\n\`\`\`yaml\n${error.content}\n\`\`\``,
);
}

process.exit(1);
}
}

export async function verifyChangesets(
event,
env = process.env,
readFile = fs.readFile,
) {
// Skip check if pull request has "minor-release" label
const byPassLabel = event.pull_request.labels.find(label =>
BYPASS_LABELS.includes(label.name),
);
if (byPassLabel) {
return `Skipping changeset verification - "${byPassLabel.name}" label found`;
}

// Iterate through all changed .changeset/*.md files
for (const path of env.CHANGED_FILES.trim().split(' ')) {
// ignore README.md file
if (path === '.changeset/README.md') continue;

// Check if the file is a .changeset file
if (!/^\.changeset\/[a-z-]+\.md/.test(path)) {
throw Object.assign(new Error(`Invalid file - not a .changeset file`), {
path,
});
}

// find frontmatter
const content = await readFile(`../../../../${path}`, 'utf-8');
const result = content.match(/---\n([\s\S]+?)\n---/);
if (!result) {
throw Object.assign(
new Error(`Invalid .changeset file - no frontmatter found`),
{
path,
content,
},
);
}

const [frontmatter] = result;

// Find version bump by package. `frontmatter` looks like this:
//
// ```yaml
// 'ai': patch
// '@ai-sdk/provider': patch
// ```
const lines = frontmatter.split('\n').slice(1, -1);
const versionBumps = {};
for (const line of lines) {
const [packageName, versionBump] = line.split(':').map(s => s.trim());
if (!packageName || !versionBump) {
throw Object.assign(
new Error(`Invalid .changeset file - invalid frontmatter`, {
path,
content,
}),
);
}

// Check if packageName is already set
if (versionBumps[packageName]) {
throw Object.assign(
new Error(
`Invalid .changeset file - duplicate package name "${packageName}"`,
),
{ path, content },
);
}

versionBumps[packageName] = versionBump;
}

// check if any of the version bumps are not "patch"
const invalidVersionBumps = Object.entries(versionBumps).filter(
([, versionBump]) => versionBump !== 'patch',
);

if (invalidVersionBumps.length > 0) {
throw Object.assign(
new Error(
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://ai-sdk.dev/docs/migration-guides/versioning). To bypass, add one of the following labels: ${BYPASS_LABELS.join(', ')}`,
),

{ path, content },
);
}
}
}
8 changes: 8 additions & 0 deletions .github/workflows/actions/verify-changesets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "verify-changesets-action",
"private": true,
"type": "module",
"scripts": {
"test": "node --test test.js"
}
}
Loading