Skip to content

Commit

Permalink
Merge branch 'master' into release-0.24.1-promote
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Oct 23, 2024
2 parents 23e5502 + d891db4 commit 36da4a1
Show file tree
Hide file tree
Showing 53 changed files with 1,287 additions and 272 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@

# UNRELEASED

# 0.24.2

### feat: Support canister log allowed viewer list

Added support for the canister log allowed viewer list, enabling specified users to access a canister's logs without needing to be set as the canister's controller.
Valid settings are:
- `--add-log-viewer`, `--remove-log-viewer` and `--set-log-viewer` flags with `dfx canister update-settings`
- `--log-viewer` flag with `dfx canister create`
- `canisters[].initialization_values.log_visibility.allowed_viewers` in `dfx.json`

### feat: batch upload assets

The frontend canister sync now tries to batch multiple small content chunks into a single call using the `create_chunks` method added earlier.
And for small amounts of uploaded data the asset sync can now skip chunk creation entirely.
This should lead to significantly faster upload times for frontends with many small files.

## Dependencies

### Motoko

Updated Motoko to [0.13.2](https://github.com/dfinity/motoko/releases/tag/0.13.2)

### Frontend canister

`SetAssetContentArguments` has a new field `last_chunk: opt blob` which can be used in addition to `chunk_ids` so that small assets can be uploaded as part of `commit_batch`,
skipping the need to await a separate `create_chunk` call.

Bumped `api_version` to `2` for the previous addition of `create_chunks` since the improved file sync relies on it.

- Module hash: 296d1ad1a7f8b15f90ff8b728658646b649cabd159f360f1b427297f4c76763e
- https://github.com/dfinity/sdk/pull/3954
- https://github.com/dfinity/sdk/pull/3947

# 0.24.1

### feat: More PocketIC flags supported
Expand Down
172 changes: 148 additions & 24 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ clap = "4.5"
clap_complete = "4.5"
dialoguer = "0.11.0"
directories-next = "2.0.0"
flate2 = { version = "1.0.11", default-features = false }
flate2 = { version = "1.0.11" }
futures = "0.3.21"
handlebars = "4.3.3"
hex = "0.4.3"
Expand Down
Loading

0 comments on commit 36da4a1

Please sign in to comment.