{"library":"hapi-api-version","type":"library","category":null,"description":"hapi-api-version is a plugin designed for the Hapi.js framework (v17 onwards) to facilitate API versioning. It allows developers to manage different API versions by supporting versioning via the `Accept` header or a custom header (defaulting to `api-version`). The plugin internally rewrites URLs based on the requested API version, enabling both handler-only versioning and distinct route definitions per version, including separate response schemas. The latest version, 2.3.1, was last published 7 years ago, making it compatible only with older Hapi.js ecosystems (specifically Hapi v17.x). It does not receive active updates for modern Hapi versions (v20+ or v21+), implying a halted release cadence and limited applicability for current Hapi projects.","language":"javascript","status":"abandoned","version":"2.3.1","tags":["javascript","hapi","hapijs","api","versioning"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hapi-api-version","imports":["const hapiApiVersion = require('hapi-api-version');","await server.register({ plugin: require('hapi-api-version'), options: { validVersions: [1, 2], defaultVersion: 2, vendorName: 'mysuperapi' } });"]},{"cmd":"yarn add hapi-api-version","imports":[]},{"cmd":"pnpm add hapi-api-version","imports":[]}],"homepage":null,"github":"https://github.com/p-meier/hapi-api-version","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hapi-api-version","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/hapi-api-version/compatibility"}}