Skip to content

Resolve #4254: Preserve custom i18n typegen names - #4316

Merged
ayden94 merged 5 commits into
mainfrom
issue-4254
Nov 26, 2026
Merged

ayden94 merged 5 commits into
mainfrom
issue-4254

Conversation

@ayden94

@ayden94 ayden94 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

@fluojs/i18n/typegen에서 사용자 지정 타입 이름이 내부 제네릭, 유틸리티 타입 또는 TypeScript 문맥 키워드와 겹쳐도 유효한 카탈로그 선언을 생성합니다.

Linked context: Closes #4254

Changes

  • 요청한 공개 타입 이름을 보존하고, 모호한 내부 타입 참조만 충돌 없는 이름으로 생성합니다.
  • .d.ts에서 유효한 public 등의 이름은 허용하고, 선언 위치에서 유효하지 않거나 중복된 이름은 I18N_INVALID_OPTIONS로 거부합니다.
  • 두 진입점의 출력 일치와 strict 소비자 컴파일을 검증하고 기본 출력 스냅샷을 유지합니다.

Testing

  • 수정 커밋 d8730089332390d6f8a59684b2344561ebf9e79a에서 @fluojs/i18n 테스트 153건, 타입 검사, 공개 진입점 import, 거버넌스 및 Changeset 검사 통과.
  • 같은 public 회귀 테스트가 직전 커밋에서 assertion으로 실패하고 수정 커밋에서 통과.
  • 원본 pnpm test:node: 1,754건 통과, 0건 실패, 1건 건너뜀.
  • 같은 커밋의 계약·코드·검증 리뷰 모두 통과. 생략한 리뷰 축 없음. 원격 CI는 별도 확인 대상.

Release impact

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

기존 공개 타입 생성 계약을 복구하는 @fluojs/i18n patch입니다.

Public export documentation

See docs/contracts/public-export-tsdoc-baseline.md.

  • Changed public exports include a source-level summary.
  • Changed exported functions document matching @param / @returns tags where applicable.
  • Source @example blocks and README scenario examples still play complementary roles.

공개 시그니처와 기존 문서·예제는 변경하지 않았습니다.

Behavioral contract

See docs/contracts/behavioral-contract-policy.md.

  • 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.

새 계약은 없습니다. 기존 README의 유효하고 서로 다른 타입 이름 계약을 복구합니다.

Platform consistency governance (SSOT)

See docs/architecture/platform-consistency-design.md and docs/contracts/release-governance.md.

  • SSOT English/Korean mirror structure remains synchronized for changed governance docs.
  • If platform contract docs changed, companion updates include discoverability/docs index, tooling or CI enforcement, and regression-test evidence.
  • Any package README alignment/conformance claims are backed by the applicable platform harness tests.

거버넌스 문서, README 정합성 주장, 플랫폼 계약 변경은 없어 위 항목은 해당하지 않습니다. pnpm verify:platform-consistency-governance는 통과했습니다.

@ayden94
ayden94 merged commit 54232b3 into main Nov 26, 2026
7 checks passed
@ayden94
ayden94 deleted the issue-4254 branch November 26, 2026 09:46
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.

[i18n] Emit valid declarations for custom typegen output names

1 participant