github QuantumNous/new-api v1.0.0-rc.6

4 hours ago

Highlights

This release improves observability by recording upstream request IDs in logs and adds a compliance confirmation step for paid features. If your logs table is large, pre-apply the upstream_request_id column and index with online DDL before upgrading to avoid a potentially long migration.

New Features

  • Added upstream request ID tracking in request logs for easier upstream call tracing, while avoiding unintended response header overrides.
  • Added a compliance confirmation step before paid features can be used.

Bug Fixes

  • Fixed the channel combobox so focusing it no longer hides valid channel options (#4829).

Other

  • Upgrade notice: the logs table now includes a new upstream_request_id column and index; on large installations, run the appropriate online DDL below before upgrading to avoid a long or blocking automatic migration.

MySQL / InnoDB:

-- 1. Add the column using online DDL.
ALTER TABLE logs
  ADD COLUMN upstream_request_id VARCHAR(128) NOT NULL DEFAULT '',
  ALGORITHM=INPLACE, LOCK=NONE;

-- 2. Add the index using online DDL.
ALTER TABLE logs
  ADD INDEX idx_logs_upstream_request_id (upstream_request_id),
  ALGORITHM=INPLACE, LOCK=NONE;

PostgreSQL 11+:

-- 1. Add the column without rewriting the table on PG 11+.
ALTER TABLE logs
  ADD COLUMN IF NOT EXISTS upstream_request_id VARCHAR(128) NOT NULL DEFAULT '';

-- 2. Add the index concurrently to avoid blocking reads and writes.
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_logs_upstream_request_id
  ON logs (upstream_request_id);

What's Changed

  • chore(deps): bump axios from 1.15.0 to 1.15.2 in /web/classic by @dependabot[bot] in #4634
  • chore(deps-dev): bump ip-address from 10.1.0 to 10.2.0 in /electron by @dependabot[bot] in #4811
  • 修复渠道列表显示不全问题 by @feitianbubu in #4829

Full Changelog: v1.0.0-rc.5...v1.0.0-rc.6

Don't miss a new new-api release

NewReleases is sending notifications on new releases.