Task
Due to CHANGE-2924 we need to migrate to the permissions storage of the app to the new forge KVS API.
Acceptance criteria
- ✅ use of forge/kvs package instead of deprecated forge/api package
- ✅ all other dependencies are up to date
- ✅ The legacy storage module of @forge/api returned an UNDEFINED error to any request that specified a key that doesn’t exist. The @forge/kvs will now return a KEY_NOT_FOUND error instead.
- ✅ Replace startsWith filter with beginsWith
- ✅ dev dependencies are filtered out in backend package.json before deoloy (false positive ecosystem scanner for e.g. jest test dependencies)
Migration notes KVS
https://developer.atlassian.com/platform/forge/storage-reference/kvs-migration-from-legacy/#migrating-to--forge-kvs-from-legacy-storage-module