@changesets/types
Advanced tools
Comparing version 0.3.0 to 0.3.1
# @changesets/types | ||
## 0.3.1 | ||
### Patch Changes | ||
- [`a679b1d`](https://github.com/atlassian/changesets/commit/a679b1dcdcb56652d31536e2d6326ba02a9dfe62) [#204](https://github.com/atlassian/changesets/pull/204) Thanks [@Andarist](https://github.com/Andarist)! - Correctly handle the 'access' flag for packages | ||
Previously, we had access as "public" or "private", access "private" isn't valid. This was a confusing because there are three states for publishing a package: | ||
- `private: true` - the package will not be published to npm (worked) | ||
- `access: public` - the package will be publicly published to npm (even if it uses a scope) (worked) | ||
- `access: restricted` - the package will be published to npm, but only visible/accessible by those who are part of the scope. This technically worked, but we were passing the wrong bit of information in. | ||
Now, we pass the correct access options `public` or `restricted`. | ||
## 0.3.0 | ||
@@ -4,0 +18,0 @@ |
declare const DEPENDENCY_TYPES: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; | ||
export declare type VersionType = "major" | "minor" | "patch"; | ||
export declare type DependencyType = typeof DEPENDENCY_TYPES[number]; | ||
export declare type AccessType = "public" | "restricted"; | ||
export declare type Release = { | ||
@@ -39,2 +40,6 @@ name: string; | ||
}; | ||
private?: boolean; | ||
publishConfig?: { | ||
access?: AccessType; | ||
}; | ||
}; | ||
@@ -46,3 +51,3 @@ export declare type Linked = ReadonlyArray<ReadonlyArray<string>>; | ||
linked: Linked; | ||
access: "public" | "private"; | ||
access: AccessType; | ||
}; | ||
@@ -53,3 +58,3 @@ export declare type WrittenConfig = { | ||
linked?: Linked; | ||
access?: "public" | "private"; | ||
access?: AccessType; | ||
}; | ||
@@ -56,0 +61,0 @@ export declare type Workspace = { |
{ | ||
"name": "@changesets/types", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Common types shared between changeset packages", | ||
@@ -5,0 +5,0 @@ "main": "dist/types.cjs.js", |
@@ -14,2 +14,4 @@ // NB: Bolt check uses a different dependnecy set to every other package. | ||
export type AccessType = "public" | "restricted"; | ||
export type Release = { name: string; type: VersionType }; | ||
@@ -45,2 +47,6 @@ | ||
optionalDependencies?: { [key: string]: string }; | ||
private?: boolean; | ||
publishConfig?: { | ||
access?: AccessType; | ||
}; | ||
}; | ||
@@ -54,3 +60,3 @@ | ||
linked: Linked; | ||
access: "public" | "private"; | ||
access: AccessType; | ||
}; | ||
@@ -62,3 +68,3 @@ | ||
linked?: Linked; | ||
access?: "public" | "private"; | ||
access?: AccessType; | ||
}; | ||
@@ -65,0 +71,0 @@ |
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
8000
162