Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@keystonejs/app-version
Advanced tools
This is the last active development release of this package as Keystone 5 is now in a 6 to 12 month active maintenance phase. For more information please read our Keystone 5 and beyond post.
This package provides support for including a version string both as an HTTP response header and as a graphQL query.
The function appVersionMiddleware(version)
will return a piece of middleware which will set the X-Keystone-App-Version
response header to version
on all HTTP requests.
The graphQL provider AppVersionProvider
will add an { appVersion }
query to your graphQL API which returns version
as a string.
This package is designed to be used indirectly via the conveniance API on the Keystone
class:
const keystone = new Keystone({
appVersion: {
version: '1.0.0',
addVersionToHttpHeaders: true,
access: true,
},
});
It can also be used directly if you would like to manually manage your middleware stack of graphQL providers.
const { AppVersionProvider, appVersionMiddleware } = require('@keystonejs/app-version');
const version = '1.0.0';
app.use(appVersionMiddleware(version));
keystone._providers.push(
new AppVersionProvider({
version,
access: true,
schemaNames: ['public'],
})
);
FAQs
KeystoneJS App Version Plugin
We found that @keystonejs/app-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.