cspell-lib 8.17.0 → 8.17.2

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.
@@ -3,6 +3,7 @@ import type { CSpellConfigFile, ICSpellConfigFile } from 'cspell-config-lib';
3
3
  import type { IConfigLoader } from './configLoader.js';
4
4
  import type { PnPSettingsOptional } from './PnPSettings.js';
5
5
  import type { CSpellSettingsI, CSpellSettingsWST } from './types.js';
6
+ export type { CSpellConfigFile, ICSpellConfigFile } from 'cspell-config-lib';
6
7
  /**
7
8
  *
8
9
  * @param searchFrom the directory / file to start searching from.
@@ -1,5 +1,6 @@
1
1
  export { __testing__, ConfigLoader, createConfigLoader, defaultFileName, loadPnP, sectionCSpell, } from './configLoader.js';
2
2
  export { defaultConfigFilenames } from './configLocations.js';
3
+ export type { CSpellConfigFile, ICSpellConfigFile } from './defaultConfigLoader.js';
3
4
  export { clearCachedSettingsFiles, getCachedFileSize, getDefaultConfigLoader, getGlobalSettings, getGlobalSettingsAsync, loadConfig, readConfigFile, readRawSettings, resolveConfigFileImports, resolveSettingsImports, searchForConfig, } from './defaultConfigLoader.js';
4
5
  export { extractImportErrors, ImportFileRefWithError } from './extractImportErrors.js';
5
6
  export { readSettings } from './readSettings.js';
@@ -1,6 +1,7 @@
1
1
  export { calcOverrideSettings } from './calcOverrideSettings.js';
2
2
  export { checkFilenameMatchesGlob } from './checkFilenameMatchesGlob.js';
3
3
  export { currentSettingsFileVersion, ENV_CSPELL_GLOB_ROOT } from './constants.js';
4
+ export type { CSpellConfigFile, ICSpellConfigFile } from './Controller/configLoader/index.js';
4
5
  export { clearCachedSettingsFiles, createConfigLoader, defaultConfigFilenames, defaultFileName, extractImportErrors, getCachedFileSize, getDefaultConfigLoader, getGlobalSettings, getGlobalSettingsAsync, loadConfig, loadPnP, readConfigFile, readRawSettings, readSettings, readSettingsFiles, resolveConfigFileImports, resolveSettingsImports, searchForConfig, sectionCSpell, } from './Controller/configLoader/index.js';
5
6
  export { ImportError } from './Controller/ImportError.js';
6
7
  export type { ConfigurationDependencies, ImportFileRefWithError } from './CSpellSettingsServer.js';
@@ -12,7 +12,8 @@ export type { CreateTextDocumentParams, TextDocument, TextDocumentLine, TextDocu
12
12
  export { createTextDocument, updateTextDocument } from './Models/TextDocument.js';
13
13
  export type { PerfTimer } from './perf/index.js';
14
14
  export { createPerfTimer } from './perf/index.js';
15
- export { calcOverrideSettings, checkFilenameMatchesGlob, type ConfigurationDependencies, createConfigLoader, currentSettingsFileVersion, defaultConfigFilenames, defaultFileName, ENV_CSPELL_GLOB_ROOT, extractDependencies, extractImportErrors, finalizeSettings, getCachedFileSize, getDefaultBundledSettingsAsync, getDefaultConfigLoader, getDefaultSettings, getGlobalSettings, getGlobalSettingsAsync, getSources, ImportError, type ImportFileRefWithError, loadConfig, loadPnP, mergeInDocSettings, mergeSettings, readConfigFile, readRawSettings, readSettings, readSettingsFiles, resolveConfigFileImports, searchForConfig, sectionCSpell, } from './Settings/index.js';
15
+ export type { ConfigurationDependencies, CSpellConfigFile, ICSpellConfigFile, ImportFileRefWithError, } from './Settings/index.js';
16
+ export { calcOverrideSettings, checkFilenameMatchesGlob, createConfigLoader, currentSettingsFileVersion, defaultConfigFilenames, defaultFileName, ENV_CSPELL_GLOB_ROOT, extractDependencies, extractImportErrors, finalizeSettings, getCachedFileSize, getDefaultBundledSettingsAsync, getDefaultConfigLoader, getDefaultSettings, getGlobalSettings, getGlobalSettingsAsync, getSources, ImportError, loadConfig, loadPnP, mergeInDocSettings, mergeSettings, readConfigFile, readRawSettings, readSettings, readSettingsFiles, resolveConfigFileImports, searchForConfig, sectionCSpell, } from './Settings/index.js';
16
17
  export { defaultFileName as defaultSettingsFilename } from './Settings/index.js';
17
18
  export * as Link from './Settings/index.link.js';
18
19
  export { combineTextAndLanguageSettings, combineTextAndLanguageSettings as constructSettingsForText, } from './Settings/TextDocumentSettings.js';
@@ -229,7 +229,7 @@ export function lineValidatorFactory(sDict, options) {
229
229
  };
230
230
  return vr;
231
231
  }
232
- if (possibleWord.text.endsWith('.')) {
232
+ if (possibleWord.text.endsWith('.') && possibleWord.text.length > 1) {
233
233
  const pw = { ...possibleWord, text: possibleWord.text.slice(0, -1) };
234
234
  if (isWordFlagged(pw)) {
235
235
  const vr = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "8.17.0",
7
+ "version": "8.17.2",
8
8
  "description": "A library of useful functions used across various cspell tools.",
9
9
  "type": "module",
10
10
  "sideEffects": false,
@@ -64,24 +64,24 @@
64
64
  },
65
65
  "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-lib#readme",
66
66
  "dependencies": {
67
- "@cspell/cspell-bundled-dicts": "8.17.0",
68
- "@cspell/cspell-pipe": "8.17.0",
69
- "@cspell/cspell-resolver": "8.17.0",
70
- "@cspell/cspell-types": "8.17.0",
71
- "@cspell/dynamic-import": "8.17.0",
72
- "@cspell/filetypes": "8.17.0",
73
- "@cspell/strong-weak-map": "8.17.0",
74
- "@cspell/url": "8.17.0",
67
+ "@cspell/cspell-bundled-dicts": "8.17.2",
68
+ "@cspell/cspell-pipe": "8.17.2",
69
+ "@cspell/cspell-resolver": "8.17.2",
70
+ "@cspell/cspell-types": "8.17.2",
71
+ "@cspell/dynamic-import": "8.17.2",
72
+ "@cspell/filetypes": "8.17.2",
73
+ "@cspell/strong-weak-map": "8.17.2",
74
+ "@cspell/url": "8.17.2",
75
75
  "clear-module": "^4.1.2",
76
76
  "comment-json": "^4.2.5",
77
- "cspell-config-lib": "8.17.0",
78
- "cspell-dictionary": "8.17.0",
79
- "cspell-glob": "8.17.0",
80
- "cspell-grammar": "8.17.0",
81
- "cspell-io": "8.17.0",
82
- "cspell-trie-lib": "8.17.0",
77
+ "cspell-config-lib": "8.17.2",
78
+ "cspell-dictionary": "8.17.2",
79
+ "cspell-glob": "8.17.2",
80
+ "cspell-grammar": "8.17.2",
81
+ "cspell-io": "8.17.2",
82
+ "cspell-trie-lib": "8.17.2",
83
83
  "env-paths": "^3.0.0",
84
- "fast-equals": "^5.0.1",
84
+ "fast-equals": "^5.2.2",
85
85
  "gensequence": "^7.0.0",
86
86
  "import-fresh": "^3.3.0",
87
87
  "resolve-from": "^5.0.0",
@@ -93,14 +93,14 @@
93
93
  "node": ">=18"
94
94
  },
95
95
  "devDependencies": {
96
- "@cspell/dict-cpp": "^6.0.2",
97
- "@cspell/dict-csharp": "^4.0.5",
98
- "@cspell/dict-css": "^4.0.16",
96
+ "@cspell/dict-cpp": "^6.0.3",
97
+ "@cspell/dict-csharp": "^4.0.6",
98
+ "@cspell/dict-css": "^4.0.17",
99
99
  "@cspell/dict-fa-ir": "^4.0.3",
100
100
  "@cspell/dict-fr-fr": "^2.2.5",
101
- "@cspell/dict-html": "^4.0.10",
101
+ "@cspell/dict-html": "^4.0.11",
102
102
  "@cspell/dict-nl-nl": "^2.3.3",
103
- "@cspell/dict-python": "^4.2.13",
103
+ "@cspell/dict-python": "^4.2.14",
104
104
  "@types/configstore": "^6.0.2",
105
105
  "configstore": "^7.0.0",
106
106
  "cspell-dict-nl-nl": "^1.1.2",
@@ -108,5 +108,5 @@
108
108
  "lorem-ipsum": "^2.0.8",
109
109
  "perf-insight": "^1.2.0"
110
110
  },
111
- "gitHead": "cac17fe7b993db5965aa441648b1c22cb5486929"
111
+ "gitHead": "160c982e8d1e3b4951acb6fc003d013f3b0597e0"
112
112
  }