@yoch/frozenminisearch 1.2.3 → 1.3.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yoch/frozenminisearch",
3
- "version": "1.2.3",
4
- "description": "Read-only Node.js full-text search — compact frozen indexes and binary snapshots",
3
+ "version": "1.3.0",
4
+ "description": "Read-only full-text search — compact frozen indexes and binary snapshots (Node.js and browser)",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/es/index.js",
7
7
  "type": "module",
@@ -11,6 +11,10 @@
11
11
  "require": "./dist/cjs/index.require.cjs",
12
12
  "import": "./dist/es/index.js",
13
13
  "default": "./dist/es/index.js"
14
+ },
15
+ "./browser": {
16
+ "types": "./dist/browser/index.d.ts",
17
+ "default": "./dist/browser/index.js"
14
18
  }
15
19
  },
16
20
  "types": "./dist/es/index.d.ts",
@@ -33,7 +37,8 @@
33
37
  "index",
34
38
  "frozen",
35
39
  "binary",
36
- "node"
40
+ "node",
41
+ "browser"
37
42
  ],
38
43
  "license": "MIT",
39
44
  "engines": {
@@ -43,6 +48,7 @@
43
48
  "access": "public"
44
49
  },
45
50
  "devDependencies": {
51
+ "@rollup/plugin-node-resolve": "^16.0.3",
46
52
  "@rollup/plugin-terser": "^1.0.0",
47
53
  "@rollup/plugin-typescript": "^12.3.0",
48
54
  "@stylistic/eslint-plugin": "^5.10.0",
@@ -100,6 +106,7 @@
100
106
  },
101
107
  "scripts": {
102
108
  "test": "jest",
109
+ "test:browser": "node scripts/assert-browser-bundle.cjs && jest --testMatch='<rootDir>/dev/browser/**/*.test.js' --runInBand",
103
110
  "test-watch": "jest --watch",
104
111
  "test:fuzzysearch": "jest --testMatch='<rootDir>/dev/internal/**/*.test.(ts|js)' --testPathIgnorePatterns=/node_modules/",
105
112
  "test:benchmarks": "jest --testMatch='<rootDir>/benchmarks/**/*.test.(ts|js)' --testPathIgnorePatterns=/node_modules/",
@@ -127,6 +134,8 @@
127
134
  "benchmark:diff": "node --expose-gc benchmarks/diffBaseline.js",
128
135
  "benchmark:diff:run": "npm run build && node --expose-gc benchmarks/diffBaseline.js --run",
129
136
  "benchmark:targeted": "npm run build && node --expose-gc benchmarks/scripts/targeted-failures.mjs",
137
+ "benchmark:finalize": "npm run build && node --expose-gc benchmarks/scripts/finalize-search.mjs",
138
+ "benchmark:autosuggest": "npm run build && node --expose-gc benchmarks/scripts/autosuggest-search.mjs",
130
139
  "benchmark:targeted:compare": "node benchmarks/scripts/targeted-failures.mjs --compare",
131
140
  "benchmark:history:analyze": "node benchmarks/scripts/analyze-history.mjs",
132
141
  "benchmark:history:vs-mutable": "node benchmarks/scripts/analyze-history.mjs --vs-mutable",