@jxsuite/search 0.5.5 → 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/README.md CHANGED
@@ -84,7 +84,7 @@ Compiled components do not go through lowering, so inside a component you use th
84
84
  }
85
85
  ```
86
86
 
87
- `searchInit(state)` returns `true` immediately, preloads (honouring `state.searchIndexUrl`), then sets `state.searchReady` and re-runs a pending `state.searchQuery`. `runSearch(state, event?)` reads the query from `event.target.value` (else `state.searchQuery`), searches within `state.searchScope` when it is a non-empty string, and publishes `state.searchResults`, `state.searchCount` and `state.searchActive`. `$src` parameters bind **by name, not position** (spec.md §5.3): a parameter literally named `state` gets reactive state, any other name gets the event.
87
+ `searchInit(state)` returns `true` immediately, preloads (honouring `state.searchIndexUrl`), then sets `state.searchReady` and re-runs a pending `state.searchQuery`. `runSearch(state, event?)` reads the query from `event.target.value` (else `state.searchQuery`), searches within `state.searchScope` when it is a non-empty string, and publishes `state.searchResults`, `state.searchCount` and `state.searchActive`. A `$src` export is called as its call site calls it: an event binding passes `(state, event)` (spec.md §5.3).
88
88
 
89
89
  ## Surprises
90
90
 
@@ -31,6 +31,8 @@ var SCHEMA_KEYWORDS = new Set([
31
31
  "$comment"
32
32
  ]);
33
33
  var masked = new Map;
34
+ var scanned = new Map;
35
+ var BEFORE_OPERAND = new Set("(,=:[!&|?{;+-*%<>~^");
34
36
  function isPlainTagName(tagName) {
35
37
  return typeof tagName === "string";
36
38
  }
@@ -31,6 +31,8 @@ var SCHEMA_KEYWORDS = new Set([
31
31
  "$comment"
32
32
  ]);
33
33
  var masked = new Map;
34
+ var scanned = new Map;
35
+ var BEFORE_OPERAND = new Set("(,=:[!&|?{;+-*%<>~^");
34
36
  function isPlainTagName(tagName) {
35
37
  return typeof tagName === "string";
36
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/search",
3
- "version": "0.5.5",
3
+ "version": "0.6.1",
4
4
  "description": "Static site search for Jx: build-time index emission from content collections and a headless MiniSearch browser client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "upgrade": "bun update --latest && bun install"
37
37
  },
38
38
  "dependencies": {
39
- "@jxsuite/schema": "^5.5.0",
39
+ "@jxsuite/schema": "^6.0.0",
40
40
  "minisearch": "^7.2.0"
41
41
  },
42
42
  "devDependencies": {