Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Merge branch 'master' into feat/harper-binary-formats
Asuka10931f8bcccdc78
diff --cc packages/harper.js/src/Linter.test.tsindex 25d85281a,f8726ef5a..6f16027c4--- a/packages/harper.js/src/Linter.test.ts+++ b/packages/harper.js/src/Linter.test.ts@@@ -193,28 -196,13 +193,29 @@@ test('Linters have the same config formconst configs = [];for (const Linter of Object.values(linters)) {- const linter = new Linter();+ const linter = new Linter({ binary });++ configs.push(await linter.getLintConfig());+ }++ for (const config of configs) {+ expect(config).toEqual(configs[0]);+ expect(config).toBeTypeOf('object');+ }+});++test('Linters have the same JSON config format', async () => {+ const configs = [];++ for (const Linter of Object.values(linters)) {+ const linter = new Linter({ binary });- configs.push(await linter.getLintConfigAsJSON());+ configs.push(await linter.getLintConfig());}for (const config of configs) {++ // The keys of stringified configs would be unstable, so we'll just check the object.expect(config).toEqual(configs[0]);- expect(config).toBeTypeOf('string');+ expect(config).toBeTypeOf('object');}});diff --cc packages/web/package.jsonindex ce44c9095,fbab4b8af..9c930bd99--- a/packages/web/package.json+++ b/packages/web/package.json@@@ -20,14 -20,14 +20,14 @@@"flowbite-svelte": "^0.44.18","postcss": "^8.4.31","svelte": "^5.15.0",- "svelte-check": "^4.1.1",+ "svelte-check": "^4.1.5","tailwindcss": "^3.3.3","tslib": "^2.4.1",+ "vite": "^6.1.0",- "typescript": "^5.7.3",+ "typescript": "^5.8.2",- "vite": "^6.0.9","vite-plugin-pwa": "^0.21.1","vite-plugin-top-level-await": "^1.5.0",- "vite-plugin-wasm": "^3.3.0"+ "vite-plugin-wasm": "^3.4.1"},"type": "module","dependencies": {diff --cc packages/yarn.lockindex 26f31e478,0a06f10fa..dc0d989c5--- a/packages/yarn.lock+++ b/packages/yarn.lock@@@ -3376,10 -3376,10 +3376,10 @@@twoslash "^0.2.12"twoslash-protocol "^0.2.12"-"@sveltepress/vite@^1.1.2":+"@sveltepress/vite@^1.1.5":- version "1.1.5"- resolved "https://registry.yarnpkg.com/@sveltepress/vite/-/vite-1.1.5.tgz#76cb81e3031feffdb9664e61c606542a1732bfee"- integrity sha512-YVZ8XG377l1MW7dIVdt0D9PUpjP1a4hQyAO6U0JwuOrlQavTFAPdpn7MfvZJV/Q9N1cEWO1S2eX2HC4G0f0nxQ==+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/@sveltepress/vite/-/vite-1.2.0.tgz#11ca954abd318651a54e6390614a686e35ec8331"+ integrity sha512-spO3/g9eii3T9DkwsAdt4aTUe9hLWeMQ8TtbuRtXfuUV8BXM9NBcefejqeyb7/7bqIsdNl6jdew2sNz72tGrdw==dependencies:"@sveltejs/vite-plugin-svelte" "^4.0.1"cross-spawn "^7.0.3"@@@ -10089,12 -10089,8 +10089,12 @@@ hard-rejection@^2.1.0resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883"integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==+"harper-wasm@link:../harper-wasm/pkg":+ version "0.0.0"+ uid ""+"harper.js@link:harper.js":-- version "0.24.0"++ version "0.25.0"has-bigints@^1.0.2:version "1.1.0"@@@ -16973,7 -16946,7 +16973,7 @@@ [email protected]resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==- typescript@^5.7.3:-typescript@^5.8.2, typescript@~5.8.2:++typescript@^5.7.2, typescript@^5.8.2, typescript@~5.8.2:version "5.8.2"resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4"integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==