Skip to content

api: validate against @hypercerts-org/lexicon 1.6.0 - #46

Merged
kristoferlund merged 1 commit into
mainfrom
kristofer/tech-822-api-repo-bump-hypercerts-orglexicon-from-150-to-160
Nov 2, 2026
Merged

kristoferlund merged 1 commit into
mainfrom
kristofer/tech-822-api-repo-bump-hypercerts-orglexicon-from-150-to-160

Conversation

@kristoferlund

@kristoferlund kristoferlund commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the pinned @hypercerts-org/lexicon from 1.5.0 to 1.6.0, so the API validates records against the current lexicons. Implements TECH-822.

Merging and deploying: Karma, please. Merging alone does not change the running indexer; the bundle has to be reinstalled into the HappyView instance with pnpm install:api and an admin token. Kristofer has not worked with the deployed instance yet, so this PR leaves both the merge and the reinstall to Karma.

What 1.6.0 changes for the API

From the 1.6.0 changelog, all additive or loosening:

  • an optional langs field (BCP-47 language tags) on several records;
  • an optional app.certified.signature.defs#createdVia signature;
  • funding receipts may omit amount and currency;
  • description changes on attachments and funding receipts.

No Lua handler or query Lexicon reads a receipt's amount or currency (the API serves the record unchanged), so no handler changes are needed. Validation accepts records using the new fields; no record that validated against 1.5.0 is rejected.

Changes

  • api/package.json: @hypercerts-org/lexicon 1.5.0 → 1.6.0, and the lockfile.
  • pnpm docs:sync: explorer Lexicon snapshots, docs/openapi.json and coverage.json. In the OpenAPI contract only two record descriptions and the source version change.
  • .agents/skills/hypercerts-api/references/openapi.json: the same two description changes.
  • Changeset: minor for @hypercerts-org/hypercerts-api.

Why now

api#45 (@hypercerts-org/api) takes its record types from @hypercerts-org/lexicon/records (hypercerts-lexicon#270, to be released as 1.7.0). That release changes no Lexicon JSON, so after this PR the indexer validates against the same lexicons the client types are generated from. Moving to 1.7.0 later is a version number only. Independent of #45 and #270.

Verification

Server generated-source check, lint, typecheck and unit tests pass (except the Luacheck test, which needs Luacheck installed locally; CI runs it). Explorer tests pass; changeset status and the frozen-lockfile install are clean. HTTP tests run in CI.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no blocking issues remain.

Summary

Updates the server’s pinned @hypercerts-org/lexicon from 1.5.0 to 1.6.0.

  • Profiles and claim records can include language tags and app signatures.
  • Attachments can describe account updates and when material was captured.
  • Funding receipts can describe payment chains and omit unknown amounts.

Reviews (2) · Last reviewed commit: "api: validate against @hypercerts-org/le..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-endpoints Ready Ready Preview Nov 2, 2026 6:49am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd2e86aa-79ea-48bd-8610-0ab92685de1d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b6ae142

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hypercerts-org/happyview-modules Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

socket-security Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​hypercerts-org/​lexicon@​1.5.0 ⏵ 1.6.082100100 +198 +1100

View full report

Comment thread happyview-modules/package.json Resolved
Bump the pinned lexicon package from 1.5.0 to 1.6.0 and refresh the
explorer snapshots and the hypercerts-api skill's OpenAPI descriptions.
1.6.0 only adds optional fields (langs, createdVia) and makes funding
receipt amount and currency optional, so no record that validated before
is rejected.

TECH-822
@kristoferlund
kristoferlund force-pushed the kristofer/tech-822-api-repo-bump-hypercerts-orglexicon-from-150-to-160 branch from c66ce8b to b6ae142 Compare November 2, 2026 06:49
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@kristoferlund
kristoferlund merged commit f52364f into main Nov 2, 2026
7 of 8 checks passed
@kristoferlund
kristoferlund deleted the kristofer/tech-822-api-repo-bump-hypercerts-orglexicon-from-150-to-160 branch November 2, 2026 06:50
@github-actions github-actions Bot mentioned this pull request Nov 2, 2026

This branch was successfully deployed

1 active deployment
Preview — b6ae142e Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant