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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["events", "next-example", "docs", "hypergraph-vite-react-template"],
"prettier": false
}
8 changes: 0 additions & 8 deletions .changeset/deep-banks-trade.md

This file was deleted.

76 changes: 76 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
# Contributing

## Setup

```sh
pnpm install
cd apps/server
cp .env.example .env
# add the PRIVY_APP_SECRET & PRIVY_APP_ID to the apps/server/.env file
pnpm prisma migrate dev
```

## Development

```sh
pnpm build --watch
# in another tab
cd apps/events
pnpm dev
# in another tab
cd apps/server
pnpm dev
```

Any time you make changes to the schema, you will need to run the following commands:

```sh
cd apps/server
pnpm prisma migrate dev # this will also generate the Prisma client
```

To develop the Typesync CLI, you can run:

```sh
cd apps/typesync
pnpm dev
```

To develop the Typesync frontend run:

```sh
# open the vite.config.ts and comment out the server object that specifies the port to be 3000
cd apps/typesync
pnpm run dev:cli
# in another tab
cd apps/typesync
pnpm dev:client
```

You can run the Next example app with:

```sh
# Notes:
# - You need to build the packages first and every time you make changes to the packages
cd apps/next-example
pnpm dev
```

To run the docs locally, you can run:

```sh
cd docs
pnpm start
```

## Changesets

Changesets are used to create a changelog and publish a new version of the package. In order to document your changes, you can run the following command:

```sh
pnpm changeset
```

It will open a prompt to ask you which packages are affected and the type of change you are making.


## Upgrading Dependencies

```sh
Expand All @@ -11,6 +85,8 @@ pnpm up --interactive --latest -r
Update the version in the `package.json` files (hypergraph, hypergraph-react, typesync)

```sh
pnpm changeset version

pnpm build
# publish hypergraph
cd packages/hypergraph/publish
Expand Down
63 changes: 1 addition & 62 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,65 +14,4 @@ Build privacy preserving apps with interoperable data using the GRC-20 standard.

## Development

### Setup

```sh
pnpm install
cd apps/server
cp .env.example .env
# add the PRIVY_APP_SECRET & PRIVY_APP_ID to the apps/server/.env file
pnpm prisma migrate dev
```

### Development

```sh
pnpm build --watch
# in another tab
cd apps/events
pnpm dev
# in another tab
cd apps/server
pnpm dev
```

Any time you make changes to the schema, you will need to run the following commands:

```sh
cd apps/server
pnpm prisma migrate dev # this will also generate the Prisma client
```

To develop the Typesync CLI, you can run:

```sh
cd apps/typesync
pnpm dev
```

To develop the Typesync frontend run:

```sh
# open the vite.config.ts and comment out the server object that specifies the port to be 3000
cd apps/typesync
pnpm run dev:cli
# in another tab
cd apps/typesync
pnpm dev:client
```

You can run the Next example app with:

```sh
# Notes:
# - You need to build the packages first and every time you make changes to the packages
cd apps/next-example
pnpm dev
```

To run the docs locally, you can run:

```sh
cd docs
pnpm start
```
Please refer to the [Contributing Guide](./CONTRIBUTING.md) for more information on how to contribute to the project.
11 changes: 11 additions & 0 deletions apps/connect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# connect

## 0.1.0
### Patch Changes

- 114d743: breaking changes of the authentication flow to improve security and fix invitations
- Updated dependencies [dd4746a]
- Updated dependencies [fd0a13f]
- Updated dependencies [114d743]
- @graphprotocol/[email protected]
- @graphprotocol/[email protected]
2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "connect",
"private": true,
"version": "0.0.0",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite --force",
Expand Down
10 changes: 10 additions & 0 deletions apps/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# server

## 0.1.0
### Patch Changes

- 114d743: breaking changes of the authentication flow to improve security and fix invitations
- Updated dependencies [dd4746a]
- Updated dependencies [fd0a13f]
- Updated dependencies [114d743]
- @graphprotocol/[email protected]
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "server",
"version": "1.0.0",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions apps/typesync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @graphprotocol/hypergraph-cli

## 0.1.0
### Patch Changes

- dd4746a: remove unsupported dataType Url
- Updated dependencies [dd4746a]
- @graphprotocol/typesync@0.1.0
2 changes: 1 addition & 1 deletion apps/typesync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphprotocol/hypergraph-cli",
"version": "0.0.0-alpha.28",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed alpha here since pre-releases are a bit tricky to manage with changesets. I was thinking this probably the easiest

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep. Understood

"version": "0.1.0",
"type": "module",
"license": "MIT",
"description": "CLI toolchain to view existing types, select, pick, extend to create schemas and generate a @graphprotocol/hypergraph schema.",
Expand Down
2 changes: 1 addition & 1 deletion apps/typesync/src/Cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const hypergraph = Command.make('hypergraph').pipe(

export const run = Command.run(hypergraph, {
name: 'hypergraph',
version: '0.0.0-alpha',
version: '0.1.0',
});
13 changes: 13 additions & 0 deletions packages/hypergraph-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @graphprotocol/hypergraph-react

## 0.1.0
### Patch Changes

- dd4746a: remove unsupported dataType Url
- fd0a13f: extract Mapping to @graphprotocol/typesync
- 114d743: breaking changes of the authentication flow to improve security and fix invitations
- Updated dependencies [dd4746a]
- Updated dependencies [fd0a13f]
- Updated dependencies [114d743]
- @graphprotocol/[email protected]
- @graphprotocol/[email protected]
2 changes: 1 addition & 1 deletion packages/hypergraph-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphprotocol/hypergraph-react",
"version": "0.0.14",
"version": "0.1.0",
"description": "React implementation and additional functionality, components, and hooks for the hypergraph SDK framework",
"keywords": [
"Web3",
Expand Down
10 changes: 10 additions & 0 deletions packages/hypergraph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# @graphprotocol/hypergraph

## 0.1.0
### Patch Changes

- dd4746a: remove unsupported dataType Url
- fd0a13f: extract Mapping to @graphprotocol/typesync
- 114d743: breaking changes of the authentication flow to improve security and fix invitations
- Updated dependencies [dd4746a]
- @graphprotocol/[email protected]
2 changes: 1 addition & 1 deletion packages/hypergraph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphprotocol/hypergraph",
"version": "0.0.14",
"version": "0.1.0",
"description": "SDK for building performant, type-safe, local-first dapps on top of The Graph ecosystem knowledge graphs.",
"publishConfig": {
"access": "public",
Expand Down
6 changes: 6 additions & 0 deletions packages/typesync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @graphprotocol/typesync

## 0.1.0
### Patch Changes

- dd4746a: remove unsupported dataType Url
2 changes: 1 addition & 1 deletion packages/typesync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphprotocol/typesync",
"version": "0.0.3",
"version": "0.1.0",
"description": "Package for generating the mappings used within the hypergraph ecosystem that is used to query for entities on the Knowledge Graph by the grc-20 id's.",
"publishConfig": {
"access": "public",
Expand Down
Loading