@changesets/types
Advanced tools
Comparing version 5.2.1 to 6.0.0
# @changesets/types | ||
## 6.0.0 | ||
### Major Changes | ||
- [#1185](https://github.com/changesets/changesets/pull/1185) [`a971652`](https://github.com/changesets/changesets/commit/a971652ec1403aab3fb89eb2f1640bd5012b895a) Thanks [@Andarist](https://github.com/Andarist)! - `package.json#exports` have been added to limit what (and how) code might be imported from the package. | ||
## 5.2.1 | ||
@@ -4,0 +10,0 @@ |
declare const DEPENDENCY_TYPES: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; | ||
export declare type VersionType = "major" | "minor" | "patch" | "none"; | ||
export declare type DependencyType = typeof DEPENDENCY_TYPES[number]; | ||
export declare type AccessType = "public" | "restricted"; | ||
export declare type Release = { | ||
export type VersionType = "major" | "minor" | "patch" | "none"; | ||
export type DependencyType = typeof DEPENDENCY_TYPES[number]; | ||
export type AccessType = "public" | "restricted"; | ||
export type Release = { | ||
name: string; | ||
type: VersionType; | ||
}; | ||
export declare type ComprehensiveRelease = { | ||
export type ComprehensiveRelease = { | ||
name: string; | ||
@@ -16,10 +16,10 @@ type: VersionType; | ||
}; | ||
export declare type Changeset = { | ||
export type Changeset = { | ||
summary: string; | ||
releases: Array<Release>; | ||
}; | ||
export declare type NewChangeset = Changeset & { | ||
export type NewChangeset = Changeset & { | ||
id: string; | ||
}; | ||
export declare type ReleasePlan = { | ||
export type ReleasePlan = { | ||
changesets: NewChangeset[]; | ||
@@ -29,3 +29,3 @@ releases: ComprehensiveRelease[]; | ||
}; | ||
export declare type PackageJSON = { | ||
export type PackageJSON = { | ||
name: string; | ||
@@ -55,5 +55,5 @@ version: string; | ||
}; | ||
export declare type PackageGroup = ReadonlyArray<string>; | ||
export declare type Fixed = ReadonlyArray<PackageGroup>; | ||
export declare type Linked = ReadonlyArray<PackageGroup>; | ||
export type PackageGroup = ReadonlyArray<string>; | ||
export type Fixed = ReadonlyArray<PackageGroup>; | ||
export type Linked = ReadonlyArray<PackageGroup>; | ||
export interface PrivatePackages { | ||
@@ -63,3 +63,3 @@ version: boolean; | ||
} | ||
export declare type Config = { | ||
export type Config = { | ||
changelog: false | readonly [string, any]; | ||
@@ -85,3 +85,3 @@ commit: false | readonly [string, any]; | ||
}; | ||
export declare type WrittenConfig = { | ||
export type WrittenConfig = { | ||
changelog?: false | readonly [string, any] | string; | ||
@@ -109,3 +109,3 @@ commit?: boolean | readonly [string, any] | string; | ||
}; | ||
export declare type ExperimentalOptions = { | ||
export type ExperimentalOptions = { | ||
onlyUpdatePeerDependentsWhenOutOfRange?: boolean; | ||
@@ -116,22 +116,22 @@ updateInternalDependents?: "always" | "out-of-range"; | ||
}; | ||
export declare type NewChangesetWithCommit = NewChangeset & { | ||
export type NewChangesetWithCommit = NewChangeset & { | ||
commit?: string; | ||
}; | ||
export declare type ModCompWithPackage = ComprehensiveRelease & { | ||
export type ModCompWithPackage = ComprehensiveRelease & { | ||
packageJson: PackageJSON; | ||
dir: string; | ||
}; | ||
export declare type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType, changelogOpts: null | Record<string, any>) => Promise<string>; | ||
export declare type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: any) => Promise<string>; | ||
export declare type ChangelogFunctions = { | ||
export type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType, changelogOpts: null | Record<string, any>) => Promise<string>; | ||
export type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: any) => Promise<string>; | ||
export type ChangelogFunctions = { | ||
getReleaseLine: GetReleaseLine; | ||
getDependencyReleaseLine: GetDependencyReleaseLine; | ||
}; | ||
export declare type GetAddMessage = (changeset: Changeset, commitOptions: any) => Promise<string>; | ||
export declare type GetVersionMessage = (releasePlan: ReleasePlan, commitOptions: any) => Promise<string>; | ||
export declare type CommitFunctions = { | ||
export type GetAddMessage = (changeset: Changeset, commitOptions: any) => Promise<string>; | ||
export type GetVersionMessage = (releasePlan: ReleasePlan, commitOptions: any) => Promise<string>; | ||
export type CommitFunctions = { | ||
getAddMessage?: GetAddMessage; | ||
getVersionMessage?: GetVersionMessage; | ||
}; | ||
export declare type PreState = { | ||
export type PreState = { | ||
mode: "pre" | "exit"; | ||
@@ -138,0 +138,0 @@ tag: string; |
{ | ||
"name": "@changesets/types", | ||
"version": "5.2.1", | ||
"version": "6.0.0", | ||
"description": "Common types shared between changeset packages", | ||
"main": "dist/types.cjs.js", | ||
"module": "dist/types.esm.js", | ||
"main": "dist/changesets-types.cjs.js", | ||
"module": "dist/changesets-types.esm.js", | ||
"exports": { | ||
".": { | ||
"types": { | ||
"import": "./dist/changesets-types.cjs.mjs", | ||
"default": "./dist/changesets-types.cjs.js" | ||
}, | ||
"module": "./dist/changesets-types.esm.js", | ||
"import": "./dist/changesets-types.cjs.mjs", | ||
"default": "./dist/changesets-types.cjs.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"license": "MIT", | ||
"repository": "https://github.com/changesets/changesets/tree/main/packages/types" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
22057
12
1
290