Skip to content

Commit 890634e

Browse files
committed
bump versions
1 parent 3837c8c commit 890634e

9 files changed

Lines changed: 107 additions & 49 deletions

File tree

.changeset/crazy-beans-spend.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

apps/connect/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# connect
22

3+
## 0.2.15
4+
### Patch Changes
5+
6+
- Updated dependencies [b939d6b]
7+
- @graphprotocol/hypergraph-react@0.8.2
8+
- @graphprotocol/hypergraph@0.8.2
9+
310
## 0.2.14
411
### Patch Changes
512

apps/connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "connect",
33
"private": true,
4-
"version": "0.2.14",
4+
"version": "0.2.15",
55
"type": "module",
66
"scripts": {
77
"dev": "vite --force",

apps/server/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# server
22

3+
## 0.1.6
4+
### Patch Changes
5+
6+
- Updated dependencies [b939d6b]
7+
- @graphprotocol/hypergraph@0.8.2
8+
39
## 0.1.5
410
### Patch Changes
511

apps/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "server",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"private": true,
55
"type": "module",
66
"scripts": {

packages/hypergraph-react/CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# @graphprotocol/hypergraph-react
22

3+
## 0.8.2
4+
### Patch Changes
5+
6+
- b939d6b: Extend Entity.Schema to allow querying for relation entity values
7+
8+
In the following example we define a Project entity and a Podcast entity with the relation `projects` to the Project entity. In the Type.Relation you now can define the properties of the relation entity as a second argument. In the mapping you also need to define the properties of the relation entity instead of just the property id of the relation.
9+
10+
```ts
11+
export const Project = Entity.Schema(
12+
{
13+
name: Type.String,
14+
},
15+
{
16+
types: [Id('69732974-c632-490d-81a3-12ea567b2a8e')],
17+
properties: {
18+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
19+
},
20+
},
21+
);
22+
23+
export const Podcast = Entity.Schema(
24+
{
25+
name: Type.String,
26+
projects: Type.Relation(Project, {
27+
properties: {
28+
website: Type.optional(Type.String),
29+
},
30+
}),
31+
},
32+
{
33+
types: [Id('69732974-c632-490d-81a3-12ea567b2a8e')],
34+
properties: {
35+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
36+
projects: {
37+
propertyId: Id('71931b5f-1d6a-462e-81d9-5b8e85fb5c4b'),
38+
properties: {
39+
website: Id('eed38e74-e679-46bf-8a42-ea3e4f8fb5fb'),
40+
},
41+
},
42+
},
43+
},
44+
);
45+
```
46+
- Updated dependencies [b939d6b]
47+
- @graphprotocol/hypergraph@0.8.2
48+
349
## 0.8.1
450
### Patch Changes
551

packages/hypergraph-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/hypergraph-react",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "React implementation and additional functionality, components, and hooks for the hypergraph SDK framework",
55
"keywords": [
66
"Web3",

packages/hypergraph/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# @graphprotocol/hypergraph
22

3+
## 0.8.2
4+
### Patch Changes
5+
6+
- b939d6b: Extend Entity.Schema to allow querying for relation entity values
7+
8+
In the following example we define a Project entity and a Podcast entity with the relation `projects` to the Project entity. In the Type.Relation you now can define the properties of the relation entity as a second argument. In the mapping you also need to define the properties of the relation entity instead of just the property id of the relation.
9+
10+
```ts
11+
export const Project = Entity.Schema(
12+
{
13+
name: Type.String,
14+
},
15+
{
16+
types: [Id('69732974-c632-490d-81a3-12ea567b2a8e')],
17+
properties: {
18+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
19+
},
20+
},
21+
);
22+
23+
export const Podcast = Entity.Schema(
24+
{
25+
name: Type.String,
26+
projects: Type.Relation(Project, {
27+
properties: {
28+
website: Type.optional(Type.String),
29+
},
30+
}),
31+
},
32+
{
33+
types: [Id('69732974-c632-490d-81a3-12ea567b2a8e')],
34+
properties: {
35+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
36+
projects: {
37+
propertyId: Id('71931b5f-1d6a-462e-81d9-5b8e85fb5c4b'),
38+
properties: {
39+
website: Id('eed38e74-e679-46bf-8a42-ea3e4f8fb5fb'),
40+
},
41+
},
42+
},
43+
},
44+
);
45+
```
46+
347
## 0.8.1
448
### Patch Changes
549

packages/hypergraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/hypergraph",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs.",
55
"publishConfig": {
66
"bin": {

0 commit comments

Comments
 (0)