@wireapp/core 19.0.0 → 20.0.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.0.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@19.0.0...@wireapp/core@20.0.0) (2021-12-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* **core:** Harmonize asset param name ([#4199](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4199)) ([f29c825](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/f29c825df427e9fccae164a728f0071fdf1bc3af))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **core:** The `imageAsset` property given to the `MessageBuilder.createImage` function has been renamed `asset` to be coherent with sending files.
|
|
17
|
+
Replace `MessageBuilder.createImage({..., imageAsset: asset})` with `MessageBuilder.createImage({..., asset})`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [19.0.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@18.0.0...@wireapp/core@19.0.0) (2021-12-08)
|
|
7
24
|
|
|
8
25
|
|
package/package.json
CHANGED
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"test:project": "yarn dist && yarn test",
|
|
70
70
|
"test:node": "nyc jasmine --config=jasmine.json"
|
|
71
71
|
},
|
|
72
|
-
"version": "
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"version": "20.0.0",
|
|
73
|
+
"gitHead": "43fa0f4292ed1379349812589900944b22a1afb8"
|
|
74
74
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CipherOptions } from '@wireapp/api-client/src/asset';
|
|
2
1
|
import { Confirmation } from '@wireapp/protocol-messaging';
|
|
3
2
|
import { AbortReason } from '..';
|
|
4
3
|
import { EncryptedAssetUploaded } from '../../cryptography';
|
|
@@ -12,19 +11,15 @@ interface BaseOptions {
|
|
|
12
11
|
messageId?: string;
|
|
13
12
|
}
|
|
14
13
|
interface CreateImageOptions extends BaseOptions {
|
|
15
|
-
cipherOptions?: CipherOptions;
|
|
16
14
|
expectsReadConfirmation?: boolean;
|
|
17
|
-
|
|
15
|
+
asset: EncryptedAssetUploaded;
|
|
18
16
|
image: ImageContent;
|
|
19
17
|
legalHoldStatus?: LegalHoldStatus;
|
|
20
18
|
}
|
|
21
|
-
interface CreateFileOptions {
|
|
22
|
-
cipherOptions?: CipherOptions;
|
|
23
|
-
conversationId: string;
|
|
19
|
+
interface CreateFileOptions extends BaseOptions {
|
|
24
20
|
expectsReadConfirmation?: boolean;
|
|
25
21
|
asset: EncryptedAssetUploaded;
|
|
26
22
|
file: FileContent;
|
|
27
|
-
from: string;
|
|
28
23
|
legalHoldStatus?: LegalHoldStatus;
|
|
29
24
|
originalMessageId: string;
|
|
30
25
|
}
|
|
@@ -70,11 +70,11 @@ class MessageBuilder {
|
|
|
70
70
|
}, id: payload.originalMessageId, type: __1.PayloadBundleType.ASSET_ABORT });
|
|
71
71
|
}
|
|
72
72
|
static createImage(payload) {
|
|
73
|
-
const { expectsReadConfirmation, image,
|
|
73
|
+
const { expectsReadConfirmation, image, asset, legalHoldStatus } = payload;
|
|
74
74
|
return Object.assign(Object.assign({}, createCommonProperties(payload)), { content: {
|
|
75
|
-
asset: imageAsset,
|
|
76
75
|
expectsReadConfirmation,
|
|
77
76
|
image,
|
|
77
|
+
asset,
|
|
78
78
|
legalHoldStatus,
|
|
79
79
|
}, type: __1.PayloadBundleType.ASSET_IMAGE });
|
|
80
80
|
}
|