Repository navigation
Resolve #4254: Preserve custom i18n typegen names - #4316
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@fluojs/i18n/typegen에서 사용자 지정 타입 이름이 내부 제네릭, 유틸리티 타입 또는 TypeScript 문맥 키워드와 겹쳐도 유효한 카탈로그 선언을 생성합니다.Linked context: Closes #4254
Changes
.d.ts에서 유효한public등의 이름은 허용하고, 선언 위치에서 유효하지 않거나 중복된 이름은I18N_INVALID_OPTIONS로 거부합니다.Testing
d8730089332390d6f8a59684b2344561ebf9e79a에서@fluojs/i18n테스트 153건, 타입 검사, 공개 진입점 import, 거버넌스 및 Changeset 검사 통과.public회귀 테스트가 직전 커밋에서 assertion으로 실패하고 수정 커밋에서 통과.pnpm test:node: 1,754건 통과, 0건 실패, 1건 건너뜀.Release impact
기존 공개 타입 생성 계약을 복구하는
@fluojs/i18npatch입니다.Public export documentation
See docs/contracts/public-export-tsdoc-baseline.md.
@param/@returnstags where applicable.@exampleblocks and README scenario examples still play complementary roles.공개 시그니처와 기존 문서·예제는 변경하지 않았습니다.
Behavioral contract
See docs/contracts/behavioral-contract-policy.md.
새 계약은 없습니다. 기존 README의 유효하고 서로 다른 타입 이름 계약을 복구합니다.
Platform consistency governance (SSOT)
See docs/architecture/platform-consistency-design.md and docs/contracts/release-governance.md.
거버넌스 문서, README 정합성 주장, 플랫폼 계약 변경은 없어 위 항목은 해당하지 않습니다.
pnpm verify:platform-consistency-governance는 통과했습니다.