npm package diff
Package: @forge/manifest
Versions: 7.9.0-next.3 - 7.9.0-next.4
Modified:package/out/validators/permissions-validator.js
Index: package/out/validators/permissions-validator.js
===================================================================
--- package/out/validators/permissions-validator.js
+++ package/out/validators/permissions-validator.js
@@ -79,9 +79,12 @@
const invalidBackendStrings = manifest.typedContent.permissions.external?.fetch?.backend?.filter((item) => typeof item === 'string' && !this.isValidURL(item));
if (invalidBackendStrings?.length) {
this.addValidationErrors(errors, 'external.fetch.backend', invalidBackendStrings, manifest);
}
- const remoteMap = manifest.typedContent.remotes?.reduce((prev, item) => prev.set(item.key, item.baseUrl), new Map());
+ const remoteMap = manifest.typedContent.remotes?.reduce((prev, item) => {
+ const baseUrl = typeof item.baseUrl === 'string' ? item.baseUrl : item.baseUrl.default;
+ return prev.set(item.key, baseUrl);
+ }, new Map());
const invalidBackendRemotes = manifest.typedContent.permissions.external?.fetch?.backend
?.filter((item) => typeof item === 'object' &&
(!remoteMap || !remoteMap.has(item.remote) || !this.isValidURL(remoteMap.get(item.remote))))
.map((item) => item.remote);
Modified:package/out/schema/manifest-schema.json
too-big
Modified:package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/manifest",
- "version": "7.9.0-next.3",
+ "version": "7.9.0-next.4",
"description": "Definitions and validations of the Forge manifest",
"main": "out/index.js",
"scripts": {
"build": "yarn run compile",
Modified:package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,12 @@
# @forge/manifest
+## 7.9.0-next.4
+
+### Minor Changes
+
+- 238e7ab: Update type references to support a change in the manifest remote schema
+
## 7.9.0-next.3
### Patch Changes
Modified:package/out/schema/manifest.d.ts
too-big