scrabble-solver 2.15.3 → 2.15.4

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 (98) hide show
  1. package/.nx/workspace-data/file-map.json +1258 -1326
  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 +609 -250
  5. package/.nx/workspace-data/project-graph.json +626 -250
  6. package/README.md +2 -2
  7. package/cypress/e2e/bugs/352-dictionary-race-condition.ts +29 -0
  8. package/cypress/e2e/bugs.spec.cy.ts +1 -0
  9. package/lerna.json +1 -1
  10. package/package.json +8 -8
  11. package/packages/configs/package.json +3 -3
  12. package/packages/constants/package.json +1 -1
  13. package/packages/dictionaries/package.json +4 -4
  14. package/packages/logger/package.json +1 -1
  15. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  16. package/packages/scrabble-solver/.next/build-manifest.json +20 -19
  17. package/packages/scrabble-solver/.next/cache/.rscinfo +1 -0
  18. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  19. package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +1 -1
  20. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  21. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  22. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
  23. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
  24. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  25. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  26. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  27. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  28. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
  29. package/packages/scrabble-solver/.next/diagnostics/build-diagnostics.json +6 -0
  30. package/packages/scrabble-solver/.next/diagnostics/framework.json +1 -0
  31. package/packages/scrabble-solver/.next/images-manifest.json +1 -1
  32. package/packages/scrabble-solver/.next/next-minimal-server.js.nft.json +1 -1
  33. package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
  34. package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
  35. package/packages/scrabble-solver/.next/required-server-files.json +1 -1
  36. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  37. package/packages/scrabble-solver/.next/server/chunks/331.js +4 -4
  38. package/packages/scrabble-solver/.next/server/chunks/577.js +1 -1
  39. package/packages/scrabble-solver/.next/server/chunks/67.js +1 -1
  40. package/packages/scrabble-solver/.next/server/chunks/964.js +1 -0
  41. package/packages/scrabble-solver/.next/server/functions-config-manifest.json +1 -1
  42. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  43. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  44. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  45. package/packages/scrabble-solver/.next/server/pages/_app.js +1 -1
  46. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  47. package/packages/scrabble-solver/.next/server/pages/_document.js +1 -1
  48. package/packages/scrabble-solver/.next/server/pages/_document.js.nft.json +1 -1
  49. package/packages/scrabble-solver/.next/server/pages/_error.js +1 -1
  50. package/packages/scrabble-solver/.next/server/pages/_error.js.nft.json +1 -1
  51. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +2 -2
  52. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  53. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +1 -1
  54. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  55. package/packages/scrabble-solver/.next/server/pages/api/solve.js +1 -1
  56. package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +1 -1
  57. package/packages/scrabble-solver/.next/server/pages/api/verify.js +1 -1
  58. package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +1 -1
  59. package/packages/scrabble-solver/.next/server/pages/api/visit.js +1 -1
  60. package/packages/scrabble-solver/.next/server/pages/api/visit.js.nft.json +1 -1
  61. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  62. package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
  63. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  64. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  65. package/packages/scrabble-solver/.next/server/pages-manifest.json +1 -1
  66. package/packages/scrabble-solver/.next/static/chunks/framework-f09231abc7b3626e.js +1 -0
  67. package/packages/scrabble-solver/.next/static/chunks/main-6e8e32bd2f4e331c.js +1 -0
  68. package/packages/scrabble-solver/.next/static/chunks/pages/404-f6889310c253b0bd.js +1 -0
  69. package/packages/scrabble-solver/.next/static/chunks/pages/_app-fb5bb6aa71eaaa4e.js +1 -0
  70. package/packages/scrabble-solver/.next/static/chunks/pages/_error-3e47b8dbcedf0fd0.js +1 -0
  71. package/packages/scrabble-solver/.next/static/chunks/pages/index-6ef7d0f12c9321e2.js +1 -0
  72. package/packages/scrabble-solver/.next/static/chunks/webpack-a2ab570fe85c6bb6.js +1 -0
  73. package/packages/scrabble-solver/.next/static/css/{ac3349339fcf58f2.css → 35b36298aba4ccad.css} +1 -1
  74. package/packages/scrabble-solver/.next/static/ySzTsF3RIcISdWO2C2H3Z/_buildManifest.js +1 -0
  75. package/packages/scrabble-solver/.next/trace +23 -45
  76. package/packages/scrabble-solver/package.json +11 -11
  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/PlainTiles/Tile.tsx +1 -1
  81. package/packages/scrabble-solver/src/components/Results/Results.module.scss +0 -12
  82. package/packages/scrabble-solver/src/state/sagas.ts +10 -2
  83. package/packages/solver/package.json +5 -5
  84. package/packages/types/package.json +2 -2
  85. package/packages/word-definitions/package.json +2 -2
  86. package/packages/word-lists/package.json +2 -2
  87. package/packages/scrabble-solver/.next/server/chunks/270.js +0 -1
  88. package/packages/scrabble-solver/.next/server/chunks/font-manifest.json +0 -1
  89. package/packages/scrabble-solver/.next/server/font-manifest.json +0 -1
  90. package/packages/scrabble-solver/.next/static/chunks/framework-a6ccb1a1ec9e2929.js +0 -1
  91. package/packages/scrabble-solver/.next/static/chunks/main-28993fe925720280.js +0 -1
  92. package/packages/scrabble-solver/.next/static/chunks/pages/404-265f7e92b4e2919b.js +0 -1
  93. package/packages/scrabble-solver/.next/static/chunks/pages/_app-894a153491b0a81b.js +0 -1
  94. package/packages/scrabble-solver/.next/static/chunks/pages/_error-640134e57f4bbbed.js +0 -1
  95. package/packages/scrabble-solver/.next/static/chunks/pages/index-2fcc3538f2186958.js +0 -1
  96. package/packages/scrabble-solver/.next/static/chunks/webpack-c4acd79e87956a0e.js +0 -1
  97. package/packages/scrabble-solver/.next/static/pp7rx7itNrkJG_c4Q9klh/_buildManifest.js +0 -1
  98. /package/packages/scrabble-solver/.next/static/{pp7rx7itNrkJG_c4Q9klh → ySzTsF3RIcISdWO2C2H3Z}/_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
+ });
@@ -6,3 +6,4 @@ 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';
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.4"
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.4",
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,17 +93,17 @@
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.4",
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.25.9",
102
102
  "@babel/plugin-proposal-class-properties": "^7.18.6",
103
- "@babel/preset-env": "^7.25.8",
103
+ "@babel/preset-env": "^7.25.9",
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.7.9",
107
107
  "@typescript-eslint/eslint-plugin": "^7.16.0",
108
108
  "@typescript-eslint/parser": "^7.16.0",
109
109
  "cypress": "^13.15.0",
@@ -112,10 +112,10 @@
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.4",
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.4",
27
+ "@scrabble-solver/types": "^2.15.4"
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.4",
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.4",
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.4",
34
+ "@scrabble-solver/types": "^2.15.4",
35
+ "@scrabble-solver/word-lists": "^2.15.4"
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.4",
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
+ ySzTsF3RIcISdWO2C2H3Z
@@ -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/ySzTsF3RIcISdWO2C2H3Z/_buildManifest.js",
9
+ "static/ySzTsF3RIcISdWO2C2H3Z/_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-6ef7d0f12c9321e2.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/35b36298aba4ccad.css",
32
+ "static/chunks/pages/_app-fb5bb6aa71eaaa4e.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":"YF+OYAt+h0QkUaGg8V2WVm90ildg/qcwCeffYDQ7rWc=","encryption.expire_at":1730927204008}