rename Type.Text to Type.String#411
Merged
Merged
Conversation
41a80d9 to
1494402
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR renames Type.Text to Type.String across the codebase to provide a more conventional and descriptive name for string type fields. The change maintains the same underlying functionality while improving clarity and consistency with common naming patterns.
Key Changes:
- Replaced
Type.Textexport withType.Stringin the core type definition - Updated all string type references from 'Text' to 'String' in schemas, tests, and documentation
- Renamed related type filters and utilities to use 'String' terminology
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/hypergraph/src/type/type.ts | Updated main type export from Text to String |
| packages/hypergraph/src/type-utils/type-utils.ts | Updated string type checks to reference Type.String |
| packages/hypergraph/src/mapping/Mapping.ts | Updated schema data type literal and examples to use 'String' |
| packages/hypergraph/src/entity/types.ts | Renamed EntityTextFilter to EntityStringFilter |
| packages/hypergraph/src/entity/findMany.ts | Updated filter type references for string filtering |
| packages/hypergraph/test/mapping/Mapping.test.ts | Updated test expectations and data types |
| packages/hypergraph/test/entity/findMany.test.ts | Updated entity definitions and test descriptions |
| packages/hypergraph/test/entity/entity.test.ts | Updated entity class definitions |
| packages/hypergraph-react/test/prepare-publish.test.ts | Updated entity test classes |
| packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx | Updated entity test classes |
| docs/docs/schema.md | Updated documentation examples and type listing |
| docs/docs/filtering-query-results.md | Updated filter documentation |
| apps/events/src/schema.ts | Updated entity definitions in example app |
| apps/create-hypergraph/template-vite-react/src/schema.ts | Updated template entity definitions |
| apps/create-hypergraph/template-nextjs/app/schema.ts | Updated template entity definitions |
| .changeset/bitter-dancers-lead.md | Added changeset documenting the rename |
Open
cmwhited
approved these changes
Jul 30, 2025
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.
No description provided.