Skip to content

refactor: @Statable マクロから public init() の自動生成を削除#3

Merged
no-problem-kyoichi merged 3 commits into
release/v1.0.1from
fix/remove-init-generation
Dec 31, 2025
Merged

refactor: @Statable マクロから public init() の自動生成を削除#3
no-problem-kyoichi merged 3 commits into
release/v1.0.1from
fix/remove-init-generation

Conversation

@no-problem-kyoichi

Copy link
Copy Markdown
Contributor

Summary

  • @observable マクロとの相互作用問題を回避するため、public init() の自動生成を削除
  • ユーザーが明示的に public init() {} を定義する形に変更
  • README に public init() {} のサンプルを追加

Test plan

  • swift test で全テスト(45件)パス確認済み
  • Stockle iOS アプリでの実際の使用確認済み

🤖 Generated with Claude Code

@observable マクロとの相互作用問題を回避するため、init の自動生成を削除。
ユーザーが明示的に `public init() {}` を定義する形に変更。

変更内容:
- StatableMacro.swift: init 生成ロジックを削除
- Macros.swift: named(init) を macro declaration から削除
- テストを新しい動作に合わせて更新
- README に public init() {} のサンプルを追加

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@no-problem-kyoichi no-problem-kyoichi self-assigned this Dec 31, 2025
no-problem-kyoichi and others added 2 commits January 1, 2026 07:55
TrackMacro が生成する @ObservationIgnored アトリビュートが
テストの期待値に含まれていなかった問題を修正。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
DocC ドキュメント生成に必要な swift-docc-plugin を
Package.swift の依存関係に追加。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@no-problem-kyoichi
no-problem-kyoichi merged commit 21025c7 into release/v1.0.1 Dec 31, 2025
1 check passed
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.

1 participant