Socket
Socket
Sign inDemoInstall

covector

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

covector - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

9

CHANGELOG.md
# Changelog
## \[0.10.1]
### Dependencies
- Upgraded to `@covector/changelog@0.10.0`
- Upgraded to `@covector/files@0.7.0`
- Upgraded to `@covector/apply@0.9.1`
- Upgraded to `@covector/assemble@0.10.2`
## \[0.10.0]

@@ -4,0 +13,0 @@

14

package.json
{
"name": "covector",
"version": "0.10.0",
"version": "0.10.1",
"license": "Apache-2.0",

@@ -22,14 +22,14 @@ "homepage": "https://github.com/jbolda/covector#readme",

"dependencies": {
"@covector/apply": "0.9.0",
"@covector/assemble": "0.10.1",
"@covector/changelog": "0.9.0",
"@covector/apply": "0.9.1",
"@covector/assemble": "0.10.2",
"@covector/changelog": "0.10.0",
"@covector/command": "0.7.0",
"@covector/files": "0.6.2",
"@covector/files": "0.7.0",
"effection": "^2.0.6",
"globby": "^11.1.0",
"inquirer": "^8.2.5",
"yargs": "^17.7.0"
"yargs": "^17.7.2"
},
"devDependencies": {
"@covector/types": "^0.0.0",
"@covector/types": "0.0.0",
"@types/inquirer": "^8.2.6",

@@ -36,0 +36,0 @@ "fixturez": "^1.1.0",

@@ -103,3 +103,3 @@ import {

},
{}
{},
);

@@ -106,0 +106,0 @@

@@ -52,3 +52,3 @@ import yargs from "yargs";

.epilogue(
"For more information on covector, see: https://www.github.com/jbolda/covector"
"For more information on covector, see: https://www.github.com/jbolda/covector",
)

@@ -55,0 +55,0 @@ .parse(argv);

@@ -28,3 +28,3 @@ import inquirer from "inquirer";

const pkgFiles: PackageFile[] = yield all(
pkgs.map((pkg: string) => readPkgFile({ file: pkg, nickname: pkg, cwd }))
pkgs.map((pkg: string) => readPkgFile({ file: pkg, nickname: pkg, cwd })),
);

@@ -57,3 +57,3 @@

? repoURL.length - 4
: repoURL.length
: repoURL.length,
)

@@ -161,6 +161,6 @@ : "";

path.posix.join(cwd, changeFolder, "config.json"),
"r"
"r",
);
console.log(
`The config.json exists in ${changeFolder}, skipping creation.`
`The config.json exists in ${changeFolder}, skipping creation.`,
);

@@ -172,3 +172,3 @@ yield testOpen.close();

path.posix.join(cwd, changeFolder, "config.json"),
JSON.stringify(config, null, 2)
JSON.stringify(config, null, 2),
);

@@ -181,3 +181,3 @@ }

path.posix.join(cwd, changeFolder, "readme.md"),
"r"
"r",
);

@@ -197,3 +197,3 @@ console.log(`The readme.md exists in ${changeFolder}, skipping creation.`);

const testOpen: Dir = yield fs.opendir(
path.posix.join(cwd, "./.github/workflows/")
path.posix.join(cwd, "./.github/workflows/"),
);

@@ -213,6 +213,6 @@ console.log(`The .github/workflows folder exists, skipping creation.`);

path.posix.join(cwd, ".github", "workflows", "covector-status.yml"),
"r"
"r",
);
console.log(
`The status workflow exists in ./.github/workflows, skipping creation.`
`The status workflow exists in ./.github/workflows, skipping creation.`,
);

@@ -222,7 +222,7 @@ yield testOpen.close();

console.log(
"Writing out covector-status.yml to give you a covector update on PR."
"Writing out covector-status.yml to give you a covector update on PR.",
);
yield fs.writeFile(
path.posix.join(cwd, ".github", "workflows", "covector-status.yml"),
githubStatusWorkflow({ version: covectorVersion })
githubStatusWorkflow({ version: covectorVersion }),
);

@@ -238,8 +238,8 @@ }

"workflows",
"covector-version-or-publish.yml"
"covector-version-or-publish.yml",
),
"r"
"r",
);
console.log(
`The version/publish workflow exists in ./.github/workflows, skipping creation.`
`The version/publish workflow exists in ./.github/workflows, skipping creation.`,
);

@@ -249,3 +249,3 @@ yield testOpen.close();

console.log(
"Writing out covector-version-or-publish.yml to version and publish your packages."
"Writing out covector-version-or-publish.yml to version and publish your packages.",
);

@@ -257,3 +257,3 @@ yield fs.writeFile(

"workflows",
"covector-version-or-publish.yml"
"covector-version-or-publish.yml",
),

@@ -264,3 +264,3 @@ githubPublishWorkflow({

version: covectorVersion,
})
}),
);

@@ -279,3 +279,3 @@ }

gitignore: true,
}
},
);

@@ -419,8 +419,8 @@ };

}${
pkgManagers.rust
? `
pkgManagers.rust
? `
- name: cargo login
run: cargo login \${{ secrets.crate_token }}`
: ""
}
: ""
}
- name: git config

@@ -439,7 +439,7 @@ run: |

}${
pkgManagers.rust
? `
pkgManagers.rust
? `
CARGO_AUDIT_OPTIONS: \${{ secrets.CARGO_AUDIT_OPTIONS }}`
: ""
}
: ""
}
with:

@@ -446,0 +446,0 @@ token: \${{ secrets.GITHUB_TOKEN }}

@@ -97,3 +97,3 @@ import {

},
pkg: string
pkg: string,
) => {

@@ -108,3 +108,3 @@ pkgs[pkg] = {

},
{}
{},
);

@@ -141,3 +141,3 @@

},
result: { name: string }
result: { name: string },
) => {

@@ -147,3 +147,3 @@ pkgs[result.name].applied = result;

},
pkgCommandsRan
pkgCommandsRan,
);

@@ -194,3 +194,3 @@

},
{}
{},
);

@@ -197,0 +197,0 @@

@@ -103,3 +103,3 @@ import {

},
{}
{},
);

@@ -106,0 +106,0 @@

@@ -92,4 +92,4 @@ import { confirmCommandsToRun } from "@covector/command";

} ready to publish which includes${commandsToRun.map(
(pkg) => ` ${pkg.pkg}@${pkg.pkgFile?.version}`
)}`
(pkg) => ` ${pkg.pkg}@${pkg.pkgFile?.version}`,
)}`,
);

@@ -106,3 +106,3 @@ }

"We have previously released the changes in these files:",
changesPaths
changesPaths,
);

@@ -151,3 +151,3 @@ return { pkgReadyToPublish: [], response: "No changes." };

(release) =>
` ${release} with ${assembledChanges.releases[release].type}`
` ${release} with ${assembledChanges.releases[release].type}`,
)}`,

@@ -154,0 +154,0 @@ };

@@ -97,3 +97,3 @@ import { attemptCommands, raceTime } from "@covector/command";

},
pkg: string
pkg: string,
) => {

@@ -108,3 +108,3 @@ pkgs[pkg] = {

},
{}
{},
);

@@ -141,3 +141,3 @@

},
result: { name: string }
result: { name: string },
) => {

@@ -147,3 +147,3 @@ pkgs[result.name].applied = result;

},
pkgCommandsRan
pkgCommandsRan,
);

@@ -150,0 +150,0 @@

@@ -21,3 +21,3 @@ import { it } from "@effection/jest";

],
]
],
);

@@ -47,3 +47,3 @@

],
]
],
);

@@ -59,5 +59,5 @@

expect(JSON.parse(config.content).gitSiteUrl).toBe(
"https://www.github.com/jbolda/covector/"
"https://www.github.com/jbolda/covector/",
);
}, 25000); // windows takes some time
});

@@ -11,3 +11,3 @@ import { it, captureError } from "@effection/jest";

command("status", fullIntegration),
fullIntegration
fullIntegration,
);

@@ -18,3 +18,3 @@

"There are no changes.\n" +
"There is 2 packages ready to publish which includes package-one@2.3.1, package-two@1.9.0"
"There is 2 packages ready to publish which includes package-one@2.3.1, package-two@1.9.0",
);

@@ -21,0 +21,0 @@ expect(status.code).toBe(0);

@@ -27,3 +27,3 @@ import { covector } from "../src";

const changelogTauriCore = yield captureError(
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration),
);

@@ -34,3 +34,3 @@ expect(changelogTauriCore.effectionTrace[0].state).toEqual("erroring");

const changelogTaurijs = yield captureError(
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration),
);

@@ -106,3 +106,3 @@ expect(changelogTaurijs.effectionTrace[0].state).toEqual("erroring");

const changelogTauriCore = yield captureError(
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration),
);

@@ -113,3 +113,3 @@ expect(changelogTauriCore.effectionTrace[0].state).toEqual("erroring");

const changelogTaurijs = yield captureError(
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration),
);

@@ -116,0 +116,0 @@ expect(changelogTaurijs.effectionTrace[0].state).toEqual("erroring");

@@ -45,3 +45,3 @@ import { covector } from "../src";

const changelogTauriCore = yield captureError(
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration),
);

@@ -52,3 +52,3 @@ expect(changelogTauriCore.effectionTrace[0].state).toEqual("erroring");

const changelogTaurijs = yield captureError(
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration),
);

@@ -55,0 +55,0 @@ expect(changelogTaurijs.effectionTrace[0].state).toEqual("erroring");

@@ -20,3 +20,3 @@ import { spawn, withTimeout, Operation, MainError } from "effection";

cwd: string,
responses: Responses = []
responses: Responses = [],
): Operation<{

@@ -54,3 +54,3 @@ stdout: string;

}
})
}),
);

@@ -61,3 +61,3 @@

stderrBuffer = Buffer.concat([stderrBuffer, chunk]);
})
}),
);

@@ -64,0 +64,0 @@

@@ -59,6 +59,6 @@ import { covector } from "../src";

expect((console.info as any).mock.calls.flat()).toContain(
".changes/first-change.md was deleted"
".changes/first-change.md was deleted",
);
expect((console.info as any).mock.calls.flat()).toContain(
".changes/second-change.md was deleted"
".changes/second-change.md was deleted",
);

@@ -72,3 +72,3 @@ expect({

path.join("/tauri/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -78,3 +78,3 @@ expect(changelogTauriCore.content).toBe(

"## \\[0.6.0]\n\n" +
"- Summary about the changes in tauri\n"
"- Summary about the changes in tauri\n",
);

@@ -84,3 +84,3 @@

path.join("/cli/tauri.js/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -91,3 +91,3 @@ expect(changelogTaurijs.content).toBe(

"### Dependencies\n\n" +
"- Upgraded to `tauri@0.6.0`\n"
"- Upgraded to `tauri@0.6.0`\n",
);

@@ -106,6 +106,6 @@ });

expect((console.info as any).mock.calls.flat()).toContain(
".changes/first-change.md was deleted"
".changes/first-change.md was deleted",
);
expect((console.info as any).mock.calls.flat()).toContain(
".changes/second-change.md was deleted"
".changes/second-change.md was deleted",
);

@@ -122,3 +122,3 @@ expect({

"- Summary about the changes in test_app\n" +
"- Summary about the changes again(!) in test_app\n"
"- Summary about the changes again(!) in test_app\n",
);

@@ -128,3 +128,3 @@

expect(versionFile.content).toEqual(
expect.stringContaining("version: 0.4.0\n")
expect.stringContaining("version: 0.4.0\n"),
);

@@ -143,6 +143,6 @@ });

expect((console.info as any).mock.calls.flat()).toContain(
".changes/first-change.md was deleted"
".changes/first-change.md was deleted",
);
expect((console.info as any).mock.calls.flat()).toContain(
".changes/second-change.md was deleted"
".changes/second-change.md was deleted",
);

@@ -156,3 +156,3 @@ expect({

path.join("dart", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -164,3 +164,3 @@ expect(changelog.content).toBe(

"- Upgraded to `test_app_two@0.2.0`\n" +
"- Upgraded to `test_app_three@3.8.98`\n"
"- Upgraded to `test_app_three@3.8.98`\n",
);

@@ -170,6 +170,6 @@

path.join("dart", "pubspec.yaml"),
fullIntegration
fullIntegration,
);
expect(versionFile.content).toEqual(
expect.stringContaining("version: 0.3.2\n")
expect.stringContaining("version: 0.3.2\n"),
);

@@ -188,6 +188,6 @@ });

expect((console.info as any).mock.calls.flat()).toContain(
".changes/first-change.md was deleted"
".changes/first-change.md was deleted",
);
expect((console.info as any).mock.calls.flat()).toContain(
".changes/second-change.md was deleted"
".changes/second-change.md was deleted",
);

@@ -204,3 +204,3 @@ expect({

"- Summary about the changes in general-pkg\n" +
"- A general summary about the generally changes in general-pkg generally\n"
"- A general summary about the generally changes in general-pkg generally\n",
);

@@ -267,3 +267,3 @@

const fullIntegration = f.copy(
"integration.js-with-retrying-publish-error"
"integration.js-with-retrying-publish-error",
);

@@ -279,3 +279,3 @@ const covectored = covector({

.filter(
(c: string) => typeof c === "string" && c.includes("ENEEDAUTH")
(c: string) => typeof c === "string" && c.includes("ENEEDAUTH"),
).length;

@@ -365,3 +365,3 @@ expect(errorCount).toBe(3);

finalConfig.pkgManagers[pkgManager] = Object.keys(
config.pkgManagers[pkgManager]
config.pkgManagers[pkgManager],
).reduce((pm, p) => {

@@ -387,3 +387,3 @@ if (p.startsWith("publish")) {

},
config
config,
);

@@ -409,3 +409,3 @@ };

console.log(
`push log into publish for ${pkg.pkg}-v${pkg.pkgFile.version}`
`push log into publish for ${pkg.pkg}-v${pkg.pkgFile.version}`,
),

@@ -412,0 +412,0 @@ async () => console.log(`push another log`),

@@ -21,3 +21,3 @@ import { covector } from "../src";

}
`
`,
);

@@ -51,3 +51,3 @@

path.join("/tauri/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -58,3 +58,3 @@ // has a direct minor from 0.5.2

"## \\[0.6.0-beta.0]\n\n" +
"- Summary about the changes in tauri\n"
"- Summary about the changes in tauri\n",
);

@@ -64,3 +64,3 @@

path.join("/cli/tauri.js/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -72,3 +72,3 @@ // tauri.js through a dep bump

"### Dependencies\n\n" +
"- Upgraded to `tauri@0.6.0-beta.0`\n"
"- Upgraded to `tauri@0.6.0-beta.0`\n",
);

@@ -88,3 +88,3 @@ });

path.join("/tauri/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -94,3 +94,3 @@ expect(changelogTauriCoreOne.content).toBe(

"## \\[0.6.0-beta.0]\n\n" +
"- Summary about the changes in tauri\n"
"- Summary about the changes in tauri\n",
);

@@ -100,3 +100,3 @@

path.join("/cli/tauri.js/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -109,3 +109,3 @@ // tauri.js does not have a change file directly or through a dep bump

"### Dependencies\n\n" +
"- Upgraded to `tauri@0.6.0-beta.0`\n"
"- Upgraded to `tauri@0.6.0-beta.0`\n",
);

@@ -115,6 +115,6 @@

path.join(".changes", "pre.json"),
fullIntegration
fullIntegration,
);
expect(preOne.content).toBe(
'{\n "tag": "beta",\n "changes": [\n ".changes/first-change.md",\n ".changes/second-change.md"\n ]\n}\n'
'{\n "tag": "beta",\n "changes": [\n ".changes/first-change.md",\n ".changes/second-change.md"\n ]\n}\n',
);

@@ -130,3 +130,3 @@

Boop again.
`
`,
);

@@ -137,6 +137,6 @@

path.join(".changes", "third-change.md"),
fullIntegration
fullIntegration,
);
expect(newChange.content).toBe(
"---\n" + '"tauri-api": patch\n' + "---\n\n" + "Boop again.\n"
"---\n" + '"tauri-api": patch\n' + "---\n\n" + "Boop again.\n",
);

@@ -151,3 +151,3 @@

path.join("/tauri/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -161,3 +161,3 @@ expect(changelogTauriCoreTwo.content).toBe(

"## \\[0.6.0-beta.0]\n\n" +
"- Summary about the changes in tauri\n"
"- Summary about the changes in tauri\n",
);

@@ -167,3 +167,3 @@

path.join("/cli/tauri.js/", "CHANGELOG.md"),
fullIntegration
fullIntegration,
);

@@ -180,3 +180,3 @@ // tauri.js does not have a change file directly or through a dep bump

"### Dependencies\n\n" +
"- Upgraded to `tauri@0.6.0-beta.0`\n"
"- Upgraded to `tauri@0.6.0-beta.0`\n",
);

@@ -186,6 +186,6 @@

path.join(".changes", "pre.json"),
fullIntegration
fullIntegration,
);
expect(preTwo.content).toBe(
'{\n "tag": "beta",\n "changes": [\n ".changes/first-change.md",\n ".changes/second-change.md",\n ".changes/third-change.md"\n ]\n}\n'
'{\n "tag": "beta",\n "changes": [\n ".changes/first-change.md",\n ".changes/second-change.md",\n ".changes/third-change.md"\n ]\n}\n',
);

@@ -225,3 +225,3 @@

const changelogTauriCore = yield captureError(
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/tauri/", "CHANGELOG.md"), fullIntegration),
);

@@ -232,3 +232,3 @@ expect(changelogTauriCore.effectionTrace[0].state).toEqual("erroring");

const changelogTaurijs = yield captureError(
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration)
loadFile(path.join("/cli/tauri.js/", "CHANGELOG.md"), fullIntegration),
);

@@ -235,0 +235,0 @@ expect(changelogTaurijs.effectionTrace[0].state).toEqual("erroring");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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