@dotinc/ogre 0.4.0 → 0.5.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 (46) hide show
  1. package/.tap/processinfo/0799a6bd-022f-41d1-8be9-6338667041c0.json +245 -0
  2. package/.tap/processinfo/4cdc23d3-f7ce-4075-922f-722bf0d687fc.json +245 -0
  3. package/.tap/processinfo/6d907291-2f1e-4670-b04c-3a667271c352.json +245 -0
  4. package/.tap/processinfo/7dc6b1af-ac78-47bc-9b62-630e387e8755.json +245 -0
  5. package/.tap/processinfo/8c48e5e9-6eca-4afe-a7b5-04e26b765d29.json +241 -0
  6. package/.tap/processinfo/8ca695ae-d038-441a-b4ab-2a242d22d416.json +245 -0
  7. package/.tap/processinfo/98475c49-5ee5-4c2c-b8e2-85bd2af528c9.json +245 -0
  8. package/.tap/test-results/src/branch.test.ts.tap +40 -0
  9. package/.tap/test-results/src/checkout.test.ts.tap +52 -0
  10. package/.tap/test-results/src/commit.test.ts.tap +105 -0
  11. package/.tap/test-results/src/merge.test.ts.tap +16 -0
  12. package/.tap/test-results/src/repository.test.ts.tap +63 -0
  13. package/.tap/test-results/src/tag.test.ts.tap +19 -0
  14. package/.tap/test-results/src/utils.test.ts.tap +43 -0
  15. package/CHANGELOG.md +34 -1
  16. package/README.md +6 -4
  17. package/lib/commit.d.ts +0 -0
  18. package/lib/commit.js +0 -0
  19. package/lib/git2json.d.ts +0 -0
  20. package/lib/git2json.js +0 -0
  21. package/lib/hash.d.ts +0 -0
  22. package/lib/hash.js +0 -0
  23. package/lib/index.d.ts +0 -0
  24. package/lib/index.js +0 -0
  25. package/lib/interfaces.d.ts +0 -0
  26. package/lib/interfaces.js +0 -0
  27. package/lib/ref.d.ts +0 -0
  28. package/lib/ref.js +0 -0
  29. package/lib/repository.d.ts +7 -0
  30. package/lib/repository.js +32 -0
  31. package/lib/size.d.ts +0 -0
  32. package/lib/size.js +0 -0
  33. package/lib/test.utils.d.ts +9 -9
  34. package/lib/test.utils.js +8 -12
  35. package/lib/utils.d.ts +0 -0
  36. package/lib/utils.js +0 -0
  37. package/package.json +8 -20
  38. package/src/branch.test.ts +17 -17
  39. package/src/checkout.test.ts +29 -26
  40. package/src/commit.test.ts +60 -69
  41. package/src/merge.test.ts +13 -9
  42. package/src/repository.test.ts +160 -82
  43. package/src/repository.ts +63 -10
  44. package/src/tag.test.ts +6 -6
  45. package/src/test.utils.ts +18 -13
  46. package/src/utils.test.ts +21 -14
@@ -0,0 +1,245 @@
1
+ {
2
+ "date": "2024-02-24T07:40:07.234Z",
3
+ "argv": [
4
+ "/opt/hostedtoolcache/node/18.19.1/x64/bin/node",
5
+ "/home/runner/work/ogre/ogre/packages/ogre/src/merge.test.ts"
6
+ ],
7
+ "execArgv": [
8
+ "--import=file:///home/runner/work/ogre/ogre/node_modules/@isaacs/ts-node-temp-fork-for-pr-2009/import.mjs",
9
+ "--import=file:///home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/import.mjs",
10
+ "--enable-source-maps",
11
+ "--import=file:///home/runner/work/ogre/ogre/node_modules/@tapjs/processinfo/dist/esm/import.mjs"
12
+ ],
13
+ "NODE_OPTIONS": "\"\" \"--require\" \"/home/runner/work/ogre/ogre/node_modules/node-preload/preload-path/node-preload.js\" \"--import=file:///home/runner/work/ogre/ogre/node_modules/@tapjs/processinfo/dist/esm/import.mjs\" --require /home/runner/work/ogre/ogre/node_modules/node-preload/preload-path/node-preload.js",
14
+ "cwd": "/home/runner/work/ogre/ogre/packages/ogre",
15
+ "pid": 2200,
16
+ "ppid": 2151,
17
+ "parent": null,
18
+ "uuid": "98475c49-5ee5-4c2c-b8e2-85bd2af528c9",
19
+ "files": [
20
+ "/home/runner/work/ogre/ogre/packages/ogre/src/merge.test.ts",
21
+ "/home/runner/work/ogre/ogre/node_modules/walk-up-path/dist/mjs/index.js",
22
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/read-json.js",
23
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/index.js",
24
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/find-star-match.js",
25
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/index.js",
26
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/glob.js",
27
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/has-magic.js",
28
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/brace-expansion/index.js",
29
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/assert-valid-pattern.js",
30
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/ast.js",
31
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/escape.js",
32
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/unescape.js",
33
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/dist/mjs/index.js",
34
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/pattern.js",
35
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/walker.js",
36
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/brace-expressions.js",
37
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js",
38
+ "/home/runner/work/ogre/ogre/node_modules/minipass/dist/esm/index.js",
39
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/ignore.js",
40
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/processor.js",
41
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/loader.mjs",
42
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/hooks.mjs",
43
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/mock-service-client.js",
44
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/mock-service.js",
45
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/index.js",
46
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/index.js",
47
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/is-relative-require.js",
48
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/export-line.js",
49
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/munge-mocks.js",
50
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/resolve-mock-entry-point.js",
51
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/service-key.js",
52
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/commonjs/service-key.js",
53
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/call-site-like.js",
54
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/require-resolve.js",
55
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-all-conditional-values.js",
56
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-all-conditions.js",
57
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-unique-condition-sets.js",
58
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-all-exports.js",
59
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-all-local-imports.js",
60
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-conditional-value.js",
61
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-import.js",
62
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/is-windows.js",
63
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/parse.js",
64
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-conditional-values-list.js",
65
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/errors.js",
66
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-named-exports-list.js",
67
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/read-pkg.js",
68
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-export.js",
69
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/star-glob.js",
70
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/to-path.js",
71
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/file-exists.js",
72
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/find-dep-package.js",
73
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/to-file-url.js",
74
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-dependency-export.js",
75
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-package-import.js",
76
+ "/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts",
77
+ "/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts",
78
+ "/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts",
79
+ "/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts",
80
+ "/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"
81
+ ],
82
+ "sources": {
83
+ "/home/runner/work/ogre/ogre/node_modules/walk-up-path/dist/mjs/index.js": [
84
+ "/home/runner/work/ogre/ogre/node_modules/walk-up-path/src/index.ts"
85
+ ],
86
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/read-json.js": [
87
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/read-json.ts"
88
+ ],
89
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/index.js": [
90
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/index.ts"
91
+ ],
92
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/find-star-match.js": [
93
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/find-star-match.ts"
94
+ ],
95
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/index.js": [
96
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/index.ts"
97
+ ],
98
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/glob.js": [
99
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/glob.ts"
100
+ ],
101
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/has-magic.js": [
102
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/has-magic.ts"
103
+ ],
104
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/assert-valid-pattern.js": [
105
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/assert-valid-pattern.ts"
106
+ ],
107
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/ast.js": [
108
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/ast.ts"
109
+ ],
110
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/escape.js": [
111
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/escape.ts"
112
+ ],
113
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/unescape.js": [
114
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/unescape.ts"
115
+ ],
116
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/dist/mjs/index.js": [
117
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/src/index.ts"
118
+ ],
119
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/pattern.js": [
120
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/pattern.ts"
121
+ ],
122
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/walker.js": [
123
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/walker.ts"
124
+ ],
125
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/dist/mjs/brace-expressions.js": [
126
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/minimatch/src/brace-expressions.ts"
127
+ ],
128
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js": [
129
+ "/home/runner/work/ogre/ogre/node_modules/path-scurry/node_modules/lru-cache/src/index.ts"
130
+ ],
131
+ "/home/runner/work/ogre/ogre/node_modules/minipass/dist/esm/index.js": [
132
+ "/home/runner/work/ogre/ogre/node_modules/minipass/src/index.ts"
133
+ ],
134
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/ignore.js": [
135
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/ignore.ts"
136
+ ],
137
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/dist/esm/processor.js": [
138
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/node_modules/glob/src/processor.ts"
139
+ ],
140
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/mock-service.js": [
141
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/mock-service.ts"
142
+ ],
143
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/index.js": [
144
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/src/index.ts"
145
+ ],
146
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/index.js": [
147
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/index.ts"
148
+ ],
149
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/is-relative-require.js": [
150
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/is-relative-require.ts"
151
+ ],
152
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/export-line.js": [
153
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/export-line.ts"
154
+ ],
155
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/munge-mocks.js": [
156
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/munge-mocks.ts"
157
+ ],
158
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/resolve-mock-entry-point.js": [
159
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/resolve-mock-entry-point.ts"
160
+ ],
161
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/esm/service-key.js": [
162
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/service-key.ts"
163
+ ],
164
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/dist/commonjs/service-key.js": [
165
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/mock/src/service-key-cjs.cts"
166
+ ],
167
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/call-site-like.js": [
168
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/src/call-site-like.ts"
169
+ ],
170
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/require-resolve.js": [
171
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/src/require-resolve.ts"
172
+ ],
173
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-all-conditional-values.js": [
174
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/get-all-conditional-values.ts"
175
+ ],
176
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-all-conditions.js": [
177
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/get-all-conditions.ts"
178
+ ],
179
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-unique-condition-sets.js": [
180
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/get-unique-condition-sets.ts"
181
+ ],
182
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-all-exports.js": [
183
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-all-exports.ts"
184
+ ],
185
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-all-local-imports.js": [
186
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-all-local-imports.ts"
187
+ ],
188
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-conditional-value.js": [
189
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-conditional-value.ts"
190
+ ],
191
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-import.js": [
192
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-import.ts"
193
+ ],
194
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/is-windows.js": [
195
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/is-windows.ts"
196
+ ],
197
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/dist/esm/parse.js": [
198
+ "/home/runner/work/ogre/ogre/node_modules/@tapjs/stack/src/parse.ts"
199
+ ],
200
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-conditional-values-list.js": [
201
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/get-conditional-values-list.ts"
202
+ ],
203
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/errors.js": [
204
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/errors.ts"
205
+ ],
206
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/get-named-exports-list.js": [
207
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/get-named-exports-list.ts"
208
+ ],
209
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/read-pkg.js": [
210
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/read-pkg.ts"
211
+ ],
212
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-export.js": [
213
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-export.ts"
214
+ ],
215
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/star-glob.js": [
216
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/star-glob.ts"
217
+ ],
218
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/to-path.js": [
219
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/to-path.ts"
220
+ ],
221
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/file-exists.js": [
222
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/file-exists.ts"
223
+ ],
224
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/find-dep-package.js": [
225
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/find-dep-package.ts"
226
+ ],
227
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/to-file-url.js": [
228
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/to-file-url.ts"
229
+ ],
230
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-dependency-export.js": [
231
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-dependency-export.ts"
232
+ ],
233
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/dist/esm/resolve-package-import.js": [
234
+ "/home/runner/work/ogre/ogre/node_modules/resolve-import/src/resolve-package-import.ts"
235
+ ]
236
+ },
237
+ "root": "98475c49-5ee5-4c2c-b8e2-85bd2af528c9",
238
+ "externalID": "src/merge.test.ts",
239
+ "code": 0,
240
+ "signal": null,
241
+ "runtime": 1791.619329,
242
+ "globalsAdded": [
243
+ "__coverage__"
244
+ ]
245
+ }
@@ -0,0 +1,40 @@
1
+ TAP version 14
2
+ # Subtest: current branch on empty repo is HEAD
3
+ ok 1 - invalid current branch
4
+ 1..1
5
+ ok 1 - current branch on empty repo is HEAD # time=73.496ms
6
+
7
+ # Subtest: first commit goes onto default 'main' branch
8
+ ok 1 - invalid current branch
9
+ ok 2 - invalid HEAD
10
+ 1..2
11
+ ok 2 - first commit goes onto default 'main' branch # time=6.345ms
12
+
13
+ # Subtest: fails to create a branch with empty repo
14
+ ok 1 - incorrect \# of commits
15
+ ok 2 - new branch w/ incorrect \# of changelog entries
16
+ ok 3 - expected to throw
17
+ 1..3
18
+ ok 3 - fails to create a branch with empty repo # time=5.287ms
19
+
20
+ # Subtest: checkout new branch with empty repo
21
+ ok 1 - HEAD did not move to new branch
22
+ ok 2 - main should not be pointing to anything
23
+ ok 3 - new_feature should not be pointing to anything
24
+ 1..3
25
+ ok 4 - checkout new branch with empty repo # time=2.35ms
26
+
27
+ # Subtest: creating a valid branch on a baseline
28
+ ok 1 - invalid branch ref created
29
+ ok 2 - new branch is pointing to wrong commit
30
+ 1..2
31
+ ok 5 - creating a valid branch on a baseline # time=3.301ms
32
+
33
+ # Subtest: cannot create new branch with invalid name
34
+ ok 1 - expected to throw
35
+ ok 2 - expected to throw
36
+ ok 3 - expected to throw
37
+ 1..3
38
+ ok 6 - cannot create new branch with invalid name # time=2.137ms
39
+
40
+ 1..6
@@ -0,0 +1,52 @@
1
+ TAP version 14
2
+ # Subtest: checkout prev commit
3
+ ok 1 - incorrect \# of changelog entries
4
+ ok 2 - incorrect \# of commits
5
+ ok 3 - points to wrong commit
6
+ ok 4 - repo is not in detached state
7
+ ok 5 - has a nested object when it shouldn't: {"uuid":"dfe5f568-b661-483b-af58-8b18b188f600","name":"my first process template","description":"now we have a description","nested":[]}
8
+ 1..5
9
+ ok 1 - checkout prev commit # time=78.12ms
10
+
11
+ # Subtest: checkout new branch with simple name
12
+ ok 1 - HEAD is not moved to target branch
13
+ 1..1
14
+ ok 2 - checkout new branch with simple name # time=3.046ms
15
+
16
+ # Subtest: checkout new branch with full ref name
17
+ ok 1 - HEAD is not moved to target branch
18
+ 1..1
19
+ ok 3 - checkout new branch with full ref name # time=1.562ms
20
+
21
+ # Subtest: checkout commit which has two refs pointing leaves HEAD detached
22
+ ok 1 - main does not point to commit
23
+ ok 2 - new_feature does not point to commit
24
+ ok 3 - HEAD is not detached at commit
25
+ ok 4 - HEAD is not pointing to commit
26
+ 1..4
27
+ ok 4 - checkout commit which has two refs pointing leaves HEAD detached # time=4.279ms
28
+
29
+ # Subtest: checkout new branch moves head to new branch
30
+ ok 1 - HEAD is not moved to target branch
31
+ 1..1
32
+ ok 5 - checkout new branch moves head to new branch # time=65.4ms
33
+
34
+ # Subtest: checkout and create new branch on empty main
35
+ ok 1 - HEAD should point to empty branch
36
+ ok 2 - branch still should be empty
37
+ 1..2
38
+ ok 6 - checkout and create new branch on empty main # time=1.409ms
39
+
40
+ # Subtest: checkout and create new branch with at least 1 commit
41
+ ok 1 - HEAD should point to new branch
42
+ ok 2 - branch is not pointing to last HEAD commit
43
+ 1..2
44
+ ok 7 - checkout and create new branch with at least 1 commit # time=23.004ms
45
+
46
+ # Subtest: replacing default branch on empty master removes main
47
+ ok 1 - new branch w/ incorrect \# of changelog entries
48
+ ok 2 - expected to throw
49
+ 1..2
50
+ ok 8 - replacing default branch on empty master removes main # time=5.3ms
51
+
52
+ 1..8
@@ -0,0 +1,105 @@
1
+ TAP version 14
2
+ # Subtest: baseline with 1 commit and zero changelog entries
3
+ ok 1 - has changelog entries
4
+ ok 2 - incorrect \# of commits
5
+ 1..2
6
+ ok 1 - baseline with 1 commit and zero changelog entries # time=146.356ms
7
+
8
+ # Subtest: head points to main
9
+ ok 1 - head not pointing where it should
10
+ 1..1
11
+ ok 2 - head points to main # time=4.937ms
12
+
13
+ # Subtest: no commit without changes
14
+ ok 1 - expected to reject
15
+ 1..1
16
+ ok 3 - no commit without changes # time=12.281ms
17
+
18
+ # Subtest: no commit without changes after recent commit
19
+ ok 1 - expected to reject
20
+ 1..1
21
+ ok 4 - no commit without changes after recent commit # time=8.121ms
22
+
23
+ # Subtest: treeHash of commit is matching content
24
+ ok 1 - should be equal
25
+ ok 2 - tree hash mismatch
26
+ 1..2
27
+ ok 5 - treeHash of commit is matching content # time=3.862ms
28
+
29
+ # Subtest: no commit --amend without commit
30
+ ok 1 - expected to reject
31
+ 1..1
32
+ ok 6 - no commit --amend without commit # time=2.318ms
33
+
34
+ # Subtest: main moves to recent commit
35
+ ok 1 - head does not point to recent commit
36
+ 1..1
37
+ ok 7 - main moves to recent commit # time=2.734ms
38
+
39
+ # Subtest: two commits with 3 changes
40
+ ok 1 - incorrect \# of changelog entries
41
+ ok 2 - incorrect \# of commits
42
+ 1..2
43
+ ok 8 - two commits with 3 changes # time=29.411ms
44
+
45
+ # Subtest: array push double-change, 6 changes, 3 commits
46
+ ok 1 - incorrect \# of changelog entries
47
+ ok 2 - incorrect \# of commits
48
+ ok 3 - \#incorrect \# of changes in commit\#1
49
+ ok 4 - \#incorrect \# of changes in commit\#2
50
+ 1..4
51
+ ok 9 - array push double-change, 6 changes, 3 commits # time=5.461ms
52
+
53
+ # Subtest: all refs OK, when committing on new branch while main is empty main
54
+ ok 1 - main should not point to a commit
55
+ ok 2 - new_feature should point to last commit
56
+ ok 3 - branch should now be visible
57
+ ok 4 - HEAD is pointing to wrong branch
58
+ 1..4
59
+ ok 10 - all refs OK, when committing on new branch while main is empty main # time=12.513ms
60
+
61
+ # Subtest: commit --amend changes hash on content change
62
+ ok 1 - hash should have changed
63
+ ok 2 - wrong \# of commits
64
+ ok 3 - wrong \# of changes: [{"op":"add","path":"/name","value":"new name"},{"op":"add","path":"/description","value":"new description"}]
65
+ ok 4 - HEAD is not pointing to main
66
+ ok 5 - we are on the wrong branch
67
+ ok 6 - main should point to changed commit hash
68
+ 1..6
69
+ ok 11 - commit --amend changes hash on content change # time=32.592ms
70
+
71
+ # Subtest: commit --amend changes hash on message change
72
+ ok 1 - hash should have changed
73
+ ok 2 - wrong \# of commits
74
+ ok 3 - wrong \# of changes
75
+ ok 4 - HEAD is not pointing to main
76
+ ok 5 - we are on the wrong branch
77
+ ok 6 - main should point to changed commit hash
78
+ 1..6
79
+ ok 12 - commit --amend changes hash on message change # time=2.291ms
80
+
81
+ # Subtest: commit at detached HEAD does not affect main, but moves head
82
+ ok 1 - HEAD did not move to commit
83
+ ok 2 - repo is not in detached state
84
+ ok 3 - object state does not match
85
+ ok 4 - HEAD did not move to commit
86
+ ok 5 - main branch did not stay at last commit
87
+ 1..5
88
+ ok 13 - commit at detached HEAD does not affect main, but moves head # time=24.445ms
89
+
90
+ # Subtest: commit at detached HEAD saved to a branch
91
+ ok 1 - savepoint branch should point to last detached commit
92
+ 1..1
93
+ ok 14 - commit at detached HEAD saved to a branch # time=6.458ms
94
+
95
+ # Subtest: commit --amend changes hash on message change even in detached HEAD
96
+ ok 1 - hash should have changed
97
+ ok 2 - wrong \# of commits
98
+ ok 3 - wrong \# of changes
99
+ ok 4 - not in detached state
100
+ ok 5 - HEAD is not pointing to detached commit
101
+ ok 6 - main should point to changed commit hash
102
+ 1..6
103
+ ok 15 - commit --amend changes hash on message change even in detached HEAD # time=11.813ms
104
+
105
+ 1..15
@@ -0,0 +1,16 @@
1
+ TAP version 14
2
+ # Subtest: merge with no commit fails
3
+ ok 1 - expected to throw
4
+ 1..1
5
+ ok 1 - merge with no commit fails # time=22.492ms
6
+
7
+ # Subtest: merge fast-forward
8
+ ok 1 - HEAD not pointing to new_branch
9
+ ok 2 - branch did not move to new commit
10
+ ok 3 - did not fast-forward to expected commit
11
+ ok 4 - master is not at expected commit
12
+ ok 5 - fast-forward failed, superfluous commit detected
13
+ 1..5
14
+ ok 2 - merge fast-forward # time=6.371ms
15
+
16
+ 1..2
@@ -0,0 +1,63 @@
1
+ TAP version 14
2
+ # Subtest: diff is ok
3
+ ok 1 - main is pointing at wrong commit
4
+ ok 2 - invalid \# of change entries: [{"op":"add","path":"/nested/0","value":{"uuid":"054a46dd-f3dd-4f56-a7ed-1d17a38a687d","name":"new name"}},{"op":"add","path":"/nested/1","value":{"uuid":"ff2346f8-0d88-4d12-848b-1b35f63e8b38","name":"first name"}}]
5
+ 1..2
6
+ ok 1 - diff is ok # time=88.992ms
7
+
8
+ # Subtest: restore
9
+ # Subtest: history check
10
+ ok 1 - HEAD is wrong
11
+ ok 2 - main is pointing at wrong commit
12
+ ok 3 - incorrect \# of commits
13
+ ok 4 - incorrect \# of commits
14
+ ok 5 - incorrect \# of changelog entries
15
+ 1..5
16
+ ok 1 - history check # time=116.216ms
17
+
18
+ # Subtest: reconstruct with 2 commits
19
+ ok 1 - main is pointing at wrong commit
20
+ ok 2 - main is pointing at wrong commit
21
+ ok 3 - incorrect \# of commits
22
+ ok 4 - incorrect \# of commits
23
+ ok 5 - incorrect \# of changelog entries
24
+ 1..5
25
+ ok 2 - reconstruct with 2 commits # time=8.342ms
26
+
27
+ 1..2
28
+ ok 2 - restore # time=167.323ms
29
+
30
+ # Subtest: history
31
+ # Subtest: history contains HEAD ref
32
+ ok 1 - should be equal
33
+ ok 2 - should not be equal
34
+ ok 3 - should be equal
35
+ ok 4 - should be equal
36
+ 1..4
37
+ ok 1 - history contains HEAD ref # time=105.224ms
38
+
39
+ # Subtest: empty history unreachable HEAD
40
+ ok 1 - expected to throw
41
+ 1..1
42
+ ok 2 - empty history unreachable HEAD # time=2.508ms
43
+
44
+ 1..2
45
+ ok 3 - history # time=187.749ms
46
+
47
+ # Subtest: reset
48
+ # Subtest: reset hard
49
+ ok 1 - should be equal
50
+ ok 2 - wrong \# of changes in diff
51
+ ok 3 - failed to reset
52
+ 1..3
53
+ ok 1 - reset hard # time=3.467ms
54
+
55
+ 1..1
56
+ ok 4 - reset # time=73.017ms
57
+
58
+ # Subtest: restoring from history
59
+ ok 1 - restored object does not equal last version.
60
+ 1..1
61
+ ok 5 - restoring from history # time=16.296ms
62
+
63
+ 1..5
@@ -0,0 +1,19 @@
1
+ TAP version 14
2
+ # Subtest: cannot tag on an empty repo
3
+ ok 1 - expected to throw
4
+ 1..1
5
+ ok 1 - cannot tag on an empty repo # time=26.547ms
6
+
7
+ # Subtest: can create simple tag pointing to HEAD
8
+ ok 1 - should be equal
9
+ ok 2 - tag is not pointing to expected commit
10
+ ok 3 - reference was not present in history
11
+ 1..3
12
+ ok 2 - can create simple tag pointing to HEAD # time=7.579ms
13
+
14
+ # Subtest: cannot create tag with whitespace
15
+ ok 1 - expected to throw
16
+ 1..1
17
+ ok 3 - cannot create tag with whitespace # time=2.772ms
18
+
19
+ 1..3
@@ -0,0 +1,43 @@
1
+ TAP version 14
2
+ # Subtest: author <email@domain.info>
3
+ ok 1 - should be equal
4
+ ok 2 - should be equal
5
+ 1..2
6
+ ok 1 - author <email@domain.info> # time=3.979ms
7
+
8
+ # Subtest: author with space <email@domain.info>
9
+ ok 1 - should be equal
10
+ ok 2 - should be equal
11
+ 1..2
12
+ ok 2 - author with space <email@domain.info> # time=0.662ms
13
+
14
+ # Subtest: author @handle
15
+ ok 1 - should be equal
16
+ ok 2 - should be equal
17
+ 1..2
18
+ ok 3 - author @handle # time=0.455ms
19
+
20
+ # Subtest: author with space @handle
21
+ ok 1 - should be equal
22
+ ok 2 - should be equal
23
+ 1..2
24
+ ok 4 - author with space @handle # time=0.419ms
25
+
26
+ # Subtest: email@domain.info
27
+ ok 1 - should be equal
28
+ ok 2 - should be equal
29
+ 1..2
30
+ ok 5 - email@domain.info # time=0.61ms
31
+
32
+ # Subtest: @handle
33
+ ok 1 - should be equal
34
+ ok 2 - should be equal
35
+ 1..2
36
+ ok 6 - @handle # time=0.591ms
37
+
38
+ # Subtest: empty author
39
+ ok 1 - expected to throw
40
+ 1..1
41
+ ok 7 - empty author # time=2.247ms
42
+
43
+ 1..7
package/CHANGELOG.md CHANGED
@@ -1,12 +1,39 @@
1
- # v0.4.0 (Sat Feb 17 2024)
1
+ # v0.5.0 (Sat Feb 24 2024)
2
2
 
3
3
  #### 🚀 Enhancement
4
4
 
5
+ - chore: update readme [#149](https://github.com/dotindustries/ogre/pull/149) ([@nadilas](https://github.com/nadilas))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - chore: update readme ([@nadilas](https://github.com/nadilas))
10
+
11
+ #### Authors: 1
12
+
13
+ - [@nadilas](https://github.com/nadilas)
14
+
15
+ ---
16
+
17
+ # v0.4.0 (Fri Feb 23 2024)
18
+
19
+ #### 🚀 Enhancement
20
+
21
+ - feat: reset [#146](https://github.com/dotindustries/ogre/pull/146) ([@nadilas](https://github.com/nadilas))
22
+ - feat: reset ([@nadilas](https://github.com/nadilas))
5
23
  - feat: diff operation [#132](https://github.com/dotindustries/ogre/pull/132) ([@nadilas](https://github.com/nadilas))
6
24
  - feat: diff operation ([@nadilas](https://github.com/nadilas))
7
25
 
8
26
  #### 🐛 Bug Fix
9
27
 
28
+ - fix: restore from history [#148](https://github.com/dotindustries/ogre/pull/148) ([@nadilas](https://github.com/nadilas))
29
+ - test: hard reset test ([@nadilas](https://github.com/nadilas))
30
+ - test: migrate from ava to tap ([@nadilas](https://github.com/nadilas))
31
+ - fix: restore from history ([@nadilas](https://github.com/nadilas))
32
+ - test: base test [#147](https://github.com/dotindustries/ogre/pull/147) ([@nadilas](https://github.com/nadilas))
33
+ - test: base test ([@nadilas](https://github.com/nadilas))
34
+ - chore(deps-dev): bump @types/node from 17.0.38 to 17.0.45 ([@dependabot[bot]](https://github.com/dependabot[bot]))
35
+ - chore(deps-dev): bump ava from 4.3.0 to 4.3.3 ([@dependabot[bot]](https://github.com/dependabot[bot]))
36
+ - chore(deps): bump tslib from 2.3.1 to 2.6.2 ([@dependabot[bot]](https://github.com/dependabot[bot]))
10
37
  - chore: allow for cli publishing ([@nadilas](https://github.com/nadilas))
11
38
  - chore: add missing generic ([@nadilas](https://github.com/nadilas))
12
39
  - fix: array features by changing to json-patch RFC6902 [#131](https://github.com/dotindustries/ogre/pull/131) ([@nadilas](https://github.com/nadilas))
@@ -22,6 +49,12 @@
22
49
 
23
50
  #### 🔩 Dependency Updates
24
51
 
52
+ - chore(deps-dev): bump ava from 4.3.0 to 4.3.3 [#76](https://github.com/dotindustries/ogre/pull/76) ([@dependabot[bot]](https://github.com/dependabot[bot]))
53
+ - chore(deps-dev): bump @types/node from 17.0.38 to 17.0.45 [#59](https://github.com/dotindustries/ogre/pull/59) ([@dependabot[bot]](https://github.com/dependabot[bot]))
54
+ - chore(deps-dev): bump eslint from 8.10.0 to 8.56.0 [#138](https://github.com/dotindustries/ogre/pull/138) ([@dependabot[bot]](https://github.com/dependabot[bot]))
55
+ - chore(deps): bump polished from 4.1.4 to 4.3.1 [#139](https://github.com/dotindustries/ogre/pull/139) ([@dependabot[bot]](https://github.com/dependabot[bot]))
56
+ - chore(deps-dev): bump @babel/traverse from 7.17.3 to 7.23.9 [#141](https://github.com/dotindustries/ogre/pull/141) ([@dependabot[bot]](https://github.com/dependabot[bot]))
57
+ - chore(deps): bump tslib from 2.3.1 to 2.6.2 [#137](https://github.com/dotindustries/ogre/pull/137) ([@dependabot[bot]](https://github.com/dependabot[bot]))
25
58
  - chore(deps): bump next-plausible from 3.1.6 to 3.2.0 [#51](https://github.com/dotindustries/ogre/pull/51) ([@dependabot[bot]](https://github.com/dependabot[bot]))
26
59
  - chore(deps-dev): bump ava from 4.1.0 to 4.3.0 [#57](https://github.com/dotindustries/ogre/pull/57) ([@dependabot[bot]](https://github.com/dependabot[bot]))
27
60
  - chore(deps-dev): bump typescript from 4.6.2 to 4.7.4 [#54](https://github.com/dotindustries/ogre/pull/54) ([@dependabot[bot]](https://github.com/dependabot[bot]))