@arbidocs/cli 0.5.137 → 0.5.139
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/CHANGELOG.md +20 -0
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.139
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.138...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🔥 Performance
|
|
8
|
+
|
|
9
|
+
- **react:** ⚠️ Batch upload events and let the upload dialog close once files are sent ([#2377](https://github.com/arbicity/ARBI-frontend/pull/2377))
|
|
10
|
+
|
|
11
|
+
#### ⚠️ Breaking Changes
|
|
12
|
+
|
|
13
|
+
- **react:** ⚠️ Batch upload events and let the upload dialog close once files are sent ([#2377](https://github.com/arbicity/ARBI-frontend/pull/2377))
|
|
14
|
+
|
|
15
|
+
## v0.5.138
|
|
16
|
+
|
|
17
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.137...HEAD)
|
|
18
|
+
|
|
19
|
+
### 🚀 Enhancements
|
|
20
|
+
|
|
21
|
+
- One notification when an upload set finishes, not one per batch ([#2375](https://github.com/arbicity/ARBI-frontend/pull/2375))
|
|
22
|
+
|
|
3
23
|
## v0.5.137
|
|
4
24
|
|
|
5
25
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.136...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -3700,7 +3700,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
function getCurrentVersion() {
|
|
3703
|
-
return "0.5.
|
|
3703
|
+
return "0.5.139";
|
|
3704
3704
|
}
|
|
3705
3705
|
function readChangelog(fromVersion, toVersion) {
|
|
3706
3706
|
try {
|
|
@@ -3753,17 +3753,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3753
3753
|
async function checkForUpdates(autoUpdate) {
|
|
3754
3754
|
try {
|
|
3755
3755
|
const latest = getLatestVersion();
|
|
3756
|
-
if (!latest || latest === "0.5.
|
|
3756
|
+
if (!latest || latest === "0.5.139") return;
|
|
3757
3757
|
if (autoUpdate) {
|
|
3758
3758
|
warn(`
|
|
3759
|
-
Your arbi version is out of date (${"0.5.
|
|
3759
|
+
Your arbi version is out of date (${"0.5.139"} \u2192 ${latest}). Updating...`);
|
|
3760
3760
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3761
|
-
showChangelog("0.5.
|
|
3761
|
+
showChangelog("0.5.139", latest);
|
|
3762
3762
|
console.log(`Updated to ${latest}.`);
|
|
3763
3763
|
} else {
|
|
3764
3764
|
warn(
|
|
3765
3765
|
`
|
|
3766
|
-
Your arbi version is out of date (${"0.5.
|
|
3766
|
+
Your arbi version is out of date (${"0.5.139"} \u2192 ${latest}).
|
|
3767
3767
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3768
3768
|
);
|
|
3769
3769
|
}
|
|
@@ -3795,10 +3795,10 @@ function markNagShown(latest) {
|
|
|
3795
3795
|
function hintUpdateOnError() {
|
|
3796
3796
|
try {
|
|
3797
3797
|
const cached = readCache();
|
|
3798
|
-
if (!cached || cached.latest === "0.5.
|
|
3798
|
+
if (!cached || cached.latest === "0.5.139") return;
|
|
3799
3799
|
if (!shouldShowNag(cached.latest)) return;
|
|
3800
3800
|
warn(
|
|
3801
|
-
`Your arbi version is out of date (${"0.5.
|
|
3801
|
+
`Your arbi version is out of date (${"0.5.139"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3802
3802
|
);
|
|
3803
3803
|
markNagShown(cached.latest);
|
|
3804
3804
|
} catch {
|
|
@@ -6780,7 +6780,9 @@ async function runDirectUploadMode(inputPaths, opts) {
|
|
|
6780
6780
|
const result = await sdk.documentsNode.uploadLocalFilesDirect(arbi, workspaceKey, plainFiles, {
|
|
6781
6781
|
folder: opts.folder,
|
|
6782
6782
|
configExtId: opts.config,
|
|
6783
|
-
workspaceExtId: workspaceId
|
|
6783
|
+
workspaceExtId: workspaceId,
|
|
6784
|
+
// One request, one upload set: one "done" notification for these files.
|
|
6785
|
+
uploadSet: sdk.documents.newUploadSet(plainFiles.length)
|
|
6784
6786
|
});
|
|
6785
6787
|
summary2.totalFiles += plainFiles.length;
|
|
6786
6788
|
summary2.uploaded += result.doc_ext_ids.length;
|
|
@@ -12684,7 +12686,7 @@ console.info = (...args) => {
|
|
|
12684
12686
|
_origInfo(...args);
|
|
12685
12687
|
};
|
|
12686
12688
|
var program = new commander.Command();
|
|
12687
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.
|
|
12689
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.139").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12688
12690
|
registerConfigCommand(program);
|
|
12689
12691
|
registerLoginCommand(program);
|
|
12690
12692
|
registerRegisterCommand(program);
|