path-expression-matcher 1.1.0 → 1.1.2

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 (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -109,6 +109,19 @@ console.log(matcher.toString()); // "soap:Envelope.soap:Body.ns:UserId"
109
109
  - Pattern `*::user` matches tag "user" with any namespace (wildcard namespace)
110
110
  - Namespaces are tracked separately for counter/position (e.g., `ns1::item` and `ns2::item` have independent counters)
111
111
 
112
+ ### Wildcard Differences
113
+
114
+ **Single wildcard (`*`)** - Matches exactly ONE level:
115
+ - `"*.fix1"` matches `root.fix1` (2 levels) ✅
116
+ - `"*.fix1"` does NOT match `root.another.fix1` (3 levels) ❌
117
+ - Path depth MUST equal pattern depth
118
+
119
+ **Deep wildcard (`..`)** - Matches ZERO or MORE levels:
120
+ - `"..fix1"` matches `root.fix1` ✅
121
+ - `"..fix1"` matches `root.another.fix1` ✅
122
+ - `"..fix1"` matches `a.b.c.d.fix1` ✅
123
+ - Works at any depth
124
+
112
125
  ### Combined Patterns
113
126
 
114
127
  ```javascript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path-expression-matcher",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Efficient path tracking and pattern matching for XML/JSON parsers",
5
5
  "main": "src/index.js",
6
6
  "type": "module",