@scrabble-solver/solver 2.15.7 → 2.15.9

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 Kamil Mielnik <kamil@kamilmielnik.com>
1
+ Copyright (c) 2025 Kamil Mielnik <kamil@kamilmielnik.com>
2
2
 
3
3
  Attribution-NonCommercial-NoDerivatives 4.0 International
4
4
 
@@ -1,5 +1,7 @@
1
1
  import { Trie } from '@kamilmielnik/trie';
2
2
  import { Config, Pattern, Tile } from '@scrabble-solver/types';
3
3
  declare const fillPattern: (trie: Trie, config: Config, pattern: Pattern, tiles: Tile[]) => Pattern[];
4
- export declare const fillPatternRecursive: (results: Pattern[], trie: Trie, config: Config, pattern: Pattern, word: string, tiles: Tile[]) => void;
4
+ export declare const fillPatternRecursive: (
5
+ /** gets mutated when this function is called */
6
+ results: Pattern[], trie: Trie, config: Config, pattern: Pattern, word: string, tiles: Tile[]) => void;
5
7
  export default fillPattern;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/solver",
3
- "version": "2.15.7",
3
+ "version": "2.15.9",
4
4
  "description": "Scrabble Solver 2 - Solver",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@kamilmielnik/trie": "^4.0.0",
27
- "@scrabble-solver/types": "^2.15.7"
27
+ "@scrabble-solver/types": "^2.15.9"
28
28
  },
29
29
  "devDependencies": {
30
- "@scrabble-solver/configs": "^2.15.7",
31
- "@scrabble-solver/constants": "^2.15.7",
32
- "@scrabble-solver/dictionaries": "^2.15.7"
30
+ "@scrabble-solver/configs": "^2.15.9",
31
+ "@scrabble-solver/constants": "^2.15.9",
32
+ "@scrabble-solver/dictionaries": "^2.15.9"
33
33
  },
34
- "gitHead": "956fc26bb07f8b86f3889627f636369e460730ce"
34
+ "gitHead": "d0654f37094c58a9982d7984e3fc8722f1fa24f0"
35
35
  }
@@ -12,7 +12,6 @@ const generatePattern = <P extends Pattern>({
12
12
  board: Board;
13
13
  cells: Cell[];
14
14
  config: Config;
15
- // eslint-disable-next-line @typescript-eslint/no-shadow
16
15
  PatternModel: new (board: Board, cells: Cell[]) => P;
17
16
  }): P[] => {
18
17
  const startIndices = generateStartIndices(cells);