5.7.0
API
API v5.7.0 — npm package & instance configuration.
- The
@20syldev/apipackage now imports directly:import { evaluate } from '@20syldev/api'targets the latest version,@20syldev/api/serverstarts the full API with every version mounted, and TypeScript declarations ship with it. The/v1and/v2subpaths pointed at non-existent files — fixed. - GET /url returns the scheme's default port when the URL omits it:
443forhttpsandwss,80forhttpandws,21forftp.nullis now reserved for schemes with no known default. - Instance metadata becomes configurable —
DOCS_URL,REPO_URL,INSTANCE_CREATED— and each field disappears from GET /infos until it is set, so a self-hosted instance no longer advertises someone else's documentation or repository. /logscan be gated behind a token, expected in theX-Logs-Tokenheader and defined byLOGS_TOKEN. Without that variable it stays open, as before.- Request logs no longer keep parameter values:
?text=secretis recorded as?text. Private chat and game tokens carried in the path are masked too. TRUSTED_PROXIESdescribes the trusted hops behind a CDN or platform router, as CIDR blocks or via theloopback,linklocalanduniquelocalshorthands.- Error responses no longer carry the
documentationlink they used to include — the body is nowmessage,errorandstatusonly. - Node 22.12 becomes the minimum, which allows the package to be used in both ESM and CommonJS.
Documentation
- Removed the
documentationfield from every error example on the Getting Started page, matching the lighter error body. - Documented the per-scheme default ports on URL and corrected the
portfield, which no longer returnsnullwhenever the URL omits it. - Marked the
documentation,githubandcreationfields on Infos as instance-dependent, since a self-hosted instance omits them unless configured.