@salesforce/packaging 4.4.0 → 4.5.0

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.
@@ -250,6 +250,7 @@ export type ConvertPackageOptions = {
250
250
  buildInstance?: string;
251
251
  frequency?: Duration;
252
252
  seedMetadata?: string;
253
+ patchversion?: string;
253
254
  };
254
255
  export type PackageVersionCreateOptions = {
255
256
  connection: Connection;
@@ -15,4 +15,5 @@ export declare function createPackageVersionCreateRequest(context: {
15
15
  definitionfile?: string;
16
16
  buildinstance?: string;
17
17
  seedmetadata?: string;
18
+ patchversion?: string;
18
19
  }, packageId: string, apiVersion: string): Promise<PackagingSObjects.Package2VersionCreateRequest>;
@@ -111,6 +111,7 @@ async function convertPackage(pkg, connection, options, project) {
111
111
  definitionfile: options.definitionfile,
112
112
  buildinstance: options.buildInstance,
113
113
  seedmetadata: options.seedMetadata,
114
+ patchversion: options.patchversion,
114
115
  }, packageId,
115
116
  // TODO: createPackageVersionCreateRequest requires apiVersion exist.
116
117
  // UT fail if we validate that it exists (there might not even be a project)
@@ -151,6 +152,7 @@ async function createPackageVersionCreateRequest(context, packageId, apiVersion)
151
152
  const packageVersBlobZipFile = node_path_1.default.join(packageVersTmpRoot, 'package-version-info.zip');
152
153
  let packageDescriptorJson = {
153
154
  id: packageId,
155
+ versionNumber: context.patchversion,
154
156
  };
155
157
  const settingsGenerator = new core_1.ScratchOrgSettingsGenerator({ asDirectory: true });
156
158
  const definitionFile = context.definitionfile;
@@ -46,6 +46,10 @@ You cannot use 'settings' and 'orgPreferences' in your scratch definition file,
46
46
 
47
47
  There was an error while reading or parsing the provided scratch definition file: %s
48
48
 
49
+ # invalidPatchVersionSpecified
50
+
51
+ Requested patch version number %s to convert is invalid
52
+
49
53
  # seedMDDirectoryDoesNotExist
50
54
 
51
55
  Seed metadata directory %s was specified but does not exist.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",