Socket
Socket
Sign inDemoInstall

@changesets/types

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/types

Common types shared between changeset packages


Version published
Maintainers
3
Created

Package description

What is @changesets/types?

@changesets/types is a TypeScript type definitions package for the Changesets tool, which is used to manage versioning and changelogs for monorepos. It provides type definitions for various components and configurations used in the Changesets workflow.

What are @changesets/types's main functionalities?

Changeset type

Defines the structure of a changeset, including an ID, summary, and a list of releases with their respective types.

import { Changeset } from '@changesets/types';

const exampleChangeset: Changeset = {
  id: 'example-id',
  summary: 'This is an example changeset',
  releases: [
    { name: 'package-a', type: 'minor' },
    { name: 'package-b', type: 'patch' }
  ]
};

Release type

Defines the structure of a release, including the package name and the type of release (major, minor, or patch).

import { Release } from '@changesets/types';

const exampleRelease: Release = {
  name: 'package-a',
  type: 'minor'
};

Config type

Defines the structure of the Changesets configuration, including options for changelog generation, commit behavior, access level, and the base branch.

import { Config } from '@changesets/types';

const exampleConfig: Config = {
  changelog: ['@changesets/changelog-github', { repo: 'org/repo' }],
  commit: false,
  access: 'public',
  baseBranch: 'main'
};

Other packages similar to @changesets/types

Readme

Source

@changesets/types

View changelog

A package of types for use in changesets, or projects wishing to extend them.

Of these, the most useful types are:

NewChangeset

The format for a changeset as of changesets version 2.

ChangelogFunctions

The shape of the object used for generating changelog entries.

ReleasePlan

The combined object used to version packages and update changelogs.

FAQs

Package last updated on 15 Apr 2020

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc