Skip to content

Resolve #4237: preserve binary attachments across the Email queue - #4300

Merged
ayden94 merged 9 commits into
mainfrom
issue-4237
Nov 23, 2026
Merged

ayden94 merged 9 commits into
mainfrom
issue-4237

Conversation

@ayden94

@ayden94 ayden94 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #4237. Email 큐의 JSON 저장·복원 경계에서 첨부 Uint8Array의 실제 view 바이트를 보존합니다.

Changes

  • 단건·일괄 producer는 호출자가 제공한 JSON projection을 유지하면서 실제로 선택된 native attachment만 인덱스로 인코딩합니다. worker는 이를 정확한 Uint8Array로 복원합니다.
  • 구형 숫자 키 형식과 잘못된 wire 데이터를 명시적으로 거부하며 정상 빈 첨부·기존 문자열 job·첨부 없는 job은 유지합니다.
  • 기존 공개 EmailNotificationQueueJob의 구조적 타입과 직접 worker 호출을 보존합니다.
  • 배포 전 구형 binary job 처리 절차를 EN/KO README에 문서화하고 @fluojs/email만 patch로 지정합니다.

Testing

  • Exact HEAD 6a947f86de55cff8a981734b150c7fa20e57cbfd: 승인된 집중 검사 10개 완료(exit 0).
  • 별도 이전 head에서 테스트 전용 패치로 1건 assertion RED, 동일 Node argv의 최종 GREEN 1건.
  • npm pack --dry-run --ignore-scripts: EN/KO README 포함.
  • 선택 리뷰: contract/code/verification, 생략 없음. GitHub Verify는 병합 전 별도 확인.

Release impact

  • This PR has consumer-visible release impact and includes a changeset.

Public export documentation

공개 타입에 새 필수 멤버가 없으며 TSDoc 검사를 통과했습니다.

Behavioral contract

  • No documented behavioral contracts were removed without migration notes.
  • New behavioral contracts are documented in the affected package README.
  • Intentional limitations are explicitly stated (not silently removed).
  • Runtime invariants are covered by regression tests.

Platform consistency governance (SSOT)

기존 승인된 queue·notification 경계 유지. 문서 locale 동기화와 platform governance 검사 통과.

@ayden94
ayden94 merged commit 3f5ae01 into main Nov 23, 2026
7 checks passed
@ayden94
ayden94 deleted the issue-4237 branch November 23, 2026 13:49
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.

[email] 이메일 큐 왕복 후 바이너리 첨부가 원래 바이트의 Uint8Array로 복원되지 않음

1 participant