hyper-undo 0.6.0 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # hyper-undo changelog
2
2
 
3
+ ## [0.6.1] - 2026-09-30
4
+
5
+ ### Changed
6
+ - The packed contract now loads hyper-undo
7
+ - The packed contract is excluded from the published npm package
8
+
9
+ ### Fixed
10
+ - A descendant's own region marker is now checked on the element itself (content-dom.js synced from ClayJS)
11
+
12
+
13
+
3
14
  ## [0.6.0] - 2026-09-11
4
15
 
5
16
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyper-undo",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "DOM-state undo/redo via MutationObserver inverse-op replay. Standalone or paired with hyperclayjs.",
5
5
  "keywords": [
6
6
  "undo",
@@ -29,8 +29,10 @@ function matchesWithin(node, selector, boundary, inherit) {
29
29
 
30
30
  function importTree(source, targetDocument, capability, capabilityMatch, exclude, boundary, inherit, maps) {
31
31
  if (source.nodeType === 1 && (
32
- (inherit ? hasCapability(source, capability) : matchesWithin(source, capabilityMatch, boundary, false)) ||
33
- (exclude && matchesWithin(source, exclude, boundary, inherit))
32
+ (inherit
33
+ ? hasCapability(source, capability)
34
+ : matchesWithin(source, capabilityMatch, boundary, false)) ||
35
+ (exclude && (inherit && source !== boundary ? source.matches(exclude) : matchesWithin(source, exclude, boundary, inherit)))
34
36
  )) return null
35
37
  const copy = targetDocument.importNode(source, false)
36
38
  maps.cloneToLive.set(copy, source)