@knime/hub-features 1.15.10 → 1.16.1

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c4bd90d: treat etags in upload as optional, adjust docs
8
+ - Updated dependencies [c4bd90d]
9
+ - @knime/utils@1.9.0
10
+ - @knime/components@1.43.1
11
+
12
+ ## 1.16.0
13
+
14
+ ### Minor Changes
15
+
16
+ - f2d266c: Updated node version range for support for node 22 - 24
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [f2d266c]
21
+ - Updated dependencies [f2d266c]
22
+ - @knime/components@1.43.0
23
+ - @knime/utils@1.8.0
24
+ - @knime/styles@1.15.0
25
+
3
26
  ## 1.15.10
4
27
 
5
28
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.15.10",
3
+ "version": "1.16.1",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,9 +36,9 @@
36
36
  "lodash-es": "4.17.21",
37
37
  "ofetch": "^1.4.1",
38
38
  "typescript": "^5.8.3",
39
- "@knime/components": "1.42.2",
40
- "@knime/styles": "1.14.3",
41
- "@knime/utils": "1.7.1"
39
+ "@knime/components": "1.43.1",
40
+ "@knime/styles": "1.15.0",
41
+ "@knime/utils": "1.9.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "consola": "3.x",
@@ -48,10 +48,13 @@
48
48
  "@vitejs/plugin-vue": "^6.0.1",
49
49
  "@vue/test-utils": "2.4.6",
50
50
  "consola": "3.4.2",
51
- "vite": "7.1.11",
51
+ "vite": "^7.2.2",
52
52
  "vite-svg-loader": "5.1.0",
53
53
  "vue-tsc": "3.0.4"
54
54
  },
55
+ "engines": {
56
+ "node": ">=22 <25"
57
+ },
55
58
  "scripts": {
56
59
  "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
57
60
  "test:unit": "TZ='Europe/Berlin' vitest"
@@ -216,12 +216,12 @@ onMounted(() => {
216
216
  position: initial;
217
217
  }
218
218
 
219
- & .headline,
220
- & .panel {
219
+ .headline,
220
+ .panel {
221
221
  line-height: 1.5;
222
222
  }
223
223
 
224
- & .headline {
224
+ .headline {
225
225
  padding-right: 18px;
226
226
  margin: 0;
227
227
  margin: 0 0 var(--space-8);
@@ -229,7 +229,7 @@ onMounted(() => {
229
229
  font-weight: 700;
230
230
  }
231
231
 
232
- & .panel {
232
+ .panel {
233
233
  & .description {
234
234
  margin-bottom: var(--space-6);
235
235
  }
@@ -81,7 +81,8 @@ type UseFileUploadOptions = {
81
81
  * Once the upload of a single file is complete, the upload manager will trigger the `onFileUploadComplete`
82
82
  * callback, which then will supply the ids of all the different parts that got uploaded for a given `uploadId`
83
83
  * Then we need to "complete" the upload by sending a request which provides the `uploadId` and a list of
84
- * the ids of all the parts
84
+ * the ids of all the parts. Note that some backends don't return the ids of the file parts after a successful
85
+ * upload of a part, in this case empty strings or null can be used instead of the part id.
85
86
  *
86
87
  * Cancellation:
87
88
  * Alternative to completion, you can also cancel an upload. For this, the composable makes a DELETE request
@@ -285,6 +286,8 @@ export const useFileUpload = (options: UseFileUploadOptions = {}) => {
285
286
  }
286
287
  });
287
288
 
289
+ // accept floating promise, errors are handled inside the function
290
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
288
291
  useUploadManagerResult.start(parentId, uploadPayload);
289
292
  } catch (error) {
290
293
  throw rfcErrors.tryParse(error) ?? error;
@@ -296,7 +299,7 @@ export const useFileUpload = (options: UseFileUploadOptions = {}) => {
296
299
 
297
300
  cancel: (uploadId: string) => {
298
301
  useUploadManagerResult.cancel(uploadId);
299
- cancelUpload(uploadId).catch((error) => {
302
+ cancelUpload(uploadId).catch((error: unknown) => {
300
303
  consola.error("There was a problem cancelling the upload", { error });
301
304
  });
302
305
  },