The future is now: opkg vs apk

How does APK handle config files inside packages during upgrades?

For example OPKG while updating luci-base pkg, saves the config inside the pkg to /etc/config/luci-opkg in order to NOT OVERWRITE existing /etc/config/luci .