Skip to content

v0.2.2

Choose a tag to compare

@southglory southglory released this 06 May 07:41
· 6 commits to master since this release

multipart 파일 part 이름 회귀 정정.

Fixed

  • 서버는 템플릿이 정의한 binding 이름(예: coverPhoto)을 multipart part name 으로 요구. 0.2.1 까지는 모든 파일을 files / rowPhotos 단일 필드명으로 보내 서버 거부.

Added

  • client.covers.create(bookUid, templateUid, parameters, { bindingFiles: { coverPhoto: file } })
  • client.contents.insert(bookUid, templateUid, parameters, { bindingFiles: { mainPhoto: f1, subPhoto: f2 } })
  • _buildTemplateFormData 시그니처 객체 옵션화

Deprecated

  • covers.create 4번째 인자 Array 형태, contents.insert 의 options.files — process.emitWarning 출력. 호환 보존하나 동작 보장 안 됨.

Migration

// Before (v0.2.1, 서버 거부됨)
await client.covers.create(bookUid, templateUid, parameters, [file]);

// After (v0.2.2)
await client.covers.create(bookUid, templateUid, parameters, {
  bindingFiles: { coverPhoto: file },
});

발견 경위: Java SDK sandbox 99 통합 테스트 3-시나리오 검증.