feat(use-queue): deprecate api property in favor of details#20
Merged
cristinecula merged 1 commit intomainfrom Feb 12, 2026
Merged
feat(use-queue): deprecate api property in favor of details#20cristinecula merged 1 commit intomainfrom
cristinecula merged 1 commit intomainfrom
Conversation
|
The api property is now deprecated and will be removed in v2.0.0. Users should migrate to the more flexible details property. BREAKING CHANGES (Future - v2.0.0): The api property will be removed in v2.0.0. Start migrating to details now. Changes: - Add @deprecated JSDoc tags to api property in TypeScript interfaces - Add runtime console warning when api property is used - Create comprehensive migration guide (docs/migration-api-to-details.md) - Update README with migration examples and patterns - Add deprecation test suite (test/use-queue-deprecation.test.ts) - Update CHANGELOG for v1.7.0 release Migration example: Before: api: (id, item) => apiUrl('api/items/ID') After: details: (item) => fetch(apiUrl('api/items/' + item.id)).then(res => res.json()) Benefits of details property: - Full control over fetch operations, headers, and error handling - Modern Promise-based pattern that works with async/await - No dependency on deprecated utilities - More flexible for different backends and data sources See docs/migration-api-to-details.md for detailed migration guide.
a6fd084 to
f20d71f
Compare
github-actions bot
pushed a commit
that referenced
this pull request
Feb 12, 2026
## [1.6.2](v1.6.1...v1.6.2) (2026-02-12) ### Bug Fixes * **use-queue:** deprecate api property in favor of details ([#20](#20)) ([084651b](084651b))
|
🎉 This PR is included in version 1.6.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR deprecates the
apiproperty in favor of the more flexibledetailsproperty. This is a non-breaking change - theapiproperty will continue to work with deprecation warnings until v2.0.0.Changes
Code Changes
@deprecatedJSDoc tags toapiproperty in TypeScript interfacesapiproperty is usedDocumentation
docs/migration-api-to-details.mdREADME.mdwith migration examples and patternsCHANGELOG.mdfor v1.7.0 releaseTests
test/use-queue-deprecation.test.tsMigration Example
Before (deprecated):
After (recommended):
Benefits of
detailsPropertyjson(), etc.)Deprecation Timeline
apicontinues working with warningsapiproperty will be removedWhat Users Will See
When using the deprecated
apiproperty, users will see:Additionally, IDEs will show strikethrough text on the
apiproperty with hover documentation.Migration Guide
See the comprehensive migration guide at
docs/migration-api-to-details.mdwhich includes:Verification
Files Changed
Modified (3 files)
src/queue/use-queue.ts(+43 lines)README.md(+136 lines)CHANGELOG.md(+36 lines)Created (3 files)
docs/migration-api-to-details.md(9.7KB)test/use-queue-deprecation.test.ts(3.7KB)IMPLEMENTATION_SUMMARY.md(implementation docs)Checklist
Related Issues
This implements the deprecation strategy for the
apiproperty as discussed in the codebase modernization effort.Ready for review! This is a non-breaking change that prepares users for the future v2.0.0 release while maintaining full backward compatibility.