Skip to content

feat(ai): rename stepCountIs to isStepCount#13971

Merged
felixarntz merged 3 commits intomainfrom
fa/is-step-count
Mar 31, 2026
Merged

feat(ai): rename stepCountIs to isStepCount#13971
felixarntz merged 3 commits intomainfrom
fa/is-step-count

Conversation

@felixarntz
Copy link
Copy Markdown
Collaborator

Background

Follow-up to #13937 which added the isLoopFinished stop condition helper. The stepCountIs naming was inconsistent with the other stop condition helpers (hasToolCall, isLoopFinished) which all use a verb-first naming convention (common best practice in TypeScript).

Summary

  • Rename stepCountIs to isStepCount for consistency with other stop condition helpers
  • Keep stepCountIs as a deprecated alias for backward compatibility
  • Update all docs, examples, and tests to use isStepCount

This change is v7 only, so while it's somewhat disruptive, that's okay. The alias means there will be no immediate breakage, and consumers will have at least until v8 to migrate to isStepCount.

Checklist

  • 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)
  • I have reviewed this pull request (self-review)

@felixarntz felixarntz added this to the v7.0 milestone Mar 31, 2026
@tigent tigent bot added ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. deprecation pull requests that introduced a deprecation maintenance CI, internal documentation, automations, etc labels Mar 31, 2026
@felixarntz felixarntz merged commit 3debdb7 into main Mar 31, 2026
29 checks passed
@felixarntz felixarntz deleted the fa/is-step-count branch March 31, 2026 16:45
felixarntz added a commit that referenced this pull request Apr 7, 2026
#14149)

## Background

These issues/PRs implemented new features or breaking changes in AI SDK
v7. They need to be covered in the 7.0 migration guide.

## Summary

Added initial sections for all 4.

## Manual Verification

N/A

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] 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)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

Now covered in the 7.0 migration guide:
#12516
#12995
#13321 
#13971
gr2m pushed a commit that referenced this pull request Apr 7, 2026
#14149)

## Background

These issues/PRs implemented new features or breaking changes in AI SDK
v7. They need to be covered in the 7.0 migration guide.

## Summary

Added initial sections for all 4.

## Manual Verification

N/A

## Checklist

- [ ] Tests have been added / updated (for bug fixes / features)
- [x] 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)
- [x] I have reviewed this pull request (self-review)

## Future Work

N/A

## Related Issues

Now covered in the 7.0 migration guide:
#12516
#12995
#13321 
#13971
felixarntz added a commit that referenced this pull request Apr 10, 2026
## Summary

Fixes the changesets for the following v7 major PRs after the fact to
mark them as `major`, for proper referencing in future changelog / docs:
- #13352 
- #13816
- #12880 
- #13553
- #13971
- #14150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/core core functions like generateText, streamText, etc. Provider utils, and provider spec. deprecation pull requests that introduced a deprecation maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants