@scaleway/changesets-renovate 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/license.md +3 -0
- package/dist/cli.js +32 -37
- package/dist/createChangeset.js +12 -21
- package/dist/git-utils.js +68 -73
- package/dist/handle-catalog.js +30 -45
- package/dist/handle-packages.js +20 -19
- package/dist/utils.js +18 -29
- package/package.json +2 -3
- package/LICENSE.md +0 -21
package/dist/cli.js
CHANGED
|
@@ -1,43 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { env } from "node:process";
|
|
3
|
-
import { simpleGit } from "simple-git";
|
|
4
2
|
import { handleCatalogChanges } from "./handle-catalog.js";
|
|
5
3
|
import { handlePackageChanges } from "./handle-packages.js";
|
|
4
|
+
import { env } from "node:process";
|
|
5
|
+
import { simpleGit } from "simple-git";
|
|
6
|
+
//#region src/cli.ts
|
|
6
7
|
async function run() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
if (hasPackageChanges) {
|
|
36
|
-
console.log("📦 Processing package.json changes...");
|
|
37
|
-
await handlePackageChanges(diffFiles);
|
|
38
|
-
}
|
|
8
|
+
const branch = await simpleGit().branch();
|
|
9
|
+
const branchPrefix = env["BRANCH_PREFIX"] ?? "renovate/";
|
|
10
|
+
console.log("Detected branch:", branch);
|
|
11
|
+
if (!(branch.current.startsWith(branchPrefix) || env["SKIP_BRANCH_CHECK"])) {
|
|
12
|
+
console.log("Not a renovate branch, skipping");
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const diffFiles = (await simpleGit().diffSummary(["--name-only", "HEAD~1"])).files.map((file) => file.file);
|
|
16
|
+
console.log("Found changed files:", diffFiles);
|
|
17
|
+
if (diffFiles.find((f) => f.startsWith(".changeset"))) {
|
|
18
|
+
console.log("Changeset already exists, skipping");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const hasPackageChanges = diffFiles.some((file) => file.includes("package.json"));
|
|
22
|
+
const hasWorkspaceChanges = diffFiles.some((file) => file.includes("pnpm-workspace.yaml"));
|
|
23
|
+
if (!(hasPackageChanges || hasWorkspaceChanges)) {
|
|
24
|
+
console.log("No relevant changes detected, skipping");
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (hasWorkspaceChanges) {
|
|
28
|
+
console.log("📚 Processing pnpm workspace catalog changes...");
|
|
29
|
+
await handleCatalogChanges(diffFiles);
|
|
30
|
+
}
|
|
31
|
+
if (hasPackageChanges) {
|
|
32
|
+
console.log("📦 Processing package.json changes...");
|
|
33
|
+
await handlePackageChanges(diffFiles);
|
|
34
|
+
}
|
|
39
35
|
}
|
|
40
36
|
run().catch(console.error);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { run };
|
package/dist/createChangeset.js
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import { writeFile } from "node:fs/promises";
|
|
2
1
|
import { env } from "node:process";
|
|
2
|
+
import { writeFile } from "node:fs/promises";
|
|
3
|
+
//#region src/createChangeset.ts
|
|
3
4
|
async function createChangeset(fileName, packageBumps, packages) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const message = messageLines.join("\n");
|
|
13
|
-
const pkgs = packages.map((pkg) => `'${pkg}': patch`).join("\n");
|
|
14
|
-
const body = `---
|
|
15
|
-
${pkgs}
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
${message.trim()}
|
|
19
|
-
`;
|
|
20
|
-
await writeFile(fileName, body);
|
|
5
|
+
const messageLines = [];
|
|
6
|
+
for (const [pkg, bump] of packageBumps) messageLines.push(`Updated dependency \`${pkg}\` to \`${bump}\`.`);
|
|
7
|
+
if (env["SORT_CHANGESETS"]) {
|
|
8
|
+
packages.sort();
|
|
9
|
+
messageLines.sort();
|
|
10
|
+
}
|
|
11
|
+
const message = messageLines.join("\n");
|
|
12
|
+
await writeFile(fileName, `---\n${packages.map((pkg) => `'${pkg}': patch`).join("\n")}\n---\n\n${message.trim()}\n`);
|
|
21
13
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { createChangeset };
|
package/dist/git-utils.js
CHANGED
|
@@ -1,86 +1,81 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
1
|
import { env } from "node:process";
|
|
2
|
+
import { simpleGit } from "simple-git";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
3
4
|
import fg from "fast-glob";
|
|
4
5
|
import { load } from "js-yaml";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
//#region src/git-utils.ts
|
|
7
|
+
var { globSync } = fg;
|
|
8
|
+
/**
|
|
9
|
+
* Load catalog from pnpm workspace file at specific git revision
|
|
10
|
+
* @param revision Git revision to load file from (default: HEAD)
|
|
11
|
+
* @param filePath Path to the pnpm workspace file (default: pnpm-workspace.yaml)
|
|
12
|
+
* @returns Catalog object or empty object if not found
|
|
13
|
+
*/
|
|
7
14
|
async function loadCatalogFromGit(revision = "HEAD", filePath = "pnpm-workspace.yaml") {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const parsed = load(content);
|
|
15
|
-
return parsed?.catalog ?? {};
|
|
16
|
-
} catch {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
15
|
+
try {
|
|
16
|
+
if (!revision) return {};
|
|
17
|
+
return load(await simpleGit().show([`${revision}:${filePath}`]))?.catalog ?? {};
|
|
18
|
+
} catch {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
19
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Find changed dependencies between two git revisions of pnpm workspace
|
|
24
|
+
* @param oldRevision The previous git revision
|
|
25
|
+
* @param newRevision The current git revision (default: HEAD)
|
|
26
|
+
* @param filePath Path to the pnpm workspace file (default: pnpm-workspace.yaml)
|
|
27
|
+
* @returns Array of package names that have changed
|
|
28
|
+
*/
|
|
20
29
|
async function findChangedDependenciesFromGit(oldRevision, newRevision = "HEAD", filePath = "pnpm-workspace.yaml") {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
for (const [pkg, newVersion] of filtedPackage) {
|
|
28
|
-
bumps.set(pkg, newVersion);
|
|
29
|
-
}
|
|
30
|
-
return bumps;
|
|
30
|
+
const oldCatalog = await loadCatalogFromGit(oldRevision, filePath);
|
|
31
|
+
const newCatalog = await loadCatalogFromGit(newRevision, filePath);
|
|
32
|
+
const bumps = /* @__PURE__ */ new Map();
|
|
33
|
+
const filtedPackage = Object.entries(newCatalog).filter(([pkg, newVersion]) => oldCatalog[pkg] && oldCatalog[pkg] !== newVersion);
|
|
34
|
+
for (const [pkg, newVersion] of filtedPackage) bumps.set(pkg, newVersion);
|
|
35
|
+
return bumps;
|
|
31
36
|
}
|
|
32
37
|
async function getBumpsFromGit(files) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
await Promise.all(promises);
|
|
46
|
-
return bumps;
|
|
38
|
+
const bumps = /* @__PURE__ */ new Map();
|
|
39
|
+
const promises = files.map(async (file) => {
|
|
40
|
+
const changes = await simpleGit().show([file]);
|
|
41
|
+
for (const change of changes.split("\n")) if (change.startsWith("+ ")) {
|
|
42
|
+
const match = change.match(/"(.*?)"/g);
|
|
43
|
+
if (match?.[0] && match[1]) bumps.set(match[0].replace(/"/g, ""), match[1].replace(/"/g, ""));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
await Promise.all(promises);
|
|
47
|
+
return bumps;
|
|
47
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Find packages affected by dependency changes
|
|
51
|
+
* @param changedDeps Array of changed dependency names
|
|
52
|
+
* @param packageJsonGlob Glob pattern to find package.json files
|
|
53
|
+
* @returns Set of package names that are affected by the changes
|
|
54
|
+
*/
|
|
48
55
|
async function findAffectedPackages(changedDeps, packageJsonGlob = "packages/*/package.json") {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
} catch {
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return affectedPackages;
|
|
56
|
+
if (changedDeps.length === 0) return /* @__PURE__ */ new Set();
|
|
57
|
+
const packageJsonPaths = globSync(packageJsonGlob);
|
|
58
|
+
const affectedPackages = /* @__PURE__ */ new Set();
|
|
59
|
+
for (const pkgJsonPath of packageJsonPaths) try {
|
|
60
|
+
const json = JSON.parse(await readFile(pkgJsonPath, "utf8"));
|
|
61
|
+
const deps = {
|
|
62
|
+
...json.dependencies,
|
|
63
|
+
...json.devDependencies,
|
|
64
|
+
...json.peerDependencies
|
|
65
|
+
};
|
|
66
|
+
for (const dep of changedDeps) if (deps[dep]) {
|
|
67
|
+
affectedPackages.add(json.name);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
} catch {}
|
|
71
|
+
return affectedPackages;
|
|
72
72
|
}
|
|
73
73
|
async function handleChangesetFile(fileName) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
if (!env["SKIP_COMMIT"]) {
|
|
75
|
+
await simpleGit().add(fileName);
|
|
76
|
+
await simpleGit().commit(`chore: add ${fileName}`);
|
|
77
|
+
await simpleGit().push();
|
|
78
|
+
}
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
findChangedDependenciesFromGit,
|
|
83
|
-
getBumpsFromGit,
|
|
84
|
-
handleChangesetFile,
|
|
85
|
-
loadCatalogFromGit
|
|
86
|
-
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { findAffectedPackages, findChangedDependenciesFromGit, getBumpsFromGit, handleChangesetFile };
|
package/dist/handle-catalog.js
CHANGED
|
@@ -1,48 +1,33 @@
|
|
|
1
|
-
import { simpleGit } from "simple-git";
|
|
2
1
|
import { createChangeset } from "./createChangeset.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { simpleGit } from "simple-git";
|
|
3
|
+
//#region src/handle-catalog.ts
|
|
4
|
+
var { findChangedDependenciesFromGit, findAffectedPackages, handleChangesetFile } = await import("./git-utils.js");
|
|
5
|
+
/**
|
|
6
|
+
* Handle pnpm workspace catalog changes
|
|
7
|
+
*/
|
|
8
8
|
async function handleCatalogChanges(diffFiles) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
console.log("📦 No packages affected by catalog changes.");
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
console.log("\n📝 Affected packages:");
|
|
35
|
-
for (const pkg of affectedPackages) {
|
|
36
|
-
console.log(` - ${pkg}`);
|
|
37
|
-
}
|
|
38
|
-
console.log("\n✏️ Creating changesets...");
|
|
39
|
-
const packageNames = [...affectedPackages.keys()];
|
|
40
|
-
const shortHash = (await simpleGit().revparse(["--short", "HEAD"])).trim();
|
|
41
|
-
const fileName = `.changeset/renovate-${shortHash}.md`;
|
|
42
|
-
await createChangeset(fileName, changedDeps, packageNames);
|
|
43
|
-
await handleChangesetFile(fileName);
|
|
44
|
-
console.log("\n✅ Done creating changesets.");
|
|
9
|
+
if (diffFiles.filter((file) => file.includes("pnpm-workspace.yaml")).length === 0) return;
|
|
10
|
+
console.log("🔍 Detected pnpm workspace changes, checking for catalog updates...");
|
|
11
|
+
console.log("🔍 Comparing catalogs: HEAD~1 -> HEAD");
|
|
12
|
+
const changedDeps = await findChangedDependenciesFromGit("HEAD~1", "HEAD", "pnpm-workspace.yaml");
|
|
13
|
+
if (changedDeps.size === 0) {
|
|
14
|
+
console.log("✅ No catalog dependency changes.", { changedDeps });
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
console.log("📦 Changed dependencies:", changedDeps);
|
|
18
|
+
const affectedPackages = await findAffectedPackages([...changedDeps.keys()]);
|
|
19
|
+
if (affectedPackages.size === 0) {
|
|
20
|
+
console.log("📦 No packages affected by catalog changes.");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
console.log("\n📝 Affected packages:");
|
|
24
|
+
for (const pkg of affectedPackages) console.log(` - ${pkg}`);
|
|
25
|
+
console.log("\n✏️ Creating changesets...");
|
|
26
|
+
const packageNames = [...affectedPackages.keys()];
|
|
27
|
+
const fileName = `.changeset/renovate-${(await simpleGit().revparse(["--short", "HEAD"])).trim()}.md`;
|
|
28
|
+
await createChangeset(fileName, changedDeps, packageNames);
|
|
29
|
+
await handleChangesetFile(fileName);
|
|
30
|
+
console.log("\n✅ Done creating changesets.");
|
|
45
31
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { handleCatalogChanges };
|
package/dist/handle-packages.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { simpleGit } from "simple-git";
|
|
2
1
|
import { createChangeset } from "./createChangeset.js";
|
|
3
2
|
import { getBumpsFromGit, handleChangesetFile } from "./git-utils.js";
|
|
4
3
|
import { getPackagesNames } from "./utils.js";
|
|
4
|
+
import { simpleGit } from "simple-git";
|
|
5
|
+
//#region src/handle-packages.ts
|
|
6
|
+
/**
|
|
7
|
+
* Handle package.json changes (original Renovate flow)
|
|
8
|
+
*/
|
|
5
9
|
async function handlePackageChanges(diffFiles) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
await createChangeset(fileName, packageBumps, packageNames);
|
|
20
|
-
await handleChangesetFile(fileName);
|
|
10
|
+
const files = diffFiles.filter((file) => file.includes("package.json"));
|
|
11
|
+
if (files.length === 0) {
|
|
12
|
+
console.log("No package.json changes to published packages, skipping");
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const packageNames = await getPackagesNames(files);
|
|
16
|
+
if (packageNames.length === 0) {
|
|
17
|
+
console.log("No packages modified, skipping");
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const fileName = `.changeset/renovate-${(await simpleGit().revparse(["--short", "HEAD"])).trim()}.md`;
|
|
21
|
+
await createChangeset(fileName, await getBumpsFromGit(files), packageNames);
|
|
22
|
+
await handleChangesetFile(fileName);
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { handlePackageChanges };
|
package/dist/utils.js
CHANGED
|
@@ -1,38 +1,27 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import fg from "fast-glob";
|
|
3
3
|
import "js-yaml";
|
|
4
|
-
|
|
4
|
+
//#region src/utils.ts
|
|
5
|
+
var { globSync } = fg;
|
|
5
6
|
function shouldIgnorePackage(packageName, ignoredPackages) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return packageName === ignoredPackage;
|
|
11
|
-
});
|
|
7
|
+
return ignoredPackages.some((ignoredPackage) => {
|
|
8
|
+
if (ignoredPackage.endsWith("*")) return packageName.startsWith(ignoredPackage.slice(0, -1));
|
|
9
|
+
return packageName === ignoredPackage;
|
|
10
|
+
});
|
|
12
11
|
}
|
|
13
12
|
async function getChangesetIgnoredPackages() {
|
|
14
|
-
|
|
15
|
-
await readFile(".changeset/config.json", "utf8")
|
|
16
|
-
);
|
|
17
|
-
return changesetConfig.ignore ?? [];
|
|
13
|
+
return JSON.parse(await readFile(".changeset/config.json", "utf8")).ignore ?? [];
|
|
18
14
|
}
|
|
19
15
|
async function getPackagesNames(files) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
await Promise.all(promises);
|
|
32
|
-
return packages;
|
|
16
|
+
const ignoredPackages = await getChangesetIgnoredPackages();
|
|
17
|
+
const packages = [];
|
|
18
|
+
const promises = files.map(async (file) => {
|
|
19
|
+
const data = JSON.parse(await readFile(file, "utf8"));
|
|
20
|
+
if (shouldIgnorePackage(data.name, ignoredPackages)) return;
|
|
21
|
+
if (!data.workspaces && data.version) packages.push(data.name);
|
|
22
|
+
});
|
|
23
|
+
await Promise.all(promises);
|
|
24
|
+
return packages;
|
|
33
25
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
getPackagesNames,
|
|
37
|
-
shouldIgnorePackage
|
|
38
|
-
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { getPackagesNames };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/changesets-renovate",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Automatically create changesets for Renovate and pnpm catalogs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/cli.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/js-yaml": "4.0.9",
|
|
42
42
|
"fast-glob": "3.3.3",
|
|
43
43
|
"js-yaml": "4.1.1",
|
|
44
|
-
"simple-git": "3.
|
|
44
|
+
"simple-git": "3.33.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"prebuild": "shx rm -rf dist",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"type:generate:go": "tsgo --declaration -p tsconfig.build.json",
|
|
52
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
53
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
|
|
54
|
-
"lint": "eslint --report-unused-disable-directives --cache --cache-strategy content --ext ts,tsx .",
|
|
55
54
|
"test:unit": "vitest --run --config vite.config.ts",
|
|
56
55
|
"test:unit:coverage": "pnpm test:unit --coverage"
|
|
57
56
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Scaleway
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|