Fix Context types: Use Record<string, any> as default for better key-value structure#25
Merged
JoshuaWink merged 12 commits intomainfrom Sep 11, 2025
Merged
Fix Context types: Use Record<string, any> as default for better key-value structure#25JoshuaWink merged 12 commits intomainfrom
JoshuaWink merged 12 commits intomainfrom
Conversation
- Add 404.html router that handles clean URLs without index.html - Update navigation links to use clean URLs (e.g., /docs/go instead of /docs/go/index.html) - Support all language routes with aliases (c#, c++, js, etc.) - Handle section anchors and sub-routes - Preserve query parameters and hash fragments - Add comprehensive router test suite - Update main index.html and go/index.html with clean URLs
…instead of '../index.html'
- Fix async/await handling in build.js for proper template processing - Update json-reader.js to async RuntimeJSONReader with caching - Add 'is_homepage': false to all language data files for proper conditional logic - Fix language-navigation.html template variables (relative paths, highlighting, conditionals) - Ensure all template variables are properly replaced in generated HTML pages - Verify build process works correctly for all 11 pages (main + 10 languages)
- Remove all 'index.html' references from footer and navigation links - Update footer.html with conditional logic for clean directory paths - Update language-navigation.html with proper URL conditionals - Generate all HTML pages with clean URLs (pseudo/, python/, etc.) - All navigation links now use directory paths without index.html suffix - Maintains proper routing for both homepage and language-specific pages
… better key-value structure - Update Context<T> and MutableContext<T> default to Record<string, any> - Add comprehensive JavaScript examples demonstrating pipeline patterns - Include TypeScript example for type evolution - Maintains runtime flexibility while providing better type structure
e1884b0 to
2234e01
Compare
JoshuaWink
added a commit
that referenced
this pull request
Jan 19, 2026
…value structure (#25) * codeuchain site + buf-json demo * rm buf-json and sent to github,com/orchestrate-solutions/buf-json * feat: Add clean URL router for docs site - Add 404.html router that handles clean URLs without index.html - Update navigation links to use clean URLs (e.g., /docs/go instead of /docs/go/index.html) - Support all language routes with aliases (c#, c++, js, etc.) - Handle section anchors and sub-routes - Preserve query parameters and hash fragments - Add comprehensive router test suite - Update main index.html and go/index.html with clean URLs * fix: Add missing json-reader.js and rebuild HTML pages * Fix logo links for clean URL routing - update base.json to use '../' instead of '../index.html' * fix: Resolve codeuchain.com routing build issues with template variables - Fix async/await handling in build.js for proper template processing - Update json-reader.js to async RuntimeJSONReader with caching - Add 'is_homepage': false to all language data files for proper conditional logic - Fix language-navigation.html template variables (relative paths, highlighting, conditionals) - Ensure all template variables are properly replaced in generated HTML pages - Verify build process works correctly for all 11 pages (main + 10 languages) * feat: Implement clean URL routing for docs site - Remove all 'index.html' references from footer and navigation links - Update footer.html with conditional logic for clean directory paths - Update language-navigation.html with proper URL conditionals - Generate all HTML pages with clean URLs (pseudo/, python/, etc.) - All navigation links now use directory paths without index.html suffix - Maintains proper routing for both homepage and language-specific pages * codeuchain story * reworked homepage codeuchain.com * Fix Context types: change default from any to Record<string, any> for better key-value structure - Update Context<T> and MutableContext<T> default to Record<string, any> - Add comprehensive JavaScript examples demonstrating pipeline patterns - Include TypeScript example for type evolution - Maintains runtime flexibility while providing better type structure
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.
Changes
Context<T>andMutableContext<T>default type fromanytoRecord<string, any>packages/javascript/core/index.d.tsfor TypeScript compatibilityWhy
Record<string, any>better represents the key-value nature of ContextFiles Changed
packages/javascript/types.d.tspackages/javascript/core/index.d.tsdocs/story-time.md