scrabble-solver 2.15.3 → 2.15.5

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 (106) hide show
  1. package/.nx/workspace-data/file-map.json +596 -664
  2. package/.nx/workspace-data/lockfile.hash +1 -1
  3. package/.nx/workspace-data/nx_files.nxt +0 -0
  4. package/.nx/workspace-data/parsed-lock-file.json +656 -287
  5. package/.nx/workspace-data/project-graph.json +675 -289
  6. package/README.md +2 -2
  7. package/cypress/e2e/bugs/352-dictionary-race-condition.ts +29 -0
  8. package/cypress/e2e/bugs/363-dictionary-input-unique-words.ts +41 -0
  9. package/cypress/e2e/bugs.spec.cy.ts +2 -0
  10. package/lerna.json +1 -1
  11. package/package.json +9 -9
  12. package/packages/configs/package.json +3 -3
  13. package/packages/constants/package.json +1 -1
  14. package/packages/dictionaries/package.json +4 -4
  15. package/packages/logger/package.json +1 -1
  16. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  17. package/packages/scrabble-solver/.next/build-manifest.json +20 -19
  18. package/packages/scrabble-solver/.next/cache/.rscinfo +1 -0
  19. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  20. package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +1 -1
  21. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  22. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  23. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
  24. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
  25. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  26. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  27. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  28. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  29. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
  30. package/packages/scrabble-solver/.next/diagnostics/build-diagnostics.json +6 -0
  31. package/packages/scrabble-solver/.next/diagnostics/framework.json +1 -0
  32. package/packages/scrabble-solver/.next/images-manifest.json +1 -1
  33. package/packages/scrabble-solver/.next/next-minimal-server.js.nft.json +1 -1
  34. package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
  35. package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
  36. package/packages/scrabble-solver/.next/required-server-files.json +1 -1
  37. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  38. package/packages/scrabble-solver/.next/server/chunks/331.js +4 -4
  39. package/packages/scrabble-solver/.next/server/chunks/577.js +1 -1
  40. package/packages/scrabble-solver/.next/server/chunks/67.js +1 -1
  41. package/packages/scrabble-solver/.next/server/chunks/964.js +1 -0
  42. package/packages/scrabble-solver/.next/server/functions-config-manifest.json +1 -1
  43. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  44. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  45. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  46. package/packages/scrabble-solver/.next/server/pages/_app.js +1 -1
  47. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  48. package/packages/scrabble-solver/.next/server/pages/_document.js +1 -1
  49. package/packages/scrabble-solver/.next/server/pages/_document.js.nft.json +1 -1
  50. package/packages/scrabble-solver/.next/server/pages/_error.js +1 -1
  51. package/packages/scrabble-solver/.next/server/pages/_error.js.nft.json +1 -1
  52. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +2 -2
  53. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  54. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +1 -1
  55. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  56. package/packages/scrabble-solver/.next/server/pages/api/solve.js +1 -1
  57. package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +1 -1
  58. package/packages/scrabble-solver/.next/server/pages/api/verify.js +1 -1
  59. package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +1 -1
  60. package/packages/scrabble-solver/.next/server/pages/api/visit.js +1 -1
  61. package/packages/scrabble-solver/.next/server/pages/api/visit.js.nft.json +1 -1
  62. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  63. package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
  64. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  65. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  66. package/packages/scrabble-solver/.next/static/_5S9YxXzM3OLRGGJe0qQv/_buildManifest.js +1 -0
  67. package/packages/scrabble-solver/.next/static/chunks/framework-f09231abc7b3626e.js +1 -0
  68. package/packages/scrabble-solver/.next/static/chunks/main-6e8e32bd2f4e331c.js +1 -0
  69. package/packages/scrabble-solver/.next/static/chunks/pages/404-f6889310c253b0bd.js +1 -0
  70. package/packages/scrabble-solver/.next/static/chunks/pages/_app-c960503f8645e1de.js +1 -0
  71. package/packages/scrabble-solver/.next/static/chunks/pages/_error-3e47b8dbcedf0fd0.js +1 -0
  72. package/packages/scrabble-solver/.next/static/chunks/pages/index-817f862d5980cebe.js +1 -0
  73. package/packages/scrabble-solver/.next/static/chunks/webpack-a2ab570fe85c6bb6.js +1 -0
  74. package/packages/scrabble-solver/.next/static/css/a7aa574f03b29f75.css +2 -0
  75. package/packages/scrabble-solver/.next/trace +23 -45
  76. package/packages/scrabble-solver/package.json +12 -12
  77. package/packages/scrabble-solver/public/logo.svg +1 -1
  78. package/packages/scrabble-solver/public/service-worker.js +2 -2
  79. package/packages/scrabble-solver/public/service-worker.js.map +1 -1
  80. package/packages/scrabble-solver/src/components/Board/Board.tsx +1 -0
  81. package/packages/scrabble-solver/src/components/Button/Button.module.scss +16 -1
  82. package/packages/scrabble-solver/src/components/Button/Button.tsx +3 -0
  83. package/packages/scrabble-solver/src/components/Button/Link.tsx +3 -0
  84. package/packages/scrabble-solver/src/components/PlainTiles/Tile.tsx +1 -1
  85. package/packages/scrabble-solver/src/components/Radio/Radio.module.scss +14 -20
  86. package/packages/scrabble-solver/src/components/Radio/Radio.tsx +3 -1
  87. package/packages/scrabble-solver/src/components/Results/Results.module.scss +0 -12
  88. package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.tsx +11 -3
  89. package/packages/scrabble-solver/src/state/sagas.ts +13 -3
  90. package/packages/solver/package.json +5 -5
  91. package/packages/types/package.json +2 -2
  92. package/packages/word-definitions/package.json +2 -2
  93. package/packages/word-lists/package.json +2 -2
  94. package/packages/scrabble-solver/.next/server/chunks/270.js +0 -1
  95. package/packages/scrabble-solver/.next/server/chunks/font-manifest.json +0 -1
  96. package/packages/scrabble-solver/.next/server/font-manifest.json +0 -1
  97. package/packages/scrabble-solver/.next/static/chunks/framework-a6ccb1a1ec9e2929.js +0 -1
  98. package/packages/scrabble-solver/.next/static/chunks/main-28993fe925720280.js +0 -1
  99. package/packages/scrabble-solver/.next/static/chunks/pages/404-265f7e92b4e2919b.js +0 -1
  100. package/packages/scrabble-solver/.next/static/chunks/pages/_app-894a153491b0a81b.js +0 -1
  101. package/packages/scrabble-solver/.next/static/chunks/pages/_error-640134e57f4bbbed.js +0 -1
  102. package/packages/scrabble-solver/.next/static/chunks/pages/index-2fcc3538f2186958.js +0 -1
  103. package/packages/scrabble-solver/.next/static/chunks/webpack-c4acd79e87956a0e.js +0 -1
  104. package/packages/scrabble-solver/.next/static/css/ac3349339fcf58f2.css +0 -2
  105. package/packages/scrabble-solver/.next/static/pp7rx7itNrkJG_c4Q9klh/_buildManifest.js +0 -1
  106. /package/packages/scrabble-solver/.next/static/{pp7rx7itNrkJG_c4Q9klh → _5S9YxXzM3OLRGGJe0qQv}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  </p>
11
11
 
12
12
  <p>
13
- Quickly find the top-scoring words using the given board and tiles.
13
+ Quickly find the top-scoring words using the given board and tiles
14
14
  </p>
15
15
 
16
16
  <p>
@@ -18,7 +18,7 @@
18
18
  </p>
19
19
 
20
20
  <p>
21
- <a href="#run">Run</a> it on your machine: <code>npx scrabble-solver@latest</code>
21
+ You can <a href="#run">run</a> it on your machine: <code>npx scrabble-solver@latest</code>
22
22
  </p>
23
23
 
24
24
  <p>
@@ -0,0 +1,29 @@
1
+ import { getDictionary, getDictionaryInput, unregisterServiceWorkers, visitIndex } from '../../support';
2
+
3
+ /*
4
+ * @see https://github.com/kamilmielnik/scrabble-solver/issues/352
5
+ */
6
+ describe('#352 - Race condition: dictionary result shows up after clearing the board', () => {
7
+ beforeEach(async () => {
8
+ await unregisterServiceWorkers();
9
+ });
10
+
11
+ afterEach(() => {
12
+ cy.clearLocalStorage();
13
+ });
14
+
15
+ it('Clearing the board prevents pending dictionary results from showing up', () => {
16
+ cy.intercept('GET', '/api/dictionary/en-US/123', { delay: 100 }).as('dictionary');
17
+
18
+ visitIndex();
19
+
20
+ getDictionaryInput().type('123{Enter}');
21
+ cy.findByLabelText('Clear').click();
22
+ cy.wait('@dictionary');
23
+
24
+ getDictionary()
25
+ .should('not.contain.text', 'This word is not allowed')
26
+ .and('not.contain.text', 'Unexpected end of JSON input')
27
+ .and('contain.text', 'Word definition will be shown here.');
28
+ });
29
+ });
@@ -0,0 +1,41 @@
1
+ import {
2
+ closeModal,
3
+ getDictionaryInput,
4
+ getResult,
5
+ getSettingOption,
6
+ getSettingsButton,
7
+ solve,
8
+ typeBoard,
9
+ typeRack,
10
+ unregisterServiceWorkers,
11
+ visitIndex,
12
+ } from '../../support';
13
+
14
+ /*
15
+ * @see https://github.com/kamilmielnik/scrabble-solver/issues/363
16
+ */
17
+ describe.only('#363 - Dictionary input should display unique words', () => {
18
+ beforeEach(async () => {
19
+ await unregisterServiceWorkers();
20
+ });
21
+
22
+ afterEach(() => {
23
+ cy.clearLocalStorage();
24
+ });
25
+
26
+ it('highlighting a word should cause only unique new words to be looked up in the dictionary', () => {
27
+ cy.intercept('GET', '/api/dictionary/tr-TR/*', { delay: 100 }).as('dictionary');
28
+
29
+ visitIndex();
30
+ getSettingsButton().realClick();
31
+ getSettingOption('Language', 'Türkçe').check();
32
+ closeModal();
33
+ typeBoard('ponje', 'horizontal', 3, 7);
34
+ typeRack('er');
35
+ solve();
36
+
37
+ getResult(0).realHover();
38
+
39
+ getDictionaryInput().should('have.value', 'er, je');
40
+ });
41
+ });
@@ -6,3 +6,5 @@ import './bugs/30-click-inside-radio-icon';
6
6
  import './bugs/333-disabled-radio-cursor';
7
7
  import './bugs/342-results-sorting';
8
8
  import './bugs/348-results-word-padding';
9
+ import './bugs/352-dictionary-race-condition';
10
+ import './bugs/363-dictionary-input-unique-words';
package/lerna.json CHANGED
@@ -6,5 +6,5 @@
6
6
  "access": "public"
7
7
  },
8
8
  "tagVersionPrefix": "",
9
- "version": "2.15.3"
9
+ "version": "2.15.5"
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scrabble-solver",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Super Scrabble, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.",
5
5
  "keywords": [
6
6
  "Scrabble",
@@ -93,29 +93,29 @@
93
93
  "packages/scrabble-solver"
94
94
  ],
95
95
  "dependencies": {
96
- "@scrabble-solver/scrabble-solver": "^2.15.3",
96
+ "@scrabble-solver/scrabble-solver": "^2.15.5",
97
97
  "concurrently": "^9.0.1",
98
98
  "open-cli": "^8.0.0"
99
99
  },
100
100
  "devDependencies": {
101
- "@babel/core": "^7.25.8",
101
+ "@babel/core": "^7.26.0",
102
102
  "@babel/plugin-proposal-class-properties": "^7.18.6",
103
- "@babel/preset-env": "^7.25.8",
103
+ "@babel/preset-env": "^7.26.0",
104
104
  "@testing-library/cypress": "^10.0.2",
105
- "@types/jest": "^29.5.13",
106
- "@types/node": "^22.7.7",
105
+ "@types/jest": "^29.5.14",
106
+ "@types/node": "^22.8.1",
107
107
  "@typescript-eslint/eslint-plugin": "^7.16.0",
108
108
  "@typescript-eslint/parser": "^7.16.0",
109
- "cypress": "^13.15.0",
109
+ "cypress": "^13.15.1",
110
110
  "cypress-real-events": "^1.13.0",
111
111
  "eslint": "^8.57.0",
112
112
  "eslint-config-prettier": "^9.1.0",
113
113
  "eslint-import-resolver-node": "^0.3.9",
114
114
  "eslint-plugin-cypress": "^3.4.0",
115
- "eslint-plugin-import": "^2.29.1",
115
+ "eslint-plugin-import": "^2.31.0",
116
116
  "eslint-plugin-mocha": "^10.5.0",
117
117
  "eslint-plugin-prettier": "^5.2.1",
118
- "eslint-plugin-react": "^7.35.0",
118
+ "eslint-plugin-react": "^7.37.2",
119
119
  "eslint-plugin-react-hooks": "^4.6.2",
120
120
  "jest": "29.7.0",
121
121
  "lerna": "^8.1.8",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/configs",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "Scrabble Solver 2 - Configs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "clean": "rimraf build/"
24
24
  },
25
25
  "dependencies": {
26
- "@scrabble-solver/constants": "^2.15.3",
27
- "@scrabble-solver/types": "^2.15.3"
26
+ "@scrabble-solver/constants": "^2.15.5",
27
+ "@scrabble-solver/types": "^2.15.5"
28
28
  },
29
29
  "gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
30
30
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/constants",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "Scrabble Solver 2 - Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/dictionaries",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "Scrabble Solver 2 - Dictionaries",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@kamilmielnik/trie": "^3.1.0",
33
- "@scrabble-solver/logger": "^2.15.3",
34
- "@scrabble-solver/types": "^2.15.3",
35
- "@scrabble-solver/word-lists": "^2.15.3"
33
+ "@scrabble-solver/logger": "^2.15.5",
34
+ "@scrabble-solver/types": "^2.15.5",
35
+ "@scrabble-solver/word-lists": "^2.15.5"
36
36
  },
37
37
  "gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
38
38
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/logger",
3
- "version": "2.15.3",
3
+ "version": "2.15.5",
4
4
  "description": "Scrabble Solver 2 - Logger",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1 +1 @@
1
- pp7rx7itNrkJG_c4Q9klh
1
+ _5S9YxXzM3OLRGGJe0qQv
@@ -5,36 +5,37 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/pp7rx7itNrkJG_c4Q9klh/_buildManifest.js",
9
- "static/pp7rx7itNrkJG_c4Q9klh/_ssgManifest.js"
8
+ "static/_5S9YxXzM3OLRGGJe0qQv/_buildManifest.js",
9
+ "static/_5S9YxXzM3OLRGGJe0qQv/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
+ "rootMainFilesTree": {},
12
13
  "pages": {
13
14
  "/": [
14
- "static/chunks/webpack-c4acd79e87956a0e.js",
15
- "static/chunks/framework-a6ccb1a1ec9e2929.js",
16
- "static/chunks/main-28993fe925720280.js",
15
+ "static/chunks/webpack-a2ab570fe85c6bb6.js",
16
+ "static/chunks/framework-f09231abc7b3626e.js",
17
+ "static/chunks/main-6e8e32bd2f4e331c.js",
17
18
  "static/css/6682db14f926d4c7.css",
18
- "static/chunks/pages/index-2fcc3538f2186958.js"
19
+ "static/chunks/pages/index-817f862d5980cebe.js"
19
20
  ],
20
21
  "/404": [
21
- "static/chunks/webpack-c4acd79e87956a0e.js",
22
- "static/chunks/framework-a6ccb1a1ec9e2929.js",
23
- "static/chunks/main-28993fe925720280.js",
24
- "static/chunks/pages/404-265f7e92b4e2919b.js"
22
+ "static/chunks/webpack-a2ab570fe85c6bb6.js",
23
+ "static/chunks/framework-f09231abc7b3626e.js",
24
+ "static/chunks/main-6e8e32bd2f4e331c.js",
25
+ "static/chunks/pages/404-f6889310c253b0bd.js"
25
26
  ],
26
27
  "/_app": [
27
- "static/chunks/webpack-c4acd79e87956a0e.js",
28
- "static/chunks/framework-a6ccb1a1ec9e2929.js",
29
- "static/chunks/main-28993fe925720280.js",
30
- "static/css/ac3349339fcf58f2.css",
31
- "static/chunks/pages/_app-894a153491b0a81b.js"
28
+ "static/chunks/webpack-a2ab570fe85c6bb6.js",
29
+ "static/chunks/framework-f09231abc7b3626e.js",
30
+ "static/chunks/main-6e8e32bd2f4e331c.js",
31
+ "static/css/a7aa574f03b29f75.css",
32
+ "static/chunks/pages/_app-c960503f8645e1de.js"
32
33
  ],
33
34
  "/_error": [
34
- "static/chunks/webpack-c4acd79e87956a0e.js",
35
- "static/chunks/framework-a6ccb1a1ec9e2929.js",
36
- "static/chunks/main-28993fe925720280.js",
37
- "static/chunks/pages/_error-640134e57f4bbbed.js"
35
+ "static/chunks/webpack-a2ab570fe85c6bb6.js",
36
+ "static/chunks/framework-f09231abc7b3626e.js",
37
+ "static/chunks/main-6e8e32bd2f4e331c.js",
38
+ "static/chunks/pages/_error-3e47b8dbcedf0fd0.js"
38
39
  ]
39
40
  },
40
41
  "ampFirstPages": []
@@ -0,0 +1 @@
1
+ {"encryption.key":"OXDmkTiOLn/O0FO1vA9jBu7KMHl1ktw2xON9ctbk+Hk=","encryption.expire_at":1731190116445}