Skip to content

chore(deps): update all non-major dependencies - #141

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/all-minor-patch
Open

chore(deps): update all non-major dependencies#141
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/all-minor-patch

Conversation

@renovate

@renovate renovate Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence Type Update Pending
@ai-sdk/anthropic (source) 3.0.1043.0.107 age confidence dependencies patch 3.0.110 (+2)
@ai-sdk/google (source) 3.0.1033.0.104 age confidence dependencies patch 3.0.107 (+2)
@ai-sdk/openai (source) 3.0.903.0.91 age confidence dependencies patch 3.0.94 (+2)
@harperfast/skills (source) 1.11.11.12.1 age confidence dependencies minor
ai (source) 6.0.2386.0.246 age confidence dependencies patch 6.0.250 (+3)
harper (source) 5.1.265.2.1 age confidence devDependencies minor
hono (source) 4.12.334.13.1 age confidence devDependencies minor
node (source) 24.18.124.19.0 age confidence minor
oxlint (source) 1.76.01.77.0 age confidence devDependencies minor 1.78.0
puppeteer (source) 25.4.025.5.0 age confidence optionalDependencies minor 25.6.0
semantic-release 25.0.825.0.9 age confidence devDependencies patch
tsx (source) 4.23.14.23.11 age confidence devDependencies patch 4.23.12

Release Notes

vercel/ai (@​ai-sdk/anthropic)

v3.0.107

Compare Source

Patch Changes

v3.0.105

Compare Source

Patch Changes
  • 0a295e3: Preserve Anthropic prompt-cache matches by replaying complete code-execution transcripts in their original wire shape.
HarperFast/skills (@​harperfast/skills)

v1.12.1

Compare Source

Documentation

v1.12.0

Compare Source

Features
  • harper-best-practices: add delegating-to-the-built-in-agent rule (0c6b9d7), closes harper#626
harperfast/harper (harper)

v5.2.1

Compare Source

Data integrity

Blob-column decode corruption on read-modify-write, fixed at the root cause (#​2119). In 5.2.0, a REST PATCH that read a record and wrote it back unchanged — carrying along a Blob column — could corrupt that blob on disk, producing Error decoding record: Data read, but end of buffer not reached on the next read. The inline-blob decode path kept a second reference to the payload (storageBuffer) that pointed directly into the store's reusable read buffer instead of a stable copy; re-encoding a cached/fetched blob could serialize whatever bytes a later, unrelated read had since recycled into that buffer. 5.2.0's new primary-store record cache made this reachable for the first time — the underlying pattern was latent since October 2025 but only 5.1.x's uncached read path avoided it. The fix drops the unstable reference entirely and always re-encodes from the already-copied, stable buffer, with no added read-path cost. Deterministic repro and fix are covered by a new 3-case test matrix (recordCacheStableBuffer.test.js). This supersedes the narrower #​2103 mitigation (which forced fresh allocations on every primary read to mask the symptom).

Reliability

  • Transaction context lifecycle — a cluster of fixes ensures a transaction's context back-reference is released only on genuine completion (not on a timeout-poisoned or still-pending transaction), a terminal commit failure still releases it, and a replay forced by open iterators now abandons the retained handle's write intents (with a one-time warning) instead of silently reapplying them.
  • Broken-pipe crash on log writeuncaughtException handling for EPIPE could re-enter itself in a self-feeding loop when stdout/stderr closed under load. Broken-pipe writes are now caught at the source on both sync and async paths, and disableStdio() no longer tears down the log-file tee.
  • dropTable() safety — now drains in-flight cache-write commits and re-checks live drop state immediately before dropping column families, closing a window for a concurrent write to land mid-drop, and fails closed (instead of proceeding) if the drain times out.
  • Table-scoped transaction-log purgedelete_transaction_logs_before scoped to a single table was purging the entire database's log on RocksDB; it's now rejected outright on RocksDB rather than silently over-purging.
  • Open-transaction idle limit — reads no longer extend the limit while a transaction has uncommitted writes pending; writes correctly re-arm it.

Security

  • Closed bypass_auth trust gaps in MCP token handling and SQL AST checks; request bodies can no longer influence operations authorization.
  • User/role changes that would remove the last active super_user are now rejected, preventing accidental lockout.

Storage

  • RocksDB compression codec selection — deployments can now choose a compression codec via storage.compression, applied consistently per column family; upgraded databases correctly retain their existing column families' codec instead of silently adopting a new default. Includes a compression benchmark.
  • rocksdb-js updated 2.6.1 → 2.7.1 across several bumps.

Deploy & redeploy

Hardened native-addon and app redeploy handling: transactional redeploy preparation, serialized watcher replacement, preserved entry events across deploy scans, and closed several deploy-owner reclaim races so exiting workers no longer strand deploy state.

CLI & platform

  • Added -h/--help flags with a width-responsive help screen.
  • New OpenAI-compatible /v1/* gateway, exposed as built-in Resources (Phase 4 of the models initiative — #​1616).
  • CONFIRM_DOWNGRADE now resolves deterministically (and logs the refusal) when no TTY is available to answer the prompt, instead of hanging (#​2059).
  • Bun module resolution now falls back correctly for bare-specifier packages and resolves ESM exports.
  • UDS mirror cleanup is now ownership-aware instead of path-based, closing several stale-file cleanup gaps.

Also in this release

Docker shrinkwrap/pin-canary hardening, storage-quota path/metric fixes, outstanding-write-commit tracking for stuck-commit diagnostics, and routine CI/test/dependency maintenance (Node 26 canary hardening, RocksDB conflict-retry test fix, misc chore(deps) bumps).

Full Changelog: HarperFast/harper@v5.2.0...v5.2.1

v5.2.0

Compare Source

Harper 5.2.0 is the first stable release of the 5.2 line. These notes cover everything on the 5.2 line since it branched from 5.1 — roughly 210 merged PRs across two months — not just the changes since the last beta. Fixes that were also cherry-picked onto the 5.1 patch train (5.1.16 through 5.1.26) are included here as well, since they are part of 5.2.0.

Headline work: a new SQL engine built on the Resource API is now the default, secrets get a first-class store and end-to-end custody, row-level read authorization is unified, RocksDB databases gain managed backup/restore, and a large cluster of transaction and storage correctness fixes closes several write-loss paths.

Upgrade notes

  • The SQL engine default changed from legacy to auto (#​1285). Queries are now planned by the new Resource-API engine, with automatic fallback to the legacy AlaSQL path for shapes it does not support. Set sql.engine: legacy to restore the previous behavior, or new to disable fallback and surface unsupported shapes as errors.
  • Operation-scoped authorization is evaluated once per operation again (#​1915, #​1842). 5.2 alphas briefly evaluated allowRead/write hooks per record; that is reverted to the pre-5.2 contract. Applications that want row-level narrowing should use the new explicit rowFilter(record, context) and eventFilter(event, context) predicates.
  • @expiresAt now takes precedence over the table-level expiration default (#​1812). Tables that set both will see per-record expiration win.
  • threads.count defaults to 1 on macOS and Windows (#​1605). Neither platform has working SO_REUSEPORT, so additional HTTP workers could never share the server ports. An explicit threads.count still overrides.
  • TCP keep-alive delay is now 10 minutes. Socket noDelay/keepAlive options were never actually applied to TCP or UDS listeners, and the keep-alive delay was 600 ms rather than the intended 10 minutes (#​1859).
  • Safe mode disables worker preload modules (#​1848).
  • uWebSockets.js is opt-in for npm consumers (#​1919). It remains bundled in the official Docker images.
  • If you ran storage.migrateOnStart on any 5.2 alpha or beta, migrated records were written without their version metadata — see "LMDB to RocksDB migration" below for the verification step.
  • First boot applies a data migration; rolling back to 5.1.x requires CONFIRM_DOWNGRADE=yes (#​2046). Starting 5.2.0 against an existing store creates system.hdb_secret and records the data version as 5.2.0. The migration is additive and 5.1.x can still run the store, but a 5.1.x binary asks for confirmation before starting against data marked newer — and with no interactive terminal (systemd, containers, CI) that prompt currently blocks with nothing in the log. To downgrade, set CONFIRM_DOWNGRADE=yes in the environment (or pass --CONFIRM_DOWNGRADE yes); take a backup first.

SQL engine on the Resource API

  • A new SQL engine, built on the Resource API, is now the default (#​1285). It plans against Harper's own indexes and resources instead of the legacy AlaSQL path, and sql.engine: auto falls back to legacy automatically for query shapes it does not support. Notable behaviors: a two-sided primary-key range is fused into a single bounded seek; ORDER BY <primary key> with no WHERE is served from index order rather than a full ordered scan; UPDATE col = col ± N is applied as an atomic addition; null-valued conditions are served only on indexNulls indexes; unindexed WHERE conjuncts are residualized rather than pushed; NOT IN uses correct three-valued logic. DISTINCT aggregates and UPDATE SET on the primary key fall back to legacy.
  • Sorting on the primary key is served from primary-store order instead of a separate sort pass (#​1844).
  • Query planning no longer mutates the caller's conditions (#​1911), so a reused condition object is not corrupted by planning.
  • Schema-unqualified SQL is authorized against the table the engine actually resolves (#​1961) — see Security below.
  • An A/B benchmark comparing the new engine against legacy is now in the repo (#​1845).

Security

  • Schema-unqualified SQL bypassed table permission checks (#​1961). The authorization layer derived the affected schema/table set from the AST's databaseid; when a statement omitted the schema qualifier that field was empty, nothing was recorded in the affected-attribute map, and hasPermissions iterating an empty map authorized by vacuous truth — while the engine's binder resolved the same bare name to a concrete database and executed against it. Authorization now runs against the table the engine resolves, per table reference rather than once per statement. The same series records GROUP BY/HAVING columns, reports derived JOIN sources that carry no join.table, and refuses UNION/EXCEPT/INTERSECT/PIVOT/UNPIVOT outright rather than letting them pass unchecked.
  • allow* hooks now fail closed when they throw or reject (#​1489). A hook that threw was previously treated as a pass.
  • ReDoS in config validation (#​1784). A crafted directory path could pin the CLI at 100% CPU; the path allow-list regex is replaced with a control-character denylist that also rejects C1 controls and Unicode line separators.
  • Raw Error objects are no longer logged from REST (#​1737), and logger arguments are auto-wrapped with a diagnostic property allowlist (#​1749) — both closed paths where secrets could reach hdb.log.
  • Structured-logging sanitization gaps closed (#​1994). Sanitization could invoke a live object's Proxy traps or getters, leak function/opaque-builtin properties, or throw inside its own fallback. inspectForLog/deepSanitizeErrors are now realm-safe, bounded in breadth and depth, and fail closed at the cap.
  • MCP verb-tool listings no longer leak to unauthorized sessions (#​1943).
  • Reserved role-permission names are rejected as database names, and cluster_user handling is completed (#​1913).
  • http.securityHeaders config added, and the authentication middleware is now named in the chain (#​1568).
  • PACKAGE_ROOT is canonicalized so it matches realpath'd allowedPath checks (#​1905), and npm pack --ignore-scripts is gated on install_allow_scripts alone (#​1819).
  • enableProxyProtocol header buffering has a stall-timeout guard (#​1947), so a peer that opens a connection and never completes the PROXY header cannot hold it open.

Secrets management

  • hdb_secret store with grant-scoped secret operations (#​1554). Secrets are stored in a dedicated table with a pure envelope codec, serialized row mutations, validator caps, and grant-set semantics; secret operations are kept off the MCP default-allow surface.
  • Component .env files are protected in the operations API (#​1527) and can be written via set_component_file, with an encrypted enc:v1 contract and a dormant decrypt hook (#​1528).
  • Two-tier component secret delivery with env declarations (#​1582), plus worker-spawn data providers and deferred env-secret decrypt replay so secrets reach worker threads correctly (#​1559).
  • Live secret-change subscriptions and a live scoped accessor (#​1787), with subscription teardown reference-counted by identity.
  • Config-shaping env vars arriving via component .env files are warned about loudly rather than silently ignored (#​1580).
  • SSH deploy keys are decrypted to a transient file only for the git operation (#​1795).
  • Registered operations can declare permissions for scoped delegation (#​1599).

Access control

  • Record-scoped allowRead: unified row-level read access control (#​1786, closing the second gap in #​1422). Enforcement is consistent across reads, GraphQL checkPermission, and subscription delivery. Prefix and multi-record scans keep the awaited entry check; per-record enforcement is sync-only.
  • Live subscriptions are continuously re-authorized and revoked on permission loss or token expiry (#​1535), with coverage extended to WebSocket, MQTT, and alter_role (#​1634).
  • Row-level allowRead is enforced on custom mcpResources reads (#​1839), which previously bypassed the check that equivalent REST reads applied.
  • Related-table allowRead binds to a proper resource instance (#​1532).
  • Explicit rowFilter/eventFilter predicates (#​1915) carry through filtered HNSW traversal, OR/range filtering, source-revalidated reads, subscription snapshots, replay, live events, and reload snapshots.
  • Audit records attribute registered-operation writes to the authenticated user (#​1592).
  • Token login in core — a validated JWT can be exchanged for an httpOnly hdb-session cookie (#​1546).

Managed RocksDB backups

  • RocksDB databases now have first-class server-managed backup and restore (#​1831). New operations — create_backup, list_backups, verify_backup, delete_backup, purge_backups, restore_backup, and RocksDB support for get_backup — give incremental, checksum-verified backups under storage.backupPath, one subdirectory per database, including file-backed blobs and the transaction log. Everything is also runnable from the CLI, including offline against a stopped server. Restores serialize against a per-database lock/marker and verify the database is fully closed process-wide before purging and rewriting, so a crash mid-restore recovers cleanly instead of corrupting data.

Typed resources and the application model

  • Typed, discoverable resources (RFC 0001) (#​1767): code-first defineTable plus a per-method request contract, with the six typed-resources exports wired into the component sandbox (#​1825).
  • Applications can be routed by host and urlPath from the root config (#​1964). Multiple applications can share a server while routing to distinct hosts or path prefixes. Mounts are enforced only at the routing boundary, fail closed on a wrong-typed config, and REST route registration is keyed on the resolved route rather than its raw parts.
  • Built-in scheduler component (#​1828, #​1875): config-declared cron and interval jobs that run once per cluster, with leader election, failover, and catch-up that backfills the most recent missed occurrence.
  • Relationship edge cases fixed (#​2006). Relationship property access always resolves synchronously; empty array-of-FK relationships return a fresh array instead of a shared one and skip an unneeded read-transaction acquisition; single-record sets normalize correctly and tolerate scalar stored ids; composite (array) related ids resolve on both sides.
  • @computed scalars surface on default reads, with a guard for cyclic @enumerable serialization (#​1601).
  • Bare collection POST restores the v4 super.post create behavior, normalized before authorization (#​1956).
  • Thrown Response objects and a status field are honored for custom-resource HTTP status (#​1501).
  • Non-object record roots are rejected and the scan freeze is guarded (#​1313).

Transactions and storage

The largest cluster of fixes in this release. Several were write-loss paths.

  • Repeat writes to the same key within one transaction now layer correctly (#​1970). A second write applied against the pre-transaction value rather than the earlier write in the same transaction, so the intermediate update was lost.
  • Writes staged while a read iterator defers the commit are no longer dropped (#​1860).
  • Over-time write transactions are aborted instead of force-committed (#​1411), and both engines poison the transaction.
  • ERR_TRY_AGAIN retries on the same transaction using a native in-place reset (#​1823); the earlier fix retried on a fresh transaction (#​1696).
  • Commit-retry exhaustion rejects the awaited request chain rather than resolving as if it had succeeded (#​1861).
  • An ambient transaction is joined only if it is genuinely still open (#​1720).
  • TTL eviction and delete no longer orphan secondary-index entries (#​1896), which could otherwise satisfy later index reads for records that no longer exist.
  • Table.clear() clears secondary-index DBIs as well as the primary store (#​1906).
  • The interrupted-drop retry is bounded to one actionable error and scoped to a per-drop generation, keyed by physical store rather than database alias (#​1957). A genuinely failed store drop is no longer reported as complete.
  • Audit cleanup has a real completion signal and a sane backoff, and a cleanup pass no longer escapes as an unhandled rejection (#​1963).
  • LMDB audit entries store the real prior version — the primary entry's own localTime rather than its origin version (#​1988).
  • Table deletes on audit: false tables thread the transaction into removeEntry (#​1869).
  • starts_with returns complete results for astral-plane Unicode values (#​1887).
  • Null hash values on delete are rejected, as are primary-key changes on populated tables (#​1837). Combined with the Resource-API delete guard, a null or undefined id can no longer wipe a table.
  • checkOverloaded() logs once when it first starts rejecting writes (#​2007), so a shedding node is visible in the log.
  • Clearer open-transaction timeout message (#​1967); honest Promise<number | void> type for the commit-latency recorder (#​1853, #​1899).

LMDB to RocksDB migration

  • Migrated records lost their version and record prototype (#​2014). Every record written by storage.migrateOnStart since #​1307 was stored without its [8-byte version][flags word] metadata prefix: copyDb grafts RecordEncoder's encode hook onto the migration target's plain msgpackr encoder, and the hook's if (!this.useVersions) opt-out read useVersions off that foreign encoder — undefined — so every migrated record took the non-versioned plain-encode path. Downstream, prefix-less records decode without the metadata wrapper, so PrimaryRocksDatabase.getEntry skipped the structPrototype repair and point reads returned prototype-less plain objects: relationship getters, toJSON and getUpdatedTime were all unreachable. Record versions were silently dropped, which also affects cache admission, ifVersion/CAS, and replication version comparison.

    The fix writes the prefix correctly, adds a read-side repair for already-migrated databases, stages the migration and renames it into place only after verification, and exports verifyMigratedDatabase(databasePath) so an existing installation can be checked. Verification sweeps every generation and exempts genuinely version-less records by key rather than by sniffing bytes. If you have run migrateOnStart on any 5.2 alpha or beta, run verifyMigratedDatabase before relying on versions; a no-op rewrite pass is required to restore versions on already-migrated records.

  • Legacy storage.compression metadata is tolerated when opening RocksDB databases (#​2037), mapping to a valid rocksdb-js compression option instead of erroring on open.

  • New built-in components are activated on in-place-upgraded configs (#​1814), and WAF is activated on upgraded instances (#​1910).

Performance

  • Record caching for primary RocksDB stores (#​410 and follow-ups): PrimaryRocksDatabase backs primary stores with a WeakLRUCache validated against the Verification Table, so a cache hit does not require a store read. Caching is opt-in per primary store, and the coordinated-retry loop is capped with options preserved across retries.
  • Predicate-aware HNSW traversal (#​1768): filtered vector search that participates in user functions and RBAC, rather than filtering after the fact.
  • HNSW survivors severed from the entry point by deletes are reconnected (#​1713), which previously left parts of the graph unreachable.
  • HTTP/2 support via a cleartext h2 UDS mirror (#​1707), dispatched by ALPN at the symphony L4 layer.
  • uWebSockets.js HTTP/WebSocket backend (#​1096), default-off, with a guard that refuses the uWS backend on pointer-compression Node builds unless rebuilt for that ABI (#​1765).
  • Write-transaction commit latency (#​1688) and write/read transaction queue depth (#​1689) are recorded in analytics.

HTTP, TLS and networking

  • WebSocket upgrades were silently dropped on per-worker UDS mirror listeners (#​2015). With tls.unixDomainSockets enabled, the per-worker UDS mirror is a separate http.Server that never received the 'upgrade' listener onWebSocket() attaches to the port-keyed server, so Node destroyed every WebSocket handshake on it with a zero-byte close — no response, no log. The same fix stops enableProxyProtocol()'s data interception from outliving the PROXY header decision, where it was forwarding post-upgrade frames to a freed HTTP parser the pool can reissue to another connection.
  • PROXY protocol v2 decodes forwarded mTLS client certificates on UDS mirrors (#​1858), and those TLS facts are exposed as request.connectionInfo (#​1985).
  • MQTT's raw-socket listener has its own TLS usage type (#​1999, #​2003) so it no longer shares certificate selection with the HTTP listeners, and the MQTT secure-port UDS metadata no longer publishes an empty certificate list — which made a fronting SNI proxy serve the node certificate on 8883 (#​2010).
  • TLS ciphers/SECLEVEL are honored from every configured source when building listeners (#​1841).
  • Periodic re-read safety net for the TLS certificate watcher (#​1394), including reload on change events that omit stats and a 1-second floor on the watch interval.
  • External port conflicts are surfaced on all platforms (#​1605); listenOnPorts() previously swallowed every EADDRINUSE, so an unrelated process squatting a Harper port silently received Harper's traffic.
  • The MQTT port is shared across workers except on macOS (#​1603), and the MQTT last-will persistence race is closed (#​1697).
  • The operations API fails soft on a domain socket bind failure and warns on path-length overflow instead of failing to start (#​1907).
  • SSE fixes: a finite generator streamed to completion no longer hangs or raises an uncaughtException (#​1632); a generator that throws mid-stream is handled (#​1789); writes are guarded against undefined event data (#​1863).
  • A POST without a trailing slash returns a clean 404 instead of crashing (#​1807), and URL attribute-suffix routing resolves correctly for programmatic static-properties Resources (#​1933).

Static serving and caching

  • Root-mounted static serving fixed (#​1584, #​1769): the static plugin served nothing when urlPath was configured, and urlPath: '/' matched only the exact path /.
  • Configurable cache headers for the static pluginmaxAge, immutable, cacheControl (#​1748) — and Cache-Control/Vary hardening with shared-cache defaults (#​1746).
  • after ordering for the static plugin, with a warning when fallthrough: false blocks REST (#​1574).
  • target.loadedFromSource is the sole cache-disposition signal (#​1626).
  • allowStaleWhileRevalidate is consulted for query-driven revalidation (#​1581).
  • Live cache records are no longer mutated in finalizeResponse (#​1709), which corrupted persisted headers.

MCP and AI

  • Per-client rate limiting and a durable operator quota hook for public MCP tools (#​1633), registered as a function rather than a config-referenced Resource (#​1821).
  • Component-author static mcpTools/mcpPrompts are registered at runtime (#​1526), parameterized custom resources surface as MCP tools (#​1602), and operations-profile tools are computed lazily so late-registered operations appear (#​1579).
  • A missing MCP-Protocol-Version header is accepted as the session's negotiated version (#​1694).
  • harper agent CLI (#​1553): a command-line client for the built-in agent, with harper chat as an alias, automatic refresh of expired agent tokens, and the --once approval hang fixed. The built-in agent itself is now runnable end to end (#​1549) and drains operations tools from the lazy provider (#​1847).
  • @embed/models.embed no longer forwards the logical model name as the provider wire model id (#​1596).
  • openaiStream() — an OpenAI-compatible SSE formatter (#​1106).

Logging, analytics and observability

  • read_log streams over SSE as a live tail (#​1693), with backpressure detection, bounded backlog reads, and resilient delta reads.
  • Rotated log file descriptors are closed immediately, and logging.rotation.retention is exposed (#​1687).
  • get_analytics is driven off the bounded time window rather than the metric index (#​1798).
  • Middleware chain order is observable via a debug log and get_status (#​1587).
  • threads.preload config preloads modules such as APM agents on worker threads (#​1569).

Deployment and components

  • Concurrent component installs no longer corrupt dependencies (#​1991). Lock reclamation is race-free, liveness checks are bounded, unconfirmed liveness can no longer renew the lock-wait deadline forever, and timed-out component preparation is handled explicitly.
  • Deploy no longer silently truncates the tarball on a dangling symlink (#​1718).
  • deploy_component registryAuth is reshaped into a general-purpose credentials array (#​1797).
  • get_deployment_payload and delete_deployment_payload operations implemented (#​1898), and peer-side payload_blob reads retry on a transient 503 stall (#​1838).
  • A deployed-but-not-restarted component returns an actionable, super_user-gated 404 (#​1806) instead of a bare Not Found, and redeploying an active jsResource component flags a restart (#​1820).
  • Deploy-validation Scopes are closed to stop a deployLifecycle listener leak (#​1465).
  • server.registerOperation() from components is reachable via the operations API (#​1743).
  • set_configuration supports replicated: true (#​1556).
  • Graceful drain hook for in-flight work before worker shutdown (#​1621), with a waitForDrain poll fallback for drains that never emit (#​1643).

Replication (core side)

  • The resume-cursor write no longer freezes the apply worker (#​1888).
  • Live subscribers recover copy-applied rows via a copyApply reload marker (#​1530).
  • An in-flight replication receive returns 503 rather than 404 (#​1563), and compressed blobs are inflated on read instead of re-deflated (#​1393).
  • Apply commits are never gated on wire-carried save flags; local writes are gated on blob durability (#​1641).
  • FileBackedBlob.stream() cancel/cleanup paths hardened (#​1542).
  • Directional controlled-flow replication route fields are validated (#​1529).
  • CRDT hardening (#​1615): unified add fold, fixed counter time-travel reconstruction, null-prototype op registry, and a hardened apply path.

CLI

  • Token environment variables for CI/CD authentication, and harper login --for-ci to print CI credentials on stdout, gated on a remote target with userinfo stripped (#​1876).
  • CLI failure paths exit non-zero, including operation timeouts (#​1801).
  • Auth credentials are resolved as atomic pairs ahead of payload fields, separating transport auth from the operation payload for add_user/alter_user (#​1873).
  • A friendly "Harper is not running" message on local connect failure (#​1808), and ~/... install destinations are expanded to an absolute path immediately (#​1803).

Packaging and build

  • npm-shrinkwrap.json ships in the published package (#​1622), with devDependencies pruned before shrinkwrapping (#​1781, #​1783) and the react-native tree stripped (#​1959).
  • uWebSockets.js resolves via a tarball URL rather than a github: git spec (#​1756).
  • A Docker smoke test builds and boots the image in CI (#​1620), and the entrypoint is no longer written empty via a RUN heredoc redirect (#​1619).
  • Migration to @harperfast/code-guidelines (#​1992).
  • tsgo is available as an opt-in fast type-checker (#​1738).

Also in this release

Broad QA regression-anchor promotions across concurrency and data integrity, static serving, deploy, shutdown drain, secrets, subscription paths, read consistency, secondary-index integrity, cross-version upgrade read visibility, and transaction commit behavior (#​1517, #​1418, #​1791, #​1802, #​1833, #​1886, #​1884, #​1870, #​1900, #​1345, #​1861); a packaged-application E2E workflow (#​1908); a downstream Next.js adapter integration gate on harper PRs (#​1385); CI shard rebalancing and single-Node integration runs on PR pushes (#​1883); rocksdb-js updated to 2.5.0 (#​1892); assorted dependency updates, deflaking, lint migration to plain node:assert (#​1558), and removal of vestigial resourceCache plumbing (#​1980).

Full Changelog: HarperFast/harper@v5.1.15...v5.2.0

honojs/hono (hono)

v4.13.1

Compare Source

v4.13.0

Compare Source

Hono v4.13.0 is now available!

The highlight of this release is performance: a batch of low-level optimizations makes the core request/response path significantly faster — up to 1.25x on common routes in our benchmark. This release also adds first-class support for the HTTP QUERY method, defined in RFC 10008, a new Method Not Allowed middleware, and more.

Performance improvements

This release includes a series of small optimizations: skipping unnecessary Headers allocations, replacing regex tests with indexOf, allocating internal state lazily, and more.

Here is benchmarks/fetch comparing v4.12 and v4.13 (ROUNDS=5 ./compare.sh, Bun 1.4.0, Apple Silicon — each measurement runs in a fresh process, and the variant order is reversed every round to avoid warm-up bias):

Benchmark v4.12 v4.13 Speedup
pingGET / 165.83 ns 163.99 ns 1.01x
queryGET /id/1?name=bun 674.40 ns 616.99 ns 1.09x
jsonGET /user 528.99 ns 422.44 ns 1.25x
bodyPOST /json 1.16 µs 1.00 µs 1.15x

The individual changes:

  • perf(context): iterate the header record with for..in #​5118
  • perf(url): replace regex tests with indexOf #​5121
  • perf(context): skip Headers creation when there are no headers to merge #​5122
  • perf(urls): refactor tryDecodeURIComponent #​5158
  • perf(request): allocate #validatedData lazily #​5175
  • perf(request): probe the body cache without allocating #​5176

In addition, the RegExpRouter rewrite described below makes route registration plus the first match roughly 20% faster.

Thanks @​kibertoad for the contributions!

First-class QUERY method support

The QUERY method — a safe, idempotent method that carries a request body — is now a first-class citizen in Hono. You can define QUERY handlers with app.query():

const app = new Hono()

app.query('/search', async (c) => {
  const conditions = await c.req.json()
  return c.json(await search(conditions))
})

Thanks @​shellhaki!

QUERY support across built-in middleware

The built-in middleware has been updated to handle QUERY requests properly:

Cache Middleware

The Cache Middleware now caches QUERY responses. Following RFC 10008 Section 2.7, the cache key incorporates a SHA-256 digest of the request content and its representation metadata, so different query bodies are cached separately:

app.query(
  '/search',
  cache({
    cacheName: 'search-cache',
    cacheControl: 'max-age=3600',
  })
)

Note: To support this, the internal cache key format has changed for all methods, including GET. Cached entries are now stored under an internal URL of the form /.hono/cache?__hono_cache_key=.... If you purge cache entries by URL outside of the middleware (e.g. calling caches.delete() with the original request URL), you will need to update that logic. Existing cache entries stored with the old format will simply be re-fetched.

ETag Middleware

The ETag Middleware now handles conditional requests for QUERY, returning 304 Not Modified when If-None-Match matches.

CORS Middleware

The CORS Middleware now includes QUERY in the default Access-Control-Allow-Methods, which is now GET, HEAD, PUT, POST, DELETE, PATCH, QUERY. If you specify allowMethods explicitly, nothing changes for you.

Thanks @​usualoma and @​Cherry!

Method Not Allowed Middleware

The new Method Not Allowed Middleware returns a 405 Method Not Allowed response with a proper Allow header when the request path matches a registered route but the method does not:

import { methodNotAllowed } from 'hono/method-not-allowed'

const app = new Hono()

app.use(methodNotAllowed({ app }))

app.get('/hello', (c) => c.text('Hello!'))
app.post('/hello', (c) => c.text('Posted!'))

// PUT /hello -> 405 Method Not Allowed
// Allow: GET, HEAD, POST

You can customize the response with the onMethodNotAllowed option:

app.use(
  methodNotAllowed({
    app,
    onMethodNotAllowed: (c, methods) =>
      c.json({ error: 'Method Not Allowed' }, 405, { Allow: methods.join(', ') }),
  })
)

Thanks @​usualoma!

RegExpRouter throws UnsupportedPathError at registration time

The RegExpRouter now detects unsupported path combinations when routes are registered, instead of at the first matching request. This means misconfigured routes fail fast at startup rather than at runtime. As a bonus, registration plus the first match is roughly 20% faster.

Thanks @​usualoma!

Other improvements

  • hono/utils/headers has been synced with the IANA HTTP Field Name Registry, adding newly registered fields such as Accept-Query. Thanks @​akahoshi1421!
  • The JWT and JWK middleware now accept a realm option for the WWW-Authenticate challenge on 401 responses, and challenge values are properly escaped. Thanks @​arhxam!
  • JSX: useRef and RefObject are now aligned with React 19. Note that this is a type-level change — RefObject<T> is now { current: T }, so type a nullable ref as RefObject<T | null>, and pass useRef(undefined) instead of useRef(). Thanks @​ashunar0!
  • JSX: a function component can now return an array of children without throwing during server-side rendering. Thanks @​natsuki-engr!
  • The Compress Middleware now sets Vary: Accept-Encoding on negotiated responses. Thanks @​arhxam!

All changes

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • "before 9am on Monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from 69c2e5f to a2c567a Compare August 10, 2026 22:06

@dawsontoth dawsontoth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocked: npm ci fails — but the cause is a latent landmine on main, not these bumps

All three jobs (Format, Lint, Test) die at install, before anything is built or run:

npm error `npm ci` can only install packages when your package.json and package-lock.json ... are in sync.
npm error Missing: react-native-fs@2.20.0 from lock file
npm error Missing: react-native@0.84.1 from lock file
npm error Missing: @jest/create-cache-key-function@29.7.0 from lock file
... (~66 react-native / jest / metro entries)

Reproduced locally on a2c567a1 with npm 11.13.0 / Node 24.17.0 — npm ci exits 1.

What actually happened

This is the only PR in the current batch that bumps the harper devDep (5.1.26 → 5.2.1). That forces a re-resolve of harper's nested tree, and the regenerated lockfile drops 280 node_modules/harper/node_modules/** entries (adds 6). The chain is harperalasql, which declares:

"optionalDependencies": { "react-native-fs": "^2.20.0" }

and react-native-fs in turn has an optional peer on react-native. npm's resolver omits those from the lockfile, but npm ci's validator computes an ideal tree that includes them and then rejects the lock for not having them.

It is not caused by the dependency bumps

main's committed lock passes npm ci only because it still carries that subtree (1711 keys, react-native present). Regenerate it and main breaks identically:

tree keys react-native in lock npm ci
main, committed lock 1711 yes ✓ exit 0
main, lock regenerated with npm 11.13.0 1411 no ✗ exit 1
main, lock regenerated with npm 10.9.8 1408 no ✗ exit 1
this PR, committed lock 1437 no ✗ exit 1

So any PR that regenerates this lockfile trips it; npm 10 and npm 11 both produce a lock their own npm ci rejects, and npm install on this branch does not repair it (byte-identical output). The other five open agent PRs install fine purely because they leave harper at 5.1.26 and inherit main's subtree verbatim.

The dependency intent here is clean, for the record: 34 top-level moves, 0 major crossings, 0 additions/removals outside harper's subtree, plus .nvmrc 24.18.1 → 24.19.0. The @ai-sdk/* set moves together.

Suggested fix (belongs on main, not this branch)

Same shape as the commitlint optional-peer problem this org hit before — the durable fix is to stop depending on npm materializing an optional transitive. Options, cheapest first:

  1. Neutralize alasql's optional dep with an overrides entry so the subtree never enters the ideal tree, e.g. "alasql": { "react-native-fs": "npm:empty-npm-package@1.0.0" }harper only needs alasql's SQL parsing, never its React Native file adapter.
  2. Or declare the trio as direct devDependencies (the fix used for argue-cli/conventional-commits-*), which keeps them in the lock under every npm version — heavier, since it pulls a full React Native tree into the repo's declared deps.

Once main installs reproducibly, rebasing this PR should clear all three jobs. Worth prioritizing: until then every agent Renovate PR that touches harper is blocked, and the failure looks like the bump's fault when it isn't.

@renovate
renovate Bot force-pushed the renovate/all-minor-patch branch from a2c567a to 5723ac7 Compare August 11, 2026 23:06
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