@salesforce/core 3.7.3 → 3.7.6

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 (70) hide show
  1. package/CHANGELOG.md +223 -0
  2. package/LICENSE.txt +1 -1
  3. package/lib/config/config.js +15 -15
  4. package/lib/config/configAggregator.js +4 -4
  5. package/lib/config/configFile.js +9 -9
  6. package/lib/config/configStore.js +14 -13
  7. package/lib/config/envVars.d.ts +20 -5
  8. package/lib/config/envVars.js +75 -10
  9. package/lib/config/keychainConfig.js +1 -1
  10. package/lib/crypto/crypto.js +6 -6
  11. package/lib/crypto/keyChainImpl.js +6 -6
  12. package/lib/crypto/secureBuffer.js +1 -1
  13. package/lib/deviceOauthService.js +5 -4
  14. package/lib/exported.d.ts +4 -2
  15. package/lib/exported.js +5 -1
  16. package/lib/globalInfo/globalInfoConfig.js +1 -1
  17. package/lib/globalInfo/sfdxDataHandler.js +11 -11
  18. package/lib/lifecycleEvents.js +2 -2
  19. package/lib/logger.js +12 -13
  20. package/lib/messages.js +10 -9
  21. package/lib/org/authInfo.js +45 -43
  22. package/lib/org/connection.d.ts +6 -1
  23. package/lib/org/connection.js +22 -8
  24. package/lib/org/org.d.ts +12 -2
  25. package/lib/org/org.js +62 -56
  26. package/lib/org/orgConfigProperties.js +1 -1
  27. package/lib/org/permissionSetAssignment.js +3 -3
  28. package/lib/org/scratchOrgCreate.d.ts +43 -0
  29. package/lib/org/scratchOrgCreate.js +142 -0
  30. package/lib/org/scratchOrgErrorCodes.d.ts +4 -0
  31. package/lib/org/scratchOrgErrorCodes.js +62 -0
  32. package/lib/org/scratchOrgFeatureDeprecation.d.ts +26 -0
  33. package/lib/org/scratchOrgFeatureDeprecation.js +110 -0
  34. package/lib/org/scratchOrgInfoApi.d.ts +94 -0
  35. package/lib/org/scratchOrgInfoApi.js +350 -0
  36. package/lib/org/scratchOrgInfoGenerator.d.ts +63 -0
  37. package/lib/org/scratchOrgInfoGenerator.js +223 -0
  38. package/lib/org/scratchOrgSettingsGenerator.d.ts +56 -0
  39. package/lib/org/scratchOrgSettingsGenerator.js +210 -0
  40. package/lib/org/user.js +24 -23
  41. package/lib/schema/printer.js +18 -18
  42. package/lib/schema/validator.js +8 -8
  43. package/lib/sfdxError.js +2 -2
  44. package/lib/sfdxProject.js +15 -13
  45. package/lib/status/myDomainResolver.js +3 -3
  46. package/lib/status/pollingClient.d.ts +2 -2
  47. package/lib/status/pollingClient.js +10 -4
  48. package/lib/status/streamingClient.d.ts +1 -1
  49. package/lib/status/streamingClient.js +6 -6
  50. package/lib/testSetup.js +21 -21
  51. package/lib/util/cache.js +3 -3
  52. package/lib/util/fs.js +12 -12
  53. package/lib/util/jsonXmlTools.d.ts +14 -0
  54. package/lib/util/jsonXmlTools.js +41 -0
  55. package/lib/util/mapKeys.d.ts +14 -0
  56. package/lib/util/mapKeys.js +48 -0
  57. package/lib/util/sfdc.js +3 -3
  58. package/lib/util/sfdcUrl.js +3 -3
  59. package/lib/util/zipWriter.d.ts +14 -0
  60. package/lib/util/zipWriter.js +68 -0
  61. package/lib/webOAuthServer.js +8 -8
  62. package/messages/envVars.md +53 -13
  63. package/messages/org.md +4 -0
  64. package/messages/scratchOrgCreate.md +27 -0
  65. package/messages/scratchOrgErrorCodes.md +99 -0
  66. package/messages/scratchOrgFeatureDeprecation.md +11 -0
  67. package/messages/scratchOrgInfoApi.md +11 -0
  68. package/messages/scratchOrgInfoGenerator.md +19 -0
  69. package/messages/user.md +4 -0
  70. package/package.json +33 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.7.3",
3
+ "version": "3.7.6",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -34,56 +34,59 @@
34
34
  "!lib/**/*.map"
35
35
  ],
36
36
  "dependencies": {
37
+ "@oclif/core": "^1.3.1",
37
38
  "@salesforce/bunyan": "^2.0.0",
38
- "@salesforce/kit": "^1.5.8",
39
- "@salesforce/schemas": "^1.0.1",
39
+ "@salesforce/kit": "^1.5.28",
40
+ "@salesforce/schemas": "^1.1.0",
40
41
  "@salesforce/ts-types": "^1.5.20",
41
42
  "@types/graceful-fs": "^4.1.5",
42
- "@types/jsforce": "^1.9.29",
43
- "@types/mkdirp": "^1.0.1",
43
+ "@types/mkdirp": "^1.0.2",
44
44
  "@types/semver": "^7.3.9",
45
+ "archiver": "^5.3.0",
46
+ "js2xmlparser": "^4.0.1",
45
47
  "change-case": "^4.1.2",
46
- "debug": "^3.1.0",
48
+ "debug": "^3.2.7",
47
49
  "faye": "^1.4.0",
48
50
  "form-data": "^4.0.0",
49
- "graceful-fs": "^4.2.4",
51
+ "graceful-fs": "^4.2.9",
50
52
  "jsen": "0.6.6",
51
53
  "jsforce": "2.0.0-beta.7",
52
- "jsonwebtoken": "8.5.0",
54
+ "jsonwebtoken": "8.5.1",
53
55
  "mkdirp": "1.0.4",
54
56
  "ts-retry-promise": "^0.6.0"
55
57
  },
56
58
  "devDependencies": {
57
- "@salesforce/dev-config": "^2.1.2",
58
- "@salesforce/dev-scripts": "^1.0.2",
59
+ "@salesforce/dev-config": "^3.0.0",
60
+ "@salesforce/dev-scripts": "^2.0.0",
59
61
  "@salesforce/prettier-config": "^0.0.2",
60
- "@salesforce/ts-sinon": "^1.3.15",
61
- "@types/debug": "0.0.30",
62
- "@types/jsen": "0.0.19",
63
- "@types/jsonwebtoken": "8.3.2",
64
- "@types/shelljs": "0.7.8",
65
- "@typescript-eslint/eslint-plugin": "^4.2.0",
66
- "@typescript-eslint/parser": "4.26.0",
67
- "chai": "^4.2.0",
68
- "commitizen": "^3.0.5",
62
+ "@salesforce/ts-sinon": "^1.3.21",
63
+ "@types/archiver": "^5.3.1",
64
+ "@types/debug": "0.0.31",
65
+ "@types/jsen": "0.0.21",
66
+ "@types/jsonwebtoken": "8.5.7",
67
+ "@types/shelljs": "0.8.11",
68
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
69
+ "@typescript-eslint/parser": "4.33.0",
70
+ "chai": "^4.3.4",
71
+ "commitizen": "^3.1.2",
69
72
  "eslint": "^6.8.0",
70
- "eslint-config-prettier": "^6.11.0",
73
+ "eslint-config-prettier": "^6.15.0",
71
74
  "eslint-config-salesforce": "^0.1.6",
72
75
  "eslint-config-salesforce-license": "^0.1.6",
73
- "eslint-config-salesforce-typescript": "^0.2.7",
74
- "eslint-plugin-header": "^3.0.0",
75
- "eslint-plugin-import": "^2.20.2",
76
- "eslint-plugin-jsdoc": "^27.0.3",
76
+ "eslint-config-salesforce-typescript": "^0.2.8",
77
+ "eslint-plugin-header": "^3.1.1",
78
+ "eslint-plugin-import": "^2.25.4",
79
+ "eslint-plugin-jsdoc": "^27.1.2",
77
80
  "eslint-plugin-prettier": "^3.1.3",
78
81
  "husky": "^7.0.4",
79
- "mocha": "^8.4.0",
82
+ "mocha": "^9.1.3",
80
83
  "nyc": "^15.1.0",
81
- "prettier": "^2.0.5",
82
- "pretty-quick": "^3.1.0",
83
- "shelljs": "0.8.1",
84
+ "prettier": "^2.5.1",
85
+ "pretty-quick": "^3.1.3",
86
+ "shelljs": "0.8.5",
84
87
  "sinon": "10.0.0",
85
- "ts-node": "^10.0.0",
86
- "typescript": "^4.1.3"
88
+ "ts-node": "^10.4.0",
89
+ "typescript": "4.4.4"
87
90
  },
88
91
  "repository": {
89
92
  "type": "git",