harper.js 0.23.0 → 0.25.0

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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.50.1"
8
+ "packageVersion": "7.51.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harper.js",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Elijah Potter",
6
6
  "description": "The grammar checker for developers.",
@@ -24,7 +24,7 @@
24
24
  "@microsoft/api-extractor": "^7.50.1",
25
25
  "@vitest/browser": "^3.0.6",
26
26
  "playwright": "^1.49.1",
27
- "typescript": "~5.7.3",
27
+ "typescript": "~5.8.2",
28
28
  "vite": "^6.1.0",
29
29
  "vite-plugin-dts": "^4.5.0",
30
30
  "vite-plugin-virtual": "^0.3.0",
@@ -183,6 +183,13 @@ for (const [linterName, Linter] of Object.entries(linters)) {
183
183
 
184
184
  expect(lints).toHaveLength(0);
185
185
  });
186
+
187
+ test(`${linterName} allows correct capitalization of "United States"`, async () => {
188
+ const linter = new Linter();
189
+ const lints = await linter.lint('The United States is a big country.');
190
+
191
+ expect(lints).toHaveLength(0);
192
+ });
186
193
  }
187
194
 
188
195
  test('Linters have the same config format', async () => {
@@ -199,18 +206,3 @@ test('Linters have the same config format', async () => {
199
206
  expect(config).toBeTypeOf('object');
200
207
  }
201
208
  });
202
-
203
- test('Linters have the same JSON config format', async () => {
204
- const configs = [];
205
-
206
- for (const Linter of Object.values(linters)) {
207
- const linter = new Linter();
208
-
209
- configs.push(await linter.getLintConfigAsJSON());
210
- }
211
-
212
- for (const config of configs) {
213
- expect(config).toEqual(configs[0]);
214
- expect(config).toBeTypeOf('string');
215
- }
216
- });