@wolfstar/plugin-api. For the weekly summary across all packages, see the changelog overview.
2.2.0 (2026-10-20)
New features
- Own
stars.configkey — The module setsmeta.configKey, so you can write its options under the top-levelapikey ofstars.configinstead of the[specifier, options]tuple ofmodules. The tuple still works and is merged over the key. The key is typed indefineConfigonce the module is imported instars.config.ts. (#259)
Updates
- New optional peer —
@wolfstar/schema(^0.9.0) is a new optional peer that carries theStarsConfigtype the keys extend.
Migration
@wolfstar/kitpeer raised — The@wolfstar/kitpeer range moves from^0.1.0to^0.2.0, the first version that readsconfigKey. If your project uses@wolfstar/kit0.1, update it.
2.1.1 (2026-10-08)
Updates
- Dependencies — Updated third-party dependencies.
2.1.0 (2026-10-05)
New features
/moduleand/pluginentrypoints — Adds@wolfstar/plugin-api/moduleand@wolfstar/plugin-api/plugin. List the module inmodulesinstars.config, or pass thedefinePluginfactory toplugins. Both need@wolfstar/http-framework6.1 (and@wolfstar/kitfor the module)../registeris unchanged and still supports framework v3, v5, and v6. (#194)
2.0.1 (2026-10-04)
Updates
http-framework6 support — The peer range now accepts@wolfstar/http-framework^6.0.0. (#176)- Dependencies — Updated third-party dependencies.
Bug fixes
- Dependencies — Updated
cookie-esto v3. (#180) - Peer range — Accept
@wolfstar/http-frameworkv6 in the peer range (|| ^6.0.0). (#176)
2.0.0 (2026-10-01)
New features
- Sapphire 8.3.1 parity — The plugin now matches
@sapphire/plugin-api8.3.1, except for authentication. Added:CookieStoreand thecookiesmiddleware, body readers (readBody*,readValidatedBody*,asWeb), the fullApiResponsehelper set,ServerOptions.prefix, per-routemaximumBodyLength, theMiddlewareSuccess/MiddlewareFailureevents, full router (RouterBranch/RouterNode) parity,HttpCodes, and aversionexport. (#161)
Updates
- Renames —
ApiServeris renamedServer,ApiServerOptions/ApiServerEvents/ApiServerEventareServerOptions/ServerEvents/ServerEvent,ApiPluginisApi, andHttpMethodisMethodName. - Response helpers — Use
response.status(code).json(data)instead ofjson(data, code). - Body reading —
readBodyJson()returnsunknownand takes its limit frommaximumBodyLength. - Query object —
request.queryis a plain record. - Route matching — A route with no methods now answers
404instead of defaulting toGET, andOPTIONSanswers200with an empty body instead of204. - Listener pieces — Listener piece names are PascalCase.
- Node version — Requires Node.js
>=20.18.1.
Bug fixes
- Router path, route removal, and
supportedMethodsbugs inherited from upstream are fixed. Server#connect()now rejects instead of throwing uncaught when the port is in use.- Malformed
Cookieheaders no longer crash parsing.
Migration
- Replace
ApiServerwithServer,ApiServerOptionswithServerOptions,ApiServerEventswithServerEvents,ApiServerEventwithServerEvent,ApiPluginwithApi, andHttpMethodwithMethodName. - Replace
json(data, code)withstatus(code).json(data). - Replace
readBodyJson<Shape>withreadBodyJson()returningunknown. - Ensure Node.js is
>=20.18.1.
1.1.7
Bug fixes
- Peer dependency — Accept
@wolfstar/http-frameworkv5 as a peer dependency (^3.0.0 || ^5.0.0), so v5 projects no longer install the plugin with an unmet peer. (#125)
1.1.6
Updates
- Dependencies — Updated all non-major dependencies. (#75)
1.1.5
Updates
- Type validation — Validate every published subpath export with
are-the-types-wrong, not just the main entrypoint.createTsdownOptionshardcodedattw.entrypointsto["."], so the./registerexport of each package shipped unchecked. It now accepts anattwEntrypointsoption, and all packages list their real entrypoints. (#70)
1.1.4
Updates
- Dependencies — Updated all non-major dependencies. (#47)
1.1.3
Updates
- Dependencies — Updated all non-major dependencies. (#26)
1.1.2
Bug fixes
- Repository URL — Fix repository URL in package.json to point to the plugins repository. (#13)
1.1.1
Updates
- Republish — Republish after fixing the npm trusted-publishing configuration that prevented earlier releases from reaching the registry.
1.1.0
New features
- New package — Add
@wolfstar/plugin-api: standalone REST API server plugin for@wolfstar/http-frameworkwith routes, middlewares, and router.