Skip to content

docs: add inline @deprecated tags and docs/deprecated.md - #397

Merged
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
BashMan11:BashMan11/docs/issue-279-deprecated-patterns
Jul 26, 2026
Merged

docs: add inline @deprecated tags and docs/deprecated.md#397
BigBen-7 merged 2 commits into
Lead-Studios:mainfrom
BashMan11:BashMan11/docs/issue-279-deprecated-patterns

Conversation

@BashMan11

Copy link
Copy Markdown
Contributor

Summary

Performs a source audit to identify all deprecated patterns and adds @deprecated JSDoc annotations, then creates docs/deprecated.md as the authoritative catalogue.

Changes

@deprecated tags added

src/utils/transaction.tsbuildContractCall server parameter
The first server: SorobanRpc.Server parameter is silently ignored inside the function body (only simulateTransaction needs the server reference). Marked deprecated with a migration note to stop passing this argument.

src/modules/splitter.tscreateRevenueSplit()
Thin wrapper that hard-codes a three-party split. The generic createSplit({ recipients, totalAmount }) is strictly more powerful and is the recommended replacement.

src/types/index.tsRevenueSplitParams interface
Companion type for the deprecated createRevenueSplit(). Callers should use SplitRecipient[] + CreateSplitParams directly.

src/index.ts — duplicate WatchOptions re-export
WatchOptions was exported twice: once from ./client and once from ./types/index. Removed the redundant re-export from ./client (the canonical source is types/index.ts).

New file: docs/deprecated.md

Lists all deprecated symbols with:

  • Deprecated-in / removed-in version numbers (0.2.0 / 0.3.0)
  • Detailed migration code examples for each pattern
  • Summary table

Files touched

  • src/utils/transaction.ts
  • src/modules/splitter.ts
  • src/types/index.ts
  • src/index.ts
  • docs/deprecated.md (new)

Testing

Source-only change (JSDoc + docs). All existing tests continue to pass — no runtime behaviour was changed.

Closes #279

…s#279)

Adds @deprecated JSDoc annotations to all patterns identified during source audit:
- buildContractCall(): marks the unused 'server' parameter as deprecated
  (silently ignored; will be removed in 0.3.0 — pass server to simulateTransaction)
- SplitterModule.createRevenueSplit(): deprecated in favour of the generic
  createSplit({ recipients, totalAmount }) which accepts any number of recipients
- RevenueSplitParams interface: deprecated alongside createRevenueSplit();
  callers should use SplitRecipient[] + CreateSplitParams directly
- WatchOptions re-export from './client' in index.ts: removes duplicate export
  (canonical source is types/index.ts; no consumer-facing impact)

Creates docs/deprecated.md cataloguing all deprecated symbols with:
- Deprecated-in / removed-in version numbers (0.2.0 / 0.3.0)
- Migration code examples for each deprecated pattern
- Summary table

Closes Lead-Studios#279
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@BashMan11 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@BigBen-7
BigBen-7 merged commit 703c053 into Lead-Studios:main Jul 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add inline migration notes for all deprecated patterns found during source audit

2 participants