sfdx-git-delta 5.26.1 → 5.27.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.
- package/CHANGELOG.md +14 -0
- package/README.md +9 -1
- package/lib/main.d.ts +1 -1
- package/lib/main.js +1 -2
- package/lib/main.js.map +1 -1
- package/lib/utils/fsHelper.js +6 -1
- package/lib/utils/fsHelper.js.map +1 -1
- package/lib/utils/gitLfsHelper.d.ts +3 -0
- package/lib/utils/gitLfsHelper.js +23 -0
- package/lib/utils/gitLfsHelper.js.map +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +8 -8
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.27.0](https://github.com/scolladon/sfdx-git-delta/compare/v5.26.2...v5.27.0) (2023-10-17)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* support `git-lfs` ([#707](https://github.com/scolladon/sfdx-git-delta/issues/707)) ([b27abc8](https://github.com/scolladon/sfdx-git-delta/commit/b27abc8276cc7c91dbe204dae0fe7aee543f3830))
|
|
13
|
+
|
|
14
|
+
## [5.26.2](https://github.com/scolladon/sfdx-git-delta/compare/v5.26.1...v5.26.2) (2023-10-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* typescript default exported value ([#706](https://github.com/scolladon/sfdx-git-delta/issues/706)) ([1a4c518](https://github.com/scolladon/sfdx-git-delta/commit/1a4c518329e83b9346b754926148937ff9407647))
|
|
20
|
+
|
|
7
21
|
## [5.26.1](https://github.com/scolladon/sfdx-git-delta/compare/v5.26.0...v5.26.1) (2023-10-04)
|
|
8
22
|
|
|
9
23
|
|
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
- [`sfdx sgd:source:delta -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]`](#sfdx-sgdsourcedelta--f-string--t-string--r-filepath--i-filepath--d-filepath--s-filepath--w--o-filepath--a-number--d--n-filepath--n-filepath---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
36
36
|
- [Windows users](#windows-users)
|
|
37
37
|
- [CI/CD specificity](#cicd-specificity)
|
|
38
|
+
- [Git LFS support](#git-lfs-support)
|
|
38
39
|
- [Use cases](#use-cases)
|
|
39
40
|
- [Walkthrough](#walkthrough)
|
|
40
41
|
- [Execute sgd](#execute-sgd)
|
|
@@ -187,7 +188,7 @@ OPTIONS
|
|
|
187
188
|
this command invocation
|
|
188
189
|
```
|
|
189
190
|
|
|
190
|
-
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.
|
|
191
|
+
_See code: [src/commands/sgd/source/delta.ts](https://github.com/scolladon/sfdx-git-delta/blob/v5.27.0/src/commands/sgd/source/delta.ts)_
|
|
191
192
|
<!-- commandsstop -->
|
|
192
193
|
|
|
193
194
|
### Windows users
|
|
@@ -232,6 +233,13 @@ Example with [github action](https://docs.github.com/en/actions/learn-github-act
|
|
|
232
233
|
run: echo y | sfdx plugins:install "sfdx-git-delta@${{ vars.SGD_VERSION }}"
|
|
233
234
|
```
|
|
234
235
|
|
|
236
|
+
### Git LFS support
|
|
237
|
+
|
|
238
|
+
The plugin is compatible with git LFS.
|
|
239
|
+
It will be able to read content from LFS locally.
|
|
240
|
+
It is the user responsibility to ensure LFS content is present when the plugin is executed.
|
|
241
|
+
/!\ The plugin **will not fetch** content from the LFS server /!\
|
|
242
|
+
|
|
235
243
|
### Use cases
|
|
236
244
|
|
|
237
245
|
Any git sha pointer is supported: commit sha, branch, tag, git expression (HEAD, etc.).
|
package/lib/main.d.ts
CHANGED
package/lib/main.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
const tslib_1 = require("tslib");
|
|
4
3
|
const diffLineInterpreter_1 = tslib_1.__importDefault(require("./service/diffLineInterpreter"));
|
|
5
4
|
const metadataManager_1 = require("./metadata/metadataManager");
|
|
@@ -22,5 +21,5 @@ const sgd = async (config) => {
|
|
|
22
21
|
await (0, postProcessorManager_1.getPostProcessors)(work, metadata).execute();
|
|
23
22
|
return work;
|
|
24
23
|
};
|
|
25
|
-
exports
|
|
24
|
+
module.exports = sgd;
|
|
26
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/lib/utils/fsHelper.js
CHANGED
|
@@ -6,6 +6,7 @@ const path_1 = require("path");
|
|
|
6
6
|
const fs_extra_2 = require("fs-extra");
|
|
7
7
|
const gitConstants_1 = require("./gitConstants");
|
|
8
8
|
const childProcessUtils_1 = require("./childProcessUtils");
|
|
9
|
+
const gitLfsHelper_1 = require("./gitLfsHelper");
|
|
9
10
|
const FOLDER = 'tree';
|
|
10
11
|
const showCmd = ['--no-pager', 'show'];
|
|
11
12
|
const gitPathSeparatorNormalizer = (path) => path.replace(/\\+/g, gitConstants_1.GIT_PATH_SEP);
|
|
@@ -41,9 +42,13 @@ const copyFiles = async (config, src) => {
|
|
|
41
42
|
exports.copyFiles = copyFiles;
|
|
42
43
|
const readPathFromGitAsBuffer = async (path, { repo, to }) => {
|
|
43
44
|
const normalizedPath = (0, exports.gitPathSeparatorNormalizer)(path);
|
|
44
|
-
|
|
45
|
+
let bufferData = await (0, childProcessUtils_1.getSpawnContent)(gitConstants_1.GIT_COMMAND, [...showCmd, `${to}:${normalizedPath}`], {
|
|
45
46
|
cwd: repo,
|
|
46
47
|
});
|
|
48
|
+
if ((0, gitLfsHelper_1.isLFS)(bufferData)) {
|
|
49
|
+
const lsfPath = (0, gitLfsHelper_1.getLFSObjectContentPath)(bufferData);
|
|
50
|
+
bufferData = await (0, fs_extra_1.readFile)((0, path_1.join)(repo, lsfPath));
|
|
51
|
+
}
|
|
47
52
|
return bufferData;
|
|
48
53
|
};
|
|
49
54
|
const readPathFromGit = async (path, config) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsHelper.js","sourceRoot":"","sources":["../../src/utils/fsHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ,uCAAiD;AACjD,+BAAiD;AACjD,uCAA2C;AAC3C,iDAKuB;AACvB,2DAA6E;
|
|
1
|
+
{"version":3,"file":"fsHelper.js","sourceRoot":"","sources":["../../src/utils/fsHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ,uCAAiD;AACjD,+BAAiD;AACjD,uCAA2C;AAC3C,iDAKuB;AACvB,2DAA6E;AAC7E,iDAA+D;AAG/D,MAAM,MAAM,GAAG,MAAM,CAAA;AAErB,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;AAC/B,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,EAAE,CACzD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,2BAAY,CAAC,CAAA;AADvB,QAAA,0BAA0B,8BACH;AACpC,MAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAA;AAC7B,MAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAA;AAEvB,MAAM,SAAS,GAAG,KAAK,EAAE,MAAc,EAAE,GAAW,EAAE,EAAE;IAC7D,IAAI,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAM;IACzD,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEpB,IAAI;QACF,MAAM,UAAU,GAAW,MAAM,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QACrE,MAAM,QAAQ,GAAG,UAAU,EAAE,QAAQ,CAAC,4BAAa,CAAC,IAAI,EAAE,CAAA;QAE1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AA;AAC9B,CAAC,CAAA;AALY,QAAA,KAAK,SAKjB;AAEY,QAAA,GAAG,GAAG,GAAG,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLFSObjectContentPath = exports.isLFS = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const gitConstants_1 = require("./gitConstants");
|
|
6
|
+
const childProcessUtils_1 = require("./childProcessUtils");
|
|
7
|
+
const LFS_HEADER = Buffer.from('version https://git-lfs');
|
|
8
|
+
const isLFS = (content) => content.subarray(0, LFS_HEADER.length).equals(LFS_HEADER);
|
|
9
|
+
exports.isLFS = isLFS;
|
|
10
|
+
const getLFSObjectContentPath = (bufferContent) => {
|
|
11
|
+
const content = bufferContent.toString(gitConstants_1.UTF8_ENCODING);
|
|
12
|
+
const oid = content.split(childProcessUtils_1.EOLRegex)[1].split(':')[1];
|
|
13
|
+
return [
|
|
14
|
+
gitConstants_1.GIT_FOLDER,
|
|
15
|
+
'lfs',
|
|
16
|
+
'objects',
|
|
17
|
+
oid.slice(0, 2),
|
|
18
|
+
oid.slice(2, 4),
|
|
19
|
+
oid,
|
|
20
|
+
].join(path_1.sep);
|
|
21
|
+
};
|
|
22
|
+
exports.getLFSObjectContentPath = getLFSObjectContentPath;
|
|
23
|
+
//# sourceMappingURL=gitLfsHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitLfsHelper.js","sourceRoot":"","sources":["../../src/utils/gitLfsHelper.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AACZ,+BAA0B;AAC1B,iDAA0D;AAC1D,2DAA8C;AAE9C,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;AAElD,MAAM,KAAK,GAAG,CAAC,OAAe,EAAW,EAAE,CAChD,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;AAD9C,QAAA,KAAK,SACyC;AAEpD,MAAM,uBAAuB,GAAG,CAAC,aAAqB,EAAU,EAAE;IACvE,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,4BAAa,CAAC,CAAA;IACrD,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,4BAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACpD,OAAO;QACL,yBAAU;QACV,KAAK;QACL,SAAS;QACT,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACf,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACf,GAAG;KACJ,CAAC,IAAI,CAAC,UAAG,CAAC,CAAA;AACb,CAAC,CAAA;AAXY,QAAA,uBAAuB,2BAWnC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.27.0","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.
|
|
3
|
+
"version": "5.27.0",
|
|
4
4
|
"description": "Generate the sfdx content in source format and destructive change from two git commits",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"salesforce",
|
|
@@ -67,7 +67,7 @@
|
|
|
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.4.
|
|
70
|
+
"@salesforce/cli-plugins-testkit": "^4.4.7",
|
|
71
71
|
"@salesforce/dev-config": "^4.0.1",
|
|
72
72
|
"@salesforce/ts-sinon": "^1.4.17",
|
|
73
73
|
"@stryker-mutator/core": "^7.2.0",
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"@swc/core": "^1.3.81",
|
|
76
76
|
"@types/jest": "^29.5.5",
|
|
77
77
|
"@types/mocha": "^10.0.2",
|
|
78
|
-
"@types/node": "^20.8.
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
80
|
-
"@typescript-eslint/parser": "^6.7.
|
|
78
|
+
"@types/node": "^20.8.4",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
80
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
81
81
|
"benchmark": "^2.1.4",
|
|
82
82
|
"chai": "^4.3.10",
|
|
83
83
|
"depcheck": "^1.4.6",
|
|
84
|
-
"eslint": "^8.
|
|
84
|
+
"eslint": "^8.51.0",
|
|
85
85
|
"eslint-config-prettier": "^9.0.0",
|
|
86
|
-
"eslint-plugin-prettier": "^5.0.
|
|
86
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
87
87
|
"husky": "^8.0.3",
|
|
88
88
|
"jest": "^29.7.0",
|
|
89
89
|
"lint-staged": "^14.0.1",
|
|
@@ -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",
|