@salesforce/packaging 4.18.7 → 4.18.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1 -1
- package/lib/exported.js +1 -1
- package/lib/interfaces/bundleInterfacesAndType.js +1 -1
- package/lib/interfaces/index.js +1 -1
- package/lib/interfaces/packagingInterfacesAndType.js +1 -1
- package/lib/package/index.js +1 -1
- package/lib/package/packageAncestry.js +1 -1
- package/lib/package/packageBundle.js +1 -1
- package/lib/package/packageBundleCreate.js +1 -1
- package/lib/package/packageBundleInstall.js +1 -1
- package/lib/package/packageBundleVersion.js +5 -3
- package/lib/package/packageBundleVersionCreate.js +1 -1
- package/lib/package/packageConvert.js +1 -1
- package/lib/package/packageCreate.js +1 -1
- package/lib/package/packageDelete.js +1 -1
- package/lib/package/packageInstall.js +1 -1
- package/lib/package/packageProfileApi.js +1 -1
- package/lib/package/packagePushUpgrade.js +1 -1
- package/lib/package/packageUninstall.js +1 -1
- package/lib/package/packageVersion.js +16 -7
- package/lib/package/packageVersionCreate.js +1 -1
- package/lib/package/packageVersionCreateRequest.js +1 -1
- package/lib/package/packageVersionCreateRequestReport.js +1 -1
- package/lib/package/packageVersionDependency.js +1 -1
- package/lib/package/packageVersionList.js +1 -1
- package/lib/package/packageVersionReport.js +1 -1
- package/lib/package/packageVersionRetrieve.js +1 -1
- package/lib/package/subscriberPackageVersion.js +1 -1
- package/lib/package/versionNumber.js +1 -1
- package/lib/package1/index.js +1 -1
- package/lib/package1/package1Version.js +1 -1
- package/lib/utils/bundleUtils.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/packageUtils.js +1 -1
- package/package.json +3 -3
package/LICENSE.txt
CHANGED
package/lib/exported.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright
|
|
18
|
+
* Copyright 2026, Salesforce, Inc.
|
|
19
19
|
*
|
|
20
20
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
21
|
* you may not use this file except in compliance with the License.
|
package/lib/interfaces/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright
|
|
18
|
+
* Copyright 2026, Salesforce, Inc.
|
|
19
19
|
*
|
|
20
20
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
21
|
* you may not use this file except in compliance with the License.
|
package/lib/package/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.VersionNumber = void 0;
|
|
18
18
|
/*
|
|
19
|
-
* Copyright
|
|
19
|
+
* Copyright 2026, Salesforce, Inc.
|
|
20
20
|
*
|
|
21
21
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
22
22
|
* you may not use this file except in compliance with the License.
|
|
@@ -38,7 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.PackageAncestryNode = exports.AncestryDotProducer = exports.AncestryJsonProducer = exports.AncestryTreeProducer = exports.PackageAncestry = void 0;
|
|
40
40
|
/*
|
|
41
|
-
* Copyright
|
|
41
|
+
* Copyright 2026, Salesforce, Inc.
|
|
42
42
|
*
|
|
43
43
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
44
44
|
* you may not use this file except in compliance with the License.
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createPackageDirEntry = createPackageDirEntry;
|
|
4
4
|
exports.createBundle = createBundle;
|
|
5
5
|
/*
|
|
6
|
-
* Copyright
|
|
6
|
+
* Copyright 2026, Salesforce, Inc.
|
|
7
7
|
*
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
9
|
* you may not use this file except in compliance with the License.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PackageBundleInstall = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2026, Salesforce, Inc.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2026, Salesforce, Inc.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -38,7 +38,8 @@ class PackageBundleVersion {
|
|
|
38
38
|
throw (0, packageUtils_1.applyErrorAction)((0, bundleUtils_1.massageErrorMessage)(error));
|
|
39
39
|
});
|
|
40
40
|
// Add bundle version alias to sfdx-project.json after successful creation
|
|
41
|
-
if (finalResult.RequestStatus === interfaces_1.BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
|
|
41
|
+
if (finalResult.RequestStatus === interfaces_1.BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
|
|
42
|
+
finalResult.PackageBundleVersionId) {
|
|
42
43
|
await PackageBundleVersion.addBundleVersionAlias(options.project, finalResult);
|
|
43
44
|
}
|
|
44
45
|
return finalResult;
|
|
@@ -46,7 +47,8 @@ class PackageBundleVersion {
|
|
|
46
47
|
// Add bundle version alias to sfdx-project.json after successful creation (non-polling case)
|
|
47
48
|
// Note: In the non-polling case, the bundle version may not be created yet (status is 'Queued' or 'InProgress')
|
|
48
49
|
// So we only add the alias if the status is already 'Success'
|
|
49
|
-
if (createResult.RequestStatus === interfaces_1.BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
|
|
50
|
+
if (createResult.RequestStatus === interfaces_1.BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
|
|
51
|
+
createResult.PackageBundleVersionId) {
|
|
50
52
|
await PackageBundleVersion.addBundleVersionAlias(options.project, createResult);
|
|
51
53
|
}
|
|
52
54
|
return createResult;
|
|
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.PackageBundleVersionCreate = void 0;
|
|
37
37
|
/*
|
|
38
|
-
* Copyright
|
|
38
|
+
* Copyright 2026, Salesforce, Inc.
|
|
39
39
|
*
|
|
40
40
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
41
|
* you may not use this file except in compliance with the License.
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PackageProfileApi = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
8
|
+
* Copyright 2026, Salesforce, Inc.
|
|
9
9
|
*
|
|
10
10
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
* you may not use this file except in compliance with the License.
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PackagePushUpgrade = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
8
|
+
* Copyright 2026, Salesforce, Inc.
|
|
9
9
|
*
|
|
10
10
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
* you may not use this file except in compliance with the License.
|
|
@@ -7,7 +7,7 @@ exports.getUninstallErrors = getUninstallErrors;
|
|
|
7
7
|
exports.pollUninstall = pollUninstall;
|
|
8
8
|
exports.uninstallPackage = uninstallPackage;
|
|
9
9
|
/*
|
|
10
|
-
* Copyright
|
|
10
|
+
* Copyright 2026, Salesforce, Inc.
|
|
11
11
|
*
|
|
12
12
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
13
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2026, Salesforce, Inc.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -41,7 +41,7 @@ exports.Package2VersionFields = [
|
|
|
41
41
|
'Branch',
|
|
42
42
|
'AncestorId',
|
|
43
43
|
'ValidationSkipped',
|
|
44
|
-
'ValidatedAsync',
|
|
44
|
+
'ValidatedAsync', // v61.0+
|
|
45
45
|
'Name',
|
|
46
46
|
'Description',
|
|
47
47
|
'MajorVersion',
|
|
@@ -59,8 +59,8 @@ exports.Package2VersionFields = [
|
|
|
59
59
|
'ReleaseVersion',
|
|
60
60
|
'BuildDurationInSeconds',
|
|
61
61
|
'HasMetadataRemoved',
|
|
62
|
-
'EndToEndBuildDurationInSeconds',
|
|
63
|
-
'DeveloperUsePkgZip',
|
|
62
|
+
'EndToEndBuildDurationInSeconds', // v61.0+
|
|
63
|
+
'DeveloperUsePkgZip', // v64.0+
|
|
64
64
|
];
|
|
65
65
|
/**
|
|
66
66
|
* Provides the ability to create, update, delete, and promote 2nd
|
|
@@ -339,9 +339,18 @@ class PackageVersion {
|
|
|
339
339
|
return result.records ?? [];
|
|
340
340
|
}
|
|
341
341
|
static getPackage2VersionFields(connection) {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
const apiVersion = parseInt(connection.getApiVersion(), 10);
|
|
343
|
+
// remove fields that are not available in the connection api version
|
|
344
|
+
const fieldsToExclude = [];
|
|
345
|
+
if (apiVersion < 64) {
|
|
346
|
+
fieldsToExclude.push('DeveloperUsePkgZip');
|
|
347
|
+
}
|
|
348
|
+
if (apiVersion < 61) {
|
|
349
|
+
fieldsToExclude.push('EndToEndBuildDurationInSeconds', 'ValidatedAsync');
|
|
350
|
+
}
|
|
351
|
+
return fieldsToExclude.length > 0
|
|
352
|
+
? exports.Package2VersionFields.filter((field) => !fieldsToExclude.includes(field))
|
|
353
|
+
: exports.Package2VersionFields;
|
|
345
354
|
}
|
|
346
355
|
/**
|
|
347
356
|
* Get the package version ID for this PackageVersion.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PackageDependencyNode = exports.DependencyDotProducer = exports.PackageVersionDependency = exports.VERSION_BEING_BUILT = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2026, Salesforce, Inc.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.retrievePackageVersionMetadata = retrievePackageVersionMetadata;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
8
|
+
* Copyright 2026, Salesforce, Inc.
|
|
9
9
|
*
|
|
10
10
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
* you may not use this file except in compliance with the License.
|
package/lib/package1/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Package1Version = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2026, Salesforce, Inc.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Package1Version = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright
|
|
8
|
+
* Copyright 2026, Salesforce, Inc.
|
|
9
9
|
*
|
|
10
10
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
* you may not use this file except in compliance with the License.
|
package/lib/utils/bundleUtils.js
CHANGED
package/lib/utils/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.massageErrorMessage = exports.getPackageVersionNumber = exports.getPackageVersionStrings = exports.getContainerOptions = exports.INSTALL_URL_BASE = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright
|
|
5
|
+
* Copyright 2026, Salesforce, Inc.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -59,7 +59,7 @@ exports.findPackageDirectory = findPackageDirectory;
|
|
|
59
59
|
exports.isPackageDirectoryEffectivelyEmpty = isPackageDirectoryEffectivelyEmpty;
|
|
60
60
|
exports.cleanPackageDescriptorJson = cleanPackageDescriptorJson;
|
|
61
61
|
/*
|
|
62
|
-
* Copyright
|
|
62
|
+
* Copyright 2026, Salesforce, Inc.
|
|
63
63
|
*
|
|
64
64
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
65
65
|
* you may not use this file except in compliance with the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/packaging",
|
|
3
|
-
"version": "4.18.
|
|
3
|
+
"version": "4.18.9",
|
|
4
4
|
"description": "Packaging library for the Salesforce packaging platform",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@jsforce/jsforce-node": "^3.10.10",
|
|
46
|
-
"@salesforce/core": "^8.24.
|
|
46
|
+
"@salesforce/core": "^8.24.3",
|
|
47
47
|
"@salesforce/kit": "^3.2.4",
|
|
48
48
|
"@salesforce/schemas": "^1.10.3",
|
|
49
|
-
"@salesforce/source-deploy-retrieve": "^12.31.
|
|
49
|
+
"@salesforce/source-deploy-retrieve": "^12.31.6",
|
|
50
50
|
"@salesforce/ts-types": "^2.0.12",
|
|
51
51
|
"@salesforce/types": "^1.6.0",
|
|
52
52
|
"fast-xml-parser": "^4.5.0",
|