Skip to content

[-]: Promise API 계약 안정화#16

Merged
sjsjsj1246 merged 3 commits into
mainfrom
codex/harden-promise-api
Mar 25, 2026
Merged

[-]: Promise API 계약 안정화#16
sjsjsj1246 merged 3 commits into
mainfrom
codex/harden-promise-api

Conversation

@sjsjsj1246
Copy link
Copy Markdown
Owner

변경 사항

  • tutorial.open() replacement 경로를 replaced reason 으로 고정하고 closed는 외부 close 경로로 한정했습니다.
  • Promise settle 이후 중복 tutorial.close() 호출이 결과나 onClose 호출 횟수를 깨지 않도록 store guard를 보강했습니다.
  • Promise reason 계약을 README, docs, 프로젝트 재시동 계획 문서에 반영했습니다.

테스트 결과

  • pnpm -C packages/main test
  • pnpm -C packages/main build
  • pnpm build

남은 리스크

  • replaced reason 추가는 exhaustive switch 를 사용하는 TypeScript 소비자에게 후속 대응이 필요할 수 있습니다.
  • Promise API는 현재 tutorial.open() replacement 와 close 계열 경로 위주로 고정됐고, 향후 새 imperative API 가 추가되면 동일 계약을 다시 검토해야 합니다.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-tutorial-overlay Ready Ready Preview, Comment Mar 25, 2026 7:22am

@github-actions
Copy link
Copy Markdown
Contributor

packages/main coverage

Metric Result
Lines 96.60% (256/265)
Statements 96.40% (268/278)
Functions 95.83% (46/48)
Branches 85.35% (204/239)

Workflow run

@sjsjsj1246 sjsjsj1246 merged commit ffa1cda into main Mar 25, 2026
3 checks passed
@sjsjsj1246 sjsjsj1246 deleted the codex/harden-promise-api branch March 25, 2026 08:30
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