@salesforce/packaging 1.1.9 → 1.1.11

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.
@@ -223,6 +223,14 @@ class PackageVersionCreate {
223
223
  SkipValidation: this.options.skipvalidation || false,
224
224
  Language: this.options.language,
225
225
  };
226
+ // Ensure we only include the Language property for a connection api version
227
+ // of v57.0 or higher.
228
+ if (this.connection.getApiVersion() < '57.0') {
229
+ if (requestObject.Language) {
230
+ this.logger.warn(`The language option is only valid for API version 57.0 and higher. Ignoring ${requestObject.Language}`);
231
+ }
232
+ delete requestObject.Language;
233
+ }
226
234
  if (preserveFiles) {
227
235
  const message = messages.getMessage('tempFileLocation', [packageVersTmpRoot]);
228
236
  await core_1.Lifecycle.getInstance().emit(interfaces_1.PackageVersionEvents.create['preserve-files'], {
@@ -289,7 +297,7 @@ class PackageVersionCreate {
289
297
  // this is not allowed, exit with an error
290
298
  throw messages.createError('signupDuplicateSettingsSpecified');
291
299
  }
292
- ['country', 'edition', 'language', 'features', 'orgPreferences', 'snapshot', 'release', 'sourceOrg'].forEach((prop) => {
300
+ ['country', 'edition', 'features', 'orgPreferences', 'snapshot', 'release', 'sourceOrg'].forEach((prop) => {
293
301
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
294
302
  const propValue = definitionFileJson[prop];
295
303
  if (propValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -38,7 +38,7 @@
38
38
  "!lib/**/*.map"
39
39
  ],
40
40
  "dependencies": {
41
- "@oclif/core": "^1.23.1",
41
+ "@oclif/core": "^1.24.0",
42
42
  "@salesforce/core": "^3.32.11",
43
43
  "@salesforce/kit": "^1.8.0",
44
44
  "@salesforce/schemas": "^1.4.0",
@@ -68,11 +68,11 @@
68
68
  "@types/jszip": "^3.4.1",
69
69
  "@types/xml2js": "^0.4.11",
70
70
  "@typescript-eslint/eslint-plugin": "^5.40.1",
71
- "@typescript-eslint/parser": "5.48.0",
71
+ "@typescript-eslint/parser": "5.48.1",
72
72
  "chai": "^4.3.7",
73
73
  "commitizen": "^4.2.6",
74
74
  "eslint": "^8.31.0",
75
- "eslint-config-prettier": "^8.5.0",
75
+ "eslint-config-prettier": "^8.6.0",
76
76
  "eslint-config-salesforce": "^1.1.0",
77
77
  "eslint-config-salesforce-license": "^0.1.6",
78
78
  "eslint-config-salesforce-typescript": "^1.1.1",