@salesforce/core 8.32.6 → 9.1.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.
Files changed (90) hide show
  1. package/LICENSE.txt +200 -6
  2. package/lib/config/authInfoConfig.js +13 -4
  3. package/lib/config/config.js +13 -4
  4. package/lib/config/configAggregator.js +13 -4
  5. package/lib/config/configFile.js +13 -4
  6. package/lib/config/configStore.js +13 -4
  7. package/lib/config/envVars.js +13 -4
  8. package/lib/config/lwwMap.js +13 -4
  9. package/lib/config/lwwRegister.js +13 -4
  10. package/lib/config/orgUsersConfig.js +13 -4
  11. package/lib/config/sandboxOrgConfig.js +13 -4
  12. package/lib/config/sandboxProcessCache.js +13 -4
  13. package/lib/config/ttlConfig.js +13 -4
  14. package/lib/crypto/crypto.js +13 -4
  15. package/lib/crypto/keyChain.js +13 -4
  16. package/lib/crypto/keyChainImpl.js +13 -4
  17. package/lib/crypto/secureBuffer.js +13 -4
  18. package/lib/deviceOauthService.js +13 -4
  19. package/lib/fs/fs.js +13 -4
  20. package/lib/global.js +13 -4
  21. package/lib/index.js +13 -4
  22. package/lib/lifecycleEvents.js +13 -4
  23. package/lib/logger/cleanup.js +13 -4
  24. package/lib/logger/filters.js +13 -4
  25. package/lib/logger/logger.js +13 -4
  26. package/lib/logger/memoryLogger.js +13 -4
  27. package/lib/logger/transformStream.js +13 -4
  28. package/lib/messageTransformer.js +13 -4
  29. package/lib/messages.js +13 -4
  30. package/lib/org/authInfo.js +33 -13
  31. package/lib/org/authRemover.js +13 -4
  32. package/lib/org/connection.js +13 -4
  33. package/lib/org/determineOrg.js +13 -4
  34. package/lib/org/org.js +13 -4
  35. package/lib/org/orgConfigProperties.js +13 -4
  36. package/lib/org/permissionSetAssignment.js +13 -4
  37. package/lib/org/scratchOrgCache.js +13 -4
  38. package/lib/org/scratchOrgCreate.js +13 -4
  39. package/lib/org/scratchOrgErrorCodes.js +20 -9
  40. package/lib/org/scratchOrgFeatureDeprecation.js +13 -4
  41. package/lib/org/scratchOrgInfoApi.js +17 -6
  42. package/lib/org/scratchOrgInfoGenerator.js +16 -7
  43. package/lib/org/scratchOrgLifecycleEvents.js +13 -4
  44. package/lib/org/scratchOrgSettingsGenerator.js +13 -4
  45. package/lib/org/scratchOrgTypes.js +13 -4
  46. package/lib/org/user.js +13 -4
  47. package/lib/schema/project-scratch-def/features.js +13 -4
  48. package/lib/schema/project-scratch-def/patternFeaturesList.js +13 -4
  49. package/lib/schema/project-scratch-def/scratchOrgDef.js +13 -4
  50. package/lib/schema/project-scratch-def/settings.js +13 -4
  51. package/lib/schema/project-scratch-def/simpleFeaturesList.js +13 -4
  52. package/lib/schema/sfdx-project/bundleEntry.js +13 -4
  53. package/lib/schema/sfdx-project/packageDir.js +13 -4
  54. package/lib/schema/sfdx-project/registryPresets.js +13 -4
  55. package/lib/schema/sfdx-project/registryVariants.js +13 -4
  56. package/lib/schema/sfdx-project/replacements.js +13 -4
  57. package/lib/schema/sfdx-project/sfdxProjectJson.js +13 -4
  58. package/lib/schema/validator.js +13 -4
  59. package/lib/sfError.js +13 -4
  60. package/lib/sfProject.js +13 -4
  61. package/lib/stateAggregator/accessors/aliasAccessor.js +13 -4
  62. package/lib/stateAggregator/accessors/orgAccessor.js +13 -4
  63. package/lib/stateAggregator/accessors/sandboxAccessor.js +13 -4
  64. package/lib/stateAggregator/stateAggregator.js +13 -4
  65. package/lib/status/myDomainResolver.js +13 -4
  66. package/lib/status/pollingClient.js +13 -4
  67. package/lib/status/streamingClient.js +13 -4
  68. package/lib/status/types.js +13 -4
  69. package/lib/testSetup.js +13 -4
  70. package/lib/util/cache.js +13 -4
  71. package/lib/util/directoryWriter.js +13 -4
  72. package/lib/util/fileLocking.js +13 -4
  73. package/lib/util/findSuggestion.js +13 -4
  74. package/lib/util/findUppercaseKeys.js +13 -4
  75. package/lib/util/generateApiName.js +13 -4
  76. package/lib/util/getJwtAudienceUrl.js +13 -4
  77. package/lib/util/internal.js +13 -4
  78. package/lib/util/isWeb.js +13 -4
  79. package/lib/util/lockRetryOptions.js +13 -4
  80. package/lib/util/mapKeys.js +13 -4
  81. package/lib/util/mutex.js +13 -4
  82. package/lib/util/sfdc.js +13 -4
  83. package/lib/util/sfdcUrl.js +13 -4
  84. package/lib/util/time.js +13 -4
  85. package/lib/util/uniqid.js +13 -4
  86. package/lib/util/unwrapArray.js +13 -4
  87. package/lib/util/zipWriter.js +13 -4
  88. package/lib/webOAuthServer.js +13 -4
  89. package/messages/scratchOrgErrorCodes.md +7 -0
  90. package/package.json +7 -6
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2020, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
3
+ * Copyright 2026, Salesforce, Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
  /* eslint-disable class-methods-use-this */
9
18
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
@@ -113,3 +113,10 @@ The template specified in the Scratch Definition isn’t supported. Specify a ge
113
113
  # C-9999
114
114
 
115
115
  A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance
116
+
117
+ # action.C-1016
118
+
119
+ If your Dev Hub is authenticated via an External Client App (ECA), the signup service cannot replicate it into the new scratch org. As a workaround, set these environment variables to use Salesforce's built-in Connected App for signup instead:
120
+
121
+ SF_SCRATCH_SIGNUP_CONNECTED_APP=PlatformCLI
122
+ SF_SCRATCH_SIGNUP_CALLBACK_URL=http://localhost:1717/OauthRedirect
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "8.32.6",
3
+ "version": "9.1.0",
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",
7
- "license": "BSD-3-Clause",
7
+ "license": "Apache-2.0",
8
8
  "engines": {
9
- "node": ">=18.0.0"
9
+ "node": ">=22.0.0"
10
10
  },
11
11
  "exports": {
12
12
  ".": "./lib/index.js",
@@ -33,6 +33,7 @@
33
33
  "clean-all": "sf-clean all",
34
34
  "compile": "wireit",
35
35
  "docs": "sf-docs",
36
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
36
37
  "format": "wireit",
37
38
  "link-check": "wireit",
38
39
  "lint": "wireit",
@@ -62,8 +63,8 @@
62
63
  ],
63
64
  "dependencies": {
64
65
  "@jsforce/jsforce-node": "^3.10.17",
65
- "@salesforce/kit": "^3.2.4",
66
- "@salesforce/ts-types": "^2.0.12",
66
+ "@salesforce/kit": "^4.0.0",
67
+ "@salesforce/ts-types": "^3.0.0",
67
68
  "ajv": "^8.18.0",
68
69
  "change-case": "^4.1.2",
69
70
  "fast-levenshtein": "^3.0.0",
@@ -82,7 +83,7 @@
82
83
  "zod": "^4.1.12"
83
84
  },
84
85
  "devDependencies": {
85
- "@salesforce/dev-scripts": "^10.1.1",
86
+ "@salesforce/dev-scripts": "^11.0.4",
86
87
  "@salesforce/ts-sinon": "^1.4.31",
87
88
  "@types/benchmark": "^2.1.5",
88
89
  "@types/fast-levenshtein": "^0.0.4",