Skip to content

Conversation

@nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Jul 30, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Text export with Type.String in 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

@nikgraf nikgraf mentioned this pull request Jul 30, 2025
@nikgraf nikgraf merged commit cb54727 into main Jul 30, 2025
6 checks passed
@nikgraf nikgraf deleted the ng/change-type-text-to-string branch July 30, 2025 19:38
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.

3 participants