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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to Heightproof will be documented in this file.

## Unreleased

## 0.1.1

- First release published by the `npm publish` workflow with npm trusted publishing and provenance. No code changes from 0.1.0.

## 0.1.0

- First npm release of `@heightproof/shared`, `@heightproof/sdk-node` and `@heightproof/web3`, including the changes listed below.

- Added signed verification with AirnodeHub. `airnodeDrpcEndpoint()` adds AirnodeHub's dRPC listing to the D2 fan-out. Its EIP-191 attestations are checked against the exact request sent, re-checked by the worker against the kept body before anything is stored, and cited in D2 incident reasons. Each verification endpoint can take its own `fetchImpl`, for example one that pays x402 charges. Migration `003_airnode_attestation.sql` adds `evm_attestation` and `evm_attested_by`. See `docs/airnode.md`.
- Verification endpoints that refuse with a non-JSON-RPC HTTP error, such as an unpaid `402`, are recorded as failed observations instead of being parsed as answers.
- Added a Helm chart (`deploy/helm/heightproof`) for the API, worker and dashboard, with optional bundled Postgres and Redis StatefulSets, generated-and-persisted secrets, advisory-locked migration init containers, optional ingress/HPA/PDB, hardened pod security defaults, and a `helm test` smoke test.
Expand Down
10 changes: 7 additions & 3 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ A `v*` tag releases everything at that version:

## Cutting a release

1. Set the version in all three packages, and in the exact pins they hold on each other:
1. Set the version in all three packages, and in every exact `@heightproof/*` pin across the
workspaces (the apps and examples pin them too, and a stale pin makes npm fetch the old
release from the registry instead of linking the workspace):

```bash
VERSION=0.2.0
npm version "$VERSION" --no-git-tag-version -w packages/shared -w packages/sdk-node -w packages/web3
npm pkg set "dependencies.@heightproof/shared=$VERSION" -w packages/sdk-node -w packages/web3
npm pkg set "dependencies.@heightproof/sdk-node=$VERSION" -w packages/web3
for f in $(git grep -l '"@heightproof/' -- '*package.json'); do
sed -i.bak -E "s/(\"@heightproof\/[a-z0-9-]+\": )\"[0-9][^\"]*\"/\1\"$VERSION\"/" "$f" && rm "$f.bak"
done
npm install
```

Expand Down Expand Up @@ -43,6 +46,7 @@ that already exists, so:

```bash
npm login
rm -rf packages/*/dist packages/*/tsconfig.tsbuildinfo
npm run build
npm publish -w packages/shared --access public
npm publish -w packages/sdk-node --access public
Expand Down
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@fastify/cors": "^11.3.0",
"@fastify/rate-limit": "^11.2.0",
"@heightproof/shared": "0.1.0",
"@heightproof/shared": "0.1.1",
"fastify": "^5.12.3",
"ioredis": "^5.4.1",
"pg": "^8.12.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:integration": "HEIGHTPROOF_INTEGRATION=1 vitest run src/worker.integration.test.ts"
},
"dependencies": {
"@heightproof/shared": "0.1.0",
"@heightproof/shared": "0.1.1",
"ioredis": "^5.4.1",
"pg": "^8.12.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "tsx server.ts"
},
"dependencies": {
"@heightproof/sdk-node": "0.1.0",
"@heightproof/sdk-node": "0.1.1",
"body-parser": "^2.3.0",
"express": "^5.2.1",
"tsx": "^4.19.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/web3-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "tsx client.ts"
},
"dependencies": {
"@heightproof/web3": "0.1.0",
"@heightproof/web3": "0.1.1",
"tsx": "^4.19.0"
}
}
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/sdk-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heightproof/sdk-node",
"version": "0.1.0",
"version": "0.1.1",
"description": "Heightproof SDK for Node.js: batched, non-blocking event delivery and Express middleware.",
"keywords": [
"heightproof",
Expand Down Expand Up @@ -42,7 +42,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@heightproof/shared": "0.1.0"
"@heightproof/shared": "0.1.1"
},
"peerDependencies": {
"express": ">=4"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heightproof/shared",
"version": "0.1.0",
"version": "0.1.1",
"description": "Shared event schema, JSON-RPC normalization and reliability detectors for Heightproof.",
"keywords": [
"heightproof",
Expand Down
6 changes: 3 additions & 3 deletions packages/web3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heightproof/web3",
"version": "0.1.0",
"version": "0.1.1",
"description": "Detect EVM RPC failures that return 200 OK: wrap an EIP-1193 provider or viem transport and report every call to Heightproof.",
"keywords": [
"heightproof",
Expand Down Expand Up @@ -46,8 +46,8 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@heightproof/sdk-node": "0.1.0",
"@heightproof/shared": "0.1.0"
"@heightproof/sdk-node": "0.1.1",
"@heightproof/shared": "0.1.1"
},
"peerDependencies": {
"viem": ">=2"
Expand Down
Loading