Socket
Socket
Sign inDemoInstall

conventional-changelog-config-spec

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-config-spec

a spec describing the config options supported by conventional-config for upstream tooling


Version published
Weekly downloads
623K
increased by4.09%
Maintainers
1
Weekly downloads
 
Created

What is conventional-changelog-config-spec?

The conventional-changelog-config-spec npm package provides a specification for configuring conventional changelog tools. It helps standardize the configuration options for generating changelogs based on conventional commit messages.

What are conventional-changelog-config-spec's main functionalities?

Define Configuration Schema

This feature allows you to define a JSON schema for the configuration of conventional changelog tools. The schema includes properties like 'types', which is an array of objects specifying the type of commit, the section it belongs to, and whether it should be hidden.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Conventional Changelog Config",
  "type": "object",
  "properties": {
    "types": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": { "type": "string" },
          "section": { "type": "string" },
          "hidden": { "type": "boolean" }
        },
        "required": ["type", "section"]
      }
    }
  },
  "required": ["types"]
}

Validate Configuration

This feature allows you to validate a configuration object against the defined schema using a JSON schema validator like Ajv. It ensures that the configuration adheres to the specified structure and required fields.

const Ajv = require('ajv');
const ajv = new Ajv();
const schema = require('conventional-changelog-config-spec');
const validate = ajv.compile(schema);
const config = {
  types: [
    { type: 'feat', section: 'Features' },
    { type: 'fix', section: 'Bug Fixes' }
  ]
};
const valid = validate(config);
if (!valid) console.log(validate.errors);

Other packages similar to conventional-changelog-config-spec

Keywords

FAQs

Package last updated on 14 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc