@lukekaalim/act-backstage 1.2.0 → 1.2.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 (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +2 -2
  3. package/space.ts +1 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @lukekaalim/act-backstage
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0017c07: Fix packages emitting debugging console logs
8
+ - Updated dependencies [0017c07]
9
+ - @lukekaalim/act-recon@1.1.1
10
+
3
11
  ## 1.2.0
4
12
 
5
13
  ### Minor Changes
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-backstage",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "mod.ts",
5
5
  "dependencies": {
6
6
  "@lukekaalim/act": "^3.1.0",
7
- "@lukekaalim/act-recon": "^1.1.0"
7
+ "@lukekaalim/act-recon": "^1.1.1"
8
8
  }
9
9
  }
package/space.ts CHANGED
@@ -59,7 +59,7 @@ export const createSimpleRenderSpace = <T, R extends string | Symbol>(
59
59
  if (node && !ignoreFirst)
60
60
  return [node];
61
61
  const commit = tree.commits.get(id);
62
- if (!commit || commit.suspended)
62
+ if (!commit)
63
63
  return [];
64
64
  if (commit.element.type === act.primitiveNodeTypes.null)
65
65
  return [];
@@ -146,21 +146,6 @@ export const createSimpleRenderSpace = <T, R extends string | Symbol>(
146
146
  if (!node)
147
147
  continue;
148
148
  args.update(node, delta.next.element, delta.prev.element);
149
-
150
- if (delta.prev.suspended !== delta.next.suspended) {
151
- const parent = findParent(delta.ref);
152
- const parentNode = parent && parent.node;
153
- if (parentNode) {
154
- needsReorder.add(parent.id)
155
- }
156
- console.log('altering suspention type', node, parentNode, delta.next)
157
- if (!parent || parentNode) {
158
- if (!delta.next.suspended && args.link)
159
- args.link(node, parentNode);
160
- if (delta.next.suspended && args.unlink)
161
- args.unlink(node, parentNode);
162
- }
163
- }
164
149
  }
165
150
  for (const delta of deltas.created) {
166
151
  const node = nodeByCommit.get(delta.ref.id);