🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@changesets/types

Package Overview
Dependencies
Maintainers
4
Versions
27
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

6.1.0
latest
Source
npm
Version published
Weekly downloads
3.1M
-32.5%
Maintainers
4
Weekly downloads
 
Created

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

FAQs

Package last updated on 17 Feb 2025

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