@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.
Files changed (35) hide show
  1. package/LICENSE.txt +1 -1
  2. package/lib/exported.js +1 -1
  3. package/lib/interfaces/bundleInterfacesAndType.js +1 -1
  4. package/lib/interfaces/index.js +1 -1
  5. package/lib/interfaces/packagingInterfacesAndType.js +1 -1
  6. package/lib/package/index.js +1 -1
  7. package/lib/package/packageAncestry.js +1 -1
  8. package/lib/package/packageBundle.js +1 -1
  9. package/lib/package/packageBundleCreate.js +1 -1
  10. package/lib/package/packageBundleInstall.js +1 -1
  11. package/lib/package/packageBundleVersion.js +5 -3
  12. package/lib/package/packageBundleVersionCreate.js +1 -1
  13. package/lib/package/packageConvert.js +1 -1
  14. package/lib/package/packageCreate.js +1 -1
  15. package/lib/package/packageDelete.js +1 -1
  16. package/lib/package/packageInstall.js +1 -1
  17. package/lib/package/packageProfileApi.js +1 -1
  18. package/lib/package/packagePushUpgrade.js +1 -1
  19. package/lib/package/packageUninstall.js +1 -1
  20. package/lib/package/packageVersion.js +16 -7
  21. package/lib/package/packageVersionCreate.js +1 -1
  22. package/lib/package/packageVersionCreateRequest.js +1 -1
  23. package/lib/package/packageVersionCreateRequestReport.js +1 -1
  24. package/lib/package/packageVersionDependency.js +1 -1
  25. package/lib/package/packageVersionList.js +1 -1
  26. package/lib/package/packageVersionReport.js +1 -1
  27. package/lib/package/packageVersionRetrieve.js +1 -1
  28. package/lib/package/subscriberPackageVersion.js +1 -1
  29. package/lib/package/versionNumber.js +1 -1
  30. package/lib/package1/index.js +1 -1
  31. package/lib/package1/package1Version.js +1 -1
  32. package/lib/utils/bundleUtils.js +1 -1
  33. package/lib/utils/index.js +1 -1
  34. package/lib/utils/packageUtils.js +1 -1
  35. package/package.json +3 -3
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Apache License Version 2.0
2
2
 
3
- Copyright (c) 2025 Salesforce, Inc.
3
+ Copyright (c) 2026 Salesforce, Inc.
4
4
  All rights reserved.
5
5
 
6
6
  Apache License
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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPackageDirEntry = createPackageDirEntry;
4
4
  exports.createBundle = createBundle;
5
5
  /*
6
- * Copyright 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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 && finalResult.PackageBundleVersionId) {
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 && createResult.PackageBundleVersionId) {
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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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
- return parseInt(connection.getApiVersion(), 10) > 60
343
- ? exports.Package2VersionFields
344
- : exports.Package2VersionFields.filter((field) => field !== 'ValidatedAsync');
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Package1Version = void 0;
4
4
  /*
5
- * Copyright 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2025, Salesforce, Inc.
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.
@@ -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 2025, Salesforce, Inc.
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 2025, Salesforce, Inc.
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.7",
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.0",
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.0",
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",