From 606e9e4ffb742829f8e616587e97493833d7aa3c Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 18 Dec 2024 13:56:54 +0100 Subject: [PATCH 1/2] chore: update `BOT_APPROVED_FILES` (#4827) It gets updated by @dfinity-bot, see https://github.com/dfinity/motoko/pull/4826. --- .github/repo_policies/BOT_APPROVED_FILES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/repo_policies/BOT_APPROVED_FILES b/.github/repo_policies/BOT_APPROVED_FILES index 46bb21e5391..c9aba6b6290 100644 --- a/.github/repo_policies/BOT_APPROVED_FILES +++ b/.github/repo_policies/BOT_APPROVED_FILES @@ -2,4 +2,4 @@ Changelog.md doc/docusaurus/package-lock.json - +nix/sources.json From 9ae06e3d1c9df21a9406dc6546bd0ba89b8b7941 Mon Sep 17 00:00:00 2001 From: Luc Blaeser <112870813+luc-blaeser@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:08:57 +0100 Subject: [PATCH 2/2] Fix small docu bug (#4828) --- doc/md/canister-maintenance/compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/md/canister-maintenance/compatibility.md b/doc/md/canister-maintenance/compatibility.md index 9592856ad83..06c9a65e320 100644 --- a/doc/md/canister-maintenance/compatibility.md +++ b/doc/md/canister-maintenance/compatibility.md @@ -240,7 +240,7 @@ Adding a new record field to the type of existing stable variable is not support ### Solution -To resolve this issue, an [explicit](#explicit-migration) is needed: +To resolve this issue, an [explicit migration](#explicit-migration) is needed: 1. You must keep the old variable `map` with the same structural type. However, you are allowed to change type alias name (`Card` to `OldCard`). 2. You can introduce a new variable `newMap` and copy the old state to the new one, initializing the new field as needed.