reslop 0.1.6 → 0.1.8

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 (97) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/README.md +33 -19
  3. package/bin/reslop.js +3 -1
  4. package/lib/ansi.js +1 -0
  5. package/lib/capabilities.js +106 -0
  6. package/lib/cli.js +18 -14
  7. package/lib/deps/changes.js +331 -0
  8. package/lib/deps/items.js +131 -0
  9. package/lib/deps/manifest.js +145 -0
  10. package/lib/deps/merge.js +120 -0
  11. package/lib/deps/proposals.js +164 -0
  12. package/lib/deps/reports.js +180 -0
  13. package/lib/deps/rows.js +177 -0
  14. package/lib/deps/scan.js +138 -0
  15. package/lib/deps/usage.js +68 -0
  16. package/lib/deps/versions.js +119 -0
  17. package/lib/deps.js +65 -1348
  18. package/lib/diff/align.js +226 -0
  19. package/lib/diff/display.js +101 -0
  20. package/lib/diff/edit.js +47 -0
  21. package/lib/diff/inline.js +300 -0
  22. package/lib/diff/items.js +101 -0
  23. package/lib/diff/parse.js +156 -0
  24. package/lib/diff/patch.js +103 -0
  25. package/lib/diff.js +13 -932
  26. package/lib/editor.js +37 -0
  27. package/lib/files.js +121 -7
  28. package/lib/git/branches.js +291 -0
  29. package/lib/git/changes.js +164 -0
  30. package/lib/git/dependencies.js +489 -0
  31. package/lib/git/proc.js +162 -0
  32. package/lib/git/read.js +253 -0
  33. package/lib/git/run.js +100 -0
  34. package/lib/git.js +82 -1152
  35. package/lib/github.js +92 -222
  36. package/lib/gitlab.js +72 -216
  37. package/lib/highlight/bash.js +5 -9
  38. package/lib/highlight/core.js +1 -1
  39. package/lib/highlight/css.js +1 -3
  40. package/lib/highlight/csv.js +1 -3
  41. package/lib/highlight/dart.js +6 -20
  42. package/lib/highlight/dot.js +13 -13
  43. package/lib/highlight/html.js +1 -5
  44. package/lib/highlight/js.js +151 -115
  45. package/lib/highlight/json.js +1 -3
  46. package/lib/highlight/log.js +1 -3
  47. package/lib/highlight/txt.js +5 -10
  48. package/lib/highlight.js +4 -4
  49. package/lib/keys.js +63 -142
  50. package/lib/npm/commands.js +100 -0
  51. package/lib/remote/changes.js +37 -0
  52. package/lib/remote/headers.js +36 -0
  53. package/lib/remote/http.js +122 -0
  54. package/lib/remote/notes.js +94 -0
  55. package/lib/render/branches.js +218 -0
  56. package/lib/render/chrome.js +575 -0
  57. package/lib/render/diff.js +307 -0
  58. package/lib/render/files.js +166 -0
  59. package/lib/render/frame.js +197 -0
  60. package/lib/render/notes.js +201 -0
  61. package/lib/render/present.js +25 -0
  62. package/lib/render/primitives.js +200 -0
  63. package/lib/render.js +14 -1565
  64. package/lib/review/format.js +434 -0
  65. package/lib/review/storage.js +150 -0
  66. package/lib/review/store.js +178 -0
  67. package/lib/review/templates.js +49 -0
  68. package/lib/review.js +14 -804
  69. package/lib/select.js +3 -5
  70. package/lib/session/accessors.js +25 -0
  71. package/lib/session/actions.js +275 -0
  72. package/lib/session/branches.js +304 -0
  73. package/lib/session/change-actions.js +320 -0
  74. package/lib/session/commit.js +124 -0
  75. package/lib/session/compose.js +540 -0
  76. package/lib/session/dispatch.js +105 -0
  77. package/lib/session/files-pane.js +234 -0
  78. package/lib/session/items.js +177 -0
  79. package/lib/session/lifecycle.js +476 -0
  80. package/lib/session/load.js +85 -0
  81. package/lib/session/navigation.js +93 -0
  82. package/lib/session/ops.js +110 -0
  83. package/lib/session/origins.js +7 -0
  84. package/lib/session/pointer.js +154 -0
  85. package/lib/session/progress.js +29 -0
  86. package/lib/session/review.js +88 -0
  87. package/lib/session/templates.js +64 -0
  88. package/lib/session/terminal.js +169 -0
  89. package/lib/session/todos.js +269 -0
  90. package/lib/session/update.js +125 -0
  91. package/lib/session/view.js +129 -0
  92. package/lib/session/watch.js +219 -0
  93. package/lib/session.js +579 -2213
  94. package/lib/source.js +11 -11
  95. package/lib/sys.js +25 -4
  96. package/lib/wrap.js +4 -2
  97. package/package.json +2 -2
@@ -0,0 +1,131 @@
1
+ 'use strict';
2
+
3
+ const { itemPath } = require('../files.js');
4
+
5
+ const { depFileMeta } = require('./manifest.js');
6
+ const { orderedChanges } = require('./changes.js');
7
+ const { buildRows, makeHunk } = require('./rows.js');
8
+
9
+ const uniquePaths = (items) => {
10
+ const files = [];
11
+ const seen = new Set();
12
+ for (const item of items) {
13
+ const rel = itemPath(item);
14
+ if (!rel || seen.has(rel)) continue;
15
+ seen.add(rel);
16
+ files.push(rel);
17
+ }
18
+ return files;
19
+ };
20
+
21
+ const filesForChange = (change, files) => {
22
+ const manifest = [];
23
+ const lockfile = [];
24
+ for (const rel of files) {
25
+ const meta = depFileMeta(rel);
26
+ if (!meta) continue;
27
+ if (meta.kind === 'manifest') manifest.push(rel);
28
+ else lockfile.push(rel);
29
+ }
30
+ if (change.section === 'field') {
31
+ if (manifest.length) return manifest;
32
+ return files;
33
+ }
34
+ if (change.section === 'resolved') {
35
+ if (lockfile.length) return lockfile;
36
+ return files;
37
+ }
38
+ if (change.propose) {
39
+ if (manifest.length) return manifest;
40
+ return files;
41
+ }
42
+ const both = [...manifest, ...lockfile];
43
+ if (both.length) return both;
44
+ return files;
45
+ };
46
+
47
+ const pickPrimary = (items) => {
48
+ for (const item of items) {
49
+ const rel = itemPath(item);
50
+ const meta = depFileMeta(rel);
51
+ if (meta && meta.kind === 'manifest') return item;
52
+ }
53
+ return items[0];
54
+ };
55
+
56
+ const makeDepItem = (origin, fileItems, hidden, change, extra, blockId) => {
57
+ const allFiles = uniquePaths(fileItems);
58
+ const files = change ? filesForChange(change, allFiles) : allFiles;
59
+ const primary = pickPrimary(fileItems);
60
+ const oldPath = itemPath(primary);
61
+ const newPath = oldPath;
62
+ const isNew = fileItems.some((item) => item.file && item.file.isNew);
63
+ const isDeleted = fileItems.every((item) => item.file && item.file.isDeleted);
64
+ let oldCount = 0;
65
+ let newCount = 0;
66
+ if (!change) {
67
+ oldCount = extra.oldCount ?? 0;
68
+ newCount = extra.newCount ?? 0;
69
+ }
70
+ const rows = buildRows(change, oldCount, newCount);
71
+ const hunk = makeHunk(rows, blockId);
72
+ const isBinary = false;
73
+ const preamble = [];
74
+ const hunks = [hunk];
75
+ const file = {
76
+ oldPath,
77
+ newPath,
78
+ isNew,
79
+ isDeleted,
80
+ isBinary,
81
+ preamble,
82
+ hunks,
83
+ };
84
+ const patchAdd = '';
85
+ const patchRevert = '';
86
+ const items = hidden;
87
+ const dep = { files, items, change };
88
+ const reload = !!(change && change.propose);
89
+ return { origin, file, hunk, blockId, patchAdd, patchRevert, dep, reload };
90
+ };
91
+
92
+ const makeDepItems = (origin, fileItems, hidden, summary) => {
93
+ const ordered = orderedChanges(summary.changes);
94
+ if (!ordered.length) {
95
+ return [makeDepItem(origin, fileItems, hidden, null, summary, 0)];
96
+ }
97
+ const items = [];
98
+ let blockId = 0;
99
+ for (const change of ordered) {
100
+ const made = makeDepItem(
101
+ origin,
102
+ fileItems,
103
+ hidden,
104
+ change,
105
+ summary,
106
+ blockId,
107
+ );
108
+ items.push(made);
109
+ blockId += 1;
110
+ }
111
+ return items;
112
+ };
113
+
114
+ const stubFileItem = (rel, origin) => {
115
+ const file = {
116
+ oldPath: rel,
117
+ newPath: rel,
118
+ isNew: false,
119
+ isDeleted: false,
120
+ isBinary: false,
121
+ preamble: [],
122
+ hunks: [],
123
+ };
124
+ const hunk = null;
125
+ const blockId = 0;
126
+ const patchAdd = '';
127
+ const patchRevert = '';
128
+ return { origin, file, hunk, blockId, patchAdd, patchRevert };
129
+ };
130
+
131
+ module.exports = { makeDepItems, stubFileItem };
@@ -0,0 +1,145 @@
1
+ 'use strict';
2
+
3
+ const path = require('node:path');
4
+
5
+ const MANIFEST = 'package.json';
6
+ const LOCKFILE = 'package-lock.json';
7
+ const DEP_KIND = { [MANIFEST]: 'manifest', [LOCKFILE]: 'lockfile' };
8
+ const SECTION_KEYS = [
9
+ 'dependencies',
10
+ 'devDependencies',
11
+ 'optionalDependencies',
12
+ 'peerDependencies',
13
+ ];
14
+
15
+ const posixRel = (rel) => {
16
+ const raw = `${rel ?? ''}`;
17
+ return raw.replaceAll('\\', '/');
18
+ };
19
+
20
+ const depFileMeta = (rel) => {
21
+ const normalized = posixRel(rel);
22
+ if (!normalized) return null;
23
+ const base = path.posix.basename(normalized);
24
+ const kind = DEP_KIND[base];
25
+ if (!kind) return null;
26
+ const dir = path.posix.dirname(normalized);
27
+ return { kind, dir, base, rel: normalized };
28
+ };
29
+
30
+ const relOf = (dir, name) => (dir === '.' ? name : `${dir}/${name}`);
31
+
32
+ const parseJson = (text) => {
33
+ if (!text || !`${text}`.trim()) return null;
34
+ try {
35
+ const data = JSON.parse(text);
36
+ if (!data || typeof data !== 'object' || Array.isArray(data)) return null;
37
+ return data;
38
+ } catch {
39
+ return null;
40
+ }
41
+ };
42
+
43
+ const emptySectionMaps = () => {
44
+ const maps = {};
45
+ for (const key of SECTION_KEYS) maps[key] = new Map();
46
+ return maps;
47
+ };
48
+
49
+ const readSectionMap = (pkg, key) => {
50
+ const map = new Map();
51
+ const raw = pkg ? pkg[key] : null;
52
+ if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return map;
53
+ for (const name of Object.keys(raw)) {
54
+ const version = raw[name];
55
+ if (typeof version === 'string') map.set(name, version);
56
+ }
57
+ return map;
58
+ };
59
+
60
+ const readSections = (pkg) => {
61
+ const maps = emptySectionMaps();
62
+ if (!pkg) return maps;
63
+ for (const key of SECTION_KEYS) maps[key] = readSectionMap(pkg, key);
64
+ return maps;
65
+ };
66
+
67
+ const lockRootSections = (lock) => {
68
+ if (!lock) return emptySectionMaps();
69
+ const packages = lock.packages;
70
+ const root = packages && typeof packages === 'object' ? packages[''] : null;
71
+ const src = root && typeof root === 'object' ? root : lock;
72
+ return readSections(src);
73
+ };
74
+
75
+ const lockEntries = (lock) => {
76
+ const versions = new Map();
77
+ if (!lock) return versions;
78
+ const packages = lock.packages;
79
+ if (packages && typeof packages === 'object') {
80
+ for (const key of Object.keys(packages)) {
81
+ const entry = packages[key];
82
+ if (!key.startsWith('node_modules/')) continue;
83
+ if (key.includes('/node_modules/')) continue;
84
+ if (!entry || typeof entry.version !== 'string') continue;
85
+ const name = key.slice('node_modules/'.length);
86
+ versions.set(name, entry.version);
87
+ }
88
+ }
89
+ const deps = lock.dependencies;
90
+ if (!deps || typeof deps !== 'object') return versions;
91
+ for (const name of Object.keys(deps)) {
92
+ const entry = deps[name];
93
+ if (versions.has(name)) continue;
94
+ if (!entry || typeof entry.version !== 'string') continue;
95
+ versions.set(name, entry.version);
96
+ }
97
+ return versions;
98
+ };
99
+
100
+ const lockPackageCount = (lock) => {
101
+ if (!lock) return 0;
102
+ const packages = lock.packages;
103
+ if (packages && typeof packages === 'object') {
104
+ let count = 0;
105
+ for (const key of Object.keys(packages)) {
106
+ if (key !== '') count += 1;
107
+ }
108
+ return count;
109
+ }
110
+ const deps = lock.dependencies;
111
+ if (!deps || typeof deps !== 'object') return 0;
112
+ return Object.keys(deps).length;
113
+ };
114
+
115
+ const cloneJson = (value) => JSON.parse(JSON.stringify(value ?? null));
116
+
117
+ const detectIndent = (text) => {
118
+ const match = /\n([ \t]+)"/.exec(text);
119
+ if (!match) return 2;
120
+ return match[1];
121
+ };
122
+
123
+ const stringifyJson = (value, original) => {
124
+ const indent = detectIndent(original || '');
125
+ const body = JSON.stringify(value, null, indent);
126
+ return `${body}\n`;
127
+ };
128
+
129
+ module.exports = {
130
+ MANIFEST,
131
+ LOCKFILE,
132
+ DEP_KIND,
133
+ SECTION_KEYS,
134
+ posixRel,
135
+ depFileMeta,
136
+ relOf,
137
+ parseJson,
138
+ emptySectionMaps,
139
+ readSections,
140
+ lockRootSections,
141
+ lockEntries,
142
+ lockPackageCount,
143
+ cloneJson,
144
+ stringifyJson,
145
+ };
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+
3
+ const manifest = require('./manifest.js');
4
+ const { SECTION_KEYS, parseJson, cloneJson, stringifyJson } = manifest;
5
+
6
+ const parseFieldValue = (text) => {
7
+ try {
8
+ return JSON.parse(text);
9
+ } catch {
10
+ return text;
11
+ }
12
+ };
13
+
14
+ const setSectionEntry = (pkg, section, name, version) => {
15
+ if (!version) {
16
+ const map = pkg[section];
17
+ if (!map || typeof map !== 'object') return;
18
+ delete map[name];
19
+ if (!Object.keys(map).length) delete pkg[section];
20
+ return;
21
+ }
22
+ const map = pkg[section];
23
+ if (!map || typeof map !== 'object') pkg[section] = {};
24
+ pkg[section][name] = version;
25
+ };
26
+
27
+ const dropsEntry = (change, side) => {
28
+ if (side === 'new') return change.action === 'removed';
29
+ return change.action === 'added';
30
+ };
31
+
32
+ const applyManifestChange = (pkg, change, side) => {
33
+ if (change.section === 'resolved') return pkg;
34
+ const value = side === 'new' ? change.to : change.from;
35
+ if (change.section === 'field') {
36
+ if (value === '') {
37
+ delete pkg[change.name];
38
+ return pkg;
39
+ }
40
+ pkg[change.name] = parseFieldValue(value);
41
+ return pkg;
42
+ }
43
+ const version = dropsEntry(change, side) ? '' : value;
44
+ setSectionEntry(pkg, change.section, change.name, version);
45
+ return pkg;
46
+ };
47
+
48
+ const ensureLockRoot = (lock) => {
49
+ if (!lock.packages || typeof lock.packages !== 'object') {
50
+ lock.packages = {};
51
+ }
52
+ const root = lock.packages[''];
53
+ if (!root || typeof root !== 'object') lock.packages[''] = {};
54
+ return lock.packages[''];
55
+ };
56
+
57
+ const lockNodeKey = (name) => `node_modules/${name}`;
58
+
59
+ const applyLegacyLockDep = (lock, change, side, src) => {
60
+ const deps = lock.dependencies;
61
+ if (!deps || typeof deps !== 'object') return;
62
+ if (dropsEntry(change, side)) {
63
+ delete deps[change.name];
64
+ return;
65
+ }
66
+ const srcDeps = src && src.dependencies;
67
+ if (!srcDeps || typeof srcDeps !== 'object') return;
68
+ const entry = srcDeps[change.name];
69
+ if (entry) deps[change.name] = cloneJson(entry);
70
+ };
71
+
72
+ const applyLockChange = (lock, change, side, oldLock, newLock) => {
73
+ if (change.section === 'field') return lock;
74
+ const src = side === 'new' ? newLock : oldLock;
75
+ if (change.section !== 'resolved') {
76
+ const root = ensureLockRoot(lock);
77
+ applyManifestChange(root, change, side);
78
+ applyLegacyLockDep(lock, change, side, src);
79
+ }
80
+ const packages = lock.packages;
81
+ if (!packages || typeof packages !== 'object') return lock;
82
+ const key = lockNodeKey(change.name);
83
+ if (dropsEntry(change, side)) {
84
+ delete packages[key];
85
+ return lock;
86
+ }
87
+ const srcPkgs = src && src.packages;
88
+ if (!srcPkgs || typeof srcPkgs !== 'object') return lock;
89
+ const entry = srcPkgs[key];
90
+ if (entry) packages[key] = cloneJson(entry);
91
+ return lock;
92
+ };
93
+
94
+ const seedManifest = (oldObj, newObj) => {
95
+ const base = cloneJson(oldObj) || {};
96
+ if (!newObj) return base;
97
+ for (const key of Object.keys(newObj)) {
98
+ const value = newObj[key];
99
+ if (SECTION_KEYS.includes(key)) continue;
100
+ if (Object.hasOwn(base, key)) continue;
101
+ base[key] = cloneJson(value);
102
+ }
103
+ return base;
104
+ };
105
+
106
+ const mergeDepFile = (baseText, oldText, newText, change, side, kind) => {
107
+ const oldObj = parseJson(oldText);
108
+ const newObj = parseJson(newText);
109
+ const parsedBase = parseJson(baseText);
110
+ let base;
111
+ if (parsedBase) base = cloneJson(parsedBase);
112
+ else if (kind === 'manifest') base = seedManifest(oldObj, newObj);
113
+ else base = cloneJson(oldObj) || {};
114
+ if (kind === 'lockfile') applyLockChange(base, change, side, oldObj, newObj);
115
+ else applyManifestChange(base, change, side);
116
+ const original = baseText || newText || oldText || '';
117
+ return stringifyJson(base, original);
118
+ };
119
+
120
+ module.exports = { mergeDepFile };
@@ -0,0 +1,164 @@
1
+ 'use strict';
2
+
3
+ const { SECTION_KEYS, readSections, lockEntries } = require('./manifest.js');
4
+ const { pkgHasExportEntry } = require('./usage.js');
5
+ const versions = require('./versions.js');
6
+ const { findDeclared, applyWantedRange } = versions;
7
+ const { proposedLockVersion, proposedWanted } = versions;
8
+
9
+ const depExports = (exportEntries, name) => {
10
+ if (!exportEntries || !exportEntries.has(name)) return true;
11
+ return exportEntries.get(name) === true;
12
+ };
13
+
14
+ const isAddedDep = (change) => {
15
+ if (change.action !== 'added') return false;
16
+ if (change.section === 'resolved') return false;
17
+ if (change.section === 'field') return false;
18
+ return true;
19
+ };
20
+
21
+ const unusedChangeNames = (changes, used) => {
22
+ const names = [];
23
+ if (!used || !used.size) return names;
24
+ for (const change of changes) {
25
+ if (!isAddedDep(change)) continue;
26
+ if (used.has(change.name)) continue;
27
+ names.push(change.name);
28
+ }
29
+ return names;
30
+ };
31
+
32
+ const unusedDeclaredNames = (pkg, used) => {
33
+ const names = [];
34
+ if (!pkgHasExportEntry(pkg)) return names;
35
+ if (!used || !used.size) return names;
36
+ const maps = readSections(pkg);
37
+ for (const section of SECTION_KEYS) {
38
+ if (section === 'peerDependencies') continue;
39
+ const keys = [...maps[section].keys()];
40
+ keys.sort();
41
+ for (const name of keys) {
42
+ if (used.has(name)) continue;
43
+ names.push(name);
44
+ }
45
+ }
46
+ return names;
47
+ };
48
+
49
+ const markUnusedChanges = (changes, used, pkg, exportEntries) => {
50
+ if (!pkgHasExportEntry(pkg)) return changes;
51
+ if (!used || !used.size) return changes;
52
+ const marked = [];
53
+ for (const change of changes) {
54
+ if (!isAddedDep(change) || used.has(change.name)) {
55
+ marked.push(change);
56
+ continue;
57
+ }
58
+ if (!depExports(exportEntries, change.name)) {
59
+ marked.push(change);
60
+ continue;
61
+ }
62
+ marked.push({ ...change, unused: true, propose: true });
63
+ }
64
+ return marked;
65
+ };
66
+
67
+ const unusedDeclaredChanges = (pkg, used, exportEntries) => {
68
+ const changes = [];
69
+ if (!pkgHasExportEntry(pkg)) return changes;
70
+ if (!used || !used.size) return changes;
71
+ const maps = readSections(pkg);
72
+ const taken = new Set();
73
+ for (const section of SECTION_KEYS) {
74
+ if (section === 'peerDependencies') continue;
75
+ const map = maps[section];
76
+ const names = [...map.keys()];
77
+ names.sort();
78
+ for (const name of names) {
79
+ if (used.has(name)) continue;
80
+ if (taken.has(name)) continue;
81
+ if (!depExports(exportEntries, name)) continue;
82
+ taken.add(name);
83
+ const version = map.get(name);
84
+ changes.push({
85
+ name,
86
+ section,
87
+ action: 'removed',
88
+ from: version,
89
+ to: '',
90
+ propose: true,
91
+ unused: true,
92
+ });
93
+ }
94
+ }
95
+ return changes;
96
+ };
97
+
98
+ const buildProposedChanges = (pkg, outdated, audit, lock, options = {}) => {
99
+ const used = options.used;
100
+ const exportEntries = options.exportEntries;
101
+ const names = new Set();
102
+ if (outdated) {
103
+ for (const name of outdated.keys()) names.add(name);
104
+ }
105
+ if (audit) {
106
+ for (const name of audit.keys()) names.add(name);
107
+ }
108
+ const listed = [...names];
109
+ listed.sort();
110
+ const resolved = lockEntries(lock);
111
+ const unused = unusedDeclaredChanges(pkg, used, exportEntries);
112
+ const taken = new Set();
113
+ for (const change of unused) taken.add(change.name);
114
+ const changes = [...unused];
115
+ for (const name of listed) {
116
+ if (taken.has(name)) continue;
117
+ const out = outdated ? outdated.get(name) : null;
118
+ const vul = audit ? audit.get(name) : null;
119
+ const type = out ? out.type : '';
120
+ const declared = findDeclared(pkg, name, type);
121
+ if (!declared) {
122
+ if (!vul) continue;
123
+ const version = resolved.get(name) || '';
124
+ if (!version) continue;
125
+ const to = proposedLockVersion(version, vul);
126
+ changes.push({
127
+ name,
128
+ section: 'resolved',
129
+ action: 'vulnerable',
130
+ from: version,
131
+ to,
132
+ propose: true,
133
+ audit: vul,
134
+ });
135
+ continue;
136
+ }
137
+ const wanted = proposedWanted(out, vul);
138
+ if (!wanted && !vul) continue;
139
+ let to = declared.version;
140
+ if (wanted) to = applyWantedRange(declared.version, wanted);
141
+ if (to === declared.version && !vul) continue;
142
+ let action = 'changed';
143
+ if (to === declared.version) action = 'vulnerable';
144
+ const change = {
145
+ name,
146
+ section: declared.section,
147
+ action,
148
+ from: declared.version,
149
+ to,
150
+ propose: true,
151
+ };
152
+ if (out) change.outdated = out;
153
+ if (vul) change.audit = vul;
154
+ changes.push(change);
155
+ }
156
+ return changes;
157
+ };
158
+
159
+ module.exports = {
160
+ unusedChangeNames,
161
+ unusedDeclaredNames,
162
+ markUnusedChanges,
163
+ buildProposedChanges,
164
+ };