Repository navigation
feat: port core module set from BillGrokker WebSPA (#4) - #10
Merged
Merged
Conversation
added 5 commits
November 23, 2026 00:47
…to issue-4-core-migration
4 tasks
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.
Closes #4
What
Ports the five core SEO modules from the BillGrokker WebSPA snapshot (
3169c7a10003) behavior-identically, preserving file and identifier names and the import graph:src/seo-page.ts— pure-data types:ISeoPage,WebPageSpec,ArticleSpec,FaqPageSpec,TwitterSpec,AppendableList<T>,BreadcrumbItem(importsschema-dtsonly)src/seo-specs.ts—DateOnly,SeoDateInput,normalizeSeoDate()(standalone)src/seo-page-builder.ts—ISeoBuilderTarget,IPageBuilder,SeoPageBuilder(L1),ContentPageBuilder(L2, parent delegation +end()),createBuilder()src/models/seo-config.ts—SeoConfig,GraphDocument,JsonLdScript,HtmlSeoConfigParser(host-provided document)src/seo-service.ts—SeoService(atomicemit()merge semantics, in-memory JSON-LD graph store with eager flush,prepareToNavigate()persistence, URL hygiene guard with the byte-identical error message,siteWidebuilder,SeoLogger)Not ported (per ticket):
seo-service.di.tsand all Aurelia integration.Public surface exported from
src/index.tsTypes:
AppendableList,ArticleSpec,BreadcrumbItem,FaqPageSpec,ISeoPage,TwitterSpec,WebPageSpec,DateOnly,SeoDateInput,GraphDocument,JsonLdScript,SeoConfig,ContentPageBuilder,IPageBuilder,ISeoBuilderTarget,SeoPageBuilder,ISitewideBuilder,SeoLogger,SeoServiceConfigValues:
normalizeSeoDate,HtmlSeoConfigParser,createBuilder,SeoServiceValidation
bun run typecheck(strict,exactOptionalPropertyTypes,noUncheckedIndexedAccess) — cleanbun run lint— cleanbun run build—dist/+.d.tsemittedbun run test— 3/3 jsdom smoke tests via public API (initialize → emit → head output,prepareToNavigate, builder equivalence)schema-dtsruntime imports indist/(relative imports only;schema-dtsis type-only)Deviations (strict-mode type-only, no behavior change)
.jsextensions to relative imports (NodeNext ESM requirement).seo-page.tsdeclared asT | undefinedforexactOptionalPropertyTypes; service-side?? ""fallbacks make emitted JSON-LD byte-identical.seo-config.ts:jsonLd = items[0] ?? nullguard fornoUncheckedIndexedAccess;SeoConfig.jsonLdtyped| undefined. Behavior identical.