@salesforce/core 8.24.0 → 8.24.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025, Salesforce.com, Inc.
1
+ Copyright (c) 2026, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
package/lib/org/org.d.ts CHANGED
@@ -74,7 +74,7 @@ export type SandboxRequest = {
74
74
  Description?: string;
75
75
  ApexClassId?: string;
76
76
  ActivationUserGroupId?: string;
77
- Features?: string[];
77
+ Features?: string[] | string;
78
78
  };
79
79
  export type ResumeSandboxRequest = {
80
80
  SandboxName?: string;
package/lib/org/org.js CHANGED
@@ -264,6 +264,10 @@ class Org extends kit_1.AsyncOptionalCreatable {
264
264
  interval: kit_1.Duration.seconds(30),
265
265
  }) {
266
266
  this.logger.debug(sandboxReq, 'CreateSandbox called with SandboxRequest');
267
+ // The tooling create API expects a string, not an array, so convert.
268
+ if (sandboxReq.Features && Array.isArray(sandboxReq.Features)) {
269
+ sandboxReq.Features = JSON.stringify(sandboxReq.Features);
270
+ }
267
271
  const createResult = await this.connection.tooling.create('SandboxInfo', sandboxReq);
268
272
  this.logger.debug(createResult, 'Return from calling tooling.create');
269
273
  if (Array.isArray(createResult) || !createResult.success) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "8.24.0",
3
+ "version": "8.24.1",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",