From 2dd13ef9bba1fb8847b6e41a6675af995c332881 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 23 Jul 2025 07:04:24 +0200 Subject: [PATCH 1/5] improve changeset config --- .changeset/config.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 6b372552..5f527176 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -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 } From 114d743406d8b4d4b07c80f017bac1ad88557239 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 23 Jul 2025 07:19:39 +0200 Subject: [PATCH 2/5] add changeset from the prev auth related changes --- .changeset/tall-chairs-matter.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changeset/tall-chairs-matter.md diff --git a/.changeset/tall-chairs-matter.md b/.changeset/tall-chairs-matter.md new file mode 100644 index 00000000..2ada75bf --- /dev/null +++ b/.changeset/tall-chairs-matter.md @@ -0,0 +1,9 @@ +--- +"connect": patch +"server": patch +"@graphprotocol/hypergraph": patch +"@graphprotocol/hypergraph-react": patch +--- + +breaking changes of the authentication flow to improve security and fix invitations + \ No newline at end of file From fd0a13fccfdeef8e620e52a339b251b2f0bcfa6b Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 23 Jul 2025 07:24:13 +0200 Subject: [PATCH 3/5] add changeset for mapping changes --- .changeset/lemon-cougars-occur.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/lemon-cougars-occur.md diff --git a/.changeset/lemon-cougars-occur.md b/.changeset/lemon-cougars-occur.md new file mode 100644 index 00000000..74c4afc8 --- /dev/null +++ b/.changeset/lemon-cougars-occur.md @@ -0,0 +1,7 @@ +--- +"@graphprotocol/hypergraph": patch +"@graphprotocol/hypergraph-react": patch +--- + +extract Mapping to @graphprotocol/typesync + \ No newline at end of file From ba82613d21784d3f6c54b1a7f5aea04aa0af30dd Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 23 Jul 2025 07:31:04 +0200 Subject: [PATCH 4/5] improve docs --- CONTRIBUTING.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 63 +--------------------------------------- 2 files changed, 77 insertions(+), 62 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1795b09e..eaf4479f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 @@ -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 diff --git a/README.md b/README.md index b0bf7138..3d6782fc 100644 --- a/README.md +++ b/README.md @@ -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 -``` \ No newline at end of file +Please refer to the [Contributing Guide](./CONTRIBUTING.md) for more information on how to contribute to the project. \ No newline at end of file From 646d3b855d06d5b58fa653ccba6095b301003681 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Wed, 23 Jul 2025 20:44:47 +0200 Subject: [PATCH 5/5] version packages --- .changeset/deep-banks-trade.md | 8 -------- .changeset/lemon-cougars-occur.md | 7 ------- .changeset/tall-chairs-matter.md | 9 --------- apps/connect/CHANGELOG.md | 11 +++++++++++ apps/connect/package.json | 2 +- apps/server/CHANGELOG.md | 10 ++++++++++ apps/server/package.json | 2 +- apps/typesync/CHANGELOG.md | 8 ++++++++ apps/typesync/package.json | 2 +- apps/typesync/src/Cli.ts | 2 +- packages/hypergraph-react/CHANGELOG.md | 13 +++++++++++++ packages/hypergraph-react/package.json | 2 +- packages/hypergraph/CHANGELOG.md | 10 ++++++++++ packages/hypergraph/package.json | 2 +- packages/typesync/CHANGELOG.md | 6 ++++++ packages/typesync/package.json | 2 +- 16 files changed, 65 insertions(+), 31 deletions(-) delete mode 100644 .changeset/deep-banks-trade.md delete mode 100644 .changeset/lemon-cougars-occur.md delete mode 100644 .changeset/tall-chairs-matter.md create mode 100644 apps/connect/CHANGELOG.md create mode 100644 apps/server/CHANGELOG.md create mode 100644 apps/typesync/CHANGELOG.md create mode 100644 packages/hypergraph-react/CHANGELOG.md create mode 100644 packages/hypergraph/CHANGELOG.md create mode 100644 packages/typesync/CHANGELOG.md diff --git a/.changeset/deep-banks-trade.md b/.changeset/deep-banks-trade.md deleted file mode 100644 index 74bd425d..00000000 --- a/.changeset/deep-banks-trade.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@graphprotocol/hypergraph-react": patch -"@graphprotocol/hypergraph": patch -"@graphprotocol/typesync": patch -"@graphprotocol/hypergraph-cli": patch ---- - -remove unsupported dataType Url diff --git a/.changeset/lemon-cougars-occur.md b/.changeset/lemon-cougars-occur.md deleted file mode 100644 index 74c4afc8..00000000 --- a/.changeset/lemon-cougars-occur.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@graphprotocol/hypergraph": patch -"@graphprotocol/hypergraph-react": patch ---- - -extract Mapping to @graphprotocol/typesync - \ No newline at end of file diff --git a/.changeset/tall-chairs-matter.md b/.changeset/tall-chairs-matter.md deleted file mode 100644 index 2ada75bf..00000000 --- a/.changeset/tall-chairs-matter.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"connect": patch -"server": patch -"@graphprotocol/hypergraph": patch -"@graphprotocol/hypergraph-react": patch ---- - -breaking changes of the authentication flow to improve security and fix invitations - \ No newline at end of file diff --git a/apps/connect/CHANGELOG.md b/apps/connect/CHANGELOG.md new file mode 100644 index 00000000..67a289d0 --- /dev/null +++ b/apps/connect/CHANGELOG.md @@ -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/hypergraph-react@0.1.0 + - @graphprotocol/hypergraph@0.1.0 diff --git a/apps/connect/package.json b/apps/connect/package.json index c0ae74cd..3db63552 100644 --- a/apps/connect/package.json +++ b/apps/connect/package.json @@ -1,7 +1,7 @@ { "name": "connect", "private": true, - "version": "0.0.0", + "version": "0.1.0", "type": "module", "scripts": { "dev": "vite --force", diff --git a/apps/server/CHANGELOG.md b/apps/server/CHANGELOG.md new file mode 100644 index 00000000..c84ec561 --- /dev/null +++ b/apps/server/CHANGELOG.md @@ -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/hypergraph@0.1.0 diff --git a/apps/server/package.json b/apps/server/package.json index cde490e6..5dacb1d3 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -1,6 +1,6 @@ { "name": "server", - "version": "1.0.0", + "version": "0.1.0", "private": true, "type": "module", "scripts": { diff --git a/apps/typesync/CHANGELOG.md b/apps/typesync/CHANGELOG.md new file mode 100644 index 00000000..3e89dadb --- /dev/null +++ b/apps/typesync/CHANGELOG.md @@ -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 diff --git a/apps/typesync/package.json b/apps/typesync/package.json index dbb14134..2be193e5 100644 --- a/apps/typesync/package.json +++ b/apps/typesync/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/hypergraph-cli", - "version": "0.0.0-alpha.28", + "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.", diff --git a/apps/typesync/src/Cli.ts b/apps/typesync/src/Cli.ts index f1c50514..962075bf 100644 --- a/apps/typesync/src/Cli.ts +++ b/apps/typesync/src/Cli.ts @@ -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', }); diff --git a/packages/hypergraph-react/CHANGELOG.md b/packages/hypergraph-react/CHANGELOG.md new file mode 100644 index 00000000..67879e4b --- /dev/null +++ b/packages/hypergraph-react/CHANGELOG.md @@ -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/hypergraph@0.1.0 + - @graphprotocol/typesync@0.1.0 diff --git a/packages/hypergraph-react/package.json b/packages/hypergraph-react/package.json index 68c3c171..5ae02306 100644 --- a/packages/hypergraph-react/package.json +++ b/packages/hypergraph-react/package.json @@ -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", diff --git a/packages/hypergraph/CHANGELOG.md b/packages/hypergraph/CHANGELOG.md new file mode 100644 index 00000000..4d1ef01f --- /dev/null +++ b/packages/hypergraph/CHANGELOG.md @@ -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/typesync@0.1.0 diff --git a/packages/hypergraph/package.json b/packages/hypergraph/package.json index 57492562..b5f25818 100644 --- a/packages/hypergraph/package.json +++ b/packages/hypergraph/package.json @@ -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", diff --git a/packages/typesync/CHANGELOG.md b/packages/typesync/CHANGELOG.md new file mode 100644 index 00000000..ffaade93 --- /dev/null +++ b/packages/typesync/CHANGELOG.md @@ -0,0 +1,6 @@ +# @graphprotocol/typesync + +## 0.1.0 +### Patch Changes + +- dd4746a: remove unsupported dataType Url diff --git a/packages/typesync/package.json b/packages/typesync/package.json index 9d5b49b4..889170c0 100644 --- a/packages/typesync/package.json +++ b/packages/typesync/package.json @@ -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",