@dotinc/ogre 0.1.0 → 0.1.1

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 (25) hide show
  1. package/.nyc_output/{61ba5903-4249-44c6-afe4-60e536bb69e0.json → 0c5c9631-8352-4e69-aaa3-3f4017e7258b.json} +0 -0
  2. package/.nyc_output/{77ec015f-70ab-47be-9757-17b5a39f4100.json → 38313068-6ee3-4249-9dd2-4bb60048c9d9.json} +0 -0
  3. package/.nyc_output/{34733e82-2b34-4674-aa72-94cab1c84e85.json → 3cd63fa9-a980-4574-b2e8-9221ee102838.json} +0 -0
  4. package/.nyc_output/{438de35e-20e6-470d-bfdb-d9b5fbc62f85.json → 4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19.json} +0 -0
  5. package/.nyc_output/{3fb03278-d8e2-4673-abde-3cce50eb4143.json → 55894817-f661-4178-8eb0-e3eb9bb13f95.json} +0 -0
  6. package/.nyc_output/{67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9.json → 6075a763-10ff-4db1-a86d-5d989e1a98ac.json} +0 -0
  7. package/.nyc_output/processinfo/0c5c9631-8352-4e69-aaa3-3f4017e7258b.json +1 -0
  8. package/.nyc_output/processinfo/{34733e82-2b34-4674-aa72-94cab1c84e85.json → 38313068-6ee3-4249-9dd2-4bb60048c9d9.json} +1 -1
  9. package/.nyc_output/processinfo/{77ec015f-70ab-47be-9757-17b5a39f4100.json → 3cd63fa9-a980-4574-b2e8-9221ee102838.json} +1 -1
  10. package/.nyc_output/processinfo/{438de35e-20e6-470d-bfdb-d9b5fbc62f85.json → 4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19.json} +1 -1
  11. package/.nyc_output/processinfo/{3fb03278-d8e2-4673-abde-3cce50eb4143.json → 55894817-f661-4178-8eb0-e3eb9bb13f95.json} +1 -1
  12. package/.nyc_output/processinfo/{67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9.json → 6075a763-10ff-4db1-a86d-5d989e1a98ac.json} +1 -1
  13. package/.nyc_output/processinfo/index.json +1 -1
  14. package/.turbo/turbo-build.log +2 -2
  15. package/CHANGELOG.md +13 -0
  16. package/LICENSE +21 -0
  17. package/README.md +51 -0
  18. package/coverage/lcov-report/commit.ts.html +1 -1
  19. package/coverage/lcov-report/hash.ts.html +1 -1
  20. package/coverage/lcov-report/index.html +1 -1
  21. package/coverage/lcov-report/ref.ts.html +1 -1
  22. package/coverage/lcov-report/repository.ts.html +1 -1
  23. package/coverage/lcov-report/test.utils.ts.html +1 -1
  24. package/package.json +2 -2
  25. package/.nyc_output/processinfo/61ba5903-4249-44c6-afe4-60e536bb69e0.json +0 -1
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/.bin/ava"],"execArgv":[],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028750207,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/0c5c9631-8352-4e69-aaa3-3f4017e7258b.json","externalId":"","uuid":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","files":[]}
@@ -1 +1 @@
1
- {"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027910740,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/34733e82-2b34-4674-aa72-94cab1c84e85.json","externalId":"","uuid":"34733e82-2b34-4674-aa72-94cab1c84e85","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
1
+ {"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028756710,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/38313068-6ee3-4249-9dd2-4bb60048c9d9.json","externalId":"","uuid":"38313068-6ee3-4249-9dd2-4bb60048c9d9","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
@@ -1 +1 @@
1
- {"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027916296,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/77ec015f-70ab-47be-9757-17b5a39f4100.json","externalId":"","uuid":"77ec015f-70ab-47be-9757-17b5a39f4100","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
1
+ {"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028750739,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/3cd63fa9-a980-4574-b2e8-9221ee102838.json","externalId":"","uuid":"3cd63fa9-a980-4574-b2e8-9221ee102838","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
@@ -1 +1 @@
1
- {"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027916317,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/438de35e-20e6-470d-bfdb-d9b5fbc62f85.json","externalId":"","uuid":"438de35e-20e6-470d-bfdb-d9b5fbc62f85","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
1
+ {"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028756679,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19.json","externalId":"","uuid":"4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
@@ -1 +1 @@
1
- {"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027920057,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/3fb03278-d8e2-4673-abde-3cce50eb4143.json","externalId":"","uuid":"3fb03278-d8e2-4673-abde-3cce50eb4143","files":["/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts","/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts"]}
1
+ {"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028761011,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/55894817-f661-4178-8eb0-e3eb9bb13f95.json","externalId":"","uuid":"55894817-f661-4178-8eb0-e3eb9bb13f95","files":["/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts","/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts"]}
@@ -1 +1 @@
1
- {"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027910754,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9.json","externalId":"","uuid":"67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
1
+ {"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","pid":1666,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/ava/lib/worker/base.js"],"execArgv":["--enable-source-maps"],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647028750758,"ppid":1655,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/6075a763-10ff-4db1-a86d-5d989e1a98ac.json","externalId":"","uuid":"6075a763-10ff-4db1-a86d-5d989e1a98ac","files":["/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts","/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts","/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts","/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts","/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts"]}
@@ -1 +1 @@
1
- {"processes":{"34733e82-2b34-4674-aa72-94cab1c84e85":{"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","children":[]},"3fb03278-d8e2-4673-abde-3cce50eb4143":{"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","children":[]},"438de35e-20e6-470d-bfdb-d9b5fbc62f85":{"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","children":[]},"61ba5903-4249-44c6-afe4-60e536bb69e0":{"parent":null,"children":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"]},"67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9":{"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","children":[]},"77ec015f-70ab-47be-9757-17b5a39f4100":{"parent":"61ba5903-4249-44c6-afe4-60e536bb69e0","children":[]}},"files":{"/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"],"/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"],"/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"],"/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"],"/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts":["34733e82-2b34-4674-aa72-94cab1c84e85","3fb03278-d8e2-4673-abde-3cce50eb4143","438de35e-20e6-470d-bfdb-d9b5fbc62f85","67c0b0a0-d3e0-4e7d-85e9-140cf10bf6e9","77ec015f-70ab-47be-9757-17b5a39f4100"]},"externalIds":{}}
1
+ {"processes":{"0c5c9631-8352-4e69-aaa3-3f4017e7258b":{"parent":null,"children":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"]},"38313068-6ee3-4249-9dd2-4bb60048c9d9":{"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","children":[]},"3cd63fa9-a980-4574-b2e8-9221ee102838":{"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","children":[]},"4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19":{"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","children":[]},"55894817-f661-4178-8eb0-e3eb9bb13f95":{"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","children":[]},"6075a763-10ff-4db1-a86d-5d989e1a98ac":{"parent":"0c5c9631-8352-4e69-aaa3-3f4017e7258b","children":[]}},"files":{"/home/runner/work/ogre/ogre/packages/ogre/src/test.utils.ts":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"],"/home/runner/work/ogre/ogre/packages/ogre/src/repository.ts":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"],"/home/runner/work/ogre/ogre/packages/ogre/src/commit.ts":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"],"/home/runner/work/ogre/ogre/packages/ogre/src/hash.ts":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"],"/home/runner/work/ogre/ogre/packages/ogre/src/ref.ts":["38313068-6ee3-4249-9dd2-4bb60048c9d9","3cd63fa9-a980-4574-b2e8-9221ee102838","4f1f9f6f-fede-4a1d-ac16-c0c947aa3d19","55894817-f661-4178-8eb0-e3eb9bb13f95","6075a763-10ff-4db1-a86d-5d989e1a98ac"]},"externalIds":{}}
@@ -1,5 +1,5 @@
1
- @dotinc/ogre:build: cache hit, replaying output e841ea40dbff2b04
1
+ @dotinc/ogre:build: cache hit, replaying output 966562f559f89167
2
2
  @dotinc/ogre:build:
3
- @dotinc/ogre:build: > @dotinc/ogre@0.0.0 build
3
+ @dotinc/ogre:build: > @dotinc/ogre@0.1.0 build
4
4
  @dotinc/ogre:build: > tsc -p tsconfig.build.json
5
5
  @dotinc/ogre:build:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v0.1.1 (Fri Mar 11 2022)
2
+
3
+ #### ⚠️ Pushed to `main`
4
+
5
+ - Merge remote-tracking branch 'origin/main' ([@nadilas](https://github.com/nadilas))
6
+ - doc: add LICENSE and README.md ([@nadilas](https://github.com/nadilas))
7
+
8
+ #### Authors: 1
9
+
10
+ - [@nadilas](https://github.com/nadilas)
11
+
12
+ ---
13
+
1
14
  # v0.1.0 (Fri Mar 11 2022)
2
15
 
3
16
  #### 🚀 Enhancement
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 dot Industries, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # ogre
2
+
3
+ An in-memory git-like repository for objects for when you need to
4
+ keep the history around for a bit longer.
5
+
6
+ ## Features
7
+
8
+ - Commit
9
+ - Branch
10
+ - Checkout
11
+ - Merge
12
+ - fast-forward
13
+
14
+ ## Usage
15
+
16
+ ```typescript
17
+ const repo = new Repository(new ComplexObject())
18
+
19
+ // apply changes
20
+ repo.data.name = 'my name'
21
+ repo.data.description = 'now we have a description'
22
+
23
+ // commit changes
24
+ const init = await repo.commit('initial commit', 'author <author@test.com>')
25
+ // create a branch named savepoint pointing to the last commit
26
+ repo.createBranch('savepoint')
27
+
28
+ // switch to new branch
29
+ repo.checkout('add_details', true)
30
+
31
+ // apply changes
32
+ repo.data.name = 'a fancier name'
33
+
34
+ // a) commit & merge
35
+ await repo.commit('change name', 'author <author@test.com>')
36
+ repo.checkout('main')
37
+ repo.merge('add_details')
38
+
39
+ // or b) discard change and go back
40
+ // by using the branch name
41
+ repo.checkout('main')
42
+ // by using the commit hash in a detached state
43
+ repo.checkout(init)
44
+ ```
45
+
46
+ ## TODO
47
+
48
+ - [ ] Visualization
49
+ - [ ] Merge
50
+ - [ ] recursive
51
+ - [ ] octopus
@@ -205,7 +205,7 @@ export function calculateHash(content: HashContent) {
205
205
  <div class='footer quiet pad2 space-top1 center small'>
206
206
  Code coverage generated by
207
207
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
208
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
208
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
209
209
  </div>
210
210
  <script src="prettify.js"></script>
211
211
  <script>
@@ -316,7 +316,7 @@ const hashable = (obj: object) =&gt; {
316
316
  <div class='footer quiet pad2 space-top1 center small'>
317
317
  Code coverage generated by
318
318
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
319
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
319
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
320
320
  </div>
321
321
  <script src="prettify.js"></script>
322
322
  <script>
@@ -161,7 +161,7 @@
161
161
  <div class='footer quiet pad2 space-top1 center small'>
162
162
  Code coverage generated by
163
163
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
164
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
164
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
165
165
  </div>
166
166
  <script src="prettify.js"></script>
167
167
  <script>
@@ -100,7 +100,7 @@ export function validBranch (name: string) {
100
100
  <div class='footer quiet pad2 space-top1 center small'>
101
101
  Code coverage generated by
102
102
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
103
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
103
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
104
104
  </div>
105
105
  <script src="prettify.js"></script>
106
106
  <script>
@@ -1633,7 +1633,7 @@ export const printChangeLog = <span class="fstat-no" title="function not covered
1633
1633
  <div class='footer quiet pad2 space-top1 center small'>
1634
1634
  Code coverage generated by
1635
1635
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1636
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
1636
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
1637
1637
  </div>
1638
1638
  <script src="prettify.js"></script>
1639
1639
  <script>
@@ -208,7 +208,7 @@ export function sumChanges(commits: Commit[] | undefined) {
208
208
  <div class='footer quiet pad2 space-top1 center small'>
209
209
  Code coverage generated by
210
210
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
211
- at Fri Mar 11 2022 19:45:22 GMT+0000 (Coordinated Universal Time)
211
+ at Fri Mar 11 2022 19:59:23 GMT+0000 (Coordinated Universal Time)
212
212
  </div>
213
213
  <script src="prettify.js"></script>
214
214
  <script>
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/dotindustries/ogre.git"
6
6
  },
7
- "version": "0.1.0",
7
+ "version": "0.1.1",
8
8
  "description": "Git-like repository for in-memory object versioning",
9
9
  "main": "lib/index.ts",
10
10
  "types": "lib/index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "registry": "https://registry.npmjs.org/",
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "d1ea04300335cd7618f4cf66251123f489d17b1c"
48
+ "gitHead": "f1ec72bebc8594c3ca990600170fb716f67d8005"
49
49
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1710,"argv":["/opt/hostedtoolcache/node/17.7.1/x64/bin/node","/home/runner/work/ogre/ogre/node_modules/.bin/ava"],"execArgv":[],"cwd":"/home/runner/work/ogre/ogre/packages/ogre","time":1647027910274,"ppid":1699,"coverageFilename":"/home/runner/work/ogre/ogre/packages/ogre/.nyc_output/61ba5903-4249-44c6-afe4-60e536bb69e0.json","externalId":"","uuid":"61ba5903-4249-44c6-afe4-60e536bb69e0","files":[]}