Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/young-falcons-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@graphprotocol/hypergraph-react": patch
"@graphprotocol/hypergraph": patch
---

replace deprecated GrcOp with Op from grc-20

Comment on lines +6 to +7
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

This line contains trailing whitespace. Consider removing the trailing spaces for cleaner formatting.

Suggested change
replace deprecated GrcOp with Op from grc-20
replace deprecated GrcOp with Op from grc-20

Copilot uses AI. Check for mistakes.
2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@base-ui-components/react": "1.0.0-beta.2",
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@graphprotocol/hypergraph": "workspace:*",
"@graphprotocol/hypergraph-react": "workspace:*",
"@heroicons/react": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:script": "tsx test-script.ts"
},
"dependencies": {
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@graphprotocol/hypergraph": "workspace:*",
"@graphprotocol/hypergraph-react": "workspace:*",
"@noble/hashes": "^1.8.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/events/src/components/create-events.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { mapping } from '../mapping';
Expand All @@ -12,7 +12,7 @@ const createEvents = async ({
space: string;
}) => {
try {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];

const { id: jobOfferTypeId, ops: createJobOfferTypeOps } = Graph.createEntity({
name: 'My Test Job Offer',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { useState } from 'react';
Expand All @@ -12,7 +12,7 @@ const createPropertiesAndTypesEvent = async ({
smartSessionClient: Connect.SmartSessionClient;
space: string;
}) => {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];
const { id: salaryPropertyId, ops: createSalaryPropertyOps } = Graph.createProperty({
dataType: 'FLOAT64',
name: 'Salary',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { useState } from 'react';
Expand All @@ -12,7 +12,7 @@ const createPropertiesAndTypesTodos = async ({
smartSessionClient: Connect.SmartSessionClient;
space: string;
}) => {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];
const { id: checkedPropertyId, ops: createCheckedPropertyOps } = Graph.createProperty({
dataType: 'BOOLEAN',
name: 'Checked',
Expand Down
2 changes: 1 addition & 1 deletion apps/next-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"type": "module",
"dependencies": {
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@graphprotocol/hypergraph": "workspace:*",
"@graphprotocol/hypergraph-react": "workspace:*",
"next": "15.5.9",
Expand Down
2 changes: 1 addition & 1 deletion apps/privy-login-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"typesync": "hypergraph typesync"
},
"dependencies": {
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@graphprotocol/hypergraph": "workspace:*",
"@graphprotocol/hypergraph-react": "workspace:*",
"@noble/hashes": "^1.8.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/privy-login-example/src/components/create-events.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { mapping } from '../mapping';
Expand All @@ -12,7 +12,7 @@ const createEvents = async ({
space: string;
}) => {
try {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];

const { id: jobOfferTypeId, ops: createJobOfferTypeOps } = Graph.createEntity({
name: 'My Test Job Offer',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { useState } from 'react';
Expand All @@ -12,7 +12,7 @@ const createPropertiesAndTypesEvent = async ({
smartSessionClient: Connect.SmartSessionClient;
space: string;
}) => {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];
const { id: salaryPropertyId, ops: createSalaryPropertyOps } = Graph.createProperty({
dataType: 'FLOAT64',
name: 'Salary',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
import { Graph, type Op } from '@graphprotocol/grc-20';
import type { Connect } from '@graphprotocol/hypergraph';
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
import { useState } from 'react';
Expand All @@ -12,7 +12,7 @@ const createPropertiesAndTypesTodos = async ({
smartSessionClient: Connect.SmartSessionClient;
space: string;
}) => {
const ops: Array<GrcOp> = [];
const ops: Array<Op> = [];
const { id: checkedPropertyId, ops: createCheckedPropertyOps } = Graph.createProperty({
dataType: 'BOOLEAN',
name: 'Checked',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@changesets/cli": "^2.29.8",
"@effect/language-service": "^0.40.0",
"@effect/vitest": "^0.25.1",
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"babel-plugin-annotate-pure-calls": "^0.5.0",
"glob": "^11.0.3",
"pkg-pr-new": "^0.0.56",
Expand Down
2 changes: 1 addition & 1 deletion packages/hypergraph-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@automerge/automerge": "^3.1.1",
"@automerge/automerge-repo": "^2.2.0",
"@automerge/automerge-repo-react-hooks": "^2.2.0",
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@noble/hashes": "^1.8.0",
"@tanstack/react-query": "^5.85.5",
"effect": "^3.17.13",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { GrcOp } from '@graphprotocol/grc-20';
import type { Op } from '@graphprotocol/grc-20';
import { Config } from '@graphprotocol/hypergraph';
import { gql, request } from 'graphql-request';

Expand Down Expand Up @@ -51,7 +51,7 @@ export const generateDeleteOps = async ({ id }: { id: string; space: string }) =
if (result.entity === null) {
throw new Error('Entity not found');
}
const ops: GrcOp[] = [];
const ops: Op[] = [];
// for (const attribute of result.entity.currentVersion.version.triples.nodes) {
// ops.push(Triple.remove({ attributeId: attribute.attributeId, entityId: id }));
// }
Expand Down
4 changes: 2 additions & 2 deletions packages/hypergraph-react/src/prepare-publish.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
Graph,
type GrcOp,
type Id,
type Op,
type PropertiesParam,
type PropertyValueParam,
type RelationsParam,
Expand Down Expand Up @@ -66,7 +66,7 @@ export const preparePublish = async <S extends Schema.Schema.AnyNoContext>({
},
);

const ops: GrcOp[] = [];
const ops: Op[] = [];
const values: PropertiesParam = [];
const relations: RelationsParam = {};
const type = entity.__schema;
Expand Down
4 changes: 2 additions & 2 deletions packages/hypergraph-react/src/publish-ops.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { GrcOp } from '@graphprotocol/grc-20';
import type { Op } from '@graphprotocol/grc-20';
import { Ipfs } from '@graphprotocol/grc-20';
import { Config, Connect } from '@graphprotocol/hypergraph';
import type { Hash } from 'viem';

type PublishParams = {
name: string;
ops: GrcOp[];
ops: Op[];
walletClient: Connect.SmartSessionClient;
space: string;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/hypergraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@effect/platform-node": "^0.96.1",
"@effect/printer": "^0.45.0",
"@effect/printer-ansi": "^0.45.0",
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@noble/ciphers": "^1.3.0",
"@noble/curves": "^1.9.7",
"@noble/hashes": "^1.8.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/hypergraph/src/mapping/Mapping.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type CreatePropertyParams, Graph, Id as Grc20Id, type GrcOp } from '@graphprotocol/grc-20';
import { type CreatePropertyParams, Graph, Id as Grc20Id, type Op } from '@graphprotocol/grc-20';
import { Data, Array as EffectArray, Schema as EffectSchema, Option, pipe } from 'effect';
import { GeoIdSchema } from '../utils/geo-id.js';
import { namesAreUnique, toCamelCase, toPascalCase } from './Utils.js';
Expand Down Expand Up @@ -331,17 +331,17 @@ export function allRelationPropertyTypesExist(types: ReadonlyArray<SchemaType>):
);
}

export type GenerateMappingResult = [mapping: Mapping, ops: ReadonlyArray<GrcOp>];
export type GenerateMappingResult = [mapping: Mapping, ops: ReadonlyArray<Op>];

// Helper types for internal processing
type PropertyIdMapping = { propName: string; id: Grc20Id };
type TypeIdMapping = Map<string, Grc20Id | null>;
type ProcessedProperty =
| { type: 'resolved'; mapping: PropertyIdMapping; ops: Array<GrcOp> }
| { type: 'resolved'; mapping: PropertyIdMapping; ops: Array<Op> }
| { type: 'deferred'; property: SchemaTypePropertyRelation };

type ProcessedType =
| { type: 'complete'; entry: MappingEntry & { typeName: string }; ops: Array<GrcOp> }
| { type: 'complete'; entry: MappingEntry & { typeName: string }; ops: Array<Op> }
| {
type: 'deferred';
schemaType: SchemaType;
Expand Down Expand Up @@ -666,7 +666,7 @@ export function generateMapping(input: Schema): GenerateMappingResult {
const { entries: deferredEntries, ops: secondPassOps } = pipe(
deferredTypes,
EffectArray.reduce(
{ entries: [] as Array<MappingEntry & { typeName: string }>, ops: [] as Array<GrcOp> },
{ entries: [] as Array<MappingEntry & { typeName: string }>, ops: [] as Array<Op> },
(acc, deferred) => {
// Resolve all deferred relation properties for this type
const resolvedRelations = pipe(
Expand Down
2 changes: 1 addition & 1 deletion packages/typesync-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@base-ui-components/react": "1.0.0-beta.2",
"@graphprotocol/grc-20": "^0.32.3",
"@graphprotocol/grc-20": "^0.33.0",
"@graphprotocol/hypergraph": "workspace:*",
"@graphprotocol/hypergraph-react": "workspace:*",
"@graphql-typed-document-node/core": "^3.2.0",
Expand Down
42 changes: 21 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading