@ycookiey/yfuzzy 0.3.0 → 0.4.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 (53) hide show
  1. package/README.md +191 -176
  2. package/THIRD_PARTY_NOTICES.md +49 -3
  3. package/dist/entry.d.ts +10 -1
  4. package/dist/entry.d.ts.map +1 -1
  5. package/dist/entry.js +39 -1
  6. package/dist/entry.js.map +1 -1
  7. package/dist/expand.d.ts +1 -1
  8. package/dist/expand.js +3 -3
  9. package/dist/expand.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/keystroke.d.ts +5 -0
  15. package/dist/keystroke.d.ts.map +1 -0
  16. package/dist/keystroke.js +79 -0
  17. package/dist/keystroke.js.map +1 -0
  18. package/dist/lattice.d.ts +63 -0
  19. package/dist/lattice.d.ts.map +1 -0
  20. package/dist/lattice.js +277 -0
  21. package/dist/lattice.js.map +1 -0
  22. package/dist/pipeline.d.ts +2 -0
  23. package/dist/pipeline.d.ts.map +1 -1
  24. package/dist/pipeline.js +26 -2
  25. package/dist/pipeline.js.map +1 -1
  26. package/dist/query.d.ts +13 -9
  27. package/dist/query.d.ts.map +1 -1
  28. package/dist/query.js +11 -7
  29. package/dist/query.js.map +1 -1
  30. package/dist/tiers/tier1-exact.d.ts.map +1 -1
  31. package/dist/tiers/tier1-exact.js +332 -50
  32. package/dist/tiers/tier1-exact.js.map +1 -1
  33. package/dist/tiers/tier2-flexible.d.ts.map +1 -1
  34. package/dist/tiers/tier2-flexible.js +45 -1
  35. package/dist/tiers/tier2-flexible.js.map +1 -1
  36. package/dist/tiers/tier3-typo.d.ts.map +1 -1
  37. package/dist/tiers/tier3-typo.js +128 -12
  38. package/dist/tiers/tier3-typo.js.map +1 -1
  39. package/dist/tiers/tier4-structural.d.ts.map +1 -1
  40. package/dist/tiers/tier4-structural.js +2 -0
  41. package/dist/tiers/tier4-structural.js.map +1 -1
  42. package/dist/types.d.ts +7 -0
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/vendor/wanakana/romaji-to-kana.d.ts +5 -0
  45. package/dist/vendor/wanakana/romaji-to-kana.d.ts.map +1 -1
  46. package/dist/vendor/wanakana/romaji-to-kana.js +21 -0
  47. package/dist/vendor/wanakana/romaji-to-kana.js.map +1 -1
  48. package/dist/yfuzzy.min.js +2 -2
  49. package/package.json +61 -61
  50. package/dist/ablate.d.ts +0 -8
  51. package/dist/ablate.d.ts.map +0 -1
  52. package/dist/ablate.js +0 -11
  53. package/dist/ablate.js.map +0 -1
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@ycookiey/yfuzzy",
3
- "version": "0.3.0",
4
- "description": "Japanese-aware fuzzy search library",
5
- "license": "MIT",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "author": "ycookiey",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/ycookiey/yfuzzy.git"
13
- },
14
- "keywords": [
15
- "fuzzy",
16
- "fuzzy-search",
17
- "search",
18
- "japanese",
19
- "kana",
20
- "romaji",
21
- "katakana",
22
- "hiragana",
23
- "typeahead",
24
- "autocomplete"
25
- ],
26
- "type": "module",
27
- "main": "./dist/index.js",
28
- "types": "./dist/index.d.ts",
29
- "unpkg": "./dist/yfuzzy.min.js",
30
- "jsdelivr": "./dist/yfuzzy.min.js",
31
- "exports": {
32
- ".": {
33
- "types": "./dist/index.d.ts",
34
- "import": "./dist/index.js"
35
- }
36
- },
37
- "files": [
38
- "dist",
39
- "README.md",
40
- "LICENSE",
41
- "THIRD_PARTY_NOTICES.md"
42
- ],
43
- "scripts": {
44
- "build": "tsc -p tsconfig.build.json && node scripts/build-browser.mjs",
45
- "typecheck": "tsc -p tsconfig.json",
46
- "test": "vitest run",
47
- "test:watch": "vitest",
48
- "bench": "npm run build && node bench/run.js",
49
- "prepublishOnly": "npm run build"
50
- },
51
- "devDependencies": {
52
- "esbuild": "0.28.1",
53
- "fuse.js": "^7.4.2",
54
- "fuzzysort": "^3.1.0",
55
- "typescript": "^6.0.3",
56
- "vitest": "^4.1.8"
57
- },
58
- "engines": {
59
- "node": ">=18"
60
- }
61
- }
1
+ {
2
+ "name": "@ycookiey/yfuzzy",
3
+ "version": "0.4.1",
4
+ "description": "Japanese-aware fuzzy search library",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "author": "ycookiey",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/ycookiey/yfuzzy.git"
13
+ },
14
+ "keywords": [
15
+ "fuzzy",
16
+ "fuzzy-search",
17
+ "search",
18
+ "japanese",
19
+ "kana",
20
+ "romaji",
21
+ "katakana",
22
+ "hiragana",
23
+ "typeahead",
24
+ "autocomplete"
25
+ ],
26
+ "type": "module",
27
+ "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "unpkg": "./dist/yfuzzy.min.js",
30
+ "jsdelivr": "./dist/yfuzzy.min.js",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ }
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "LICENSE",
41
+ "THIRD_PARTY_NOTICES.md"
42
+ ],
43
+ "scripts": {
44
+ "build": "tsc -p tsconfig.build.json && node scripts/build-browser.mjs",
45
+ "typecheck": "tsc -p tsconfig.json",
46
+ "test": "vitest run",
47
+ "test:watch": "vitest",
48
+ "bench": "npm run build && node bench/run.js",
49
+ "prepublishOnly": "npm run build"
50
+ },
51
+ "devDependencies": {
52
+ "esbuild": "0.28.1",
53
+ "fuse.js": "^7.4.2",
54
+ "fuzzysort": "^3.1.0",
55
+ "typescript": "^6.0.3",
56
+ "vitest": "^4.1.8"
57
+ },
58
+ "engines": {
59
+ "node": ">=18"
60
+ }
61
+ }
package/dist/ablate.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export declare const OFF: {
2
- A: any;
3
- B: any;
4
- C: any;
5
- E: any;
6
- F: any;
7
- };
8
- //# sourceMappingURL=ablate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ablate.d.ts","sourceRoot":"","sources":["../src/ablate.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;CAMf,CAAC"}
package/dist/ablate.js DELETED
@@ -1,11 +0,0 @@
1
- // 一時: ablation 計測用トグル。ABLATE 環境変数(カンマ区切り)で各最適化を OFF。
2
- // 計測後に git checkout で破棄する。本番には残さない。
3
- const off = (typeof process !== 'undefined' && process.env && process.env.ABLATE ? process.env.ABLATE : '').split(',');
4
- export const OFF = {
5
- A: off.includes('A'), // 文字集合マスク前置フィルタ
6
- B: off.includes('B'), // scratch 配列再利用
7
- C: off.includes('C'), // OSA バンド窓 + 早期打ち切り
8
- E: off.includes('E'), // tier1 positions 遅延
9
- F: off.includes('F'), // tier-first 転置 + limit 打ち切り
10
- };
11
- //# sourceMappingURL=ablate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ablate.js","sourceRoot":"","sources":["../src/ablate.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,oCAAoC;AACpC,MAAM,GAAG,GAAG,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,gBAAgB;IACtC,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,gBAAgB;IACtC,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,oBAAoB;IAC1C,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,qBAAqB;IAC3C,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,6BAA6B;CACpD,CAAC"}