Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

The Graph Networks Registry Libraries

CI npm version Crates.io Go Module

Libraries to work with The Graph Networks Registry.

Updating the schema

To update the types to match new schema version, run ./generate.sh. This will:

If there are errors when running the script, find and fix them manually.

Requires jq, Bun >= 1.4.3 (curl -fsSL https://bun.com/install | bash -s "bun-v1.4.3"), Node.js with npm (for the local TypeScript example), cargo and go. quicktype is pinned in the root package.json and installed from bun.lock, and go-enum in generate.sh (GO_ENUM_VERSION): newer quicktype versions change the generated type names and enums, which breaks the public API, so check the diff carefully before bumping them.

Versioning

  • Libraries are using semantic versioning Major.Minor.Patch
  • Major and minor versions should match the schema version
  • Patch version can be incremented independently with bug fixes
  • Patch version is reset to 0 when schema version is changed

Publishing new versions

  • npm publish --force for TypeScript (--force because package.json requires Bun)
  • cargo publish for Rust
  • ./release.sh for Go

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages