Skip to content

Rename Store to Graph - #6093

Merged
William Wong (compulim) merged 6 commits into
mainfrom
copilot/create-package-store-graph
Dec 1, 2026
Merged

William Wong (compulim) merged 6 commits into
mainfrom
copilot/create-package-store-graph

Conversation

@compulim

@compulim William Wong (compulim) commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog Entry

Added

Description

  • Rename "store" to "graph"
  • Move base graph classes to store-graph

Design

Specific Changes

  • I have added tests and executed them locally
  • I have added .changelog/<PR#>-<slug>.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The public store entry point exposes no API, and removed compatibility exports break golden-story module loading and typechecking.

2 open issues
What changed in this PR

This PR renames the transactional Store implementation to Graph and moves it into a private store-graph workspace, separating the graph engine from the public store package.

Changes:

  • Moves graph implementation, validation, data structures, tests, and benchmarks into packages/store-graph.
  • Renames the main class and related interfaces, and updates documentation terminology.
  • Adds workspace dependencies, build configuration, and dedicated CI test execution.
File Description
packages/​store/​src/​index.ts Removes the public package’s existing exports.
packages/​store/​package.json Adds graph dependency and build preparation.
packages/​store-graph/​tsdown.config.mts Configures dual-format graph builds.
packages/​store-graph/​src/​tsconfig.json Configures graph TypeScript checking.
packages/​store-graph/​src/​til.test.ts Carries JSON enumeration assumption tests.
packages/​store-graph/​src/​structure/​VersionedStorage.ts Updates snapshot documentation to name Graph.
packages/​store-graph/​src/​structure/​SkipListView.ts Houses shared skip-list read operations.
packages/​store-graph/​src/​structure/​SetView.ts Houses shared set operations and equality handling.
packages/​store-graph/​src/​structure/​SetView.test.ts Covers set compatibility and iterator cleanup.
packages/​store-graph/​src/​structure/​README.md Updates data-structure documentation terminology.
packages/​store-graph/​src/​structure/​MapView.ts Houses shared map read operations.
packages/​store-graph/​src/​structure/​FrozenSkipList.ts Houses immutable sorted lists and overlays.
packages/​store-graph/​src/​structure/​FrozenSkipList.test.ts Covers sorting and persistent list versions.
packages/​store-graph/​src/​structure/​FrozenSet.ts Houses immutable sets and writable overlays.
packages/​store-graph/​src/​structure/​FrozenNodeSet.ts Houses identifier-based node-reference sets.
packages/​store-graph/​src/​structure/​FrozenNodeSet.test.ts Covers node-set equality and immutability.
packages/​store-graph/​src/​structure/​FrozenMap.ts Houses immutable maps and writable overlays.
packages/​store-graph/​src/​private/​sortedChildIds.ts Houses sorted child insertion and removal.
packages/​store-graph/​src/​private/​isDangerousKey.ts Houses unsafe property-name detection.
packages/​store-graph/​src/​private/​identifierIndex.ts Houses alternate-identifier indexing.
packages/​store-graph/​src/​private/​hiddenNodeState.ts Houses cached internal node state.
packages/​store-graph/​src/​private/​hiddenNodeState.test.ts Covers hidden-state attachment and access.
packages/​store-graph/​src/​private/​getPartIds.ts Houses relationship identifier accessors.
packages/​store-graph/​src/​private/​FrozenNode.ts Defines committed internal node typing.
packages/​store-graph/​src/​private/​DraftNode.ts Defines draft node typing.
packages/​store-graph/​src/​private/​Draft.ts Updates draft documentation terminology.
packages/​store-graph/​src/​private/​deepFreeze.ts Updates immutability documentation terminology.
packages/​store-graph/​src/​private/​deepFreeze.test.ts Covers deep freezing and safe copying.
packages/​store-graph/​src/​private/​deepFreeze.objectIs.test.ts Covers reuse of frozen values containing NaN.
packages/​store-graph/​src/​private/​createDraftNode.ts Updates node-creation comments to name Graph.
packages/​store-graph/​src/​OPINIONS.md Updates graph design terminology.
packages/​store-graph/​src/​node/​PropertyValue.ts Houses custom property validation.
packages/​store-graph/​src/​node/​PropertyValue.test.ts Covers property conversion and rejection.
packages/​store-graph/​src/​node/​NodeReference.ts Defines validated node references.
packages/​store-graph/​src/​node/​NodeReference.test.ts Covers excess-property rejection.
packages/​store-graph/​src/​node/​NodeIdentifier.ts Houses supported identifier validation.
packages/​store-graph/​src/​node/​NodeIdentifier.test.ts Covers identifiers and URL API fallbacks.
packages/​store-graph/​src/​node/​Node.ts Defines node schemas and public types.
packages/​store-graph/​src/​node/​JSONValue.ts Houses JSON-compatible value conversion.
packages/​store-graph/​src/​node/​JSONLiteral.ts Defines JSON literal validation.
packages/​store-graph/​src/​node/​BlankNodeIdentifier.ts Defines blank-node identifier validation.
packages/​store-graph/​src/​index.ts Exports Graph and related public types.
packages/​store-graph/​src/​index.test.ts Checks entry-point loading.
packages/​store-graph/​src/​Graph.ts Renames Store and related interfaces to Graph.
packages/​store-graph/​src/​goldenStories/​validNodeIdentifier.test.ts Carries supported identifier scenarios.
packages/​store-graph/​src/​goldenStories/​upsertedNodeIsDifferentAndFrozen.test.ts Carries node-copy and immutability scenarios.
packages/​store-graph/​src/​goldenStories/​updateIsReplace.test.ts Carries replacement-update scenarios.
packages/​store-graph/​src/​goldenStories/​transactional/​failingUpsertShouldNotBeCommitted.test.ts Carries transaction rollback scenarios.
packages/​store-graph/​src/​goldenStories/​throwOnNonArrayCustomProperties.ts Carries invalid custom-property scenarios.
packages/​store-graph/​src/​goldenStories/​sortByDateCreated/​update.test.ts Carries child reordering scenarios.
packages/​store-graph/​src/​goldenStories/​sortByDateCreated/​insert.test.ts Carries sorted child insertion scenarios.
packages/​store-graph/​src/​goldenStories/​sortByDateCreated/​delete.test.ts Carries sorted child deletion scenarios.
packages/​store-graph/​src/​goldenStories/​idMustNotChange.test.ts Carries identifier immutability scenarios.
packages/​store-graph/​src/​goldenStories/​deleteNode.test.ts Carries deletion and notification scenarios.
packages/​store-graph/​src/​goldenStories/​deleteNode.reAdd.test.ts Carries delete-and-reinsert scenarios.
packages/​store-graph/​src/​goldenStories/​createStoreAndController.ts Carries the shared golden-story fixture.
packages/​store-graph/​src/​goldenStories/​buildPermutatedFunction.ts Carries scenario permutation utilities.
packages/​store-graph/​src/​goldenStories/​autoPart/​noConflict.update.test.ts Carries consistent relationship update scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​noConflict.insert.test.ts Carries consistent relationship insertion scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​isPartOf.happy.test.ts Carries automatic parent-link scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​isPartOf.conflict.update.test.ts Carries parent-link update conflict scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​isPartOf.conflict.insert.test.ts Carries parent-link insertion conflict scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​hasPart.happy.test.ts Carries automatic child-link scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​hasPart.conflict.update.test.ts Carries child-link update conflict scenarios.
packages/​store-graph/​src/​goldenStories/​autoPart/​hasPart.conflict.insert.test.ts Carries child-link insertion conflict scenarios.
packages/​store-graph/​src/​goldenStories/​alternateId/​update.test.ts Carries alternate-identifier update scenarios.
packages/​store-graph/​src/​goldenStories/​alternateId/​unique.test.ts Carries alternate-identifier uniqueness scenarios.
packages/​store-graph/​src/​goldenStories/​alternateId/​switch.test.ts Carries alternate-identifier swap scenarios.
packages/​store-graph/​src/​goldenStories/​alternateId/​insert.test.ts Carries alternate-identifier lookup scenarios.
packages/​store-graph/​src/​goldenStories/​alternateId/​delete.test.ts Carries alternate-identifier deletion scenarios.
packages/​store-graph/​src/​goldenStories/​AGENTS.md Carries golden-story contribution guidance.
packages/​store-graph/​src/​benchmark.ts Updates benchmarks to use Graph.
packages/​store-graph/​src/​benchmark.node.ts Carries node-operation microbenchmarks.
packages/​store-graph/​src/​benchmark.json.ts Carries JSON conversion benchmarks.
packages/​store-graph/​src/​assertion/​assertUniqueIdentifier.ts Houses identifier uniqueness checks.
packages/​store-graph/​src/​assertion/​assertReferencedNodesInGraph.ts Houses reference integrity checks.
packages/​store-graph/​src/​assertion/​assertNotSelfPart.ts Houses self-membership rejection.
packages/​store-graph/​src/​assertion/​assertNoPendingParts.ts Houses unresolved child-reference checks.
packages/​store-graph/​src/​assertion/​assertNoPartConflict.ts Houses pending relationship conflict checks.
packages/​store-graph/​src/​assertion/​assertNoPartChangeToUpserted.ts Houses same-transaction relationship checks.
packages/​store-graph/​src/​assertion/​assertNoPartChangeToUpserted.test.ts Covers relationship conflicts and scan avoidance.
packages/​store-graph/​src/​assertion/​assertIdentifierNotId.ts Houses primary-identifier duplication checks.
packages/​store-graph/​package.json Defines the private graph workspace.
packages/​store-graph/​.gitignore Excludes generated and local files.
packages/​store-graph/​.eslintrc.yml Applies browser-oriented lint configuration.
package.json Registers graph workspace and validation scripts.
package-lock.json Records workspace links and dependency relocation.
.github/​workflows/​pull-request-validation.yml Runs graph tests separately from Jest.

Review effort: Balanced

Comment thread packages/store-graph/src/index.ts Resolved
Comment thread packages/store/src/index.ts Resolved
@compulim William Wong (compulim) added the no-changelog No .changelog/ fragment needed (development environment or test-only change) label Dec 1, 2026
@compulim

Copy link
Copy Markdown
Collaborator Author

Kind of "no-changelog", actually merged changelog with #6053.

@compulim
William Wong (compulim) merged commit 76ee2d4 into main Dec 1, 2026
46 of 47 checks passed
@compulim
William Wong (compulim) deleted the copilot/create-package-store-graph branch December 1, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No .changelog/ fragment needed (development environment or test-only change)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants