Skip to content

Commit

Permalink
build: release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
typfel committed Dec 2, 2024
1 parent 7528340 commit cc0c802
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 20 deletions.
82 changes: 82 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,87 @@
# Changelog

## v2.0.0 - 2024-12-02

### Highlights

- The number of public errors has been reduced and simplified. It's no longer necessary to use the
`proteus_last_error_code` function, since thrown error should contain all the information.
- The logger callback now includes an additional context parameter which contains additional context
for a log event in the form of a JSON Object string.
- It's now possible to change the logger and log level at runtime (see `setLogLevel` and `setLogger`).

### Breaking changes

- Dropped support for `i686-linux-android` target.
- `CoreCryptoLogger` takes an additional `context` parameter.
- `CoreCryptoError` and its child errors have been refactored to reduce the amount of error we expose and provide explicit
errors for Proteus errors. The errors we have removed will appear under the `Other` case.
```
enum ProteusError {
SessionNotFound,
DuplicateMessage,
RemoteIdentityChanged,
Other(Int),
}
pub enum MlsError {
ConversationAlreadyExists,
DuplicateMessage,
BufferedFutureMessage,
WrongEpoch,
MessageEpochTooOld,
SelfCommitIgnored,
UnmergedPendingGroup,
StaleProposal,
StaleCommit,
Other(String)
}
```

### Features

- include the message of the source error when bundling errors together [WPB-14614] (16bc6e6)
- refactor non-WASM error types (9d41c11)
- proteus error codes are `Option<u16>` not `u32` outside wasm also (52547a0)
- refactor WASM error types (31c860a)
- proteus error codes are `Option<u16>` not `u32` (838c1ce)
- add logging for following the changes in mls groups WPB-11544 (8cc0e7f)
- support logs with a context of key/value pairs (b6ef534)
- disambiguate `WrongEpoch` [WPB-14351] (e6a5e01)
- support changing the logger and log level at runtime WPB-11541 (cd071f0)
- add helper to extract data from within a transaction (c852363)
- relax `Debug` trait bound on `CoreCryptoCommand` and add Rust helper [WPB-12132] (e952a0f)

### Bug Fixes

- bump ios deployment target to 15.0 to fix linker issue (1327b1b)
- improve errors when hitting an idb error during IndexedDB migration (0c0c954)
- don't obfuscate rexie error in keystore v1.0.0 (6ed43e6)
- improve errors when hitting a indexdb error during cryptobox migration (682bd9a)
- build without error without default features (97e2d24)

### Documentation

- improve platform-specific test instructions (a08a3b2)
- improve naming and documentation for `TransactionHelper` (e8b4756)

### Testing

- cause jvm kotlin tests to pass (3b8d930)
- fixup tests broken by recent changes (59db9ed)
- change test for build metadata to achieve closer parity with the kotlin test (ffd4e02)
- use wdio where `bun test` was used previously (9c67569)
- use util functions, migrate tests from puppeteer to wdio [WPB-12176] (fbff47a)
- add test util functions [WPB-12176] (196c877)
- crypto: use world.com instead of wire.com [WPB-14356] (6edcef7)
- crypto: use explicit functions to create certificate bundles [WPB-14356] (c52b9b6)
- crypto: remove From impls for CertificateBundle [WPB-14356] (2f59009)
- add js test for for logs with context data (600ba7c)
- add test that build metadata is available in kotlin via uniffi (87c3ab9)
- add test that build metadata is available in ts (4aa18e6)
- add js binding test verifying that we can replace a logger (30d9db7)
- update js tests after renaming initLogger to setLogger (1c1c949)

## v1.1.2 - 2024-11-27

### Bug Fixes
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crypto-attributes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "core-crypto-attributes"
description = "Macros for core-crypto"
repository = "https://github.com/wireapp/core-crypto"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"

Expand Down
2 changes: 1 addition & 1 deletion crypto-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "core-crypto-ffi"
description = "Platform-specific bindings (Android, iOS, WASM) for CoreCrypto"
repository = "https://github.com/wireapp/core-crypto"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion crypto-ffi/bindings/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kotlin.code.style=official

# gradle-maven-publish configuration
GROUP=com.wire
VERSION_NAME=1.1.0
VERSION_NAME=2.0.0
SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=true
RELEASE_SIGNING_ENABLED=true
Expand Down
2 changes: 1 addition & 1 deletion crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "core-crypto"
description = "Abstraction over OpenMLS with persistent keystore"
repository = "https://github.com/wireapp/core-crypto"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion interop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "interop"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"

Expand Down
2 changes: 1 addition & 1 deletion keystore-dump/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "keystore-dump"
description = "Dumps a keystore to JSON on stdout"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"

Expand Down
2 changes: 1 addition & 1 deletion keystore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "core-crypto-keystore"
description = "Encrypted keystore with support for OpenMLS and Proteus"
repository = "https://github.com/wireapp/core-crypto"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion mls-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mls-crypto-provider"
description = "MLS Crypto Provider wrapping core-crypto-keystore"
repository = "https://github.com/wireapp/core-crypto"
version = "1.1.0"
version = "2.0.0"
edition = "2021"
license = "GPL-3.0-only"
publish = false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wireapp/core-crypto",
"version": "1.1.0",
"version": "2.0.0",
"description": "CoreCrypto bindings for the Web",
"type": "module",
"module": "platforms/web/corecrypto.js",
Expand Down

0 comments on commit cc0c802

Please sign in to comment.