sfdx-git-delta 5.26.0 → 5.26.2
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/CHANGELOG.md +14 -0
- package/README.md +3 -1
- package/lib/commands/sgd/source/delta.js +3 -2
- package/lib/commands/sgd/source/delta.js.map +1 -1
- package/lib/main.d.ts +2 -1
- package/lib/main.js +1 -3
- package/lib/main.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
6
6
|
|
|
7
|
+
## [5.26.2](https://github.com/scolladon/sfdx-git-delta/compare/v5.26.1...v5.26.2) (2023-10-09)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* typescript default exported value ([#706](https://github.com/scolladon/sfdx-git-delta/issues/706)) ([1a4c518](https://github.com/scolladon/sfdx-git-delta/commit/1a4c518329e83b9346b754926148937ff9407647))
|
|
13
|
+
|
|
14
|
+
## [5.26.1](https://github.com/scolladon/sfdx-git-delta/compare/v5.26.0...v5.26.1) (2023-10-04)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* use default export for main module ([#702](https://github.com/scolladon/sfdx-git-delta/issues/702)) ([774b7fc](https://github.com/scolladon/sfdx-git-delta/commit/774b7fca4f121de4d364f72d5ab6e51b623d06a1))
|
|
20
|
+
|
|
7
21
|
## [5.26.0](https://github.com/scolladon/sfdx-git-delta/compare/v5.25.2...v5.26.0) (2023-09-26)
|
|
8
22
|
|
|
9
23
|
|
package/README.md
CHANGED
|
@@ -187,7 +187,7 @@ OPTIONS
|
|
|
187
187
|
this command invocation
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.26.
|
|
190
|
+
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.26.2/src/commands/sgd/source/delta.ts)_
|
|
191
191
|
<!-- commandsstop -->
|
|
192
192
|
|
|
193
193
|
### Windows users
|
|
@@ -496,6 +496,8 @@ Then use the JavaScript module
|
|
|
496
496
|
```js
|
|
497
497
|
// sample/app.js
|
|
498
498
|
const sgd = require('sfdx-git-delta')
|
|
499
|
+
// or
|
|
500
|
+
// import sgd from 'sfdx-git-delta'
|
|
499
501
|
|
|
500
502
|
const work = await sgd({
|
|
501
503
|
to: '', // commit sha to where the diff is done. [default : "HEAD"]
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const command_1 = require("@salesforce/command");
|
|
4
5
|
const core_1 = require("@salesforce/core");
|
|
5
|
-
const main_1 = require("../../../main");
|
|
6
|
+
const main_1 = tslib_1.__importDefault(require("../../../main"));
|
|
6
7
|
const cliHelper_1 = require("../../../utils/cliHelper");
|
|
7
8
|
// Initialize Messages with the current plugin directory
|
|
8
9
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
@@ -19,7 +20,7 @@ class SourceDeltaGenerate extends command_1.SfdxCommand {
|
|
|
19
20
|
warnings: [],
|
|
20
21
|
};
|
|
21
22
|
try {
|
|
22
|
-
const jobResult = await (0, main_1.
|
|
23
|
+
const jobResult = await (0, main_1.default)({
|
|
23
24
|
to: this.flags['to'],
|
|
24
25
|
from: this.flags['from'],
|
|
25
26
|
output: this.flags['output'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta.js","sourceRoot":"","sources":["../../../../src/commands/sgd/source/delta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delta.js","sourceRoot":"","sources":["../../../../src/commands/sg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AC;KAC3D,CAAC;CACH,CAAA;kBAzDkB,mBAAmB"}
|
package/lib/main.d.ts
CHANGED
package/lib/main.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sgd = void 0;
|
|
4
2
|
const tslib_1 = require("tslib");
|
|
5
3
|
const diffLineInterpreter_1 = tslib_1.__importDefault(require("./service/diffLineInterpreter"));
|
|
6
4
|
const metadataManager_1 = require("./metadata/metadataManager");
|
|
@@ -23,5 +21,5 @@ const sgd = async (config) => {
|
|
|
23
21
|
await (0, postProcessorManager_1.getPostProcessors)(work, metadata).execute();
|
|
24
22
|
return work;
|
|
25
23
|
};
|
|
26
|
-
exports
|
|
24
|
+
module.exports = sgd;
|
|
27
25
|
//# sourceMappingURL=main.js.map
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AACZ,gGAA+D;AAC/D,gEAA0D;AAC1D,0EAAyC;AACzC,8EAA6C;AAC7C,gFAAyE;AAKzE,MAAM,GAAG,GAAG,KAAK,EAAE,MAAc,EAAiB,EAAE;IAClD,MAAM,IAAI,GAAS;QACjB,MAAM;QACN,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,GAAG,EAAE,EAAE;QAC5D,QAAQ,EAAE,EAAE;KACb,CAAA;IACD,MAAM,SAAS,GAAG,IAAI,mBAAS,CAAC,IAAI,CAAC,CAAA;IACrC,MAAM,SAAS,CAAC,cAAc,EAAE,CAAA;IAEhC,MAAM,QAAQ,GAAuB,MAAM,IAAA,+BAAa,EAAC,MAAM,CAAC,UAAU,CAAC,CAAA;IAC3E,MAAM,iBAAiB,GAAG,IAAI,qBAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAE3D,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,QAAQ,EAAE,CAAA;IAChD,MAAM,aAAa,GAAG,IAAI,6BAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC7D,MAAM,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAClC,MAAM,IAAA,wCAAiB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAA;IACjD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,iBAAS,GAAG,CAAA"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.26.
|
|
1
|
+
{"version":"5.26.2","commands":{"sgd:source:delta":{"id":"sgd:source:delta","description":"Generate the sfdx content in source format and destructive change from two git commits","usage":"<%= command.id %> -f <string> [-t <string>] [-r <filepath>] [-i <filepath>] [-D <filepath>] [-s <filepath>] [-W] [-o <filepath>] [-a <number>] [-d] [-n <filepath>] [-N <filepath>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"sfdx-git-delta","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"to":{"name":"to","type":"option","char":"t","description":"commit sha to where the diff is done","default":"HEAD"},"from":{"name":"from","type":"option","char":"f","description":"commit sha from where the diff is done","required":true},"repo":{"name":"repo","type":"option","char":"r","description":"git repository location","default":"./"},"ignore":{"name":"ignore","type":"option","char":"i","description":"file listing paths to explicitly ignore for any diff actions"},"ignore-destructive":{"name":"ignore-destructive","type":"option","char":"D","description":"file listing paths to explicitly ignore for any destructive actions"},"source":{"name":"source","type":"option","char":"s","description":"source folder focus location related to --repo","default":"./"},"ignore-whitespace":{"name":"ignore-whitespace","type":"boolean","char":"W","description":"ignore git diff whitespace (space, tab, eol) changes","allowNo":false},"output":{"name":"output","type":"option","char":"o","description":"source package specific output","default":"./output"},"api-version":{"name":"api-version","type":"option","char":"a","description":"salesforce metadata API version, default to sfdx-project.json \"sourceApiVersion\" attribute or latest version"},"generate-delta":{"name":"generate-delta","type":"boolean","char":"d","description":"generate delta files in [--output] folder","allowNo":false},"include":{"name":"include","type":"option","char":"n","description":"file listing paths to explicitly include for any diff actions"},"include-destructive":{"name":"include-destructive","type":"option","char":"N","description":"file listing paths to explicitly include for any destructive actions"}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-git-delta",
|
|
3
|
-
"version": "5.26.
|
|
3
|
+
"version": "5.26.2",
|
|
4
4
|
"description": "Generate the sfdx content in source format and destructive change from two git commits",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"salesforce",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "Sebastien Colladon <colladonsebastien@gmail.com>",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@salesforce/command": "^5.3.9",
|
|
29
|
-
"fast-xml-parser": "^4.2
|
|
29
|
+
"fast-xml-parser": "^4.3.2",
|
|
30
30
|
"fs-extra": "^11.1.1",
|
|
31
31
|
"ignore": "^5.2.4",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
@@ -63,25 +63,25 @@
|
|
|
63
63
|
"upgrade:dependencies": "shx rm -rf yarn.lock ; shx touch yarn.lock ; yarn-upgrade-all ; yarn-audit-fix"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@commitlint/cli": "^17.7.
|
|
66
|
+
"@commitlint/cli": "^17.7.2",
|
|
67
67
|
"@commitlint/config-conventional": "^17.7.0",
|
|
68
68
|
"@jest/globals": "^29.7.0",
|
|
69
69
|
"@oclif/dev-cli": "^1.26.10",
|
|
70
|
-
"@salesforce/cli-plugins-testkit": "^4.
|
|
70
|
+
"@salesforce/cli-plugins-testkit": "^4.4.5",
|
|
71
71
|
"@salesforce/dev-config": "^4.0.1",
|
|
72
|
-
"@salesforce/ts-sinon": "^1.4.
|
|
73
|
-
"@stryker-mutator/core": "^7.
|
|
74
|
-
"@stryker-mutator/jest-runner": "^7.
|
|
72
|
+
"@salesforce/ts-sinon": "^1.4.17",
|
|
73
|
+
"@stryker-mutator/core": "^7.2.0",
|
|
74
|
+
"@stryker-mutator/jest-runner": "^7.2.0",
|
|
75
75
|
"@swc/core": "^1.3.81",
|
|
76
|
-
"@types/jest": "^29.5.
|
|
77
|
-
"@types/mocha": "^10.0.
|
|
78
|
-
"@types/node": "^20.
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
80
|
-
"@typescript-eslint/parser": "^6.7.
|
|
76
|
+
"@types/jest": "^29.5.5",
|
|
77
|
+
"@types/mocha": "^10.0.2",
|
|
78
|
+
"@types/node": "^20.8.2",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
80
|
+
"@typescript-eslint/parser": "^6.7.4",
|
|
81
81
|
"benchmark": "^2.1.4",
|
|
82
|
-
"chai": "^4.3.
|
|
82
|
+
"chai": "^4.3.10",
|
|
83
83
|
"depcheck": "^1.4.6",
|
|
84
|
-
"eslint": "^8.
|
|
84
|
+
"eslint": "^8.50.0",
|
|
85
85
|
"eslint-config-prettier": "^9.0.0",
|
|
86
86
|
"eslint-plugin-prettier": "^5.0.0",
|
|
87
87
|
"husky": "^8.0.3",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"nyc": "^15.1.0",
|
|
92
92
|
"prettier": "^3.0.3",
|
|
93
93
|
"shx": "^0.3.4",
|
|
94
|
-
"sinon": "^16.
|
|
94
|
+
"sinon": "^16.1.0",
|
|
95
95
|
"ts-jest": "^29.1.1",
|
|
96
96
|
"ts-node": "^10.9.1",
|
|
97
97
|
"typescript": "^5.2.2",
|