arri 0.67.0 → 0.68.0
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/cli.cjs +41 -0
- package/dist/cli.mjs +41 -0
- package/package.json +10 -10
package/dist/cli.cjs
CHANGED
|
@@ -551,6 +551,18 @@ const use = citty.defineCommand({
|
|
|
551
551
|
);
|
|
552
552
|
}
|
|
553
553
|
await Promise.all(cargoTomlTasks);
|
|
554
|
+
const goModFiles = await globby(["go.mod", "**/go.mod"]);
|
|
555
|
+
const goModFileTasks = [];
|
|
556
|
+
for (const file of goModFiles) {
|
|
557
|
+
goModFileTasks.push(
|
|
558
|
+
promises.readFile(path__default.resolve(file), "utf8").then((content) => {
|
|
559
|
+
const result = updateGoMod(content, version);
|
|
560
|
+
if (result.updated) {
|
|
561
|
+
fileMap[file] = result.content;
|
|
562
|
+
}
|
|
563
|
+
})
|
|
564
|
+
);
|
|
565
|
+
}
|
|
554
566
|
const updateTasks = [];
|
|
555
567
|
for (const key of Object.keys(fileMap)) {
|
|
556
568
|
updateTasks.push(
|
|
@@ -756,6 +768,35 @@ function updateCargoToml(fileContent, version) {
|
|
|
756
768
|
}
|
|
757
769
|
return { updated, content: newLines.join("\n") };
|
|
758
770
|
}
|
|
771
|
+
function updateGoMod(fileContent, version) {
|
|
772
|
+
const lines = fileContent.split("\n");
|
|
773
|
+
const newLines = [];
|
|
774
|
+
let updated = false;
|
|
775
|
+
for (const line of lines) {
|
|
776
|
+
if (!line.includes("github.com/modiimedia/arri")) {
|
|
777
|
+
newLines.push(line);
|
|
778
|
+
continue;
|
|
779
|
+
}
|
|
780
|
+
updated = true;
|
|
781
|
+
const lineParts = line.split(" ");
|
|
782
|
+
const updatedLineParts = [];
|
|
783
|
+
for (const part of lineParts) {
|
|
784
|
+
if (part.startsWith("v") && isNumberChar(part[1] ?? "")) {
|
|
785
|
+
updatedLineParts.push(`v${version}`);
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
updatedLineParts.push(part);
|
|
789
|
+
}
|
|
790
|
+
newLines.push(updatedLineParts.join(" "));
|
|
791
|
+
}
|
|
792
|
+
return {
|
|
793
|
+
updated,
|
|
794
|
+
content: newLines.join("\n")
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
function isNumberChar(char) {
|
|
798
|
+
return !Number.isNaN(Number(char));
|
|
799
|
+
}
|
|
759
800
|
|
|
760
801
|
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
|
|
761
802
|
const __dirname$1 = path__default.dirname(__filename$1);
|
package/dist/cli.mjs
CHANGED
|
@@ -539,6 +539,18 @@ const use = defineCommand({
|
|
|
539
539
|
);
|
|
540
540
|
}
|
|
541
541
|
await Promise.all(cargoTomlTasks);
|
|
542
|
+
const goModFiles = await globby(["go.mod", "**/go.mod"]);
|
|
543
|
+
const goModFileTasks = [];
|
|
544
|
+
for (const file of goModFiles) {
|
|
545
|
+
goModFileTasks.push(
|
|
546
|
+
readFile(path.resolve(file), "utf8").then((content) => {
|
|
547
|
+
const result = updateGoMod(content, version);
|
|
548
|
+
if (result.updated) {
|
|
549
|
+
fileMap[file] = result.content;
|
|
550
|
+
}
|
|
551
|
+
})
|
|
552
|
+
);
|
|
553
|
+
}
|
|
542
554
|
const updateTasks = [];
|
|
543
555
|
for (const key of Object.keys(fileMap)) {
|
|
544
556
|
updateTasks.push(
|
|
@@ -744,6 +756,35 @@ function updateCargoToml(fileContent, version) {
|
|
|
744
756
|
}
|
|
745
757
|
return { updated, content: newLines.join("\n") };
|
|
746
758
|
}
|
|
759
|
+
function updateGoMod(fileContent, version) {
|
|
760
|
+
const lines = fileContent.split("\n");
|
|
761
|
+
const newLines = [];
|
|
762
|
+
let updated = false;
|
|
763
|
+
for (const line of lines) {
|
|
764
|
+
if (!line.includes("github.com/modiimedia/arri")) {
|
|
765
|
+
newLines.push(line);
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
updated = true;
|
|
769
|
+
const lineParts = line.split(" ");
|
|
770
|
+
const updatedLineParts = [];
|
|
771
|
+
for (const part of lineParts) {
|
|
772
|
+
if (part.startsWith("v") && isNumberChar(part[1] ?? "")) {
|
|
773
|
+
updatedLineParts.push(`v${version}`);
|
|
774
|
+
continue;
|
|
775
|
+
}
|
|
776
|
+
updatedLineParts.push(part);
|
|
777
|
+
}
|
|
778
|
+
newLines.push(updatedLineParts.join(" "));
|
|
779
|
+
}
|
|
780
|
+
return {
|
|
781
|
+
updated,
|
|
782
|
+
content: newLines.join("\n")
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function isNumberChar(char) {
|
|
786
|
+
return !Number.isNaN(Number(char));
|
|
787
|
+
}
|
|
747
788
|
|
|
748
789
|
const __filename = fileURLToPath(import.meta.url);
|
|
749
790
|
const __dirname = path.dirname(__filename);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@joshmossas/listhen": "^1.11.1",
|
|
29
|
-
"ofetch": "^1.4.1",
|
|
30
29
|
"c12": "^2.0.1",
|
|
31
30
|
"chokidar": "^4.0.1",
|
|
32
31
|
"citty": "^0.1.6",
|
|
@@ -37,15 +36,16 @@
|
|
|
37
36
|
"esbuild-plugin-replace": "^1.4.0",
|
|
38
37
|
"globby": "^14.0.2",
|
|
39
38
|
"h3": "^1.13.0",
|
|
39
|
+
"ofetch": "^1.4.1",
|
|
40
40
|
"pathe": "^1.1.2",
|
|
41
|
-
"prettier": "^3.
|
|
42
|
-
"@arrirpc/codegen-
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/
|
|
45
|
-
"@arrirpc/
|
|
46
|
-
"@arrirpc/codegen-
|
|
47
|
-
"@arrirpc/codegen-
|
|
48
|
-
"@arrirpc/codegen-
|
|
41
|
+
"prettier": "^3.4.1",
|
|
42
|
+
"@arrirpc/codegen-dart": "0.68.0",
|
|
43
|
+
"@arrirpc/codegen-kotlin": "0.68.0",
|
|
44
|
+
"@arrirpc/codegen-rust": "0.68.0",
|
|
45
|
+
"@arrirpc/schema": "0.68.0",
|
|
46
|
+
"@arrirpc/codegen-utils": "0.68.0",
|
|
47
|
+
"@arrirpc/codegen-swift": "0.68.0",
|
|
48
|
+
"@arrirpc/codegen-ts": "0.68.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/degit": "^2.8.6"
|