diff --git a/.changeset/dark-radios-own.md b/.changeset/dark-radios-own.md new file mode 100644 index 00000000..b994ba86 --- /dev/null +++ b/.changeset/dark-radios-own.md @@ -0,0 +1,11 @@ +--- +"@graphprotocol/hypergraph-react": minor +"@graphprotocol/hypergraph": minor +"connect": minor +--- + +For IDs switch from UUIDs with dashes to UUIDs without dashes e.g. "a126ca53-0c8e-48d5-b888-82c734c38935" to "a126ca530c8e48d5b88882c734c38935" + +- For all public API endpoints switch from `/graphql` to `/v2/graphql` +- Expose new Utils: `Utils.GeoIdSchema`, `Utils.normalizeGeoId`, `Utils.isGeoId`, `Utils.parseGeoId`, `Utils.toUuid` + \ No newline at end of file diff --git a/apps/connect/package.json b/apps/connect/package.json index b2ef10d0..ed029d62 100644 --- a/apps/connect/package.json +++ b/apps/connect/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@base-ui-components/react": "1.0.0-beta.2", - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@heroicons/react": "^2.2.0", diff --git a/apps/connect/src/lib/get-app-info-by-ids.ts b/apps/connect/src/lib/get-app-info-by-ids.ts index c046af61..97ee0f8c 100644 --- a/apps/connect/src/lib/get-app-info-by-ids.ts +++ b/apps/connect/src/lib/get-app-info-by-ids.ts @@ -1,5 +1,5 @@ // const apps = { -// '93bb8907-085a-4a0e-83dd-62b0dc98e793': { +// '93bb8907085a4a0e83dd62b0dc98e793': { // name: 'Todos', // }, // }; diff --git a/apps/connect/src/routes/authenticate.tsx b/apps/connect/src/routes/authenticate.tsx index 0f76a4d4..d04e3c10 100644 --- a/apps/connect/src/routes/authenticate.tsx +++ b/apps/connect/src/routes/authenticate.tsx @@ -18,8 +18,8 @@ import { usePublicSpaces } from '@/hooks/use-public-spaces'; const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET; const API_URL = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' - ? `${Graph.MAINNET_API_ORIGIN}/graphql` - : `${Graph.TESTNET_API_ORIGIN}/graphql`; + ? `${Graph.MAINNET_API_ORIGIN}/v2/graphql` + : `${Graph.TESTNET_API_ORIGIN}/v2/graphql`; type AuthenticateSearch = { data: unknown; diff --git a/apps/connect/src/routes/index.tsx b/apps/connect/src/routes/index.tsx index 964c8295..dde7acf6 100644 --- a/apps/connect/src/routes/index.tsx +++ b/apps/connect/src/routes/index.tsx @@ -33,7 +33,7 @@ function Authorized() { isPending: publicSpacesPending, error: publicSpacesError, data: publicSpacesData, - } = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/graphql`); + } = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`); return (
diff --git a/apps/events/package.json b/apps/events/package.json index 16c723b5..3c6f7864 100644 --- a/apps/events/package.json +++ b/apps/events/package.json @@ -9,7 +9,7 @@ "typesync": "hypergraph typesync" }, "dependencies": { - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@noble/hashes": "^1.8.0", diff --git a/apps/events/src/Boot.tsx b/apps/events/src/Boot.tsx index c6f57958..a1b8948a 100644 --- a/apps/events/src/Boot.tsx +++ b/apps/events/src/Boot.tsx @@ -14,7 +14,7 @@ declare module '@tanstack/react-router' { export function Boot() { return ( - + ); diff --git a/apps/events/src/components/create-properties-and-types-event.tsx b/apps/events/src/components/create-properties-and-types-event.tsx index 235ded3d..ed5c4828 100644 --- a/apps/events/src/components/create-properties-and-types-event.tsx +++ b/apps/events/src/components/create-properties-and-types-event.tsx @@ -102,7 +102,7 @@ export const CreatePropertiesAndTypesEvent = ({ space }: { space: string }) => { const newMapping = `Event: { typeIds: [Id('${eventTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { sponsors: Id('${sponsorsRelationTypeId}'), @@ -111,7 +111,7 @@ export const CreatePropertiesAndTypesEvent = ({ space }: { space: string }) => { Company: { typeIds: [Id('${companyTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { jobOffers: Id('${jobOffersRelationTypeId}'), @@ -120,7 +120,7 @@ Company: { JobOffer: { typeIds: [Id('${jobOfferTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), salary: Id('${salaryPropertyId}'), }, }, diff --git a/apps/events/src/components/create-properties-and-types-todos.tsx b/apps/events/src/components/create-properties-and-types-todos.tsx index 9350afa4..1460375a 100644 --- a/apps/events/src/components/create-properties-and-types-todos.tsx +++ b/apps/events/src/components/create-properties-and-types-todos.tsx @@ -122,7 +122,7 @@ export const CreatePropertiesAndTypesTodos = ({ space }: { space: string }) => { const newMapping = `Todo2: { typeIds: [Id('${todoTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), checked: Id('${checkedPropertyId}'), due: Id('${duePropertyId}'), point: Id('${pointPropertyId}'), @@ -136,7 +136,7 @@ export const CreatePropertiesAndTypesTodos = ({ space }: { space: string }) => { User: { typeIds: [Id('${userId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, } `; diff --git a/apps/events/src/mapping.ts b/apps/events/src/mapping.ts index 3263a0f7..ea4e0d10 100644 --- a/apps/events/src/mapping.ts +++ b/apps/events/src/mapping.ts @@ -3,67 +3,67 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping.Mapping = { User: { - typeIds: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + typeIds: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('c9c79675-850a-42c5-bbbd-9e5c55d3f4e7'), + name: Id('c9c79675850a42c5bbbd9e5c55d3f4e7'), }, }, Todo: { - typeIds: [Id('44fe82a9-e4c2-4330-a395-ce85ed78e421')], + typeIds: [Id('44fe82a9e4c24330a395ce85ed78e421')], properties: { - name: Id('c668aa67-bbca-4b2c-908c-9c5599035eab'), - completed: Id('71e7654f-2623-4794-88fb-841c8f3dd9b4'), + name: Id('c668aa67bbca4b2c908c9c5599035eab'), + completed: Id('71e7654f2623479488fb841c8f3dd9b4'), }, relations: { - assignees: Id('5b80d3ee-2463-4246-b628-44ba808ab3e1'), + assignees: Id('5b80d3ee24634246b62844ba808ab3e1'), }, }, Todo2: { - typeIds: [Id('210f4e94-234c-49d7-af0f-f3b74fb07650')], + typeIds: [Id('210f4e94234c49d7af0ff3b74fb07650')], properties: { - name: Id('e291f4da-632d-4b70-aca8-5c6c01dbf1ca'), - checked: Id('d1cc82ef-8bde-45f4-b31c-56b6d59279ec'), - due: Id('6a28f275-b31c-47bc-83cd-ad416aaa7073'), - amount: Id('0c8219be-e284-4738-bd95-91a1c113c78e'), - point: Id('7f032477-c60e-4c85-a161-019b70db05ca'), - website: Id('75b6a647-5c2b-41e7-92c0-b0a0c9b28b02'), + name: Id('e291f4da632d4b70aca85c6c01dbf1ca'), + checked: Id('d1cc82ef8bde45f4b31c56b6d59279ec'), + due: Id('6a28f275b31c47bc83cdad416aaa7073'), + amount: Id('0c8219bee2844738bd9591a1c113c78e'), + point: Id('7f032477c60e4c85a161019b70db05ca'), + website: Id('75b6a6475c2b41e792c0b0a0c9b28b02'), }, relations: { - assignees: Id('1115e9f8-db2e-41df-8969-c5d34c367c10'), + assignees: Id('1115e9f8db2e41df8969c5d34c367c10'), }, }, JobOffer: { - typeIds: [Id('a4c1b288-756e-477b-aab2-007decf01c61')], + typeIds: [Id('a4c1b288756e477baab2007decf01c61')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - salary: Id('86ff5361-b820-4ba8-b689-b48e815e07d2'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + salary: Id('86ff5361b8204ba8b689b48e815e07d2'), }, }, Company: { - typeIds: [Id('bcf56f59-c532-47d5-a005-2d802f512c85')], + typeIds: [Id('bcf56f59c53247d5a0052d802f512c85')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - jobOffers: Id('54190b30-1c68-499c-9ed8-5c6190810e31'), + jobOffers: Id('54190b301c68499c9ed85c6190810e31'), }, }, Event: { - typeIds: [Id('239bc639-938e-427c-bebb-d562d82ae272')], + typeIds: [Id('239bc639938e427cbebbd562d82ae272')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), }, relations: { - sponsors: Id('926b00ee-68b5-4462-a27f-3806af705118'), + sponsors: Id('926b00ee68b54462a27f3806af705118'), }, }, Todo3: { - typeIds: [Id('4f7bba76-7855-4d63-b59d-1d9f2be866df')], + typeIds: [Id('4f7bba7678554d63b59d1d9f2be866df')], properties: { - name: Id('47006386-d351-411c-8287-1dae1c1aa8c1'), - completed: Id('9f9f00eb-4f32-4f71-92ba-b266566d0013'), - description: Id('89cac80a-1dbd-4bca-97b2-45e1556d9122'), + name: Id('47006386d351411c82871dae1c1aa8c1'), + completed: Id('9f9f00eb4f324f7192bab266566d0013'), + description: Id('89cac80a1dbd4bca97b245e1556d9122'), }, }, }; diff --git a/apps/events/src/routes/playground.lazy.tsx b/apps/events/src/routes/playground.lazy.tsx index cc655352..1306fbdf 100644 --- a/apps/events/src/routes/playground.lazy.tsx +++ b/apps/events/src/routes/playground.lazy.tsx @@ -10,12 +10,12 @@ export const Route = createLazyFileRoute('/playground')({ }); function RouteComponent() { - const space = '282aee96-48b0-4c6e-b020-736430a82a87'; + const space = '282aee9648b04c6eb020736430a82a87'; return ( <> - + - {/* */} + {/* */}

Playground

diff --git a/apps/events/src/routes/podcasts-infinite.lazy.tsx b/apps/events/src/routes/podcasts-infinite.lazy.tsx index d74f681f..43237403 100644 --- a/apps/events/src/routes/podcasts-infinite.lazy.tsx +++ b/apps/events/src/routes/podcasts-infinite.lazy.tsx @@ -8,7 +8,7 @@ export const Route = createLazyFileRoute('/podcasts-infinite')({ }); function RouteComponent() { - const space = 'e252f9e1-d3ad-4460-8bf1-54f93b02f220'; + const space = 'e252f9e1d3ad44608bf154f93b02f220'; const { data, isLoading, isError, fetchNextPage } = useEntitiesPublicInfinite(Podcast, { first: 2, diff --git a/apps/events/src/routes/podcasts.lazy.tsx b/apps/events/src/routes/podcasts.lazy.tsx index f2960197..f010b0f0 100644 --- a/apps/events/src/routes/podcasts.lazy.tsx +++ b/apps/events/src/routes/podcasts.lazy.tsx @@ -7,7 +7,7 @@ export const Route = createLazyFileRoute('/podcasts')({ }); function RouteComponent() { - const space = 'e252f9e1-d3ad-4460-8bf1-54f93b02f220'; + const space = 'e252f9e1d3ad44608bf154f93b02f220'; // useEffect(() => { // setTimeout(async () => { @@ -27,14 +27,14 @@ function RouteComponent() { invalidEntity: personInvalidEntity, invalidRelationEntities: personInvalidRelationEntities, } = useEntity(Person, { - id: '9800a4e8-8437-4310-9af6-ac91644f7c26', + id: '9800a4e8843743109af6ac91644f7c26', mode: 'public', - space: '95a4a1cc-bfcc-4038-b7a1-02c513d27700', + space: '95a4a1ccbfcc4038b7a102c513d27700', include: { skills: { _config: { - relationSpaces: ['95a4a1cc-bfcc-4038-b7a1-02c513d27700'], - valueSpaces: ['021265e2-d839-47c3-8d03-0ee3dfb29ffc', '95a4a1cc-bfcc-4038-b7a1-02c513d27700'], + relationSpaces: ['95a4a1ccbfcc4038b7a102c513d27700'], + valueSpaces: ['021265e2d83947c38d030ee3dfb29ffc', '95a4a1ccbfcc4038b7a102c513d27700'], }, }, skillsTotalCount: true, @@ -51,7 +51,7 @@ function RouteComponent() { invalidEntity, invalidRelationEntities, } = useEntity(Podcast, { - id: 'f5d27d3e-3a51-452d-bac2-702574381633', + id: 'f5d27d3e3a51452dbac2702574381633', mode: 'public', space: space, include: { @@ -107,10 +107,7 @@ function RouteComponent() { cover: { exists: true, }, - or: [ - { id: { is: '01d162e2-6d64-4acb-b0a6-be94169b8746' } }, - { id: { is: '0cd77106-5e1e-4784-96da-e4d191861081' } }, - ], + or: [{ id: { is: '01d162e26d644acbb0a6be94169b8746' } }, { id: { is: '0cd771065e1e478496dae4d191861081' } }], }, include: { cover: {}, diff --git a/apps/events/src/schema.ts b/apps/events/src/schema.ts index a465594d..0380f3d7 100644 --- a/apps/events/src/schema.ts +++ b/apps/events/src/schema.ts @@ -4,9 +4,9 @@ import { Entity, Id, Type } from '@graphprotocol/hypergraph'; export const User = Entity.Schema( { name: Type.String }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -18,11 +18,11 @@ export const Todo = Entity.Schema( assignees: Type.Relation(User), }, { - types: [Id('44fe82a9-e4c2-4330-a395-ce85ed78e421')], + types: [Id('44fe82a9e4c24330a395ce85ed78e421')], properties: { - name: Id('c668aa67-bbca-4b2c-908c-9c5599035eab'), - completed: Id('71e7654f-2623-4794-88fb-841c8f3dd9b4'), - assignees: Id('5b80d3ee-2463-4246-b628-44ba808ab3e1'), + name: Id('c668aa67bbca4b2c908c9c5599035eab'), + completed: Id('71e7654f2623479488fb841c8f3dd9b4'), + assignees: Id('5b80d3ee24634246b62844ba808ab3e1'), }, }, ); @@ -38,15 +38,15 @@ export const Todo2 = Entity.Schema( website: Type.String, }, { - types: [Id('210f4e94-234c-49d7-af0f-f3b74fb07650')], + types: [Id('210f4e94234c49d7af0ff3b74fb07650')], properties: { - name: Id('e291f4da-632d-4b70-aca8-5c6c01dbf1ca'), - checked: Id('d1cc82ef-8bde-45f4-b31c-56b6d59279ec'), - assignees: Id('1115e9f8-db2e-41df-8969-c5d34c367c10'), - due: Id('6a28f275-b31c-47bc-83cd-ad416aaa7073'), - amount: Id('0c8219be-e284-4738-bd95-91a1c113c78e'), - point: Id('7f032477-c60e-4c85-a161-019b70db05ca'), - website: Id('75b6a647-5c2b-41e7-92c0-b0a0c9b28b02'), + name: Id('e291f4da632d4b70aca85c6c01dbf1ca'), + checked: Id('d1cc82ef8bde45f4b31c56b6d59279ec'), + assignees: Id('1115e9f8db2e41df8969c5d34c367c10'), + due: Id('6a28f275b31c47bc83cdad416aaa7073'), + amount: Id('0c8219bee2844738bd9591a1c113c78e'), + point: Id('7f032477c60e4c85a161019b70db05ca'), + website: Id('75b6a6475c2b41e792c0b0a0c9b28b02'), }, }, ); @@ -57,10 +57,10 @@ export const JobOffer = Entity.Schema( salary: Type.Number, }, { - types: [Id('a4c1b288-756e-477b-aab2-007decf01c61')], + types: [Id('a4c1b288756e477baab2007decf01c61')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - salary: Id('86ff5361-b820-4ba8-b689-b48e815e07d2'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + salary: Id('86ff5361b8204ba8b689b48e815e07d2'), }, }, ); @@ -71,10 +71,10 @@ export const Company = Entity.Schema( jobOffers: Type.Relation(JobOffer), }, { - types: [Id('bcf56f59-c532-47d5-a005-2d802f512c85')], + types: [Id('bcf56f59c53247d5a0052d802f512c85')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - jobOffers: Id('54190b30-1c68-499c-9ed8-5c6190810e31'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + jobOffers: Id('54190b301c68499c9ed85c6190810e31'), }, }, ); @@ -86,11 +86,11 @@ export const Event = Entity.Schema( sponsors: Type.Relation(Company), }, { - types: [Id('239bc639-938e-427c-bebb-d562d82ae272')], + types: [Id('239bc639938e427cbebbd562d82ae272')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - sponsors: Id('926b00ee-68b5-4462-a27f-3806af705118'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + sponsors: Id('926b00ee68b54462a27f3806af705118'), }, }, ); @@ -100,9 +100,9 @@ export const Image = Entity.Schema( url: Type.String, }, { - types: [Id('ba4e4146-0010-499d-a0a3-caaa7f579d0e')], + types: [Id('ba4e41460010499da0a3caaa7f579d0e')], properties: { - url: Id('8a743832-c094-4a62-b665-0c3cc2f9c7bc'), + url: Id('8a743832c0944a62b6650c3cc2f9c7bc'), }, }, ); @@ -112,9 +112,9 @@ export const Project = Entity.Schema( name: Type.String, }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], // Project type + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], // Project type properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -139,11 +139,11 @@ export const Person = Entity.Schema( skills: Type.Relation(Skill), }, { - types: [Id('7ed45f2b-c48b-419e-8e46-64d5ff680b0d')], + types: [Id('7ed45f2bc48b419e8e4664d5ff680b0d')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), skills: Id(ContentIds.SKILLS_PROPERTY), }, }, @@ -155,10 +155,10 @@ export const Topic = Entity.Schema( cover: Type.Relation(Image), }, { - types: [Id('5ef5a586-0f27-4d8e-8f6c-59ae5b3e89e2')], + types: [Id('5ef5a5860f274d8e8f6c59ae5b3e89e2')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - cover: Id('34f53507-2e6b-42c5-a844-43981a77cfa2'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + cover: Id('34f535072e6b42c5a84443981a77cfa2'), }, }, ); @@ -170,9 +170,9 @@ export const GenericEntity = Entity.Schema( name: Type.String, }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], // Project type + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], // Project type properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -192,18 +192,18 @@ export const Episode2 = Entity.Schema( }), }, { - types: [Id('972d201a-d780-4568-9e01-543f67b26bee')], + types: [Id('972d201ad78045689e01543f67b26bee')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - airDate: Id('77999397-f78d-44a7-bbc5-d93a617af47c'), - duration: Id('76996acc-d10f-4cd5-9ac9-4a705b8e03b4'), - audioUrl: Id('87f919d5-560b-408c-be8d-318e2c5c098b'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + airDate: Id('77999397f78d44a7bbc5d93a617af47c'), + duration: Id('76996accd10f4cd59ac94a705b8e03b4'), + audioUrl: Id('87f919d5560b408cbe8d318e2c5c098b'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), listenOn: { - propertyId: Id('1367bac7-dcea-4b80-86ad-a4a4cdd7c2cb'), + propertyId: Id('1367bac7dcea4b8086ada4a4cdd7c2cb'), properties: { - website: Id('eed38e74-e679-46bf-8a42-ea3e4f8fb5fb'), + website: Id('eed38e74e67946bf8a42ea3e4f8fb5fb'), }, }, }, @@ -227,22 +227,22 @@ export const Podcast = Entity.Schema( episodes: Type.Backlink(Episode2), }, { - types: [Id('4c81561d-1f95-4131-9cdd-dd20ab831ba2')], + types: [Id('4c81561d1f9541319cdddd20ab831ba2')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - dateFounded: Id('41aa3d98-47b6-4a97-b7ec-427e575b910e'), - rssFeedUrl: Id('a5776138-deb8-436f-8c98-3eccd100d98f'), - hosts: Id('c72d9abb-bca8-4e86-b7e8-b71e91d2b37e'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), - topics: Id('458fbc07-0dbf-4c92-8f57-16f3fdde7c32'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + dateFounded: Id('41aa3d9847b64a97b7ec427e575b910e'), + rssFeedUrl: Id('a5776138deb8436f8c983eccd100d98f'), + hosts: Id('c72d9abbbca84e86b7e8b71e91d2b37e'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), + topics: Id('458fbc070dbf4c928f5716f3fdde7c32'), listenOn: { - propertyId: Id('1367bac7-dcea-4b80-86ad-a4a4cdd7c2cb'), + propertyId: Id('1367bac7dcea4b8086ada4a4cdd7c2cb'), properties: { - website: Id('eed38e74-e679-46bf-8a42-ea3e4f8fb5fb'), + website: Id('eed38e74e67946bf8a42ea3e4f8fb5fb'), }, }, - episodes: Id('f1873bbc-381f-4604-abad-76fed4f6d73f'), + episodes: Id('f1873bbc381f4604abad76fed4f6d73f'), }, }, ); @@ -252,9 +252,9 @@ export const Quote = Entity.Schema( name: Type.String, }, { - types: [Id('043a171c-6918-4dc3-a7db-b8471ca6fcc2')], + types: [Id('043a171c69184dc3a7dbb8471ca6fcc2')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -264,9 +264,9 @@ export const Claim = Entity.Schema( name: Type.String, }, { - types: [Id('043a171c-6918-4dc3-a7db-b8471ca6fcc2')], + types: [Id('043a171c69184dc3a7dbb8471ca6fcc2')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -294,26 +294,26 @@ export const Episode = Entity.Schema( }), }, { - types: [Id('972d201a-d780-4568-9e01-543f67b26bee')], + types: [Id('972d201ad78045689e01543f67b26bee')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - airDate: Id('77999397-f78d-44a7-bbc5-d93a617af47c'), - duration: Id('76996acc-d10f-4cd5-9ac9-4a705b8e03b4'), - audioUrl: Id('87f919d5-560b-408c-be8d-318e2c5c098b'), - episodeNumber: Id('9b5eced9-5c30-473b-8404-f474a777db3a'), - hosts: Id('c72d9abb-bca8-4e86-b7e8-b71e91d2b37e'), - guests: Id('cb60a1a6-6fb5-48c9-b936-200c5c271330'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), - podcast: Id('f1873bbc-381f-4604-abad-76fed4f6d73f'), - contributors: Id('1ff59132-2d57-4671-934a-7b662e3cf66a'), - quotes: Id('8d4ae49c-226d-4086-8ec3-af5d5b2a65d0'), - claims: Id('e1371bcd-a704-4396-adb7-ea7ecc8fe3d4'), - topics: Id('458fbc07-0dbf-4c92-8f57-16f3fdde7c32'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + airDate: Id('77999397f78d44a7bbc5d93a617af47c'), + duration: Id('76996accd10f4cd59ac94a705b8e03b4'), + audioUrl: Id('87f919d5560b408cbe8d318e2c5c098b'), + episodeNumber: Id('9b5eced95c30473b8404f474a777db3a'), + hosts: Id('c72d9abbbca84e86b7e8b71e91d2b37e'), + guests: Id('cb60a1a66fb548c9b936200c5c271330'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), + podcast: Id('f1873bbc381f4604abad76fed4f6d73f'), + contributors: Id('1ff591322d574671934a7b662e3cf66a'), + quotes: Id('8d4ae49c226d40868ec3af5d5b2a65d0'), + claims: Id('e1371bcda7044396adb7ea7ecc8fe3d4'), + topics: Id('458fbc070dbf4c928f5716f3fdde7c32'), listenOn: { - propertyId: Id('1367bac7-dcea-4b80-86ad-a4a4cdd7c2cb'), + propertyId: Id('1367bac7dcea4b8086ada4a4cdd7c2cb'), properties: { - website: Id('eed38e74-e679-46bf-8a42-ea3e4f8fb5fb'), + website: Id('eed38e74e67946bf8a42ea3e4f8fb5fb'), }, }, }, @@ -326,10 +326,10 @@ export const Space = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('362c1dbd-dc64-44bb-a3c4-652f38a642d7')], + types: [Id('362c1dbddc6444bba3c4652f38a642d7')], properties: { name: Id(SystemIds.NAME_PROPERTY), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); @@ -341,7 +341,7 @@ export const EpisodeHostTest = Entity.Schema( name: Type.String, }, { - types: [Id('972d201a-d780-4568-9e01-543f67b26bee')], + types: [Id('972d201ad78045689e01543f67b26bee')], properties: { name: Id(SystemIds.NAME_PROPERTY), }, @@ -353,7 +353,7 @@ export const PodcastHostTest = Entity.Schema( name: Type.String, }, { - types: [Id('4c81561d-1f95-4131-9cdd-dd20ab831ba2')], + types: [Id('4c81561d1f9541319cdddd20ab831ba2')], properties: { name: Id(SystemIds.NAME_PROPERTY), }, @@ -367,11 +367,11 @@ export const PersonHostTest = Entity.Schema( hostedEpisodes: Type.Backlink(EpisodeHostTest), }, { - types: [Id('7ed45f2b-c48b-419e-8e46-64d5ff680b0d')], + types: [Id('7ed45f2bc48b419e8e4664d5ff680b0d')], properties: { name: Id(SystemIds.NAME_PROPERTY), - hostedPodcasts: Id('c72d9abb-bca8-4e86-b7e8-b71e91d2b37e'), - hostedEpisodes: Id('c72d9abb-bca8-4e86-b7e8-b71e91d2b37e'), + hostedPodcasts: Id('c72d9abbbca84e86b7e8b71e91d2b37e'), + hostedEpisodes: Id('c72d9abbbca84e86b7e8b71e91d2b37e'), }, }, ); diff --git a/apps/next-example/package.json b/apps/next-example/package.json index a4b9f882..2da297eb 100644 --- a/apps/next-example/package.json +++ b/apps/next-example/package.json @@ -11,7 +11,7 @@ }, "type": "module", "dependencies": { - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "next": "15.5.0", diff --git a/apps/next-example/src/components/providers.tsx b/apps/next-example/src/components/providers.tsx index ea82fb4d..a6d2aecb 100644 --- a/apps/next-example/src/components/providers.tsx +++ b/apps/next-example/src/components/providers.tsx @@ -5,7 +5,7 @@ import { HypergraphAppProvider } from '@graphprotocol/hypergraph-react'; // recommended by https://docs.privy.io/basics/troubleshooting/react-frameworks#next-js export default function Providers({ children }: { children: React.ReactNode }) { return ( - + {children} ); diff --git a/apps/privy-login-example/package.json b/apps/privy-login-example/package.json index 4307a4be..6e94b491 100644 --- a/apps/privy-login-example/package.json +++ b/apps/privy-login-example/package.json @@ -9,7 +9,7 @@ "typesync": "hypergraph typesync" }, "dependencies": { - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@noble/hashes": "^1.8.0", diff --git a/apps/privy-login-example/src/Boot.tsx b/apps/privy-login-example/src/Boot.tsx index 06c7f1fe..3bcedd48 100644 --- a/apps/privy-login-example/src/Boot.tsx +++ b/apps/privy-login-example/src/Boot.tsx @@ -28,7 +28,7 @@ export function Boot() { }, }} > - + diff --git a/apps/privy-login-example/src/components/create-properties-and-types-event.tsx b/apps/privy-login-example/src/components/create-properties-and-types-event.tsx index 235ded3d..ed5c4828 100644 --- a/apps/privy-login-example/src/components/create-properties-and-types-event.tsx +++ b/apps/privy-login-example/src/components/create-properties-and-types-event.tsx @@ -102,7 +102,7 @@ export const CreatePropertiesAndTypesEvent = ({ space }: { space: string }) => { const newMapping = `Event: { typeIds: [Id('${eventTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { sponsors: Id('${sponsorsRelationTypeId}'), @@ -111,7 +111,7 @@ export const CreatePropertiesAndTypesEvent = ({ space }: { space: string }) => { Company: { typeIds: [Id('${companyTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { jobOffers: Id('${jobOffersRelationTypeId}'), @@ -120,7 +120,7 @@ Company: { JobOffer: { typeIds: [Id('${jobOfferTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), salary: Id('${salaryPropertyId}'), }, }, diff --git a/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx b/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx index 9350afa4..1460375a 100644 --- a/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx +++ b/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx @@ -122,7 +122,7 @@ export const CreatePropertiesAndTypesTodos = ({ space }: { space: string }) => { const newMapping = `Todo2: { typeIds: [Id('${todoTypeId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), checked: Id('${checkedPropertyId}'), due: Id('${duePropertyId}'), point: Id('${pointPropertyId}'), @@ -136,7 +136,7 @@ export const CreatePropertiesAndTypesTodos = ({ space }: { space: string }) => { User: { typeIds: [Id('${userId}')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, } `; diff --git a/apps/privy-login-example/src/mapping.ts b/apps/privy-login-example/src/mapping.ts index 3263a0f7..ea4e0d10 100644 --- a/apps/privy-login-example/src/mapping.ts +++ b/apps/privy-login-example/src/mapping.ts @@ -3,67 +3,67 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping.Mapping = { User: { - typeIds: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + typeIds: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('c9c79675-850a-42c5-bbbd-9e5c55d3f4e7'), + name: Id('c9c79675850a42c5bbbd9e5c55d3f4e7'), }, }, Todo: { - typeIds: [Id('44fe82a9-e4c2-4330-a395-ce85ed78e421')], + typeIds: [Id('44fe82a9e4c24330a395ce85ed78e421')], properties: { - name: Id('c668aa67-bbca-4b2c-908c-9c5599035eab'), - completed: Id('71e7654f-2623-4794-88fb-841c8f3dd9b4'), + name: Id('c668aa67bbca4b2c908c9c5599035eab'), + completed: Id('71e7654f2623479488fb841c8f3dd9b4'), }, relations: { - assignees: Id('5b80d3ee-2463-4246-b628-44ba808ab3e1'), + assignees: Id('5b80d3ee24634246b62844ba808ab3e1'), }, }, Todo2: { - typeIds: [Id('210f4e94-234c-49d7-af0f-f3b74fb07650')], + typeIds: [Id('210f4e94234c49d7af0ff3b74fb07650')], properties: { - name: Id('e291f4da-632d-4b70-aca8-5c6c01dbf1ca'), - checked: Id('d1cc82ef-8bde-45f4-b31c-56b6d59279ec'), - due: Id('6a28f275-b31c-47bc-83cd-ad416aaa7073'), - amount: Id('0c8219be-e284-4738-bd95-91a1c113c78e'), - point: Id('7f032477-c60e-4c85-a161-019b70db05ca'), - website: Id('75b6a647-5c2b-41e7-92c0-b0a0c9b28b02'), + name: Id('e291f4da632d4b70aca85c6c01dbf1ca'), + checked: Id('d1cc82ef8bde45f4b31c56b6d59279ec'), + due: Id('6a28f275b31c47bc83cdad416aaa7073'), + amount: Id('0c8219bee2844738bd9591a1c113c78e'), + point: Id('7f032477c60e4c85a161019b70db05ca'), + website: Id('75b6a6475c2b41e792c0b0a0c9b28b02'), }, relations: { - assignees: Id('1115e9f8-db2e-41df-8969-c5d34c367c10'), + assignees: Id('1115e9f8db2e41df8969c5d34c367c10'), }, }, JobOffer: { - typeIds: [Id('a4c1b288-756e-477b-aab2-007decf01c61')], + typeIds: [Id('a4c1b288756e477baab2007decf01c61')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - salary: Id('86ff5361-b820-4ba8-b689-b48e815e07d2'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + salary: Id('86ff5361b8204ba8b689b48e815e07d2'), }, }, Company: { - typeIds: [Id('bcf56f59-c532-47d5-a005-2d802f512c85')], + typeIds: [Id('bcf56f59c53247d5a0052d802f512c85')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - jobOffers: Id('54190b30-1c68-499c-9ed8-5c6190810e31'), + jobOffers: Id('54190b301c68499c9ed85c6190810e31'), }, }, Event: { - typeIds: [Id('239bc639-938e-427c-bebb-d562d82ae272')], + typeIds: [Id('239bc639938e427cbebbd562d82ae272')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), }, relations: { - sponsors: Id('926b00ee-68b5-4462-a27f-3806af705118'), + sponsors: Id('926b00ee68b54462a27f3806af705118'), }, }, Todo3: { - typeIds: [Id('4f7bba76-7855-4d63-b59d-1d9f2be866df')], + typeIds: [Id('4f7bba7678554d63b59d1d9f2be866df')], properties: { - name: Id('47006386-d351-411c-8287-1dae1c1aa8c1'), - completed: Id('9f9f00eb-4f32-4f71-92ba-b266566d0013'), - description: Id('89cac80a-1dbd-4bca-97b2-45e1556d9122'), + name: Id('47006386d351411c82871dae1c1aa8c1'), + completed: Id('9f9f00eb4f324f7192bab266566d0013'), + description: Id('89cac80a1dbd4bca97b245e1556d9122'), }, }, }; diff --git a/apps/privy-login-example/src/routes/playground.lazy.tsx b/apps/privy-login-example/src/routes/playground.lazy.tsx index d90650c0..2b4edb79 100644 --- a/apps/privy-login-example/src/routes/playground.lazy.tsx +++ b/apps/privy-login-example/src/routes/playground.lazy.tsx @@ -10,10 +10,10 @@ export const Route = createLazyFileRoute('/playground')({ }); function RouteComponent() { - const space = '282aee96-48b0-4c6e-b020-736430a82a87'; + const space = '282aee9648b04c6eb020736430a82a87'; return ( <> - +
diff --git a/apps/privy-login-example/src/schema.ts b/apps/privy-login-example/src/schema.ts index c8850a52..2947e1c8 100644 --- a/apps/privy-login-example/src/schema.ts +++ b/apps/privy-login-example/src/schema.ts @@ -3,9 +3,9 @@ import { Entity, Id, Type } from '@graphprotocol/hypergraph'; export const User = Entity.Schema( { name: Type.String }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -17,11 +17,11 @@ export const Todo = Entity.Schema( assignees: Type.Relation(User), }, { - types: [Id('44fe82a9-e4c2-4330-a395-ce85ed78e421')], + types: [Id('44fe82a9e4c24330a395ce85ed78e421')], properties: { - name: Id('c668aa67-bbca-4b2c-908c-9c5599035eab'), - completed: Id('71e7654f-2623-4794-88fb-841c8f3dd9b4'), - assignees: Id('5b80d3ee-2463-4246-b628-44ba808ab3e1'), + name: Id('c668aa67bbca4b2c908c9c5599035eab'), + completed: Id('71e7654f2623479488fb841c8f3dd9b4'), + assignees: Id('5b80d3ee24634246b62844ba808ab3e1'), }, }, ); @@ -37,15 +37,15 @@ export const Todo2 = Entity.Schema( website: Type.String, }, { - types: [Id('210f4e94-234c-49d7-af0f-f3b74fb07650')], + types: [Id('210f4e94234c49d7af0ff3b74fb07650')], properties: { - name: Id('e291f4da-632d-4b70-aca8-5c6c01dbf1ca'), - checked: Id('d1cc82ef-8bde-45f4-b31c-56b6d59279ec'), - assignees: Id('1115e9f8-db2e-41df-8969-c5d34c367c10'), - due: Id('6a28f275-b31c-47bc-83cd-ad416aaa7073'), - amount: Id('0c8219be-e284-4738-bd95-91a1c113c78e'), - point: Id('7f032477-c60e-4c85-a161-019b70db05ca'), - website: Id('75b6a647-5c2b-41e7-92c0-b0a0c9b28b02'), + name: Id('e291f4da632d4b70aca85c6c01dbf1ca'), + checked: Id('d1cc82ef8bde45f4b31c56b6d59279ec'), + assignees: Id('1115e9f8db2e41df8969c5d34c367c10'), + due: Id('6a28f275b31c47bc83cdad416aaa7073'), + amount: Id('0c8219bee2844738bd9591a1c113c78e'), + point: Id('7f032477c60e4c85a161019b70db05ca'), + website: Id('75b6a6475c2b41e792c0b0a0c9b28b02'), }, }, ); @@ -56,10 +56,10 @@ export const JobOffer = Entity.Schema( salary: Type.Number, }, { - types: [Id('a4c1b288-756e-477b-aab2-007decf01c61')], + types: [Id('a4c1b288756e477baab2007decf01c61')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - salary: Id('86ff5361-b820-4ba8-b689-b48e815e07d2'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + salary: Id('86ff5361b8204ba8b689b48e815e07d2'), }, }, ); @@ -70,10 +70,10 @@ export const Company = Entity.Schema( jobOffers: Type.Relation(JobOffer), }, { - types: [Id('bcf56f59-c532-47d5-a005-2d802f512c85')], + types: [Id('bcf56f59c53247d5a0052d802f512c85')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - jobOffers: Id('54190b30-1c68-499c-9ed8-5c6190810e31'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + jobOffers: Id('54190b301c68499c9ed85c6190810e31'), }, }, ); @@ -85,11 +85,11 @@ export const Event = Entity.Schema( sponsors: Type.Relation(Company), }, { - types: [Id('239bc639-938e-427c-bebb-d562d82ae272')], + types: [Id('239bc639938e427cbebbd562d82ae272')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - sponsors: Id('926b00ee-68b5-4462-a27f-3806af705118'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + sponsors: Id('926b00ee68b54462a27f3806af705118'), }, }, ); @@ -99,9 +99,9 @@ export const Image = Entity.Schema( url: Type.String, }, { - types: [Id('ba4e4146-0010-499d-a0a3-caaa7f579d0e')], + types: [Id('ba4e41460010499da0a3caaa7f579d0e')], properties: { - url: Id('8a743832-c094-4a62-b665-0c3cc2f9c7bc'), + url: Id('8a743832c0944a62b6650c3cc2f9c7bc'), }, }, ); @@ -114,12 +114,12 @@ export const Project = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); diff --git a/apps/template-nextjs/app/Providers.tsx b/apps/template-nextjs/app/Providers.tsx index 67c02bca..958758bd 100644 --- a/apps/template-nextjs/app/Providers.tsx +++ b/apps/template-nextjs/app/Providers.tsx @@ -6,7 +6,7 @@ export default function Providers({ children }: Readonly<{ children: React.React const _storage = typeof window !== 'undefined' ? window.localStorage : (undefined as unknown as Storage); return ( - + {children} ); diff --git a/apps/template-nextjs/app/explore-public-knowledge/assets/page.tsx b/apps/template-nextjs/app/explore-public-knowledge/assets/page.tsx index 9f9a9278..b7c289b5 100644 --- a/apps/template-nextjs/app/explore-public-knowledge/assets/page.tsx +++ b/apps/template-nextjs/app/explore-public-knowledge/assets/page.tsx @@ -6,7 +6,7 @@ import { Asset } from '../../schema'; export default function ExploreAssetMarketPage() { const { data: assets, isPending } = useEntities(Asset, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, }); diff --git a/apps/template-nextjs/app/explore-public-knowledge/dapps/page.tsx b/apps/template-nextjs/app/explore-public-knowledge/dapps/page.tsx index ae21fd4a..3a1e27df 100644 --- a/apps/template-nextjs/app/explore-public-knowledge/dapps/page.tsx +++ b/apps/template-nextjs/app/explore-public-knowledge/dapps/page.tsx @@ -7,7 +7,7 @@ import { Dapp } from '../../schema'; export default function ExploreDappsPage() { const { data: dapps, isPending } = useEntities(Dapp, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { avatar: {} }, }); diff --git a/apps/template-nextjs/app/explore-public-knowledge/investment-rounds/page.tsx b/apps/template-nextjs/app/explore-public-knowledge/investment-rounds/page.tsx index a3883089..f1b4839e 100644 --- a/apps/template-nextjs/app/explore-public-knowledge/investment-rounds/page.tsx +++ b/apps/template-nextjs/app/explore-public-knowledge/investment-rounds/page.tsx @@ -6,7 +6,7 @@ import { InvestmentRound } from '../../schema'; export default function ExploreInvestmentRoundsPage() { const { data: investmentRounds, isPending } = useEntities(InvestmentRound, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { investors: {}, diff --git a/apps/template-nextjs/app/explore-public-knowledge/layout.tsx b/apps/template-nextjs/app/explore-public-knowledge/layout.tsx index 6d9f4cb5..7689edb8 100644 --- a/apps/template-nextjs/app/explore-public-knowledge/layout.tsx +++ b/apps/template-nextjs/app/explore-public-knowledge/layout.tsx @@ -14,7 +14,7 @@ export default function ExplorePublicKnowledgeLayout({ children }: { children: R {' '} with the ID{' '} - 3f32353d-3b27-4a13-b71a-746f06e1f7db + 3f32353d3b274a13b71a746f06e1f7db . No authentication is required.

diff --git a/apps/template-nextjs/app/explore-public-knowledge/projects/page.tsx b/apps/template-nextjs/app/explore-public-knowledge/projects/page.tsx index 160b660d..666755ba 100644 --- a/apps/template-nextjs/app/explore-public-knowledge/projects/page.tsx +++ b/apps/template-nextjs/app/explore-public-knowledge/projects/page.tsx @@ -10,7 +10,7 @@ export default function ExploreProjectsPage() { const { data: projects, isPending } = useEntities(Project, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { avatar: {} }, filter: { diff --git a/apps/template-nextjs/app/schema.ts b/apps/template-nextjs/app/schema.ts index b658fe77..e168e010 100644 --- a/apps/template-nextjs/app/schema.ts +++ b/apps/template-nextjs/app/schema.ts @@ -5,9 +5,9 @@ export const Image = Entity.Schema( url: Type.String, }, { - types: [Id('ba4e4146-0010-499d-a0a3-caaa7f579d0e')], + types: [Id('ba4e41460010499da0a3caaa7f579d0e')], properties: { - url: Id('8a743832-c094-4a62-b665-0c3cc2f9c7bc'), + url: Id('8a743832c0944a62b6650c3cc2f9c7bc'), }, }, ); @@ -20,12 +20,12 @@ export const Project = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); @@ -39,13 +39,13 @@ export const Dapp = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('8ca136d0-698a-4bbf-a76b-8e2741b2dc8c')], + types: [Id('8ca136d0698a4bbfa76b8e2741b2dc8c')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - github: Id('9eedefa8-60ae-4ac1-9a04-805054a4b094'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + github: Id('9eedefa860ae4ac19a04805054a4b094'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); @@ -55,9 +55,9 @@ export const Investor = Entity.Schema( name: Type.String, }, { - types: [Id('331aea18-973c-4adc-8f53-614f598d262d')], + types: [Id('331aea18973c4adc8f53614f598d262d')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -67,9 +67,9 @@ export const FundingStage = Entity.Schema( name: Type.String, }, { - types: [Id('8d35d217-3fa1-4686-b74f-fcb3e9438067')], + types: [Id('8d35d2173fa14686b74ffcb3e9438067')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -83,13 +83,13 @@ export const InvestmentRound = Entity.Schema( raisedBy: Type.Relation(Project), }, { - types: [Id('8f03f4c9-59e4-44a8-a625-c0a40b1ff330')], + types: [Id('8f03f4c959e444a8a625c0a40b1ff330')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - raisedAmount: Id('16781706-dd9c-48bf-913e-cdf18b56034f'), - investors: Id('9b8a610a-fa35-486e-a479-e253dbdabb4f'), - fundingStages: Id('e278c3d4-78b9-4222-b272-5a39a8556bd2'), - raisedBy: Id('b4878d1a-0609-488d-b8a6-e19862d6b62f'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + raisedAmount: Id('16781706dd9c48bf913ecdf18b56034f'), + investors: Id('9b8a610afa35486ea479e253dbdabb4f'), + fundingStages: Id('e278c3d478b94222b2725a39a8556bd2'), + raisedBy: Id('b4878d1a0609488db8a6e19862d6b62f'), }, }, ); @@ -101,11 +101,11 @@ export const Asset = Entity.Schema( blockchainAddress: Type.optional(Type.String), }, { - types: [Id('f8780a80-c238-4a2a-96cb-567d88b1aa63')], + types: [Id('f8780a80c2384a2a96cb567d88b1aa63')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - symbol: Id('ace1e96c-9b83-47b4-bd33-1d302ec0a0f5'), - blockchainAddress: Id('56b5944f-f059-48d1-b0fa-34abe84219da'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + symbol: Id('ace1e96c9b8347b4bd331d302ec0a0f5'), + blockchainAddress: Id('56b5944ff05948d1b0fa34abe84219da'), }, }, ); diff --git a/apps/template-vite-react/src/main.tsx b/apps/template-vite-react/src/main.tsx index be4c0f8d..d5d98ca6 100644 --- a/apps/template-vite-react/src/main.tsx +++ b/apps/template-vite-react/src/main.tsx @@ -22,7 +22,7 @@ if (rootElement && !rootElement.innerHTML) { const root = ReactDOM.createRoot(rootElement); root.render( // - + , // , diff --git a/apps/template-vite-react/src/routes/explore-public-knowledge.tsx b/apps/template-vite-react/src/routes/explore-public-knowledge.tsx index 5a5906d1..cfe4dbde 100644 --- a/apps/template-vite-react/src/routes/explore-public-knowledge.tsx +++ b/apps/template-vite-react/src/routes/explore-public-knowledge.tsx @@ -19,7 +19,7 @@ function ExploreLayout() { {' '} with the ID{' '} - 3f32353d-3b27-4a13-b71a-746f06e1f7db + 3f32353d3b274a13b71a746f06e1f7db . No authentication is required.

diff --git a/apps/template-vite-react/src/routes/explore-public-knowledge/assets.tsx b/apps/template-vite-react/src/routes/explore-public-knowledge/assets.tsx index 46148e70..a9abf3bf 100644 --- a/apps/template-vite-react/src/routes/explore-public-knowledge/assets.tsx +++ b/apps/template-vite-react/src/routes/explore-public-knowledge/assets.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/explore-public-knowledge/assets')({ function AssetMarket() { const { data: assets, isPending } = useEntities(Asset, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, }); diff --git a/apps/template-vite-react/src/routes/explore-public-knowledge/dapps.tsx b/apps/template-vite-react/src/routes/explore-public-knowledge/dapps.tsx index 36179a03..5db2d6a4 100644 --- a/apps/template-vite-react/src/routes/explore-public-knowledge/dapps.tsx +++ b/apps/template-vite-react/src/routes/explore-public-knowledge/dapps.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/explore-public-knowledge/dapps')({ function Dapps() { const { data: dapps, isPending } = useEntities(Dapp, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { avatar: {} }, }); diff --git a/apps/template-vite-react/src/routes/explore-public-knowledge/investment-rounds.tsx b/apps/template-vite-react/src/routes/explore-public-knowledge/investment-rounds.tsx index fdac8568..7d078eaa 100644 --- a/apps/template-vite-react/src/routes/explore-public-knowledge/investment-rounds.tsx +++ b/apps/template-vite-react/src/routes/explore-public-knowledge/investment-rounds.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/explore-public-knowledge/investment-round function InvestmentRounds() { const { data: investmentRounds, isPending } = useEntities(InvestmentRound, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { investors: {}, diff --git a/apps/template-vite-react/src/routes/explore-public-knowledge/projects.tsx b/apps/template-vite-react/src/routes/explore-public-knowledge/projects.tsx index ab6f916f..b981cf2a 100644 --- a/apps/template-vite-react/src/routes/explore-public-knowledge/projects.tsx +++ b/apps/template-vite-react/src/routes/explore-public-knowledge/projects.tsx @@ -13,7 +13,7 @@ function ExplorePublicKnowledgeProjects() { const { data: projects, isPending } = useEntities(Project, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', first: 100, include: { avatar: {} }, filter: { diff --git a/apps/template-vite-react/src/schema.ts b/apps/template-vite-react/src/schema.ts index b658fe77..e168e010 100644 --- a/apps/template-vite-react/src/schema.ts +++ b/apps/template-vite-react/src/schema.ts @@ -5,9 +5,9 @@ export const Image = Entity.Schema( url: Type.String, }, { - types: [Id('ba4e4146-0010-499d-a0a3-caaa7f579d0e')], + types: [Id('ba4e41460010499da0a3caaa7f579d0e')], properties: { - url: Id('8a743832-c094-4a62-b665-0c3cc2f9c7bc'), + url: Id('8a743832c0944a62b6650c3cc2f9c7bc'), }, }, ); @@ -20,12 +20,12 @@ export const Project = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); @@ -39,13 +39,13 @@ export const Dapp = Entity.Schema( avatar: Type.Relation(Image), }, { - types: [Id('8ca136d0-698a-4bbf-a76b-8e2741b2dc8c')], + types: [Id('8ca136d0698a4bbfa76b8e2741b2dc8c')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - github: Id('9eedefa8-60ae-4ac1-9a04-805054a4b094'), - avatar: Id('1155beff-fad5-49b7-a2e0-da4777b8792c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + github: Id('9eedefa860ae4ac19a04805054a4b094'), + avatar: Id('1155befffad549b7a2e0da4777b8792c'), }, }, ); @@ -55,9 +55,9 @@ export const Investor = Entity.Schema( name: Type.String, }, { - types: [Id('331aea18-973c-4adc-8f53-614f598d262d')], + types: [Id('331aea18973c4adc8f53614f598d262d')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -67,9 +67,9 @@ export const FundingStage = Entity.Schema( name: Type.String, }, { - types: [Id('8d35d217-3fa1-4686-b74f-fcb3e9438067')], + types: [Id('8d35d2173fa14686b74ffcb3e9438067')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -83,13 +83,13 @@ export const InvestmentRound = Entity.Schema( raisedBy: Type.Relation(Project), }, { - types: [Id('8f03f4c9-59e4-44a8-a625-c0a40b1ff330')], + types: [Id('8f03f4c959e444a8a625c0a40b1ff330')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - raisedAmount: Id('16781706-dd9c-48bf-913e-cdf18b56034f'), - investors: Id('9b8a610a-fa35-486e-a479-e253dbdabb4f'), - fundingStages: Id('e278c3d4-78b9-4222-b272-5a39a8556bd2'), - raisedBy: Id('b4878d1a-0609-488d-b8a6-e19862d6b62f'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + raisedAmount: Id('16781706dd9c48bf913ecdf18b56034f'), + investors: Id('9b8a610afa35486ea479e253dbdabb4f'), + fundingStages: Id('e278c3d478b94222b2725a39a8556bd2'), + raisedBy: Id('b4878d1a0609488db8a6e19862d6b62f'), }, }, ); @@ -101,11 +101,11 @@ export const Asset = Entity.Schema( blockchainAddress: Type.optional(Type.String), }, { - types: [Id('f8780a80-c238-4a2a-96cb-567d88b1aa63')], + types: [Id('f8780a80c2384a2a96cb567d88b1aa63')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - symbol: Id('ace1e96c-9b83-47b4-bd33-1d302ec0a0f5'), - blockchainAddress: Id('56b5944f-f059-48d1-b0fa-34abe84219da'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + symbol: Id('ace1e96c9b8347b4bd331d302ec0a0f5'), + blockchainAddress: Id('56b5944ff05948d1b0fa34abe84219da'), }, }, ); diff --git a/docs/docs/authentication.md b/docs/docs/authentication.md index a48212f7..142f7716 100644 --- a/docs/docs/authentication.md +++ b/docs/docs/authentication.md @@ -104,7 +104,7 @@ function Login() { connectUrl: "https://connect.geobrowser.io/", successUrl: `${window.location.origin}/authenticate-success`, // your app id (any valid uuid) - appId: "93bb8907-085a-4a0e-83dd-62b0dc98e793", + appId: "93bb8907085a4a0e83dd62b0dc98e793", redirectFn: (url: URL) => { window.location.href = url.toString(); }, diff --git a/docs/docs/filtering-query-results.md b/docs/docs/filtering-query-results.md index 00286171..55d5f1d5 100644 --- a/docs/docs/filtering-query-results.md +++ b/docs/docs/filtering-query-results.md @@ -78,7 +78,7 @@ When you already know the entity you want to retrieve, you can target its `id` d ```tsx const { data } = useEntities(Person, { filter: { - id: { is: 'fe9f0c57-3682-4a77-8ef4-205da3cd0a33' }, + id: { is: 'fe9f0c5736824a778ef4205da3cd0a33' }, }, }); ``` diff --git a/docs/docs/query-public-data.md b/docs/docs/query-public-data.md index 3e827b7a..b0627905 100644 --- a/docs/docs/query-public-data.md +++ b/docs/docs/query-public-data.md @@ -68,18 +68,18 @@ Each branch within `include` can optionally carry a `_config` object that lets y ```ts const { data: project } = useEntity(Project, { - id: '9f130661-8c3f-4db7-9bdc-3ce69631c5ef', + id: '9f1306618c3f4db79bdc3ce69631c5ef', mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', include: { contributors: { _config: { - relationSpaces: ['3f32353d-3b27-4a13-b71a-746f06e1f7db', '95a4a1cc-bfcc-4038-b7a1-02c513d27700'], + relationSpaces: ['3f32353d3b274a13b71a746f06e1f7db', '95a4a1ccbfcc4038b7a102c513d27700'], valueSpaces: 'all', }, organizations: { _config: { - valueSpaces: ['95a4a1cc-bfcc-4038-b7a1-02c513d27700'], + valueSpaces: ['95a4a1ccbfcc4038b7a102c513d27700'], }, }, }, @@ -101,7 +101,7 @@ Public entities can live in multiple spaces. Set `includeSpaceIds: true` on `use ```tsx const { data: projects } = useEntities(Project, { mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', includeSpaceIds: true, }); @@ -114,9 +114,9 @@ projects.forEach((project) => { ```tsx const { data: project } = useEntity(Project, { - id: '9f130661-8c3f-4db7-9bdc-3ce69631c5ef', + id: '9f1306618c3f4db79bdc3ce69631c5ef', mode: 'public', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', includeSpaceIds: true, }); @@ -127,8 +127,8 @@ console.log(project?.spaceIds); // => ["3f3235..."] ```ts const project = await Entity.findOnePublic(Project, { - id: '9f130661-8c3f-4db7-9bdc-3ce69631c5ef', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + id: '9f1306618c3f4db79bdc3ce69631c5ef', + space: '3f32353d3b274a13b71a746f06e1f7db', includeSpaceIds: true, }); @@ -139,7 +139,7 @@ console.log(project?.spaceIds); // => ["3f3235...", "95a4a1..."] ```ts const { data: rounds } = await Entity.findManyPublic(InvestmentRound, { - spaces: ['3f32353d-3b27-4a13-b71a-746f06e1f7db', '95a4a1cc-bfcc-4038-b7a1-02c513d27700'], + spaces: ['3f32353d3b274a13b71a746f06e1f7db', '95a4a1ccbfcc4038b7a102c513d27700'], includeSpaceIds: true, }); @@ -154,7 +154,7 @@ rounds.map((round) => ({ ```ts const { data: searchMatches } = await Entity.searchManyPublic(Project, { query: 'hypergraph', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + space: '3f32353d3b274a13b71a746f06e1f7db', includeSpaceIds: true, }); @@ -207,8 +207,8 @@ import { useEntity } from '@graphprotocol/hypergraph-react'; import { Project } from '../schema'; const { data: project, invalidEntity, invalidRelationEntities, isPending, isError } = useEntity(Project, { - id: '9f130661-8c3f-4db7-9bdc-3ce69631c5ef', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + id: '9f1306618c3f4db79bdc3ce69631c5ef', + space: '3f32353d3b274a13b71a746f06e1f7db', mode: 'public', include: { contributors: {}, @@ -223,8 +223,8 @@ import { Entity } from '@graphprotocol/hypergraph'; import { Project } from '../schema'; const project = await Entity.findOnePublic(Project, { - id: '9f130661-8c3f-4db7-9bdc-3ce69631c5ef', - space: '3f32353d-3b27-4a13-b71a-746f06e1f7db', + id: '9f1306618c3f4db79bdc3ce69631c5ef', + space: '3f32353d3b274a13b71a746f06e1f7db', include: { contributors: {}, }, @@ -238,7 +238,7 @@ The Geo testnet contains public data that you can query immediately without any **Note**: - **No authentication required** for public data queries. -- All examples below use the Geo testnet space ID: `3f32353d-3b27-4a13-b71a-746f06e1f7db` +- All examples below use the Geo testnet space ID: `3f32353d3b274a13b71a746f06e1f7db` Each section below includes the relevant `schema.ts` and a query example. @@ -253,11 +253,11 @@ import { Entity, Type, Id } from "@graphprotocol/hypergraph"; export const Project = Entity.Schema( { name: Type.String, description: Type.optional(Type.String), xUrl: Type.optional(Type.String) }, { - types: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')], + types: [Id('484a18c5030a499cb0f2ef588ff16d50')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), }, }, ); @@ -280,7 +280,7 @@ export default function ProjectsExample() { isError, } = useEntities(Project, { mode: "public", - space: "3f32353d-3b27-4a13-b71a-746f06e1f7db", + space: "3f32353d3b274a13b71a746f06e1f7db", first: limit, }); @@ -332,12 +332,12 @@ import { Entity, Type } from "@graphprotocol/hypergraph"; export const Dapp = Entity.Schema( { name: Type.String, description: Type.optional(Type.String), xUrl: Type.optional(Type.String), githubUrl: Type.optional(Type.String) }, { - types: [Id('8ca136d0-698a-4bbf-a76b-8e2741b2dc8c')], + types: [Id('8ca136d0698a4bbfa76b8e2741b2dc8c')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'), - x: Id('0d625978-4b3c-4b57-a86f-de45c997c73c'), - github: Id('9eedefa8-60ae-4ac1-9a04-805054a4b094'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + description: Id('9b1f76ff9711404c861e59dc3fa7d037'), + x: Id('0d6259784b3c4b57a86fde45c997c73c'), + github: Id('9eedefa860ae4ac19a04805054a4b094'), }, }, ); @@ -360,7 +360,7 @@ export default function DappsExample() { isError, } = useEntities(Dapp, { mode: "public", - space: "3f32353d-3b27-4a13-b71a-746f06e1f7db", + space: "3f32353d3b274a13b71a746f06e1f7db", first: limit, }); @@ -418,16 +418,16 @@ import { Entity, Type, Id } from "@graphprotocol/hypergraph"; export const Investor = Entity.Schema( { name: Type.String }, { - types: [Id('331aea18-973c-4adc-8f53-614f598d262d')], - properties: { name: Id('a126ca53-0c8e-48d5-b888-82c734c38935') }, + types: [Id('331aea18973c4adc8f53614f598d262d')], + properties: { name: Id('a126ca530c8e48d5b88882c734c38935') }, }, ); export const FundingStage = Entity.Schema( { name: Type.String }, { - types: [Id('8d35d217-3fa1-4686-b74f-fcb3e9438067')], - properties: { name: Id('a126ca53-0c8e-48d5-b888-82c734c38935') }, + types: [Id('8d35d2173fa14686b74ffcb3e9438067')], + properties: { name: Id('a126ca530c8e48d5b88882c734c38935') }, }, ); @@ -440,13 +440,13 @@ export const InvestmentRound = Entity.Schema( raisedBy: Type.Relation(Project), }, { - types: [Id('8f03f4c9-59e4-44a8-a625-c0a40b1ff330')], + types: [Id('8f03f4c959e444a8a625c0a40b1ff330')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - raisedAmount: Id('16781706-dd9c-48bf-913e-cdf18b56034f'), - investors: Id('9b8a610a-fa35-486e-a479-e253dbdabb4f'), - fundingStages: Id('e278c3d4-78b9-4222-b272-5a39a8556bd2'), - raisedBy: Id('b4878d1a-0609-488d-b8a6-e19862d6b62f'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + raisedAmount: Id('16781706dd9c48bf913ecdf18b56034f'), + investors: Id('9b8a610afa35486ea479e253dbdabb4f'), + fundingStages: Id('e278c3d478b94222b2725a39a8556bd2'), + raisedBy: Id('b4878d1a0609488db8a6e19862d6b62f'), }, }, ); @@ -469,7 +469,7 @@ export default function InvestmentRoundsExample() { isError, } = useEntities(InvestmentRound, { mode: "public", - space: "3f32353d-3b27-4a13-b71a-746f06e1f7db", + space: "3f32353d3b274a13b71a746f06e1f7db", first: limit, include: { investors: {}, @@ -539,11 +539,11 @@ import { Entity, Type, Id } from "@graphprotocol/hypergraph"; export const Asset = Entity.Schema( { name: Type.String, symbol: Type.optional(Type.String), blockchainAddress: Type.optional(Type.String) }, { - types: [Id('f8780a80-c238-4a2a-96cb-567d88b1aa63')], + types: [Id('f8780a80c2384a2a96cb567d88b1aa63')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - symbol: Id('ace1e96c-9b83-47b4-bd33-1d302ec0a0f5'), - blockchainAddress: Id('56b5944f-f059-48d1-b0fa-34abe84219da'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + symbol: Id('ace1e96c9b8347b4bd331d302ec0a0f5'), + blockchainAddress: Id('56b5944ff05948d1b0fa34abe84219da'), }, }, ); @@ -566,7 +566,7 @@ export default function AssetMarketExample() { isError, } = useEntities(Asset, { mode: "public", - space: "3f32353d-3b27-4a13-b71a-746f06e1f7db", + space: "3f32353d3b274a13b71a746f06e1f7db", first: limit, }); diff --git a/docs/docs/quickstart.md b/docs/docs/quickstart.md index f3dab785..ff8a9c13 100644 --- a/docs/docs/quickstart.md +++ b/docs/docs/quickstart.md @@ -42,10 +42,10 @@ Open the browser and navigate to the development server URL shown in your termin A few example datasets to use when building your apps are available here: -- [Web3 projects](https://testnet.geobrowser.io/space/3f32353d-3b27-4a13-b71a-746f06e1f7db/0f3e0e21-1636-435a-850f-6f57d616e28e) -- [Web3 VCs](https://testnet.geobrowser.io/space/3f32353d-3b27-4a13-b71a-746f06e1f7db/d8ec3f57-7601-4bef-a648-a64799dfd964) -- [Web3 DAPPs](https://testnet.geobrowser.io/space/3f32353d-3b27-4a13-b71a-746f06e1f7db/09d3188c-8e20-4083-a6ad-e696cc493c7a) -- [Token Values](https://testnet.geobrowser.io/space/2df11968-9d1c-489f-91b7-bdc88b472161/f8780a80-c238-4a2a-96cb-567d88b1aa63) --> +- [Web3 projects](https://testnet.geobrowser.io/space/3f32353d3b274a13b71a746f06e1f7db/0f3e0e211636435a850f6f57d616e28e) +- [Web3 VCs](https://testnet.geobrowser.io/space/3f32353d3b274a13b71a746f06e1f7db/d8ec3f5776014befa648a64799dfd964) +- [Web3 DAPPs](https://testnet.geobrowser.io/space/3f32353d3b274a13b71a746f06e1f7db/09d3188c8e204083a6ade696cc493c7a) +- [Token Values](https://testnet.geobrowser.io/space/2df119689d1c489f91b7bdc88b472161/f8780a80c2384a2a96cb567d88b1aa63) --> --- diff --git a/docs/docs/spaces.md b/docs/docs/spaces.md index 62092050..a6ced3ce 100644 --- a/docs/docs/spaces.md +++ b/docs/docs/spaces.md @@ -14,7 +14,7 @@ Public spaces can be found at [Geo Browser](https://www.geobrowser.io/root), whe Indexer API that indexes all the public spaces and the content in it! -[Railway Graphql API](https://api-testnet.geobrowser.io/graphql) +[Railway Graphql API](https://api-testnet.geobrowser.io/v2/graphql) ## Private Spaces diff --git a/package.json b/package.json index bde3a1b7..734fc0fd 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@changesets/cli": "^2.29.8", "@effect/language-service": "^0.40.0", "@effect/vitest": "^0.25.1", - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "babel-plugin-annotate-pure-calls": "^0.5.0", "glob": "^11.0.3", "pkg-pr-new": "^0.0.56", diff --git a/packages/hypergraph-react/package.json b/packages/hypergraph-react/package.json index 6626f44d..ef3a7dcc 100644 --- a/packages/hypergraph-react/package.json +++ b/packages/hypergraph-react/package.json @@ -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.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@noble/hashes": "^1.8.0", "@tanstack/react-query": "^5.85.5", "effect": "^3.17.13", diff --git a/packages/hypergraph-react/src/hooks/use-spaces.ts b/packages/hypergraph-react/src/hooks/use-spaces.ts index d5b013ed..ff3a0742 100644 --- a/packages/hypergraph-react/src/hooks/use-spaces.ts +++ b/packages/hypergraph-react/src/hooks/use-spaces.ts @@ -38,7 +38,7 @@ export const useSpaces = (params: { mode: 'public' | 'private' }) => { queryKey: ['hypergraph-public-spaces', params.mode], queryFn: async () => { const result = await request( - `${Graph.TESTNET_API_ORIGIN}/graphql`, + `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, publicSpacesQueryDocument, { accountAddress, diff --git a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx index ed4b271c..4a16f486 100644 --- a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx +++ b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx @@ -44,9 +44,13 @@ type DeleteEntityResult = { }; export const generateDeleteOps = async ({ id }: { id: string; space: string }) => { - const result = await request(`${Graph.TESTNET_API_ORIGIN}/graphql`, deleteEntityQueryDocument, { - entityId: id, - }); + const result = await request( + `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, + deleteEntityQueryDocument, + { + entityId: id, + }, + ); if (result.entity === null) { throw new Error('Entity not found'); } diff --git a/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx b/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx index a8ea6703..70f9690b 100644 --- a/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx +++ b/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx @@ -45,7 +45,7 @@ export const useDeleteEntityPublic = ( return async ({ id, walletClient }: { id: string; walletClient: Connect.SmartSessionClient }) => { try { const result = await request( - `${Graph.TESTNET_API_ORIGIN}/graphql`, + `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, deleteEntityQueryDocument, { spaceId: space, diff --git a/packages/hypergraph-react/src/internal/use-public-space.tsx b/packages/hypergraph-react/src/internal/use-public-space.tsx index ca7304cf..2f26ee88 100644 --- a/packages/hypergraph-react/src/internal/use-public-space.tsx +++ b/packages/hypergraph-react/src/internal/use-public-space.tsx @@ -24,7 +24,7 @@ export const usePublicSpace = ({ spaceId, enabled }: { spaceId: string; enabled: const result = useQuery({ queryKey: ['hypergraph-public-space', spaceId], queryFn: async () => { - const result = await request(`${Graph.TESTNET_API_ORIGIN}/graphql`, spaceQueryDocument, { + const result = await request(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`, spaceQueryDocument, { spaceId, }); return result?.space?.page diff --git a/packages/hypergraph-react/src/prepare-publish.ts b/packages/hypergraph-react/src/prepare-publish.ts index afa7b310..ce9a1327 100644 --- a/packages/hypergraph-react/src/prepare-publish.ts +++ b/packages/hypergraph-react/src/prepare-publish.ts @@ -49,7 +49,7 @@ export const preparePublish = async ({ publicSpace, }: PreparePublishParams) => { const data = await request( - `${Graph.TESTNET_API_ORIGIN}/graphql`, + `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, entityToPublishQueryDocument, { entityId: entity.id, diff --git a/packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx b/packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx index 2fa010fb..3bbddbc0 100644 --- a/packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx +++ b/packages/hypergraph-react/test/HypergraphSpaceContext.test.tsx @@ -24,10 +24,10 @@ describe('HypergraphSpaceContext', () => { age: Type.Number, }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - age: Id('a427183d-3519-4c96-b80a-5a0c64daed41'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + age: Id('a427183d35194c96b80a5a0c64daed41'), }, }, ); @@ -38,10 +38,10 @@ describe('HypergraphSpaceContext', () => { email: Type.String, }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - email: Id('b667f951-4ede-40ef-83f8-fb5efee8c2ae'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + email: Id('b667f9514ede40ef83f8fb5efee8c2ae'), }, }, ); @@ -51,14 +51,14 @@ describe('HypergraphSpaceContext', () => { name: Type.String, }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); - const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f'; + const spaceId = '1e5e39daa00d4fd8b53b98095337112f'; let repo = new Repo({}); let queryClient = new QueryClient(); diff --git a/packages/hypergraph-react/test/prepare-publish.test.ts b/packages/hypergraph-react/test/prepare-publish.test.ts index 8b85a2ac..db5ac002 100644 --- a/packages/hypergraph-react/test/prepare-publish.test.ts +++ b/packages/hypergraph-react/test/prepare-publish.test.ts @@ -30,14 +30,14 @@ describe('preparePublish', () => { location: Type.Point, }, { - types: [Id('a06dd0c6-3d38-4be1-a865-8c95be0ca35a')], + types: [Id('a06dd0c63d384be1a8658c95be0ca35a')], properties: { - name: Id('ed49ed7b-17b3-4df6-b0b5-11f78d82e151'), - age: Id('a427183d-3519-4c96-b80a-5a0c64daed41'), - email: Id('43d6f432-c661-4c05-bc65-5ddacdfd50bf'), - isActive: Id('e4259554-42b1-46e4-84c3-f8681987770f'), - birthDate: Id('b5c0e2c7-9ac9-415e-8ffe-34f8b530f126'), - location: Id('45e707a5-4364-42fb-bb0b-927a5a8bc061'), + name: Id('ed49ed7b17b34df6b0b511f78d82e151'), + age: Id('a427183d35194c96b80a5a0c64daed41'), + email: Id('43d6f432c6614c05bc655ddacdfd50bf'), + isActive: Id('e425955442b146e484c3f8681987770f'), + birthDate: Id('b5c0e2c79ac9415e8ffe34f8b530f126'), + location: Id('45e707a5436442fbbb0b927a5a8bc061'), }, }, ); @@ -48,10 +48,10 @@ describe('preparePublish', () => { employees: Type.Relation(Person), }, { - types: [Id('1d113495-a1d8-4520-be14-8bc5378dc4ad')], + types: [Id('1d113495a1d84520be148bc5378dc4ad')], properties: { - name: Id('907722dc-2cd1-4bae-a81b-263186b29dff'), - employees: Id('6530b1dc-24ce-46ca-95e7-e89e87dd3839'), + name: Id('907722dc2cd14baea81b263186b29dff'), + employees: Id('6530b1dc24ce46ca95e7e89e87dd3839'), }, }, ); @@ -66,19 +66,19 @@ describe('preparePublish', () => { optionalPoint: Type.optional(Type.Point), }, { - types: [Id('3f9e28c1-5b7d-4e8f-9a2c-6d5e4f3a2b1c')], + types: [Id('3f9e28c15b7d4e8f9a2c6d5e4f3a2b1c')], properties: { - name: Id('2a8b9c7d-4e5f-6a7b-8c9d-0e1f2a3b4c5d'), - optionalNumber: Id('eaf9f4f8-5647-4228-aff5-8725368fc87c'), - optionalBoolean: Id('2742d8b6-3059-4adb-b439-fdfcd588dccb'), - optionalDate: Id('9b53690f-ea6d-4bd8-b4d3-9ea01e7f837f'), - optionalPoint: Id('0c1d2e3f-4a5b-4c7d-8e9f-0a1b2c3d4e5f'), + name: Id('2a8b9c7d4e5f6a7b8c9d0e1f2a3b4c5d'), + optionalNumber: Id('eaf9f4f856474228aff58725368fc87c'), + optionalBoolean: Id('2742d8b630594adbb439fdfcd588dccb'), + optionalDate: Id('9b53690fea6d4bd8b4d39ea01e7f837f'), + optionalPoint: Id('0c1d2e3f4a5b4c7d8e9f0a1b2c3d4e5f'), }, }, ); - const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f'; - const publicSpaceId = '2e5e39da-a00d-4fd8-b53b-98095337112f'; + const spaceId = '1e5e39daa00d4fd8b53b98095337112f'; + const publicSpaceId = '2e5e39daa00d4fd8b53b98095337112f'; let repo: Repo; @@ -115,7 +115,7 @@ describe('preparePublish', () => { it('should create ops for a new entity with all required fields', async () => { const entity = { - id: 'b7a8be83-7313-441b-804c-4798f1e9aca7', + id: 'b7a8be837313441b804c4798f1e9aca7', type: 'Person', name: 'John Doe', age: 30, @@ -133,7 +133,7 @@ describe('preparePublish', () => { const result = await preparePublish(params); - expect(mockRequest).toHaveBeenCalledWith(`${Graph.TESTNET_API_ORIGIN}/graphql`, expect.any(String), { + expect(mockRequest).toHaveBeenCalledWith(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`, expect.any(String), { entityId: entity.id, spaceId: publicSpaceId, }); @@ -147,7 +147,7 @@ describe('preparePublish', () => { it('should handle optional fields correctly when undefined', async () => { const entity = { - id: '224e5e89-a4d0-49de-ae1b-a94533e7e464', + id: '224e5e89a4d049deae1ba94533e7e464', type: 'Person', name: 'Jane Doe', age: 25, @@ -171,7 +171,7 @@ describe('preparePublish', () => { it('should throw error when required field is undefined', async () => { const entity = { - id: '7f8c9d2e-4b5a-6c7d-8e9f-0a1b2c3d4e5f', + id: '7f8c9d2e4b5a6c7d8e9f0a1b2c3d4e5f', type: 'Person', age: 25, isActive: false, @@ -191,7 +191,7 @@ describe('preparePublish', () => { it.skip('should handle entities with relations', async () => { const employee1 = { - id: 'f219bb22-5c2e-4923-8f1d-4565f362673d', + id: 'f219bb225c2e49238f1d4565f362673d', type: 'Person', name: 'Employee 1', age: 30, @@ -202,7 +202,7 @@ describe('preparePublish', () => { } as Entity.Entity; const employee2 = { - id: '94f01f8f-eb19-4fed-9c03-8e875058dc2a', + id: '94f01f8feb194fed9c038e875058dc2a', type: 'Person', name: 'Employee 2', age: 25, @@ -213,12 +213,12 @@ describe('preparePublish', () => { } as Entity.Entity; const company = { - id: 'd2033169-590f-4b88-bf18-4719949ea953', + id: 'd2033169590f4b88bf184719949ea953', type: 'Company', name: 'Test Company', employees: [ - { ...employee1, _relation: { id: 'ba8a247b-af9d-40eb-ad75-aa8a23fb9911' } }, - { ...employee2, _relation: { id: '4f7504e8-f2cc-4284-b2f2-2cd7fe1a6d90' } }, + { ...employee1, _relation: { id: 'ba8a247baf9d40ebad75aa8a23fb9911' } }, + { ...employee2, _relation: { id: '4f7504e8f2cc4284b2f22cd7fe1a6d90' } }, ], __schema: Company, } as unknown as Entity.Entity; @@ -241,9 +241,9 @@ describe('preparePublish', () => { mockRequest.mockResolvedValue({ entity: { valuesList: [ - { propertyId: 'ed49ed7b-17b3-4df6-b0b5-11f78d82e151', string: 'Old Name' }, - { propertyId: 'a427183d-3519-4c96-b80a-5a0c64daed41', number: 25 }, - { propertyId: 'e4259554-42b1-46e4-84c3-f8681987770f', boolean: false }, + { propertyId: 'ed49ed7b17b34df6b0b511f78d82e151', string: 'Old Name' }, + { propertyId: 'a427183d35194c96b80a5a0c64daed41', number: 25 }, + { propertyId: 'e425955442b146e484c3f8681987770f', boolean: false }, ], relationsList: [], }, @@ -252,7 +252,7 @@ describe('preparePublish', () => { it('should create update ops only for changed values', async () => { const entity = { - id: '19085414-a281-4472-a70d-aec835074be4', + id: '19085414a2814472a70daec835074be4', type: 'Person', name: 'New Name', // Changed from 'Old Name' age: 25, // Same as existing @@ -279,18 +279,18 @@ describe('preparePublish', () => { mockRequest.mockResolvedValue({ entity: { valuesList: [ - { propertyId: 'ed49ed7b-17b3-4df6-b0b5-11f78d82e151', string: 'Same Name' }, - { propertyId: 'a427183d-3519-4c96-b80a-5a0c64daed41', number: 30 }, - { propertyId: 'e4259554-42b1-46e4-84c3-f8681987770f', boolean: Graph.serializeBoolean(true) }, - { propertyId: 'b5c0e2c7-9ac9-415e-8ffe-34f8b530f126', time: Graph.serializeDate(new Date('1993-01-01')) }, - { propertyId: '45e707a5-4364-42fb-bb0b-927a5a8bc061', point: Graph.serializePoint([0, 0]) }, + { propertyId: 'ed49ed7b17b34df6b0b511f78d82e151', string: 'Same Name' }, + { propertyId: 'a427183d35194c96b80a5a0c64daed41', number: 30 }, + { propertyId: 'e425955442b146e484c3f8681987770f', boolean: Graph.serializeBoolean(true) }, + { propertyId: 'b5c0e2c79ac9415e8ffe34f8b530f126', time: Graph.serializeDate(new Date('1993-01-01')) }, + { propertyId: '45e707a5436442fbbb0b927a5a8bc061', point: Graph.serializePoint([0, 0]) }, ], relationsList: [], }, }); const entity = { - id: '778ee1c4-a4ac-424c-81b0-565147fca460', + id: '778ee1c4a4ac424c81b0565147fca460', type: 'Person', name: 'Same Name', age: 30, @@ -320,7 +320,7 @@ describe('preparePublish', () => { mockRequest.mockRejectedValue(new Error('Network error')); const entity = { - id: '5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b', + id: '5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b', type: 'Person', name: 'Test Person', age: 30, @@ -346,7 +346,7 @@ describe('preparePublish', () => { it('should handle different field types without errors', async () => { const entity = { - id: '1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d', + id: '1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d', type: 'Person', name: 'Test Person', age: 42, @@ -376,7 +376,7 @@ describe('preparePublish', () => { it('should create entity with all optional fields present', async () => { const entity = { - id: 'a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d', + id: 'a1b2c3d4e5f67a8b9c0d1e2f3a4b5c6d', type: 'OptionalFieldsEntity', name: 'Test Entity', optionalNumber: 42.5, @@ -399,7 +399,7 @@ describe('preparePublish', () => { it('should create entity with some optional fields undefined', async () => { const entity = { - id: '4d77f7bc-fb12-4a8e-9224-99b0b5cb09a9', + id: '4d77f7bcfb124a8e922499b0b5cb09a9', type: 'OptionalFieldsEntity', name: 'Test Entity', optionalNumber: 25, @@ -422,7 +422,7 @@ describe('preparePublish', () => { it('should create entity with only required fields (all optional fields undefined)', async () => { const entity = { - id: 'c3d4e5f6-a7b8-4c9d-8e2f-3a4b5c6d7e8f', + id: 'c3d4e5f6a7b84c9d8e2f3a4b5c6d7e8f', type: 'OptionalFieldsEntity', name: 'Minimal Entity', // All optional fields are undefined @@ -450,7 +450,7 @@ describe('preparePublish', () => { for (const testCase of testCases) { const entity = { - id: '6ced2b76-e465-47de-a7ff-ac9b27a41fd4', + id: '6ced2b76e46547dea7ffac9b27a41fd4', type: 'OptionalFieldsEntity', name: `Test ${testCase.description}`, optionalNumber: testCase.value, @@ -476,7 +476,7 @@ describe('preparePublish', () => { for (const testCase of testCases) { const entity = { - id: 'e68aa940-8452-48de-8523-292ba3771f81', + id: 'e68aa940845248de8523292ba3771f81', type: 'OptionalFieldsEntity', name: `Test ${testCase.description}`, optionalBoolean: testCase.value, @@ -503,7 +503,7 @@ describe('preparePublish', () => { for (const testCase of testCases) { const entity = { - id: 'fde9afb6-8c58-45bd-86a7-1e5222f92284', + id: 'fde9afb68c5845bd86a71e5222f92284', type: 'OptionalFieldsEntity', name: `Test ${testCase.description}`, optionalDate: testCase.value, @@ -530,7 +530,7 @@ describe('preparePublish', () => { for (const testCase of testCases) { const entity = { - id: '539cb728-ca6e-4d3c-ae6f-0b5b6bcb570a', + id: '539cb728ca6e4d3cae6f0b5b6bcb570a', type: 'OptionalFieldsEntity', name: `Test ${testCase.description}`, optionalPoint: testCase.value, @@ -549,7 +549,7 @@ describe('preparePublish', () => { it('should throw error when required field is missing from optional fields entity', async () => { const entity = { - id: 'd4e5f6a7-b8c9-4d1e-af3a-4b5c6d7e8f9a', + id: 'd4e5f6a7b8c94d1eaf3a4b5c6d7e8f9a', type: 'OptionalFieldsEntity', // name is missing (required field) optionalNumber: 42, @@ -570,14 +570,14 @@ describe('preparePublish', () => { // Mock existing entity with only required field mockRequest.mockResolvedValue({ entity: { - valuesList: [{ propertyId: '2a8b9c7d-4e5f-6a7b-8c9d-0e1f2a3b4c5d', value: 'Existing Entity' }], + valuesList: [{ propertyId: '2a8b9c7d4e5f6a7b8c9d0e1f2a3b4c5d', value: 'Existing Entity' }], relationsList: [], }, }); const result = await preparePublish({ entity: { - id: 'e5f6a7b8-c9d0-4e2f-ba4b-5c6d7e8f9a0b', + id: 'e5f6a7b8c9d04e2fba4b5c6d7e8f9a0b', name: 'Existing Entity', optionalNumber: 100, // New field optionalBoolean: true, // New field @@ -597,16 +597,16 @@ describe('preparePublish', () => { mockRequest.mockResolvedValue({ entity: { valuesList: [ - { propertyId: '2a8b9c7d-4e5f-6a7b-8c9d-0e1f2a3b4c5d', value: 'Existing Entity' }, - { propertyId: 'eaf9f4f8-5647-4228-aff5-8725368fc87c', value: Graph.serializeNumber(50) }, - { propertyId: '2742d8b6-3059-4adb-b439-fdfcd588dccb', value: Graph.serializeBoolean(true) }, + { propertyId: '2a8b9c7d4e5f6a7b8c9d0e1f2a3b4c5d', value: 'Existing Entity' }, + { propertyId: 'eaf9f4f856474228aff58725368fc87c', value: Graph.serializeNumber(50) }, + { propertyId: '2742d8b630594adbb439fdfcd588dccb', value: Graph.serializeBoolean(true) }, ], relationsList: [], }, }); const entity = { - id: 'f6a7b8c9-d0e1-4f3a-bb5c-6d7e8f9a0b1c', + id: 'f6a7b8c9d0e14f3abb5c6d7e8f9a0b1c', type: 'OptionalFieldsEntity', name: 'Existing Entity', // All optional fields are now undefined (removed) @@ -628,16 +628,16 @@ describe('preparePublish', () => { mockRequest.mockResolvedValue({ entity: { valuesList: [ - { propertyId: '2a8b9c7d-4e5f-6a7b-8c9d-0e1f2a3b4c5d', value: 'Existing Entity' }, - { propertyId: 'eaf9f4f8-5647-4228-aff5-8725368fc87c', value: Graph.serializeNumber(75) }, - { propertyId: '9b53690f-ea6d-4bd8-b4d3-9ea01e7f837f', value: Graph.serializeDate(new Date('2023-01-01')) }, + { propertyId: '2a8b9c7d4e5f6a7b8c9d0e1f2a3b4c5d', value: 'Existing Entity' }, + { propertyId: 'eaf9f4f856474228aff58725368fc87c', value: Graph.serializeNumber(75) }, + { propertyId: '9b53690fea6d4bd8b4d39ea01e7f837f', value: Graph.serializeDate(new Date('2023-01-01')) }, ], relationsList: [], }, }); const entity = { - id: '809c9f0a-dbe5-4208-9092-17135f282613', + id: '809c9f0adbe54208909217135f282613', type: 'OptionalFieldsEntity', name: 'Existing Entity', optionalNumber: 125, // Changed from 75 diff --git a/packages/hypergraph-react/test/space-ids-types.test.ts b/packages/hypergraph-react/test/space-ids-types.test.ts index 500e8217..86b33644 100644 --- a/packages/hypergraph-react/test/space-ids-types.test.ts +++ b/packages/hypergraph-react/test/space-ids-types.test.ts @@ -9,9 +9,9 @@ const Example = Entity.Schema( title: Type.String, }, { - types: [Id('2f608104-53e2-41bc-9efd-9e0fc984d02e')], + types: [Id('2f60810453e241bc9efd9e0fc984d02e')], properties: { - title: Id('7f52b98b-6d7d-4131-b5d8-fd2b2cf597a5'), + title: Id('7f52b98b6d7d4131b5d8fd2b2cf597a5'), }, }, ); diff --git a/packages/hypergraph/package.json b/packages/hypergraph/package.json index 20c96378..738e599c 100644 --- a/packages/hypergraph/package.json +++ b/packages/hypergraph/package.json @@ -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.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@noble/ciphers": "^1.3.0", "@noble/curves": "^1.9.7", "@noble/hashes": "^1.8.0", diff --git a/packages/hypergraph/src/cli/services/Model.ts b/packages/hypergraph/src/cli/services/Model.ts index ab388691..ca6be2da 100644 --- a/packages/hypergraph/src/cli/services/Model.ts +++ b/packages/hypergraph/src/cli/services/Model.ts @@ -2,6 +2,7 @@ import { Schema } from 'effect'; import * as Mapping from '../../mapping/Mapping.js'; import * as Utils from '../../mapping/Utils.js'; +import { GeoIdSchema } from '../../utils/geo-id.js'; export const TypesyncHypergraphSchemaStatus = Schema.NullOr( Schema.Literal( @@ -65,12 +66,12 @@ export class TypesyncHypergraphSchema extends Schema.Class(`${Graph.TESTNET_API_ORIGIN}/graphql`, queryDocument, queryVariables); + const result = await request( + `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, + queryDocument, + queryVariables, + ); const { data, invalidEntities, invalidRelationEntities } = parseResult( result, diff --git a/packages/hypergraph/src/entity/find-one-public.ts b/packages/hypergraph/src/entity/find-one-public.ts index 4db6236b..ea5a8723 100644 --- a/packages/hypergraph/src/entity/find-one-public.ts +++ b/packages/hypergraph/src/entity/find-one-public.ts @@ -165,7 +165,7 @@ export const findOnePublic = async < const queryDocument = buildEntityQuery(relationTypeIds, includeSpaceIds); - const result = await request(`${Graph.TESTNET_API_ORIGIN}/graphql`, queryDocument, { + const result = await request(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`, queryDocument, { id, spaceId: space, }); diff --git a/packages/hypergraph/src/entity/search-many-public.ts b/packages/hypergraph/src/entity/search-many-public.ts index 716c464a..ec78b37f 100644 --- a/packages/hypergraph/src/entity/search-many-public.ts +++ b/packages/hypergraph/src/entity/search-many-public.ts @@ -82,7 +82,7 @@ export const searchManyPublic = async < const filterParams = filter ? Utils.translateFilterToGraphql(filter, type) : {}; - const result = await request(`${Graph.TESTNET_API_ORIGIN}/graphql`, queryDocument, { + const result = await request(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`, queryDocument, { spaceId: space, typeIds, query, diff --git a/packages/hypergraph/src/mapping/Mapping.ts b/packages/hypergraph/src/mapping/Mapping.ts index d042f872..b155a889 100644 --- a/packages/hypergraph/src/mapping/Mapping.ts +++ b/packages/hypergraph/src/mapping/Mapping.ts @@ -1,6 +1,6 @@ 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'; /** @@ -46,20 +46,20 @@ export type MappingEntry = { * * const mapping: Mapping = { * Account: { - * typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + * typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], * properties: { - * username: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), - * createdAt: Id('64bfba51-a69b-4746-be4b-213214a879fe') + * username: Id('994edcff69964a779797a13e5e3efad8'), + * createdAt: Id('64bfba51a69b4746be4b213214a879fe') * } * }, * Event: { - * typeIds: [Id('0349187b-526f-435f-b2bb-9e9caf23127a')], + * typeIds: [Id('0349187b526f435fb2bb9e9caf23127a')], * properties: { - * name: Id('3808e060-fb4a-4d08-8069-35b8c8a1902b'), - * description: Id('1f0d9007-8da2-4b28-ab9f-3bc0709f4837'), + * name: Id('3808e060fb4a4d08806935b8c8a1902b'), + * description: Id('1f0d90078da24b28ab9f3bc0709f4837'), * }, * relations: { - * speaker: Id('a5fd07b1-120f-46c6-b46f-387ef98396a6') + * speaker: Id('a5fd07b1120f46c6b46f387ef98396a6') * } * } * } @@ -132,7 +132,7 @@ export function getDataType(val: string): SchemaDataType { const BaseSchemaTypeProperty = EffectSchema.Struct({ name: EffectSchema.NonEmptyTrimmedString, - knowledgeGraphId: EffectSchema.NullOr(EffectSchema.UUID), + knowledgeGraphId: EffectSchema.NullOr(GeoIdSchema), /** * @since 0.4.0 */ @@ -181,7 +181,7 @@ export function propertyIsRelation( */ export const SchemaType = EffectSchema.Struct({ name: EffectSchema.NonEmptyTrimmedString, - knowledgeGraphId: EffectSchema.NullOr(EffectSchema.UUID), + knowledgeGraphId: EffectSchema.NullOr(GeoIdSchema), properties: EffectSchema.Array(EffectSchema.Union(SchemaTypePropertyPrimitive, SchemaTypePropertyRelation)).pipe( EffectSchema.minItems(1), EffectSchema.filter(namesAreUnique, { @@ -233,12 +233,12 @@ export const Schema = EffectSchema.Struct({ types: [ { name: 'Account', - knowledgeGraphId: 'a5fd07b1-120f-46c6-b46f-387ef98396a6', + knowledgeGraphId: 'a5fd07b1120f46c6b46f387ef98396a6', properties: [ { name: 'name', optional: true, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', dataType: 'String', }, ], @@ -530,12 +530,12 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * types: [ * { * name: "Account", - * knowledgeGraphId: "a5fd07b1-120f-46c6-b46f-387ef98396a6", + * knowledgeGraphId: "a5fd07b1120f46c6b46f387ef98396a6", * properties: [ * { * name: "username", * dataType: "String", - * knowledgeGraphId: "994edcff-6996-4a77-9797-a13e5e3efad8" + * knowledgeGraphId: "994edcff69964a779797a13e5e3efad8" * }, * { * name: "createdAt", @@ -551,7 +551,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * { * name: "name", * dataType: "String", - * knowledgeGraphId: "3808e060-fb4a-4d08-8069-35b8c8a1902b" + * knowledgeGraphId: "3808e060fb4a4d08806935b8c8a1902b" * }, * { * name: "description", @@ -572,20 +572,20 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * * expect(mapping).toEqual({ * Account: { - * typeIds: [Id("a5fd07b1-120f-46c6-b46f-387ef98396a6")], // comes from input schema + * typeIds: [Id("a5fd07b1120f46c6b46f387ef98396a6")], // comes from input schema * properties: { - * username: Id("994edcff-6996-4a77-9797-a13e5e3efad8"), // comes from input schema - * createdAt: Id("8cd7d9ac-a878-4287-8000-e71e6f853117"), // generated from Graph.createProperty Op + * username: Id("994edcff69964a779797a13e5e3efad8"), // comes from input schema + * createdAt: Id("8cd7d9aca87842878000e71e6f853117"), // generated from Graph.createProperty Op * } * }, * Event: { - * typeIds: [Id("20b3fe39-8e62-41a0-b9cb-92743fd760da")], // generated from Graph.createType Op + * typeIds: [Id("20b3fe398e6241a0b9cb92743fd760da")], // generated from Graph.createType Op * properties: { - * name: Id("3808e060-fb4a-4d08-8069-35b8c8a1902b"), // comes from input schema - * description: Id("8fc4e17c-7581-4d6c-a712-943385afc7b5"), // generated from Graph.createProperty Op + * name: Id("3808e060fb4a4d08806935b8c8a1902b"), // comes from input schema + * description: Id("8fc4e17c75814d6ca712943385afc7b5"), // generated from Graph.createProperty Op * }, * relations: { - * speaker: Id("651ce59f-643b-4931-bf7a-5dc0ca0f5a47"), // generated from Graph.createProperty Op + * speaker: Id("651ce59f643b4931bf7a5dc0ca0f5a47"), // generated from Graph.createProperty Op * } * } * }) @@ -594,7 +594,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * { * type: "CREATE_PROPERTY", * property: { - * id: Id("8cd7d9ac-a878-4287-8000-e71e6f853117"), + * id: Id("8cd7d9aca87842878000e71e6f853117"), * dataType: "String" * } * }, @@ -602,7 +602,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * { * type: "CREATE_PROPERTY", * property: { - * id: Id("8fc4e17c-7581-4d6c-a712-943385afc7b5"), + * id: Id("8fc4e17c75814d6ca712943385afc7b5"), * dataType: "String" * } * }, @@ -610,7 +610,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * { * type: "CREATE_PROPERTY", * property: { - * id: Id("651ce59f-643b-4931-bf7a-5dc0ca0f5a47"), + * id: Id("651ce59f643b4931bf7a5dc0ca0f5a47"), * dataType: "RELATION" * } * }, @@ -618,7 +618,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * { * type: "CREATE_PROPERTY", * property: { - * id: Id("651ce59f-643b-4931-bf7a-5dc0ca0f5a47"), + * id: Id("651ce59f643b4931bf7a5dc0ca0f5a47"), * dataType: "RELATION" * } * }, diff --git a/packages/hypergraph/src/space/find-many-public.ts b/packages/hypergraph/src/space/find-many-public.ts index ce0ebbf1..0cfc192c 100644 --- a/packages/hypergraph/src/space/find-many-public.ts +++ b/packages/hypergraph/src/space/find-many-public.ts @@ -131,7 +131,7 @@ export const findManyPublic = async (params?: FindManyPublicParams) => { throw new Error('Provide only one of memberAccountAddress or editorAccountAddress when calling findManyPublic().'); } - const endpoint = `${Graph.TESTNET_API_ORIGIN}/graphql`; + const endpoint = `${Graph.TESTNET_API_ORIGIN}/v2/graphql`; if (memberAccountAddress) { const queryResult = await request(endpoint, memberSpacesQueryDocument, { diff --git a/packages/hypergraph/src/utils/automergeId.ts b/packages/hypergraph/src/utils/automergeId.ts index 5910589e..78e73c44 100644 --- a/packages/hypergraph/src/utils/automergeId.ts +++ b/packages/hypergraph/src/utils/automergeId.ts @@ -1,11 +1,13 @@ import bs58check from 'bs58check'; import { parse as parseUuid, stringify as stringifyUuid } from 'uuid'; +import { normalizeGeoId, toUuid } from './geo-id.js'; /** - * Converts a UUID into Base58Check + * Converts a Geo ID (UUID without dashes) into Base58Check */ -export function idToAutomergeId(uuid: string) { - const payload = parseUuid(uuid); +export function idToAutomergeId(id: string) { + // `id` parsing expects canonical formatting; accept dashless IDs too. + const payload = parseUuid(toUuid(id)); return bs58check.encode(payload); } @@ -14,5 +16,6 @@ export function idToAutomergeId(uuid: string) { */ export function automergeIdToId(base58CheckUuid: string) { const versionedPayload = bs58check.decode(base58CheckUuid); - return stringifyUuid(versionedPayload); + // Return dashless IDs to align with GRC-20 / API conventions. + return normalizeGeoId(stringifyUuid(versionedPayload)); } diff --git a/packages/hypergraph/src/utils/generateId.ts b/packages/hypergraph/src/utils/generateId.ts index 0739174e..2160210f 100644 --- a/packages/hypergraph/src/utils/generateId.ts +++ b/packages/hypergraph/src/utils/generateId.ts @@ -1,4 +1,5 @@ import { v4 as uuidv4 } from 'uuid'; +import { normalizeGeoId } from './geo-id.js'; /** * Generate a v4 UUID. @@ -14,5 +15,6 @@ import { v4 as uuidv4 } from 'uuid'; * @returns v4 UUID */ export function generateId() { - return uuidv4(); + // GRC-20 now uses UUIDs without dashes; normalize for internal consistency. + return normalizeGeoId(uuidv4()); } diff --git a/packages/hypergraph/src/utils/geo-id.ts b/packages/hypergraph/src/utils/geo-id.ts new file mode 100644 index 00000000..5d999cf4 --- /dev/null +++ b/packages/hypergraph/src/utils/geo-id.ts @@ -0,0 +1,51 @@ +import { Schema } from 'effect'; + +/** + * Hypergraph Geo IDs are UUIDs without dashes (32 hex chars). + * + * Since older code and tooling may still provide UUIDs with dashes, we accept both + * and normalize to the dashless format. + */ +export type GeoId = string; + +const UUID_WITH_DASHES_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; +const UUID_WITHOUT_DASHES_REGEX = /^[0-9a-f]{32}$/i; + +export function normalizeGeoId(id: string): GeoId { + return id.replaceAll('-', '').toLowerCase(); +} + +export function isGeoId(id: string): boolean { + if (UUID_WITHOUT_DASHES_REGEX.test(id)) return true; + if (UUID_WITH_DASHES_REGEX.test(id)) return true; + return UUID_WITHOUT_DASHES_REGEX.test(normalizeGeoId(id)); +} + +export function parseGeoId(id: string): GeoId { + const normalized = normalizeGeoId(id); + if (!UUID_WITHOUT_DASHES_REGEX.test(normalized)) { + throw new Error(`Invalid Geo ID (expected UUID with or without dashes): ${id}`); + } + return normalized; +} + +export function toUuid(id: string): string { + const normalized = parseGeoId(id); + return [ + normalized.slice(0, 8), + normalized.slice(8, 12), + normalized.slice(12, 16), + normalized.slice(16, 20), + normalized.slice(20), + ].join('-'); +} + +/** + * An Effect Schema that accepts UUIDs with or without dashes and always decodes/encodes + * to the dashless (normalized) `GeoId` format. + */ +export const GeoIdSchema = Schema.transform(Schema.String, Schema.String, { + strict: true, + decode: (value: string) => parseGeoId(value), + encode: (value: string) => parseGeoId(value), +}).pipe(Schema.annotations({ identifier: 'GeoId' })); diff --git a/packages/hypergraph/src/utils/index.ts b/packages/hypergraph/src/utils/index.ts index a76d4989..bb768ab7 100644 --- a/packages/hypergraph/src/utils/index.ts +++ b/packages/hypergraph/src/utils/index.ts @@ -5,6 +5,7 @@ export * from './base58.js'; export * from './convert-property-value.js'; export * from './convert-relations.js'; export * from './generateId.js'; +export * from './geo-id.js'; export * from './get-relation-type-ids.js'; export * from './hexBytesAddressUtils.js'; export * from './isRelation.js'; diff --git a/packages/hypergraph/test/cli/services/Utils.test.ts b/packages/hypergraph/test/cli/services/Utils.test.ts index 020ec49e..93537edb 100644 --- a/packages/hypergraph/test/cli/services/Utils.test.ts +++ b/packages/hypergraph/test/cli/services/Utils.test.ts @@ -165,28 +165,28 @@ export class JobOffer extends Entity.Class('JobOffer')({ // Use mapping from events app const mapping: Mapping = { Event: { - typeIds: [Id('7f9562d4-034d-4385-bf5c-f02cdebba47a')], + typeIds: [Id('7f9562d4034d4385bf5cf02cdebba47a')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - sponsors: Id('6860bfac-f703-4289-b789-972d0aaf3abe'), + sponsors: Id('6860bfacf7034289b789972d0aaf3abe'), }, }, Company: { - typeIds: [Id('6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5')], + typeIds: [Id('6c504df51a8f43d1bf2d1ef9fa5b08b5')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - jobOffers: Id('1203064e-9741-4235-89d4-97f4b22eddfb'), + jobOffers: Id('1203064e9741423589d497f4b22eddfb'), }, }, JobOffer: { - typeIds: [Id('f60585af-71b6-4674-9a26-b74ca6c1cceb')], + typeIds: [Id('f60585af71b646749a26b74ca6c1cceb')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - salary: Id('baa36ac9-78ac-4cf7-8394-6b2d3006bebe'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + salary: Id('baa36ac978ac4cf783946b2d3006bebe'), }, }, }; @@ -199,56 +199,56 @@ export class JobOffer extends Entity.Class('JobOffer')({ // Check Event entity with resolved IDs const eventEntity = result.types.find((t) => t.name === 'Event'); expect(eventEntity).toBeDefined(); - expect(eventEntity?.knowledgeGraphId).toBe('7f9562d4-034d-4385-bf5c-f02cdebba47a'); + expect(eventEntity?.knowledgeGraphId).toBe('7f9562d4034d4385bf5cf02cdebba47a'); expect(eventEntity?.properties).toHaveLength(2); expect(eventEntity?.properties[0]).toMatchObject({ name: 'name', dataType: 'String', - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', status: 'published', }); expect(eventEntity?.properties[1]).toMatchObject({ name: 'sponsors', dataType: 'Relation(Company)', relationType: 'Company', - knowledgeGraphId: '6860bfac-f703-4289-b789-972d0aaf3abe', + knowledgeGraphId: '6860bfacf7034289b789972d0aaf3abe', status: 'published', }); // Check Company entity with resolved IDs const companyEntity = result.types.find((t) => t.name === 'Company'); expect(companyEntity).toBeDefined(); - expect(companyEntity?.knowledgeGraphId).toBe('6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5'); + expect(companyEntity?.knowledgeGraphId).toBe('6c504df51a8f43d1bf2d1ef9fa5b08b5'); expect(companyEntity?.properties).toHaveLength(2); expect(companyEntity?.properties[0]).toMatchObject({ name: 'name', dataType: 'String', - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', status: 'published', }); expect(companyEntity?.properties[1]).toMatchObject({ name: 'jobOffers', dataType: 'Relation(JobOffer)', relationType: 'JobOffer', - knowledgeGraphId: '1203064e-9741-4235-89d4-97f4b22eddfb', + knowledgeGraphId: '1203064e9741423589d497f4b22eddfb', status: 'published', }); // Check JobOffer entity with resolved IDs const jobOfferEntity = result.types.find((t) => t.name === 'JobOffer'); expect(jobOfferEntity).toBeDefined(); - expect(jobOfferEntity?.knowledgeGraphId).toBe('f60585af-71b6-4674-9a26-b74ca6c1cceb'); + expect(jobOfferEntity?.knowledgeGraphId).toBe('f60585af71b646749a26b74ca6c1cceb'); expect(jobOfferEntity?.properties).toHaveLength(2); expect(jobOfferEntity?.properties[0]).toMatchObject({ name: 'name', dataType: 'String', - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', status: 'published', }); expect(jobOfferEntity?.properties[1]).toMatchObject({ name: 'salary', dataType: 'Number', - knowledgeGraphId: 'baa36ac9-78ac-4cf7-8394-6b2d3006bebe', + knowledgeGraphId: 'baa36ac978ac4cf783946b2d3006bebe', status: 'published', }); }); @@ -385,9 +385,9 @@ describe('parseHypergraphMapping', () => { it('should return the single mapping when only one valid mapping found', ({ expect }) => { const mapping: Mapping = { User: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], properties: { - name: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), + name: Id('994edcff69964a779797a13e5e3efad8'), }, }, }; @@ -404,13 +404,13 @@ describe('parseHypergraphMapping', () => { it('should prefer "mapping" when multiple valid mappings exist', ({ expect }) => { const mappingPreferred: Mapping = { User: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], }, }; const otherMapping: Mapping = { Post: { - typeIds: [Id('b5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('b5fd07b1120f46c6b46f387ef98396a6')], }, }; @@ -426,13 +426,13 @@ describe('parseHypergraphMapping', () => { it('should prefer "default" when multiple valid mappings exist but no "mapping"', ({ expect }) => { const defaultMapping: Mapping = { User: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], }, }; const otherMapping: Mapping = { Post: { - typeIds: [Id('b5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('b5fd07b1120f46c6b46f387ef98396a6')], }, }; @@ -448,13 +448,13 @@ describe('parseHypergraphMapping', () => { it('should prefer "config" when no "mapping" or "default" exists', ({ expect }) => { const configMapping: Mapping = { User: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], }, }; const otherMapping: Mapping = { Post: { - typeIds: [Id('b5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('b5fd07b1120f46c6b46f387ef98396a6')], }, }; @@ -470,13 +470,13 @@ describe('parseHypergraphMapping', () => { it('should return first mapping when multiple exist with no preferred names', ({ expect }) => { const firstMapping: Mapping = { User: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], }, }; const secondMapping: Mapping = { Post: { - typeIds: [Id('b5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('b5fd07b1120f46c6b46f387ef98396a6')], }, }; @@ -492,21 +492,21 @@ describe('parseHypergraphMapping', () => { it('should handle mappings with full structure including properties and relations', ({ expect }) => { const complexMapping: Mapping = { Event: { - typeIds: [Id('7f9562d4-034d-4385-bf5c-f02cdebba47a')], + typeIds: [Id('7f9562d4034d4385bf5cf02cdebba47a')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - sponsors: Id('6860bfac-f703-4289-b789-972d0aaf3abe'), + sponsors: Id('6860bfacf7034289b789972d0aaf3abe'), }, }, Company: { - typeIds: [Id('6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5')], + typeIds: [Id('6c504df51a8f43d1bf2d1ef9fa5b08b5')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, relations: { - jobOffers: Id('1203064e-9741-4235-89d4-97f4b22eddfb'), + jobOffers: Id('1203064e9741423589d497f4b22eddfb'), }, }, }; @@ -521,7 +521,7 @@ describe('parseHypergraphMapping', () => { User: { typeIds: [], properties: { - name: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), + name: Id('994edcff69964a779797a13e5e3efad8'), }, }, }; @@ -536,7 +536,7 @@ describe('parseHypergraphMapping', () => { User: { typeIds: 'not-an-array', properties: { - name: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), + name: Id('994edcff69964a779797a13e5e3efad8'), }, }, }; @@ -1010,20 +1010,20 @@ export class User extends Entity.Class('User')({ types: [ { name: 'User', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'email', dataType: 'String' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: true, status: 'published' as const, }, @@ -1031,27 +1031,27 @@ export class User extends Entity.Class('User')({ }, { name: 'Event', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'title', dataType: 'String' as const, - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'start_date', dataType: 'Date' as const, - knowledgeGraphId: 'd126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'd126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'location', dataType: 'Point' as const, - knowledgeGraphId: 'e126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'e126ca530c8e48d5b88882c734c38935', optional: true, status: 'published' as const, }, @@ -1059,7 +1059,7 @@ export class User extends Entity.Class('User')({ name: 'organizer', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'f126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'f126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1172,13 +1172,13 @@ describe('buildMappingFileFromSchema', () => { types: [ { name: 'User', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1193,9 +1193,9 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { User: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1208,13 +1208,13 @@ export const mapping: Mapping = { types: [ { name: 'User', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1222,13 +1222,13 @@ export const mapping: Mapping = { }, { name: 'Post', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'title', dataType: 'String' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1243,15 +1243,15 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { User: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935") }, }, Post: { - typeIds: [Id("8f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("8f9562d4034d4385bf5cf02cdebba47a")], properties: { - title: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + title: Id("b126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1264,27 +1264,27 @@ export const mapping: Mapping = { types: [ { name: 'Product', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'price', dataType: 'Number' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'available', dataType: 'Boolean' as const, - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1299,11 +1299,11 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Product: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - price: Id("b126ca53-0c8e-48d5-b888-82c734c38935"), - available: Id("c126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935"), + price: Id("b126ca530c8e48d5b88882c734c38935"), + available: Id("c126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1316,13 +1316,13 @@ export const mapping: Mapping = { types: [ { name: 'Post', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'title', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1330,7 +1330,7 @@ export const mapping: Mapping = { name: 'author', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1338,13 +1338,13 @@ export const mapping: Mapping = { }, { name: 'User', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1359,18 +1359,18 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Post: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - title: Id("a126ca53-0c8e-48d5-b888-82c734c38935") + title: Id("a126ca530c8e48d5b88882c734c38935") }, relations: { - author: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + author: Id("b126ca530c8e48d5b88882c734c38935") }, }, User: { - typeIds: [Id("8f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("8f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("c126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("c126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1383,20 +1383,20 @@ export const mapping: Mapping = { types: [ { name: 'Event', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'description', dataType: 'String' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1404,7 +1404,7 @@ export const mapping: Mapping = { name: 'sponsors', dataType: 'Relation(Company)' as const, relationType: 'Company', - knowledgeGraphId: '6860bfac-f703-4289-b789-972d0aaf3abe', + knowledgeGraphId: '6860bfacf7034289b789972d0aaf3abe', optional: undefined, status: 'published' as const, }, @@ -1412,7 +1412,7 @@ export const mapping: Mapping = { name: 'attendees', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'd126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'd126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1420,13 +1420,13 @@ export const mapping: Mapping = { }, { name: 'Company', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'e126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'e126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1434,13 +1434,13 @@ export const mapping: Mapping = { }, { name: 'User', - knowledgeGraphId: '9f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '9f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'f126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'f126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1455,26 +1455,26 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Event: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - description: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935"), + description: Id("b126ca530c8e48d5b88882c734c38935") }, relations: { - sponsors: Id("6860bfac-f703-4289-b789-972d0aaf3abe"), - attendees: Id("d126ca53-0c8e-48d5-b888-82c734c38935") + sponsors: Id("6860bfacf7034289b789972d0aaf3abe"), + attendees: Id("d126ca530c8e48d5b88882c734c38935") }, }, Company: { - typeIds: [Id("8f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("8f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("e126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("e126ca530c8e48d5b88882c734c38935") }, }, User: { - typeIds: [Id("9f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("9f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("f126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("f126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1520,20 +1520,20 @@ export const mapping: Mapping = { types: [ { name: 'Settings', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'theme', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'notifications_enabled', dataType: 'Boolean' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1548,10 +1548,10 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Settings: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - theme: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - notificationsEnabled: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + theme: Id("a126ca530c8e48d5b88882c734c38935"), + notificationsEnabled: Id("b126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1564,14 +1564,14 @@ export const mapping: Mapping = { types: [ { name: 'Friendship', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'user1', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1579,7 +1579,7 @@ export const mapping: Mapping = { name: 'user2', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1587,13 +1587,13 @@ export const mapping: Mapping = { }, { name: 'User', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1608,16 +1608,16 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Friendship: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], relations: { - user1: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - user2: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + user1: Id("a126ca530c8e48d5b88882c734c38935"), + user2: Id("b126ca530c8e48d5b88882c734c38935") }, }, User: { - typeIds: [Id("8f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("8f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("c126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("c126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1630,20 +1630,20 @@ export const mapping: Mapping = { types: [ { name: 'UserProfile', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'first_name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'last_name', dataType: 'String' as const, - knowledgeGraphId: 'b126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'b126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1651,7 +1651,7 @@ export const mapping: Mapping = { name: 'profile_picture', dataType: 'Relation(Image)' as const, relationType: 'Image', - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1659,13 +1659,13 @@ export const mapping: Mapping = { }, { name: 'Image', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'url', dataType: 'String' as const, - knowledgeGraphId: 'd126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'd126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1680,19 +1680,19 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { UserProfile: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - firstName: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - lastName: Id("b126ca53-0c8e-48d5-b888-82c734c38935") + firstName: Id("a126ca530c8e48d5b88882c734c38935"), + lastName: Id("b126ca530c8e48d5b88882c734c38935") }, relations: { - profilePicture: Id("c126ca53-0c8e-48d5-b888-82c734c38935") + profilePicture: Id("c126ca530c8e48d5b88882c734c38935") }, }, Image: { - typeIds: [Id("8f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("8f9562d4034d4385bf5cf02cdebba47a")], properties: { - url: Id("d126ca53-0c8e-48d5-b888-82c734c38935") + url: Id("d126ca530c8e48d5b88882c734c38935") }, }, }`; @@ -1705,13 +1705,13 @@ export const mapping: Mapping = { types: [ { name: 'Article', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'title', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1726,7 +1726,7 @@ export const mapping: Mapping = { name: 'author', dataType: 'Relation(User)' as const, relationType: 'User', - knowledgeGraphId: 'c126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'c126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1734,13 +1734,13 @@ export const mapping: Mapping = { }, { name: 'User', - knowledgeGraphId: '8f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '8f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'd126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'd126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1752,8 +1752,8 @@ export const mapping: Mapping = { const result = buildMappingFileFromSchema(schema); // Check structure and that title and author have the expected IDs - expect(result).toMatch(/title: Id\("a126ca53-0c8e-48d5-b888-82c734c38935"\)/); - expect(result).toMatch(/author: Id\("c126ca53-0c8e-48d5-b888-82c734c38935"\)/); + expect(result).toMatch(/title: Id\("a126ca530c8e48d5b88882c734c38935"\)/); + expect(result).toMatch(/author: Id\("c126ca530c8e48d5b88882c734c38935"\)/); // content should have a generated ID expect(result).toMatch(/content: Id\("[a-f0-9-]+"\)/); }); @@ -1763,13 +1763,13 @@ export const mapping: Mapping = { types: [ { name: 'Event', - knowledgeGraphId: '7f9562d4-034d-4385-bf5c-f02cdebba47a', + knowledgeGraphId: '7f9562d4034d4385bf5cf02cdebba47a', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1777,7 +1777,7 @@ export const mapping: Mapping = { name: 'sponsors', dataType: 'Relation(Company)' as const, relationType: 'Company', - knowledgeGraphId: '6860bfac-f703-4289-b789-972d0aaf3abe', + knowledgeGraphId: '6860bfacf7034289b789972d0aaf3abe', optional: undefined, status: 'published' as const, }, @@ -1785,13 +1785,13 @@ export const mapping: Mapping = { }, { name: 'Company', - knowledgeGraphId: '6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5', + knowledgeGraphId: '6c504df51a8f43d1bf2d1ef9fa5b08b5', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, @@ -1799,7 +1799,7 @@ export const mapping: Mapping = { name: 'job_offers', dataType: 'Relation(JobOffer)' as const, relationType: 'JobOffer', - knowledgeGraphId: '1203064e-9741-4235-89d4-97f4b22eddfb', + knowledgeGraphId: '1203064e9741423589d497f4b22eddfb', optional: undefined, status: 'published' as const, }, @@ -1807,20 +1807,20 @@ export const mapping: Mapping = { }, { name: 'JobOffer', - knowledgeGraphId: 'f60585af-71b6-4674-9a26-b74ca6c1cceb', + knowledgeGraphId: 'f60585af71b646749a26b74ca6c1cceb', status: 'published' as const, properties: [ { name: 'name', dataType: 'String' as const, - knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935', + knowledgeGraphId: 'a126ca530c8e48d5b88882c734c38935', optional: undefined, status: 'published' as const, }, { name: 'salary', dataType: 'Number' as const, - knowledgeGraphId: 'baa36ac9-78ac-4cf7-8394-6b2d3006bebe', + knowledgeGraphId: 'baa36ac978ac4cf783946b2d3006bebe', optional: undefined, status: 'published' as const, }, @@ -1835,28 +1835,28 @@ import { Id } from '@graphprotocol/hypergraph'; export const mapping: Mapping = { Event: { - typeIds: [Id("7f9562d4-034d-4385-bf5c-f02cdebba47a")], + typeIds: [Id("7f9562d4034d4385bf5cf02cdebba47a")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935") }, relations: { - sponsors: Id("6860bfac-f703-4289-b789-972d0aaf3abe") + sponsors: Id("6860bfacf7034289b789972d0aaf3abe") }, }, Company: { - typeIds: [Id("6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5")], + typeIds: [Id("6c504df51a8f43d1bf2d1ef9fa5b08b5")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935") + name: Id("a126ca530c8e48d5b88882c734c38935") }, relations: { - jobOffers: Id("1203064e-9741-4235-89d4-97f4b22eddfb") + jobOffers: Id("1203064e9741423589d497f4b22eddfb") }, }, JobOffer: { - typeIds: [Id("f60585af-71b6-4674-9a26-b74ca6c1cceb")], + typeIds: [Id("f60585af71b646749a26b74ca6c1cceb")], properties: { - name: Id("a126ca53-0c8e-48d5-b888-82c734c38935"), - salary: Id("baa36ac9-78ac-4cf7-8394-6b2d3006bebe") + name: Id("a126ca530c8e48d5b88882c734c38935"), + salary: Id("baa36ac978ac4cf783946b2d3006bebe") }, }, }`; diff --git a/packages/hypergraph/test/entity/entity.test.ts b/packages/hypergraph/test/entity/entity.test.ts index 9aab3996..790670e1 100644 --- a/packages/hypergraph/test/entity/entity.test.ts +++ b/packages/hypergraph/test/entity/entity.test.ts @@ -13,10 +13,10 @@ describe('Entity', () => { age: Type.Number, }, { - types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')], + types: [Id('bffa181ea333495b949c57f2831d7eca')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - age: Id('a427183d-3519-4c96-b80a-5a0c64daed41'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + age: Id('a427183d35194c96b80a5a0c64daed41'), }, }, ); @@ -27,10 +27,10 @@ describe('Entity', () => { email: Type.String, }, { - types: [Id('2a7db9c2-df00-4a19-82d0-91522777f980')], + types: [Id('2a7db9c2df004a1982d091522777f980')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - email: Id('b667f951-4ede-40ef-83f8-fb5efee8c2ae'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + email: Id('b667f9514ede40ef83f8fb5efee8c2ae'), }, }, ); @@ -40,9 +40,9 @@ describe('Entity', () => { name: Type.String, }, { - types: [Id('2ce4d8ff-a6ca-4977-8b4e-11c272a7eb1c')], + types: [Id('2ce4d8ffa6ca49778b4e11c272a7eb1c')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); @@ -52,14 +52,14 @@ describe('Entity', () => { name: Type.String, }, { - types: [Id('2ce4d8ff-a6ca-4977-8b4e-11c272a7eb1c')], + types: [Id('2ce4d8ffa6ca49778b4e11c272a7eb1c')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), + name: Id('a126ca530c8e48d5b88882c734c38935'), }, }, ); - const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f'; + const spaceId = '1e5e39daa00d4fd8b53b98095337112f'; const automergeDocId = idToAutomergeId(spaceId); let repo: Repo; diff --git a/packages/hypergraph/test/entity/find-many-public.test.ts b/packages/hypergraph/test/entity/find-many-public.test.ts index 7e99d825..3a6a3ad0 100644 --- a/packages/hypergraph/test/entity/find-many-public.test.ts +++ b/packages/hypergraph/test/entity/find-many-public.test.ts @@ -6,16 +6,16 @@ import * as Type from '../../src/type/type.js'; import { getRelationTypeIds } from '../../src/utils/get-relation-type-ids.js'; import { getRelationAlias } from '../../src/utils/relation-query-helpers.js'; -const TITLE_PROPERTY_ID = Id('79c1a951-0074-4010-87d0-7501ef9d7b3d'); -const CHILDREN_RELATION_PROPERTY_ID = Id('ca7c7167-2502-49c4-90b0-84c147f9b12b'); -const CHILD_NAME_PROPERTY_ID = Id('25584af0-3941-4ab9-86f7-a603305b19bb'); +const TITLE_PROPERTY_ID = Id('79c1a9510074401087d07501ef9d7b3d'); +const CHILDREN_RELATION_PROPERTY_ID = Id('ca7c7167250249c490b084c147f9b12b'); +const CHILD_NAME_PROPERTY_ID = Id('25584af039414ab986f7a603305b19bb'); const Child = Entity.Schema( { name: Type.String, }, { - types: [Id('3c2ae3aa-4ec1-41e3-bc4c-1fe7a5e07bc1')], + types: [Id('3c2ae3aa4ec141e3bc4c1fe7a5e07bc1')], properties: { name: CHILD_NAME_PROPERTY_ID, }, @@ -28,7 +28,7 @@ const Parent = Entity.Schema( children: Type.Relation(Child), }, { - types: [Id('af571d8c-06d4-4add-8cfa-4c6b50412254')], + types: [Id('af571d8c06d44add8cfa4c6b50412254')], properties: { title: TITLE_PROPERTY_ID, children: CHILDREN_RELATION_PROPERTY_ID, diff --git a/packages/hypergraph/test/entity/find-one-public.test.ts b/packages/hypergraph/test/entity/find-one-public.test.ts index bedb7b08..7f6bb61c 100644 --- a/packages/hypergraph/test/entity/find-one-public.test.ts +++ b/packages/hypergraph/test/entity/find-one-public.test.ts @@ -12,16 +12,16 @@ vi.mock('graphql-request', () => ({ request: mockRequest, })); -const TITLE_PROPERTY_ID = Id('c6c9ad0f-f333-4f50-8e92-8d93bc38b63c'); -const CHILDREN_RELATION_PROPERTY_ID = Id('1e8caeb9-3e64-4dd3-b7a4-3d9cc714d4f2'); -const CHILD_NAME_PROPERTY_ID = Id('7a9e63df-80e3-4c44-baf4-844a6b9511cd'); +const TITLE_PROPERTY_ID = Id('c6c9ad0ff3334f508e928d93bc38b63c'); +const CHILDREN_RELATION_PROPERTY_ID = Id('1e8caeb93e644dd3b7a43d9cc714d4f2'); +const CHILD_NAME_PROPERTY_ID = Id('7a9e63df80e34c44baf4844a6b9511cd'); const Child = Entity.Schema( { name: Type.String, }, { - types: [Id('1a6d868a-cb0c-4b2d-aef8-8e4e8a9a6a55')], + types: [Id('1a6d868acb0c4b2daef88e4e8a9a6a55')], properties: { name: CHILD_NAME_PROPERTY_ID, }, @@ -34,7 +34,7 @@ const Parent = Entity.Schema( children: Type.Relation(Child), }, { - types: [Id('6a9fee9c-0a62-4272-b64d-99c83f3f970b')], + types: [Id('6a9fee9c0a624272b64d99c83f3f970b')], properties: { title: TITLE_PROPERTY_ID, children: CHILDREN_RELATION_PROPERTY_ID, diff --git a/packages/hypergraph/test/entity/findMany.test.ts b/packages/hypergraph/test/entity/findMany.test.ts index 7cf3d8b5..5c223250 100644 --- a/packages/hypergraph/test/entity/findMany.test.ts +++ b/packages/hypergraph/test/entity/findMany.test.ts @@ -16,11 +16,11 @@ describe('findMany with filters', () => { isActive: Type.Boolean, }, { - types: [Id('bce10418-2e20-4903-ad75-1bc496c24635')], + types: [Id('bce104182e204903ad751bc496c24635')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - age: Id('a427183d-3519-4c96-b80a-5a0c64daed41'), - isActive: Id('e4259554-42b1-46e4-84c3-f8681987770f'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + age: Id('a427183d35194c96b80a5a0c64daed41'), + isActive: Id('e425955442b146e484c3f8681987770f'), }, }, ); @@ -32,16 +32,16 @@ describe('findMany with filters', () => { category: Type.String, }, { - types: [Id('0961fc6e-d254-491d-a54b-ae44d53c4ac4')], + types: [Id('0961fc6ed254491da54bae44d53c4ac4')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - price: Id('f9a43200-51b3-4278-9332-de6fcc7acb09'), - category: Id('84159eba-8699-4cd0-8042-c66dc03fe237'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + price: Id('f9a4320051b342789332de6fcc7acb09'), + category: Id('84159eba86994cd08042c66dc03fe237'), }, }, ); - const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f'; + const spaceId = '1e5e39daa00d4fd8b53b98095337112f'; const automergeDocId = idToAutomergeId(spaceId); let repo: Repo; diff --git a/packages/hypergraph/test/entity/space-ids-types.test.ts b/packages/hypergraph/test/entity/space-ids-types.test.ts index 689a38b7..e0536738 100644 --- a/packages/hypergraph/test/entity/space-ids-types.test.ts +++ b/packages/hypergraph/test/entity/space-ids-types.test.ts @@ -11,9 +11,9 @@ const Example = Entity.Schema( title: Type.String, }, { - types: [Id('e3c9a9ea-4a76-4d93-bcd7-bcfd277f1d43')], + types: [Id('e3c9a9ea4a764d93bcd7bcfd277f1d43')], properties: { - title: Id('2a2c8a86-1f6c-4051-868f-b0f2eddd86db'), + title: Id('2a2c8a861f6c4051868fb0f2eddd86db'), }, }, ); diff --git a/packages/hypergraph/test/mapping/Mapping.test.ts b/packages/hypergraph/test/mapping/Mapping.test.ts index f83bf25a..afceb766 100644 --- a/packages/hypergraph/test/mapping/Mapping.test.ts +++ b/packages/hypergraph/test/mapping/Mapping.test.ts @@ -126,17 +126,17 @@ describe('Mapping', () => { types: [ { name: 'Account', - knowledgeGraphId: 'a5fd07b1-120f-46c6-b46f-387ef98396a6', + knowledgeGraphId: 'a5fd07b1120f46c6b46f387ef98396a6', properties: [ { name: 'username', dataType: 'String', - knowledgeGraphId: '994edcff-6996-4a77-9797-a13e5e3efad8', + knowledgeGraphId: '994edcff69964a779797a13e5e3efad8', }, { name: 'createdAt', dataType: 'Date', - knowledgeGraphId: '64bfba51-a69b-4746-be4b-213214a879fe', + knowledgeGraphId: '64bfba51a69b4746be4b213214a879fe', }, ], }, @@ -147,7 +147,7 @@ describe('Mapping', () => { { name: 'name', dataType: 'String', - knowledgeGraphId: '3808e060-fb4a-4d08-8069-35b8c8a1902b', + knowledgeGraphId: '3808e060fb4a4d08806935b8c8a1902b', }, { name: 'description', @@ -166,16 +166,16 @@ describe('Mapping', () => { }); const expected: Mapping = { Account: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], properties: { - username: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), - createdAt: Id('64bfba51-a69b-4746-be4b-213214a879fe'), + username: Id('994edcff69964a779797a13e5e3efad8'), + createdAt: Id('64bfba51a69b4746be4b213214a879fe'), }, }, Event: { typeIds: [expect.any(String)], properties: { - name: Id('3808e060-fb4a-4d08-8069-35b8c8a1902b'), + name: Id('3808e060fb4a4d08806935b8c8a1902b'), description: expect.any(String), }, relations: { @@ -191,7 +191,7 @@ describe('Mapping', () => { types: [ { name: 'Account', - knowledgeGraphId: 'a5fd07b1-120f-46c6-b46f-387ef98396a6', + knowledgeGraphId: 'a5fd07b1120f46c6b46f387ef98396a6', properties: [ { name: 'username', @@ -221,7 +221,7 @@ describe('Mapping', () => { }); const expected: Mapping = { Account: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], properties: { username: expect.any(String), }, @@ -297,12 +297,12 @@ describe('Mapping', () => { types: [ { name: 'Account', - knowledgeGraphId: 'a5fd07b1-120f-46c6-b46f-387ef98396a6', + knowledgeGraphId: 'a5fd07b1120f46c6b46f387ef98396a6', properties: [ { name: 'username', dataType: 'String', - knowledgeGraphId: '994edcff-6996-4a77-9797-a13e5e3efad8', + knowledgeGraphId: '994edcff69964a779797a13e5e3efad8', }, ], }, @@ -349,9 +349,9 @@ describe('Mapping', () => { }); const expected: Mapping = { Account: { - typeIds: [Id('a5fd07b1-120f-46c6-b46f-387ef98396a6')], + typeIds: [Id('a5fd07b1120f46c6b46f387ef98396a6')], properties: { - username: Id('994edcff-6996-4a77-9797-a13e5e3efad8'), + username: Id('994edcff69964a779797a13e5e3efad8'), }, }, Venue: { diff --git a/packages/hypergraph/test/messages/signed-update-message.test.ts b/packages/hypergraph/test/messages/signed-update-message.test.ts index 5b8f1cbe..44af1741 100644 --- a/packages/hypergraph/test/messages/signed-update-message.test.ts +++ b/packages/hypergraph/test/messages/signed-update-message.test.ts @@ -11,7 +11,7 @@ describe('sign updates and recover key', () => { const signaturePrivateKeyBytes = secp256k1.utils.randomPrivateKey(); const signaturePrivateKey = bytesToHex(signaturePrivateKeyBytes); const signaturePublicKey = bytesToHex(secp256k1.getPublicKey(signaturePrivateKeyBytes)); - const spaceId = '1e5e39da-a00d-4fd8-b53b-98095337112f'; + const spaceId = '1e5e39daa00d4fd8b53b98095337112f'; const updateId = bytesToHex(randomBytes(32)); const message = hexToBytes('0x01234abcdef01234'); diff --git a/packages/hypergraph/test/space/find-many-public.test.ts b/packages/hypergraph/test/space/find-many-public.test.ts index ef674f32..79a571a3 100644 --- a/packages/hypergraph/test/space/find-many-public.test.ts +++ b/packages/hypergraph/test/space/find-many-public.test.ts @@ -25,7 +25,7 @@ const buildQuerySpace = ({ ? [] : [ { - propertyId: '8a743832-c094-4a62-b665-0c3cc2f9c7bc', + propertyId: '8a743832c0944a62b6650c3cc2f9c7bc', string: avatar, }, ], diff --git a/packages/hypergraph/test/utils/generateId.test.ts b/packages/hypergraph/test/utils/generateId.test.ts index 6c8ebc23..2cad9e2f 100644 --- a/packages/hypergraph/test/utils/generateId.test.ts +++ b/packages/hypergraph/test/utils/generateId.test.ts @@ -1,9 +1,8 @@ -import { validate as validateUuid } from 'uuid'; import { expect, it } from 'vitest'; import { generateId } from '../../src/utils/generateId.js'; it('should generate a valid uuid', () => { const id = generateId(); expect(id).toBeTypeOf('string'); - expect(validateUuid(id)).toBe(true); + expect(id).toMatch(/^[0-9a-f]{32}$/i); }); diff --git a/packages/hypergraph/test/utils/geo-id.test.ts b/packages/hypergraph/test/utils/geo-id.test.ts new file mode 100644 index 00000000..0ef26f2b --- /dev/null +++ b/packages/hypergraph/test/utils/geo-id.test.ts @@ -0,0 +1,22 @@ +import { Schema } from 'effect'; +import { describe, expect, it } from 'vitest'; +import { GeoIdSchema, parseGeoId, toUuid } from '../../src/utils/geo-id.js'; + +describe('geo-id', () => { + it('parses and normalizes dashed UUIDs to dashless geo ids', () => { + expect(parseGeoId('1e5e39da-a00d-4fd8-b53b-98095337112f')).toBe('1e5e39daa00d4fd8b53b98095337112f'); + }); + + it('accepts already-dashless geo ids', () => { + expect(parseGeoId('1e5e39daa00d4fd8b53b98095337112f')).toBe('1e5e39daa00d4fd8b53b98095337112f'); + }); + + it('can re-format a geo id into dashed UUID form', () => { + expect(toUuid('1e5e39daa00d4fd8b53b98095337112f')).toBe('1e5e39da-a00d-4fd8-b53b-98095337112f'); + }); + + it('GeoIdSchema decodes to normalized dashless format', () => { + const decoded = Schema.decodeSync(GeoIdSchema)('1e5e39da-a00d-4fd8-b53b-98095337112f'); + expect(decoded).toBe('1e5e39daa00d4fd8b53b98095337112f'); + }); +}); diff --git a/packages/hypergraph/test/utils/relation-config-overrides.test.ts b/packages/hypergraph/test/utils/relation-config-overrides.test.ts index 06845db0..293cb089 100644 --- a/packages/hypergraph/test/utils/relation-config-overrides.test.ts +++ b/packages/hypergraph/test/utils/relation-config-overrides.test.ts @@ -5,15 +5,15 @@ import * as Type from '../../src/type/type.js'; import { getRelationTypeIds } from '../../src/utils/get-relation-type-ids.js'; import { buildRelationsSelection, getRelationAlias } from '../../src/utils/relation-query-helpers.js'; -const FRIENDS_RELATION_PROPERTY_ID = Id('f44ae32a-2f13-4d3f-875f-19d2338a32b8'); -const CHILDREN_RELATION_PROPERTY_ID = Id('8a6dcb99-9c7b-4ca9-9f7b-98f2f404b405'); -const PARENT_TYPES = [Id('842e8ae0-9904-40a8-9bfe-19e1f4400c5e')]; -const CHILD_TYPES = [Id('cd9a2ae2-831c-4fa2-b714-ad3aa254db7d')]; -const FRIEND_TYPES = [Id('35ac5c3e-4f31-466e-b3da-51fdfbb4b38e')]; -const PODCAST_TYPES = [Id('f347d2a2-cc18-4d45-aa9a-0df3ba40f4ad')]; -const EPISODE_TYPES = [Id('b1fe2f9e-1f6a-4f07-a0fb-3f5d463f98f1')]; -const NAME_PROPERTY_ID = Id('9f5e7ea4-51bb-4c9f-8739-7fa0aa695d02'); -const PODCAST_EPISODES_RELATION_PROPERTY_ID = Id('88f24615-58b1-4d6c-a45e-81ab9582c282'); +const FRIENDS_RELATION_PROPERTY_ID = Id('f44ae32a2f134d3f875f19d2338a32b8'); +const CHILDREN_RELATION_PROPERTY_ID = Id('8a6dcb999c7b4ca99f7b98f2f404b405'); +const PARENT_TYPES = [Id('842e8ae0990440a89bfe19e1f4400c5e')]; +const CHILD_TYPES = [Id('cd9a2ae2831c4fa2b714ad3aa254db7d')]; +const FRIEND_TYPES = [Id('35ac5c3e4f31466eb3da51fdfbb4b38e')]; +const PODCAST_TYPES = [Id('f347d2a2cc184d45aa9a0df3ba40f4ad')]; +const EPISODE_TYPES = [Id('b1fe2f9e1f6a4f07a0fb3f5d463f98f1')]; +const NAME_PROPERTY_ID = Id('9f5e7ea451bb4c9f87397fa0aa695d02'); +const PODCAST_EPISODES_RELATION_PROPERTY_ID = Id('88f2461558b14d6ca45e81ab9582c282'); const stringifyTypeIds = (typeIds: readonly string[]) => `[${typeIds.map((id) => JSON.stringify(id)).join(', ')}]`; diff --git a/packages/hypergraph/test/utils/relation-query-helpers.test.ts b/packages/hypergraph/test/utils/relation-query-helpers.test.ts index 708a1f1f..abfe507d 100644 --- a/packages/hypergraph/test/utils/relation-query-helpers.test.ts +++ b/packages/hypergraph/test/utils/relation-query-helpers.test.ts @@ -3,15 +3,13 @@ import { getRelationAlias } from '../../src/utils/relation-query-helpers.js'; describe('getRelationAlias', () => { it('falls back to property typeId when no target typeIds are provided', () => { - expect(getRelationAlias('f44ae32a-2f13-4d3f-875f-19d2338a32b8')).toBe( - 'relations_f44ae32a_2f13_4d3f_875f_19d2338a32b8', - ); + expect(getRelationAlias('f44ae32a2f134d3f875f19d2338a32b8')).toBe('relations_f44ae32a2f134d3f875f19d2338a32b8'); }); it('includes canonicalized target typeIds in the alias', () => { - const alias = getRelationAlias('f44ae32a-2f13-4d3f-875f-19d2338a32b8', ['type-b', 'type-a']); + const alias = getRelationAlias('f44ae32a2f134d3f875f19d2338a32b8', ['type-b', 'type-a']); - expect(alias).toBe('relations_f44ae32a_2f13_4d3f_875f_19d2338a32b8_type_a_type_b'); + expect(alias).toBe('relations_f44ae32a2f134d3f875f19d2338a32b8_type_a_type_b'); }); it('produces the same alias regardless of target typeId order or duplicates', () => { diff --git a/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts b/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts index aa077964..a2102eea 100644 --- a/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts +++ b/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts @@ -9,9 +9,9 @@ export const User = Entity.Schema( username: Type.String, }, { - types: [Id('f6fa5a6a-7dbf-4c31-aba5-7b4cd0a9b2de')], + types: [Id('f6fa5a6a7dbf4c31aba57b4cd0a9b2de')], properties: { - username: Id('f0dfb5c0-3c90-4d30-98a3-6a139c8b5943'), + username: Id('f0dfb5c03c904d3098a36a139c8b5943'), }, }, ); @@ -24,12 +24,12 @@ export const Todo = Entity.Schema( assignees: Type.Relation(User), }, { - types: [Id('a288444f-06a3-4037-9ace-66fe325864d0')], + types: [Id('a288444f06a340379ace66fe325864d0')], properties: { - name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'), - completed: Id('d2d64cd3-a337-4784-9e30-25bea0349471'), - priority: Id('ee920534-42ce-4113-a63b-8f3c889dd772'), - assignees: Id('f399677c-2bf9-40c3-9622-815be7b83344'), + name: Id('a126ca530c8e48d5b88882c734c38935'), + completed: Id('d2d64cd3a33747849e3025bea0349471'), + priority: Id('ee92053442ce4113a63b8f3c889dd772'), + assignees: Id('f399677c2bf940c39622815be7b83344'), }, }, ); @@ -47,7 +47,7 @@ describe('translateFilterToGraphql string filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' }, }, }, @@ -64,7 +64,7 @@ describe('translateFilterToGraphql string filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { includes: 'test' }, }, }, @@ -81,7 +81,7 @@ describe('translateFilterToGraphql string filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { startsWith: 'test' }, }, }, @@ -98,7 +98,7 @@ describe('translateFilterToGraphql string filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { endsWith: 'test' }, }, }, @@ -117,7 +117,7 @@ describe('translateFilterToGraphql boolean filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'd2d64cd3-a337-4784-9e30-25bea0349471' }, + propertyId: { is: 'd2d64cd3a33747849e3025bea0349471' }, boolean: { is: true }, }, }, @@ -136,7 +136,7 @@ describe('translateFilterToGraphql number filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'ee920534-42ce-4113-a63b-8f3c889dd772' }, + propertyId: { is: 'ee92053442ce4113a63b8f3c889dd772' }, number: { is: Graph.serializeNumber(1) }, }, }, @@ -153,7 +153,7 @@ describe('translateFilterToGraphql number filters', () => { expect(result).toEqual({ values: { some: { - propertyId: { is: 'ee920534-42ce-4113-a63b-8f3c889dd772' }, + propertyId: { is: 'ee92053442ce4113a63b8f3c889dd772' }, number: { greaterThan: Graph.serializeNumber(1) }, }, }, @@ -188,7 +188,7 @@ describe('translateFilterToGraphql id filters', () => { { values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' }, }, }, @@ -210,7 +210,7 @@ describe('translateFilterToGraphql relation filters', () => { expect(result).toEqual({ relations: { some: { - typeId: { is: 'f399677c-2bf9-40c3-9622-815be7b83344' }, + typeId: { is: 'f399677c2bf940c39622815be7b83344' }, }, }, }); @@ -228,7 +228,7 @@ describe('translateFilterToGraphql relation filters', () => { not: { relations: { some: { - typeId: { is: 'f399677c-2bf9-40c3-9622-815be7b83344' }, + typeId: { is: 'f399677c2bf940c39622815be7b83344' }, }, }, }, @@ -251,7 +251,7 @@ describe('translateFilterToGraphql multiple filters', () => { { values: { some: { - propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, + propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' }, }, }, @@ -259,7 +259,7 @@ describe('translateFilterToGraphql multiple filters', () => { { values: { some: { - propertyId: { is: 'd2d64cd3-a337-4784-9e30-25bea0349471' }, + propertyId: { is: 'd2d64cd3a33747849e3025bea0349471' }, boolean: { is: true }, }, }, @@ -267,7 +267,7 @@ describe('translateFilterToGraphql multiple filters', () => { { values: { some: { - propertyId: { is: 'ee920534-42ce-4113-a63b-8f3c889dd772' }, + propertyId: { is: 'ee92053442ce4113a63b8f3c889dd772' }, number: { greaterThan: Graph.serializeNumber(1) }, }, }, @@ -288,10 +288,10 @@ describe('translateFilterToGraphql with OR operator', () => { expect(result).toEqual({ or: [ { - values: { some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'test' } } }, + values: { some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' } } }, }, { - values: { some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'test2' } } }, + values: { some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test2' } } }, }, ], }); @@ -307,10 +307,10 @@ describe('translateFilterToGraphql with OR operator', () => { expect(result).toEqual({ or: [ { - values: { some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'test' } } }, + values: { some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' } } }, }, { - values: { some: { propertyId: { is: 'd2d64cd3-a337-4784-9e30-25bea0349471' }, boolean: { is: true } } }, + values: { some: { propertyId: { is: 'd2d64cd3a33747849e3025bea0349471' }, boolean: { is: true } } }, }, ], }); @@ -326,7 +326,7 @@ describe('translateFilterToGraphql with NOT operator', () => { const result = translateFilterToGraphql(filter, Todo); expect(result).toEqual({ - not: { values: { some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'test' } } } }, + not: { values: { some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' } } } }, }); }); @@ -340,8 +340,8 @@ describe('translateFilterToGraphql with NOT operator', () => { expect(result).toEqual({ not: { and: [ - { values: { some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'test' } } } }, - { values: { some: { propertyId: { is: 'd2d64cd3-a337-4784-9e30-25bea0349471' }, boolean: { is: true } } } }, + { values: { some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'test' } } } }, + { values: { some: { propertyId: { is: 'd2d64cd3a33747849e3025bea0349471' }, boolean: { is: true } } } }, ], }, }); @@ -361,14 +361,14 @@ describe('translateFilterToGraphql with complex nested filters', () => { { not: { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'Jane Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'Jane Doe' } }, }, }, }, { not: { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'John Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'John Doe' } }, }, }, }, @@ -394,7 +394,7 @@ describe('translateFilterToGraphql with complex nested filters', () => { { values: { some: { - propertyId: { is: 'ee920534-42ce-4113-a63b-8f3c889dd772' }, + propertyId: { is: 'ee92053442ce4113a63b8f3c889dd772' }, number: { is: Graph.serializeNumber(42) }, }, }, @@ -404,14 +404,14 @@ describe('translateFilterToGraphql with complex nested filters', () => { { not: { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'Jane Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'Jane Doe' } }, }, }, }, { not: { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'John Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'John Doe' } }, }, }, }, @@ -422,12 +422,12 @@ describe('translateFilterToGraphql with complex nested filters', () => { or: [ { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'Jane Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'Jane Doe' } }, }, }, { values: { - some: { propertyId: { is: 'a126ca53-0c8e-48d5-b888-82c734c38935' }, string: { is: 'John Doe' } }, + some: { propertyId: { is: 'a126ca530c8e48d5b88882c734c38935' }, string: { is: 'John Doe' } }, }, }, ], diff --git a/packages/typesync-studio/graphql.codegen.ts b/packages/typesync-studio/graphql.codegen.ts index 2bbc2b9b..98437254 100644 --- a/packages/typesync-studio/graphql.codegen.ts +++ b/packages/typesync-studio/graphql.codegen.ts @@ -18,7 +18,7 @@ const config = { overwrite: true, generates: { './src/generated/': { - schema: `${Graph.TESTNET_API_ORIGIN}/graphql`, + schema: `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, documents: ['./src/**/*.{ts,tsx}'], preset: 'client', config: pluginConfig, diff --git a/packages/typesync-studio/package.json b/packages/typesync-studio/package.json index dfdd6db9..d583f929 100644 --- a/packages/typesync-studio/package.json +++ b/packages/typesync-studio/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@base-ui-components/react": "1.0.0-beta.2", - "@graphprotocol/grc-20": "^0.25.2", + "@graphprotocol/grc-20": "^0.27.0", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@graphql-typed-document-node/core": "^3.2.0", diff --git a/packages/typesync-studio/src/clients/Graphql.ts b/packages/typesync-studio/src/clients/Graphql.ts index fb89d9c4..4c7904a9 100644 --- a/packages/typesync-studio/src/clients/Graphql.ts +++ b/packages/typesync-studio/src/clients/Graphql.ts @@ -1,4 +1,4 @@ import { Graph } from '@graphprotocol/grc-20'; import { GraphQLClient } from 'graphql-request'; -export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/graphql`); +export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef9d88cd..ff18649a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ^0.25.1 version: 0.25.1(effect@3.17.13)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.3.0)(jiti@2.5.1)(jsdom@26.1.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.5)(yaml@2.8.1)) '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) babel-plugin-annotate-pure-calls: specifier: ^0.5.0 version: 0.5.0(@babel/core@7.28.3) @@ -51,8 +51,8 @@ importers: specifier: 1.0.0-beta.2 version: 1.0.0-beta.2(@types/react@19.1.10)(react-dom@19.1.1(react@19.1.1))(react@19.1.1) '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -142,8 +142,8 @@ importers: apps/events: dependencies: '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -260,8 +260,8 @@ importers: apps/next-example: dependencies: '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -294,8 +294,8 @@ importers: apps/privy-login-example: dependencies: '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -735,8 +735,8 @@ importers: specifier: ^0.45.0 version: 0.45.0(@effect/typeclass@0.31.10(effect@3.17.13))(effect@3.17.13) '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@noble/ciphers': specifier: ^1.3.0 version: 1.3.0 @@ -815,8 +815,8 @@ importers: specifier: ^2.2.0 version: 2.2.0(react-dom@19.1.1(react@19.1.1))(react@19.1.1) '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@noble/hashes': specifier: ^1.8.0 version: 1.8.0 @@ -871,8 +871,8 @@ importers: specifier: 1.0.0-beta.2 version: 1.0.0-beta.2(@types/react@19.1.10)(react-dom@19.1.1(react@19.1.1))(react@19.1.1) '@graphprotocol/grc-20': - specifier: ^0.25.2 - version: 0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + specifier: ^0.27.0 + version: 0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../hypergraph/publish @@ -2510,9 +2510,6 @@ packages: '@emnapi/core@1.7.1': resolution: {integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==} - '@emnapi/runtime@1.4.5': - resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==} - '@emnapi/runtime@1.5.0': resolution: {integrity: sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==} @@ -3043,8 +3040,8 @@ packages: '@gerrit0/mini-shiki@3.12.2': resolution: {integrity: sha512-HKZPmO8OSSAAo20H2B3xgJdxZaLTwtlMwxg0967scnrDlPwe6j5+ULGHyIqwgTbFCn9yv/ff8CmfWZLE9YKBzA==} - '@graphprotocol/grc-20@0.25.2': - resolution: {integrity: sha512-8DO0PZc8YU85hr5JeCniEU741Fxec2NUz18z5XDJfj72uhPZsDJcjunNzfsho39DGNLt5d4g+sYesyEOKsyByA==} + '@graphprotocol/grc-20@0.27.0': + resolution: {integrity: sha512-FUSZdYWu/Dk6i27YZ8NKbyl1PkFJEjMsPLSIF1iXl8MsHIt8S3qKHvwgoWhRAMPiojyevJTGpjNHGmBVRczJIA==} '@graphql-codegen/add@5.0.3': resolution: {integrity: sha512-SxXPmramkth8XtBlAHu4H4jYcYXM/o3p01+psU+0NADQowA8jtYkK6MW5rV6T+CxkEaNZItfSmZRPgIuypcqnA==} @@ -3602,8 +3599,8 @@ packages: '@napi-rs/wasm-runtime@0.2.12': resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==} - '@napi-rs/wasm-runtime@1.1.0': - resolution: {integrity: sha512-Fq6DJW+Bb5jaWE69/qOE0D1TUN9+6uWhCeZpdnSBk14pjLcCWR7Q8n49PTSPHazM37JqrsdpEthXy2xn6jWWiA==} + '@napi-rs/wasm-runtime@1.1.1': + resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==} '@next/env@15.5.0': resolution: {integrity: sha512-sDaprBAfzCQiOgo2pO+LhnV0Wt2wBgartjrr+dpcTORYVnnXD0gwhHhiiyIih9hQbq+JnbqH4odgcFWhqCGidw==} @@ -3799,8 +3796,8 @@ packages: resolution: {integrity: sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==} engines: {node: '>=14'} - '@oxc-project/types@0.101.0': - resolution: {integrity: sha512-nuFhqlUzJX+gVIPPfuE6xurd4lST3mdcWOhyK/rZO0B9XWMKm79SuszIQEnSMmmDhq1DC8WWVYGVd+6F93o1gQ==} + '@oxc-project/types@0.106.0': + resolution: {integrity: sha512-QdsH3rZq480VnOHSHgPYOhjL8O8LBdcnSjM408BpPCCUc0JYYZPG9Gafl9i3OcGk/7137o+gweb4cCv3WAUykg==} '@parcel/watcher-android-arm64@2.5.1': resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==} @@ -4400,79 +4397,79 @@ packages: peerDependencies: viem: ^2.0.0 - '@rolldown/binding-android-arm64@1.0.0-beta.53': - resolution: {integrity: sha512-Ok9V8o7o6YfSdTTYA/uHH30r3YtOxLD6G3wih/U9DO0ucBBFq8WPt/DslU53OgfteLRHITZny9N/qCUxMf9kjQ==} + '@rolldown/binding-android-arm64@1.0.0-beta.58': + resolution: {integrity: sha512-mWj5eE4Qc8TbPdGGaaLvBb9XfDPvE1EmZkJQgiGKwchkWH4oAJcRAKMTw7ZHnb1L+t7Ah41sBkAecaIsuUgsug==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.0.0-beta.53': - resolution: {integrity: sha512-yIsKqMz0CtRnVa6x3Pa+mzTihr4Ty+Z6HfPbZ7RVbk1Uxnco4+CUn7Qbm/5SBol1JD/7nvY8rphAgyAi7Lj6Vg==} + '@rolldown/binding-darwin-arm64@1.0.0-beta.58': + resolution: {integrity: sha512-wFxUymI/5R8bH8qZFYDfAxAN9CyISEIYke+95oZPiv6EWo88aa5rskjVcCpKA532R+klFmdqjbbaD56GNmTF4Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.0-beta.53': - resolution: {integrity: sha512-GTXe+mxsCGUnJOFMhfGWmefP7Q9TpYUseHvhAhr21nCTgdS8jPsvirb0tJwM3lN0/u/cg7bpFNa16fQrjKrCjQ==} + '@rolldown/binding-darwin-x64@1.0.0-beta.58': + resolution: {integrity: sha512-ybp3MkPj23VDV9PhtRwdU5qrGhlViWRV5BjKwO6epaSlUD5lW0WyY+roN3ZAzbma/9RrMTgZ/a/gtQq8YXOcqw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.0.0-beta.53': - resolution: {integrity: sha512-9Tmp7bBvKqyDkMcL4e089pH3RsjD3SUungjmqWtyhNOxoQMh0fSmINTyYV8KXtE+JkxYMPWvnEt+/mfpVCkk8w==} + '@rolldown/binding-freebsd-x64@1.0.0-beta.58': + resolution: {integrity: sha512-Evxj3yh7FWvyklUYZa0qTVT9N2zX9TPDqGF056hl8hlCZ9/ndQ2xMv6uw9PD1VlLpukbsqL+/C6M0qwipL0QMg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.53': - resolution: {integrity: sha512-a1y5fiB0iovuzdbjUxa7+Zcvgv+mTmlGGC4XydVIsyl48eoxgaYkA3l9079hyTyhECsPq+mbr0gVQsFU11OJAQ==} + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.58': + resolution: {integrity: sha512-tYeXprDOrEgVHUbPXH6MPso4cM/c6RTkmJNICMQlYdki4hGMh92aj3yU6CKs+4X5gfG0yj5kVUw/L4M685SYag==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.53': - resolution: {integrity: sha512-bpIGX+ov9PhJYV+wHNXl9rzq4F0QvILiURn0y0oepbQx+7stmQsKA0DhPGwmhfvF856wq+gbM8L92SAa/CBcLg==} + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.58': + resolution: {integrity: sha512-N78vmZzP6zG967Ohr+MasCjmKtis0geZ1SOVmxrA0/bklTQSzH5kHEjW5Qn+i1taFno6GEre1E40v0wuWsNOQw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.53': - resolution: {integrity: sha512-bGe5EBB8FVjHBR1mOLOPEFg1Lp3//7geqWkU5NIhxe+yH0W8FVrQ6WRYOap4SUTKdklD/dC4qPLREkMMQ855FA==} + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.58': + resolution: {integrity: sha512-l+p4QVtG72C7wI2SIkNQw/KQtSjuYwS3rV6AKcWrRBF62ClsFUcif5vLaZIEbPrCXu5OFRXigXFJnxYsVVZqdQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.53': - resolution: {integrity: sha512-qL+63WKVQs1CMvFedlPt0U9PiEKJOAL/bsHMKUDS6Vp2Q+YAv/QLPu8rcvkfIMvQ0FPU2WL0aX4eWwF6e/GAnA==} + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.58': + resolution: {integrity: sha512-urzJX0HrXxIh0FfxwWRjfPCMeInU9qsImLQxHBgLp5ivji1EEUnOfux8KxPPnRQthJyneBrN2LeqUix9DYrNaQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-musl@1.0.0-beta.53': - resolution: {integrity: sha512-VGl9JIGjoJh3H8Mb+7xnVqODajBmrdOOb9lxWXdcmxyI+zjB2sux69br0hZJDTyLJfvBoYm439zPACYbCjGRmw==} + '@rolldown/binding-linux-x64-musl@1.0.0-beta.58': + resolution: {integrity: sha512-7ijfVK3GISnXIwq/1FZo+KyAUJjL3kWPJ7rViAL6MWeEBhEgRzJ0yEd9I8N9aut8Y8ab+EKFJyRNMWZuUBwQ0A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] - '@rolldown/binding-openharmony-arm64@1.0.0-beta.53': - resolution: {integrity: sha512-B4iIserJXuSnNzA5xBLFUIjTfhNy7d9sq4FUMQY3GhQWGVhS2RWWzzDnkSU6MUt7/aHUrep0CdQfXUJI9D3W7A==} + '@rolldown/binding-openharmony-arm64@1.0.0-beta.58': + resolution: {integrity: sha512-/m7sKZCS+cUULbzyJTIlv8JbjNohxbpAOA6cM+lgWgqVzPee3U6jpwydrib328JFN/gF9A99IZEnuGYqEDJdww==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.0.0-beta.53': - resolution: {integrity: sha512-BUjAEgpABEJXilGq/BPh7jeU3WAJ5o15c1ZEgHaDWSz3LB881LQZnbNJHmUiM4d1JQWMYYyR1Y490IBHi2FPJg==} + '@rolldown/binding-wasm32-wasi@1.0.0-beta.58': + resolution: {integrity: sha512-6SZk7zMgv+y3wFFQ9qE5P9NnRHcRsptL1ypmudD26PDY+PvFCvfHRkJNfclWnvacVGxjowr7JOL3a9fd1wWhUw==} engines: {node: '>=14.0.0'} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.53': - resolution: {integrity: sha512-s27uU7tpCWSjHBnxyVXHt3rMrQdJq5MHNv3BzsewCIroIw3DJFjMH1dzCPPMUFxnh1r52Nf9IJ/eWp6LDoyGcw==} + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.58': + resolution: {integrity: sha512-sFqfYPnBZ6xBhMkadB7UD0yjEDRvs7ipR3nCggblN+N4ODCXY6qhg/bKL39+W+dgQybL7ErD4EGERVbW9DAWvg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.53': - resolution: {integrity: sha512-cjWL/USPJ1g0en2htb4ssMjIycc36RvdQAx1WlXnS6DpULswiUTVXPDesTifSKYSyvx24E0YqQkEm0K/M2Z/AA==} + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.58': + resolution: {integrity: sha512-AnFWJdAqB8+IDPcGrATYs67Kik/6tnndNJV2jGRmwlbeNiQQ8GhRJU8ETRlINfII0pqi9k4WWLnb00p1QCxw/Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -4480,8 +4477,8 @@ packages: '@rolldown/pluginutils@1.0.0-beta.32': resolution: {integrity: sha512-QReCdvxiUZAPkvp1xpAg62IeNzykOFA6syH2CnClif4YmALN1XKpB39XneL80008UbtMShthSVDKmrx05N1q/g==} - '@rolldown/pluginutils@1.0.0-beta.53': - resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==} + '@rolldown/pluginutils@1.0.0-beta.58': + resolution: {integrity: sha512-qWhDs6yFGR5xDfdrwiSa3CWGIHxD597uGE/A9xGqytBjANvh4rLCTTkq7szhMV4+Ygh+PMS90KVJ8xWG/TkX4w==} '@rollup/plugin-inject@5.0.5': resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} @@ -11071,8 +11068,8 @@ packages: vue-tsc: optional: true - rolldown@1.0.0-beta.53: - resolution: {integrity: sha512-Qd9c2p0XKZdgT5AYd+KgAMggJ8ZmCs3JnS9PTMWkyUfteKlfmKtxJbWTHkVakxwXs1Ub7jrRYVeFeF7N0sQxyw==} + rolldown@1.0.0-beta.58: + resolution: {integrity: sha512-v1FCjMZCan7f+xGAHBi+mqiE4MlH7I+SXEHSQSJoMOGNNB2UYtvMiejsq9YuUOiZjNeUeV/a21nSFbrUR+4ZCQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -15355,11 +15352,6 @@ snapshots: tslib: 2.8.1 optional: true - '@emnapi/runtime@1.4.5': - dependencies: - tslib: 2.8.1 - optional: true - '@emnapi/runtime@1.5.0': dependencies: tslib: 2.8.1 @@ -15900,7 +15892,7 @@ snapshots: '@shikijs/types': 3.12.2 '@shikijs/vscode-textmate': 10.0.2 - '@graphprotocol/grc-20@0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': + '@graphprotocol/grc-20@0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@bufbuild/protobuf': 1.10.1 effect: 3.17.13 @@ -15917,7 +15909,7 @@ snapshots: - utf-8-validate - zod - '@graphprotocol/grc-20@0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': + '@graphprotocol/grc-20@0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@bufbuild/protobuf': 1.10.1 effect: 3.17.13 @@ -15934,7 +15926,7 @@ snapshots: - utf-8-validate - zod - '@graphprotocol/grc-20@0.25.2(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17)': + '@graphprotocol/grc-20@0.27.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17)': dependencies: '@bufbuild/protobuf': 1.10.1 effect: 3.17.13 @@ -16510,7 +16502,7 @@ snapshots: '@img/sharp-wasm32@0.34.3': dependencies: - '@emnapi/runtime': 1.4.5 + '@emnapi/runtime': 1.7.1 optional: true '@img/sharp-win32-arm64@0.34.3': @@ -16739,7 +16731,7 @@ snapshots: '@tybys/wasm-util': 0.10.0 optional: true - '@napi-rs/wasm-runtime@1.1.0': + '@napi-rs/wasm-runtime@1.1.1': dependencies: '@emnapi/core': 1.7.1 '@emnapi/runtime': 1.7.1 @@ -16915,7 +16907,7 @@ snapshots: '@opentelemetry/semantic-conventions@1.36.0': {} - '@oxc-project/types@0.101.0': {} + '@oxc-project/types@0.106.0': {} '@parcel/watcher-android-arm64@2.5.1': optional: true @@ -18137,50 +18129,50 @@ snapshots: tslib: 2.8.1 viem: 2.34.0(bufferutil@4.0.9)(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) - '@rolldown/binding-android-arm64@1.0.0-beta.53': + '@rolldown/binding-android-arm64@1.0.0-beta.58': optional: true - '@rolldown/binding-darwin-arm64@1.0.0-beta.53': + '@rolldown/binding-darwin-arm64@1.0.0-beta.58': optional: true - '@rolldown/binding-darwin-x64@1.0.0-beta.53': + '@rolldown/binding-darwin-x64@1.0.0-beta.58': optional: true - '@rolldown/binding-freebsd-x64@1.0.0-beta.53': + '@rolldown/binding-freebsd-x64@1.0.0-beta.58': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.53': + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.58': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.53': + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.58': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.53': + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.58': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.53': + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.58': optional: true - '@rolldown/binding-linux-x64-musl@1.0.0-beta.53': + '@rolldown/binding-linux-x64-musl@1.0.0-beta.58': optional: true - '@rolldown/binding-openharmony-arm64@1.0.0-beta.53': + '@rolldown/binding-openharmony-arm64@1.0.0-beta.58': optional: true - '@rolldown/binding-wasm32-wasi@1.0.0-beta.53': + '@rolldown/binding-wasm32-wasi@1.0.0-beta.58': dependencies: - '@napi-rs/wasm-runtime': 1.1.0 + '@napi-rs/wasm-runtime': 1.1.1 optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.53': + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.58': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.53': + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.58': optional: true '@rolldown/pluginutils@1.0.0-beta.32': {} - '@rolldown/pluginutils@1.0.0-beta.53': {} + '@rolldown/pluginutils@1.0.0-beta.58': {} '@rollup/plugin-inject@5.0.5(rollup@4.47.1)': dependencies: @@ -26235,7 +26227,7 @@ snapshots: hash-base: 3.0.5 inherits: 2.0.4 - rolldown-plugin-dts@0.15.7(rolldown@1.0.0-beta.53)(typescript@5.9.2): + rolldown-plugin-dts@0.15.7(rolldown@1.0.0-beta.58)(typescript@5.9.2): dependencies: '@babel/generator': 7.28.3 '@babel/parser': 7.28.3 @@ -26245,31 +26237,31 @@ snapshots: debug: 4.4.1 dts-resolver: 2.1.1 get-tsconfig: 4.10.1 - rolldown: 1.0.0-beta.53 + rolldown: 1.0.0-beta.58 optionalDependencies: typescript: 5.9.2 transitivePeerDependencies: - oxc-resolver - supports-color - rolldown@1.0.0-beta.53: + rolldown@1.0.0-beta.58: dependencies: - '@oxc-project/types': 0.101.0 - '@rolldown/pluginutils': 1.0.0-beta.53 + '@oxc-project/types': 0.106.0 + '@rolldown/pluginutils': 1.0.0-beta.58 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.0-beta.53 - '@rolldown/binding-darwin-arm64': 1.0.0-beta.53 - '@rolldown/binding-darwin-x64': 1.0.0-beta.53 - '@rolldown/binding-freebsd-x64': 1.0.0-beta.53 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.53 - '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.53 - '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.53 - '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.53 - '@rolldown/binding-linux-x64-musl': 1.0.0-beta.53 - '@rolldown/binding-openharmony-arm64': 1.0.0-beta.53 - '@rolldown/binding-wasm32-wasi': 1.0.0-beta.53 - '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.53 - '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.53 + '@rolldown/binding-android-arm64': 1.0.0-beta.58 + '@rolldown/binding-darwin-arm64': 1.0.0-beta.58 + '@rolldown/binding-darwin-x64': 1.0.0-beta.58 + '@rolldown/binding-freebsd-x64': 1.0.0-beta.58 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.58 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.58 + '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.58 + '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.58 + '@rolldown/binding-linux-x64-musl': 1.0.0-beta.58 + '@rolldown/binding-openharmony-arm64': 1.0.0-beta.58 + '@rolldown/binding-wasm32-wasi': 1.0.0-beta.58 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.58 + '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.58 rollup@4.39.0: dependencies: @@ -27178,8 +27170,8 @@ snapshots: diff: 8.0.2 empathic: 2.0.0 hookable: 5.5.3 - rolldown: 1.0.0-beta.53 - rolldown-plugin-dts: 0.15.7(rolldown@1.0.0-beta.53)(typescript@5.9.2) + rolldown: 1.0.0-beta.58 + rolldown-plugin-dts: 0.15.7(rolldown@1.0.0-beta.58)(typescript@5.9.2) semver: 7.7.2 tinyexec: 1.0.1 tinyglobby: 0.2.14