Skip to content

Commit b62403f

Browse files
committed
Merge branch 'master' of github.com:dfinity/sdk into update_azle_template
2 parents 89d0298 + 55f23c2 commit b62403f

File tree

75 files changed

+1977
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1977
-641
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# List of approved files that can be changed by a bot via an automated PR
2+
# This is to increase security and prevent accidentally updating files that shouldn't be changed by a bot
3+
Cargo.lock
4+
CHANGELOG.md
5+
nix/sources.json
6+
src/dfx/Cargo.toml
7+
src/dfx/assets/dfx-asset-sources.toml

.github/workflows/e2e.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,23 @@ jobs:
222222
--frontend_url "$FRONTEND_URL_LOCALHOST" \
223223
--candid_url "$CANDID_URL_LOCALHOST" \
224224
--browser chromium firefox webkit
225+
- name: Deploy sveltekit starter project
226+
run: |
227+
dfx new e2e_project_sveltekit --frontend sveltekit
228+
pushd e2e_project_sveltekit
229+
dfx canister create e2e_project_sveltekit_frontend --specified-id erxue-5aaaa-aaaab-qaagq-cai
230+
dfx deploy
231+
rm -rf e2e_project_sveltekit
232+
popd
233+
# Add any additional deployments here
234+
- name: Install Playwright Browsers and Run Tests
235+
run: |
236+
pushd e2e/playwright/
237+
npm install
238+
npx playwright install --with-deps
239+
npx playwright test
240+
popd
241+
225242
226243
aggregate:
227244
name: e2e:required

.github/workflows/publish-manifest.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
2727
- name: Generate
2828
run: |
29-
shellcheck --shell=sh public/install-dfxvm.sh --exclude SC2154,SC2034,SC3003,SC3014,SC3043
29+
shellcheck -V
30+
shellcheck --shell=sh public/install-dfxvm.sh --exclude SC2154,SC2034,SC3003,SC3014,SC3043,SC2317
3031
~/go/bin/shfmt -d -p -i 4 -ci -bn -s public/install-dfxvm.sh
3132
sed -i "s/@revision@/${GITHUB_SHA}/" public/install-dfxvm.sh
3233
mkdir _out

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
22

33
# UNRELEASED
44

5+
### feat!: `dfx info pocketic-config-port`
6+
7+
Due to the incompatibility between the APIs on the replica port and the PocketIC port, `dfx info replica-port`
8+
no longer works with PocketIC, and the PocketIC port is provided by a new command, `dfx info pocketic-config-port`.
9+
10+
### test: adds playwright test for svelte `dfx new` project
11+
12+
The first of a suite of baseline tests to automate testing starter projects. Makes sure they are compatible with other dfx or asset canister changes.
13+
14+
### fix: template frontends now have unsupported browser warnings
15+
16+
DFX's default security headers cause Safari to break when viewing local canisters. Warning messages
17+
have been added to the frontend project templates when the page is broken that indicate to try switching
18+
browsers.
19+
20+
### feat: impersonating sender of requests to a local PocketIC instance
21+
22+
`dfx canister call`, `dfx canister status`, and `dfx canister update-settings` take
23+
an additional CLI argument `--impersonate` to specify a principal
24+
on behalf of which requests to a local PocketIC instance are sent.
25+
26+
### feat: `dfx canister [create|update-settings] --wasm-memory-threshold`
27+
28+
This adds support for the WASM memory threshold, used in conjunction with `--wasm-memory-limit`.
29+
When the remaining memory until the limit falls below the threshold, the canister's
30+
`on_low_wasm_memory` handler is run.
31+
32+
### fix: `dfx deploy --by-proposal` no longer sends chunk data in ProposeCommitBatch
33+
34+
Recently we made `dfx deploy` include some chunk data in CommitBatch, in order to streamline
35+
deploys for smaller projects. `dfx deploy` splits up larger change lists and submits them in
36+
smaller batches, in order to remain within message and compute limits.
37+
38+
This change also applied to `dfx deploy --by-proposal`, which submits all changes in a single
39+
message. This made it more likely that `dfx deploy --by-proposal` will fail due to exceeding
40+
message limits.
41+
42+
This fix makes it so `dfx deploy --by-proposal` never includes this chunk data in
43+
ProposeCommitBatch, which will allow for more changes before hitting message limits.
44+
545
### feat: `dfx start --pocketic` supports `--force` and shared networks.
646

747
`dfx start --pocketic` is now compatible with `--force` and shared networks.
@@ -67,6 +107,23 @@ Your principal for ICP wallets and decentralized exchanges: ueuar-wxbnk-bdcsr-dn
67107
(run `dfx identity get-principal` to display)
68108
```
69109

110+
### feat: Add pre-install tasks
111+
112+
Add pre-install tasks, which can be defined by the new `pre-install` key for canister objects in `dfx.json` with a command or list of commands.
113+
114+
### chore: Warn when the 'canister_ids.json' file is first generated for persistent networks.
115+
116+
Warn when the 'canister_ids.json' file is first generated for persistent networks.
117+
118+
```
119+
dfx deploy --network ic
120+
...
121+
test_backend canister created on network ic with canister id: j36qm-pqaaa-aaaan-qzqya-cai
122+
WARN: The "/home/sdk/repos/test/canister_ids.json" file has been generated. Please make sure you store it correctly, e.g., submitting it to a GitHub repository.
123+
Building canisters...
124+
...
125+
```
126+
70127
## Dependencies
71128

72129
### Frontend canister
@@ -83,6 +140,23 @@ and reserves that much space for the ValueSerializer's buffer.
83140

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

143+
### Replica
144+
145+
Updated replica to elected commit 3e24396441e4c7380928d4e8b4ccff7de77d0e7e.
146+
This incorporates the following executed proposals:
147+
148+
- [134497](https://dashboard.internetcomputer.org/proposal/134497)
149+
- [134408](https://dashboard.internetcomputer.org/proposal/134408)
150+
- [134337](https://dashboard.internetcomputer.org/proposal/134337)
151+
- [134336](https://dashboard.internetcomputer.org/proposal/134336)
152+
- [134259](https://dashboard.internetcomputer.org/proposal/134259)
153+
- [134251](https://dashboard.internetcomputer.org/proposal/134251)
154+
- [134250](https://dashboard.internetcomputer.org/proposal/134250)
155+
- [134188](https://dashboard.internetcomputer.org/proposal/134188)
156+
- [134187](https://dashboard.internetcomputer.org/proposal/134187)
157+
- [134186](https://dashboard.internetcomputer.org/proposal/134186)
158+
- [134185](https://dashboard.internetcomputer.org/proposal/134185)
159+
86160
# 0.24.3
87161

88162
### feat: Bitcoin support in PocketIC

0 commit comments

Comments
 (0)