Skip to content

Commit b24cb3f

Browse files
authored
Strategy changes + ephemeral nodes (#71)
3 main contributions from this PR 1. Updated our save strategy to now automatically create a checkpoint every 25 nodes (number changeable when initializing trrack) and otherwise always save patch nodes. 2. Made it possible to directly force a single node to be a checkpoint 3. Added back idea of ephemeral nodes, and made undo/redo chain skip over ephemeral nodes. More work should be done in trrack vis to account for ephemeral nodes as well.
2 parents 35dda86 + d4eeafa commit b24cb3f

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,4 @@
123123
}
124124
}
125125
}
126+

packages/core/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
"url": "https://github.com/Trrack/trrackjs.git"
99
},
1010
"dependencies": {
11+
"@reduxjs/toolkit": "^1.9.1",
12+
"@semantic-release/changelog": "^6.0.3",
1113
"fast-json-patch": "^3.1.1",
12-
"uuid": "^9.0.0",
13-
"@reduxjs/toolkit": "^1.9.1"
14+
"uuid": "^9.0.0"
1415
},
1516
"peerDependencies": {
17+
"@reduxjs/toolkit": "^1.9.1",
1618
"fast-json-patch": "^3.1.1",
17-
"uuid": "^9.0.0",
18-
"@reduxjs/toolkit": "^1.9.1"
19+
"uuid": "^9.0.0"
1920
},
2021
"exports": {
2122
".": {

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,6 +3318,16 @@
33183318
argparse "~1.0.9"
33193319
string-argv "~0.3.1"
33203320

3321+
"@semantic-release/changelog@^6.0.3":
3322+
version "6.0.3"
3323+
resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-6.0.3.tgz#6195630ecbeccad174461de727d5f975abc23eeb"
3324+
integrity sha512-dZuR5qByyfe3Y03TpmCvAxCyTnp7r5XwtHRf/8vD9EAn4ZWbavUX8adMtXYzE86EVh0gyLA7lm5yW4IV30XUag==
3325+
dependencies:
3326+
"@semantic-release/error" "^3.0.0"
3327+
aggregate-error "^3.0.0"
3328+
fs-extra "^11.0.0"
3329+
lodash "^4.17.4"
3330+
33213331
"@semantic-release/commit-analyzer@^9.0.2":
33223332
version "9.0.2"
33233333
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-9.0.2.tgz#a78e54f9834193b55f1073fa6258eecc9a545e03"

0 commit comments

Comments
 (0)