chore: release dds - #55
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@devslab/site-kit@0.10.0
Minor Changes
81b3abd: The flag artwork leaves the browser bundle.
@devslab/site-kit/solidwas one 138 KB file, and a consumer that imported onlySiteHeadershipped nearly all of it — not because tree-shaking failed (importing every export adds just 13 KB) but because the menu imported the fourteen vendored flag SVGs statically (~115 KB; Spain's coat of arms alone is 85 KB) and re-wrote them into the DOM on the client, hydration included.LocaleMenudecidesselectvsflagat runtime, so every header reached them.Now each flag menu renders one
<symbol>sprite and every flag is an<svg><use href="#…">of it, so a locale change on the client only swaps anhref. The server build writes the sprite; hydration adopts it; the browser build reaches the bodies only through a dynamicimport()— emitted as its own chunk,dist/flag-bodies.js— taken when a flag menu renders with no server HTML (a client-only app, a jsdom test). The generated data splits intoflag-countries.mjs(the map the menu needs) andflag-bodies.mjs;@devslab/site-kit/flagskeeps its API and gainsflagCountryForandFLAG_VIEWBOX.pnpm checknow builds a minimal consumer (fixtures/bundle-probe) with Vite + vite-plugin-solid and fails if a flag body ever returns to the main chunk. No consumer code changes.Measured, gzip in parentheses.
dist/solid.js: 138.2 KB (32.5) → 28.7 KB (8.2). Minimal consumer importingSiteHeaderonly: 147.5 KB (38.8) → 42.8 KB (15.1). TraceLinq landing (packages/landing, TanStack Start, main client chunk): 291.0 KB (86.5) → 186.3 KB (62.1); the 105 KB (23.7) flag chunk is emitted beside it and is not requested by a hydrated page. Server-rendered HTML still carries the bodies, once per country per menu instead of the current locale twice.국기 아트워크가 브라우저 번들에서 빠집니다.
@devslab/site-kit/solid는 138 KB 파일 하나였고SiteHeader만 import한 소비자도 거의 통째로 실었습니다 — tree-shaking 실패가 아니라(전부 import해도 13 KB 차이) 메뉴가 벤더링한 국기 SVG 14개(~115 KB, 스페인 문장 하나가 85 KB)를 정적으로 import하고 클라이언트에서, 하이드레이션 중에도, DOM에 다시 쓰고 있었기 때문입니다.LocaleMenu가select/flag를 런타임에 고르므로 모든 헤더가 거기에 닿았습니다.이제 국기 메뉴마다
<symbol>스프라이트 하나를 렌더링하고 모든 국기는 그것을<svg><use href="#…">로 참조하므로, 클라이언트에서 로케일이 바뀌어도href만 바뀝니다. 스프라이트는 서버 빌드가 쓰고, 하이드레이션은 그대로 인수하며, 브라우저 빌드는 본문을 동적import()(자기 청크dist/flag-bodies.js)로만 닿습니다 — 서버 HTML 없이 국기 메뉴가 렌더링될 때(클라이언트 전용 앱, jsdom 테스트)에만. 생성 데이터는flag-countries.mjs(메뉴가 필요한 지도)와flag-bodies.mjs로 나뉘고@devslab/site-kit/flags는 API를 유지한 채flagCountryFor·FLAG_VIEWBOX를 얻습니다.pnpm check가 최소 소비자(fixtures/bundle-probe)를 Vite + vite-plugin-solid로 빌드해 국기 본문이 메인 청크로 되돌아오면 실패합니다. 소비자 코드 변경은 없습니다.측정(괄호는 gzip).
dist/solid.js: 138.2 KB (32.5) → 28.7 KB (8.2).SiteHeader만 import한 최소 소비자: 147.5 KB (38.8) → 42.8 KB (15.1). TraceLinq 랜딩(packages/landing, TanStack Start, 클라이언트 메인 청크): 291.0 KB (86.5) → 186.3 KB (62.1); 105 KB (23.7) 국기 청크는 옆에 생성되지만 하이드레이션된 페이지는 요청하지 않습니다. 서버 렌더 HTML에는 본문이 여전히 실립니다 — 현재 로케일 두 번 대신 메뉴당 나라마다 한 번.Patch Changes
@devslab/dds-solid@0.10.0
Patch Changes
@devslab/dds-css@0.10.0
@devslab/dds-icons@0.10.0
@devslab/dds-tokens@0.10.0