Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@changesets/config

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/config - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

11

CHANGELOG.md
# @changesets/config
## 1.1.0
### Minor Changes
- [`2b49d66`](https://github.com/atlassian/changesets/commit/2b49d668ecaa1333bc5c7c5be4648dda1b11528d) [#358](https://github.com/atlassian/changesets/pull/358) Thanks [@Blasz](https://github.com/Blasz)! - Add new updateInternalDependencies config option to disable auto bumping of internal dependencies in the same release if the dependency was only patch bumped
### Patch Changes
- Updated dependencies [[`2b49d66`](https://github.com/atlassian/changesets/commit/2b49d668ecaa1333bc5c7c5be4648dda1b11528d)]:
- @changesets/types@3.0.0
## 1.0.3

@@ -4,0 +15,0 @@

14

dist/config.cjs.dev.js

@@ -14,3 +14,3 @@ 'use strict';

name: "@changesets/config",
version: "1.0.3",
version: "1.1.0",
description: "Utilities for reading and parsing Changeset's config",

@@ -28,3 +28,3 @@ main: "dist/config.cjs.js",

"@changesets/logger": "^0.0.5",
"@changesets/types": "^2.0.1",
"@changesets/types": "^3.0.0",
"@manypkg/get-packages": "^1.0.1",

@@ -45,3 +45,4 @@ "fs-extra": "^7.0.1"

access: "restricted",
baseBranch: "master"
baseBranch: "master",
updateInternalDependencies: "patch"
};

@@ -123,2 +124,6 @@

if (json.updateInternalDependencies !== undefined && !["patch", "minor"].includes(json.updateInternalDependencies)) {
messages.push(`The \`updateInternalDependencies\` option is set as ${JSON.stringify(json.updateInternalDependencies, null, 2)} but can only be 'patch' or 'minor'`);
}
if (messages.length) {

@@ -133,3 +138,4 @@ throw new errors.ValidationError(`Some errors occurred when validating the changesets config:\n` + messages.join("\n"));

linked: json.linked === undefined ? defaultWrittenConfig.linked : json.linked,
baseBranch: json.baseBranch === undefined ? defaultWrittenConfig.baseBranch : json.baseBranch
baseBranch: json.baseBranch === undefined ? defaultWrittenConfig.baseBranch : json.baseBranch,
updateInternalDependencies: json.updateInternalDependencies === undefined ? defaultWrittenConfig.updateInternalDependencies : json.updateInternalDependencies
};

@@ -136,0 +142,0 @@ return config;

@@ -13,3 +13,3 @@ "use strict";

name: "@changesets/config",
version: "1.0.3",
version: "1.1.0",
description: "Utilities for reading and parsing Changeset's config",

@@ -24,3 +24,3 @@ main: "dist/config.cjs.js",

"@changesets/logger": "^0.0.5",
"@changesets/types": "^2.0.1",
"@changesets/types": "^3.0.0",
"@manypkg/get-packages": "^1.0.1",

@@ -41,3 +41,4 @@ "fs-extra": "^7.0.1"

access: "restricted",
baseBranch: "master"
baseBranch: "master",
updateInternalDependencies: "patch"
};

@@ -68,3 +69,4 @@

} else messages.push(`The \`linked\` option is set as ${JSON.stringify(json.linked, null, 2)} when the only valid values are undefined or an array of arrays of package names`);
if (messages.length) throw new errors.ValidationError("Some errors occurred when validating the changesets config:\n" + messages.join("\n"));
if (void 0 === json.updateInternalDependencies || [ "patch", "minor" ].includes(json.updateInternalDependencies) || messages.push(`The \`updateInternalDependencies\` option is set as ${JSON.stringify(json.updateInternalDependencies, null, 2)} but can only be 'patch' or 'minor'`),
messages.length) throw new errors.ValidationError("Some errors occurred when validating the changesets config:\n" + messages.join("\n"));
return {

@@ -75,3 +77,4 @@ changelog: getNormalisedChangelogOption(void 0 === json.changelog ? defaultWrittenConfig.changelog : json.changelog),

linked: void 0 === json.linked ? defaultWrittenConfig.linked : json.linked,
baseBranch: void 0 === json.baseBranch ? defaultWrittenConfig.baseBranch : json.baseBranch
baseBranch: void 0 === json.baseBranch ? defaultWrittenConfig.baseBranch : json.baseBranch,
updateInternalDependencies: void 0 === json.updateInternalDependencies ? defaultWrittenConfig.updateInternalDependencies : json.updateInternalDependencies
};

@@ -78,0 +81,0 @@ }, fakePackage = {

@@ -8,3 +8,3 @@ import { readJSON } from 'fs-extra';

name: "@changesets/config",
version: "1.0.3",
version: "1.1.0",
description: "Utilities for reading and parsing Changeset's config",

@@ -22,3 +22,3 @@ main: "dist/config.cjs.js",

"@changesets/logger": "^0.0.5",
"@changesets/types": "^2.0.1",
"@changesets/types": "^3.0.0",
"@manypkg/get-packages": "^1.0.1",

@@ -39,3 +39,4 @@ "fs-extra": "^7.0.1"

access: "restricted",
baseBranch: "master"
baseBranch: "master",
updateInternalDependencies: "patch"
};

@@ -117,2 +118,6 @@

if (json.updateInternalDependencies !== undefined && !["patch", "minor"].includes(json.updateInternalDependencies)) {
messages.push(`The \`updateInternalDependencies\` option is set as ${JSON.stringify(json.updateInternalDependencies, null, 2)} but can only be 'patch' or 'minor'`);
}
if (messages.length) {

@@ -127,3 +132,4 @@ throw new ValidationError(`Some errors occurred when validating the changesets config:\n` + messages.join("\n"));

linked: json.linked === undefined ? defaultWrittenConfig.linked : json.linked,
baseBranch: json.baseBranch === undefined ? defaultWrittenConfig.baseBranch : json.baseBranch
baseBranch: json.baseBranch === undefined ? defaultWrittenConfig.baseBranch : json.baseBranch,
updateInternalDependencies: json.updateInternalDependencies === undefined ? defaultWrittenConfig.updateInternalDependencies : json.updateInternalDependencies
};

@@ -130,0 +136,0 @@ return config;

@@ -10,2 +10,3 @@ import { Packages } from "@manypkg/get-packages";

readonly baseBranch: "master";
readonly updateInternalDependencies: "patch";
};

@@ -12,0 +13,0 @@ export declare let read: (cwd: string, packages: Packages) => Promise<Config>;

{
"name": "@changesets/config",
"version": "1.0.3",
"version": "1.1.0",
"description": "Utilities for reading and parsing Changeset's config",

@@ -16,3 +16,3 @@ "main": "dist/config.cjs.js",

"@changesets/logger": "^0.0.5",
"@changesets/types": "^2.0.1",
"@changesets/types": "^3.0.0",
"@manypkg/get-packages": "^1.0.1",

@@ -19,0 +19,0 @@ "fs-extra": "^7.0.1"

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