Repository navigation
Rename Store to Graph - #6093
Merged
Merged
Conversation
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>
William Wong (compulim)
marked this pull request as ready for review
December 1, 2026 20:39
William Wong (compulim)
requested review from
Eugene (OEvgeny),
Chris Whitten (cwhitten) and
Thomas Durnford (tdurnford)
as code owners
December 1, 2026 20:39
Contributor
There was a problem hiding this comment.
🟡 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
Collaborator
Author
|
Kind of "no-changelog", actually merged changelog with #6053. |
Eugene (OEvgeny)
approved these changes
Dec 1, 2026
William Wong (compulim)
deleted the
copilot/create-package-store-graph
branch
December 1, 2026 21:53
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.

Changelog Entry
Added
Description
store-graphDesign
Specific Changes
I have added tests and executed them locally.changelog/<PR#>-<slug>.mdReview Checklist
Accessibility reviewed (tab order, content readability, alt text, color contrast)Browser and platform compatibilities reviewedCSS styles reviewed (minimal rules, noz-index)Internationalization reviewed (strings, unit formatting)package.jsonandpackage-lock.jsonreviewedSecurity reviewed (no data URIs, check for nonce leak)Tests reviewed (coverage, legitimacy)