Skip to content

fix(docs): type pages, @internal filter, Node runtime, fix type definition extraction#30

Merged
baxyz merged 1 commit into
mainfrom
june-fixes
Jun 14, 2026
Merged

fix(docs): type pages, @internal filter, Node runtime, fix type definition extraction#30
baxyz merged 1 commit into
mainfrom
june-fixes

Conversation

@baxyz

@baxyz baxyz commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • DeepWritable / DeepPartial pagesgenerate-typescript-docs.js ignorait kind === 'type' et kind === 'interface' ; ces types autonomes ont maintenant leur propre page avec import type, la définition complète et les exemples
  • Suppression DEFAULT_SORT_STRING_PROPS — constante interne marquée @internal, la page ne doit pas exister
  • Fix extraction typeDefinition — la regex précédente capturait tout le reste du fichier source après la déclaration (e.g. SortFn embarquait tout sort.ts) ; remplacée par un parcours depth-bracket qui s'arrête au ; de clôture
  • Node.js runtime consumer — la table Runtime Compatibility affiche désormais >=20.0.0 (minimum pour utiliser helpers4), séparé de engines.node >= 24 (tooling de build)
  • Sync docs v2.0.1 / v2.0.2, dep bumps, CI-CD cleanup

Test plan

  • DeepWritable et DeepPartial s'affichent dans /typescript/categories/type/
  • Aucune page DEFAULT_SORT_STRING_PROPS dans array
  • Les blocs "Related Types" de createSortByStringFn, createSortByDateFn, etc. montrent uniquement type SortFn<T> = ... (pas tout sort.ts)
  • getting-started : Runtime Compatibility → Node.js >=20.0.0

🤖 Generated with Claude Code

…s, update Node runtime

- Remove DEFAULT_SORT_STRING_PROPS doc page (@internal constant, not part of public API)
- Fix typeDefinition extraction: was capturing entire source file after the type declaration;
  now stops at the closing semicolon using bracket-depth matching
- Patch Node.js consumer runtime to >=20.0.0 (getting-started runtime table)
- Clean up related type code blocks that previously showed spurious source content

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying helpers4 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 18d27c1
Status: ✅  Deploy successful!
Preview URL: https://36d8af4d.helpers4.pages.dev
Branch Preview URL: https://june-fixes.helpers4.pages.dev

View logs

@github-actions

Copy link
Copy Markdown

✅ PR Validation Passed

All checks passed!


📋 Pipeline Status

Job Status
🧾 Conventional Commits passing
🏗️ Build passing
📘 TypeCheck passing

🤖 Generated by @helpers4 CI • 2026-06-14

@baxyz baxyz merged commit 8df342f into main Jun 14, 2026
9 checks passed
@baxyz baxyz deleted the june-fixes branch June 14, 2026 16:18
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.

1 participant