@cspell/cspell-types 10.2.0-alpha.5 → 10.2.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.
@@ -1346,6 +1346,12 @@
1346
1346
  "markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1347
1347
  "since": "9.1.0"
1348
1348
  },
1349
+ "useIntlWordSegmentation": {
1350
+ "description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
1351
+ "markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
1352
+ "since": "10.2.0",
1353
+ "type": "boolean"
1354
+ },
1349
1355
  "words": {
1350
1356
  "description": "List of words to be considered correct.",
1351
1357
  "items": {
@@ -1638,6 +1644,12 @@
1638
1644
  "markdownDescription": "Controls how unknown words are handled.\n\n- `report-all` - Report all unknown words (default behavior)\n- `report-simple` - Report unknown words that have simple spelling errors, typos, and flagged words.\n- `report-common-typos` - Report unknown words that are common typos and flagged words.\n- `report-flagged` - Report unknown words that are flagged.",
1639
1645
  "since": "9.1.0"
1640
1646
  },
1647
+ "useIntlWordSegmentation": {
1648
+ "description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
1649
+ "markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
1650
+ "since": "10.2.0",
1651
+ "type": "boolean"
1652
+ },
1641
1653
  "usePnP": {
1642
1654
  "default": false,
1643
1655
  "description": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading packages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence of a PnP file and load it.",
@@ -2383,6 +2395,12 @@
2383
2395
  "markdownDescription": "Tells the spell checker to load `.gitignore` files and skip files that match the globs in the `.gitignore` files found.",
2384
2396
  "type": "boolean"
2385
2397
  },
2398
+ "useIntlWordSegmentation": {
2399
+ "description": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc. The locale used for the segmentation is based on the {@link language } setting.",
2400
+ "markdownDescription": "Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.\nThe locale used for the segmentation is based on the {@link language } setting.",
2401
+ "since": "10.2.0",
2402
+ "type": "boolean"
2403
+ },
2386
2404
  "usePnP": {
2387
2405
  "default": false,
2388
2406
  "description": "Packages managers like Yarn 2 use a `.pnp.cjs` file to assist in loading packages stored in the repository.\n\nWhen true, the spell checker will search up the directory structure for the existence of a PnP file and load it.",
package/dist/index.d.mts CHANGED
@@ -1729,6 +1729,13 @@ interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings, Unknow
1729
1729
  * @since 9.7.0
1730
1730
  */
1731
1731
  substitutions?: Substitutions;
1732
+ /**
1733
+ * Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1734
+ * The locale used for the segmentation is based on the {@link language} setting.
1735
+ *
1736
+ * @since 10.2.0
1737
+ */
1738
+ useIntlWordSegmentation?: boolean;
1732
1739
  }
1733
1740
  interface LanguageSetting extends LanguageSettingFilterFields, BaseSetting {}
1734
1741
  interface LanguageSettingFilterFields extends LanguageSettingFilterFieldsPreferred, LanguageSettingFilterFieldsDeprecated {}
package/dist/index.d.ts CHANGED
@@ -1729,6 +1729,13 @@ interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings, Unknow
1729
1729
  * @since 9.7.0
1730
1730
  */
1731
1731
  substitutions?: Substitutions;
1732
+ /**
1733
+ * Enables enables locale-sensitive text segmentation to support languages like Japanese, Chinese, Thai, Lao, Khmer, Myanmar, etc.
1734
+ * The locale used for the segmentation is based on the {@link language} setting.
1735
+ *
1736
+ * @since 10.2.0
1737
+ */
1738
+ useIntlWordSegmentation?: boolean;
1732
1739
  }
1733
1740
  interface LanguageSetting extends LanguageSettingFilterFields, BaseSetting {}
1734
1741
  interface LanguageSettingFilterFields extends LanguageSettingFilterFieldsPreferred, LanguageSettingFilterFieldsDeprecated {}
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ const ConfigFields = {
52
52
  suggestWords: "suggestWords",
53
53
  unknownWords: "unknownWords",
54
54
  useGitignore: "useGitignore",
55
+ useIntlWordSegmentation: "useIntlWordSegmentation",
55
56
  usePnP: "usePnP",
56
57
  userWords: "userWords",
57
58
  validateDirectives: "validateDirectives",
@@ -148,6 +149,7 @@ const mergeDefinitionFunctions = {
148
149
  suggestWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
149
150
  unknownWords: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
150
151
  useGitignore: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
152
+ useIntlWordSegmentation: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
151
153
  usePnP: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
152
154
  userWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
153
155
  validateDirectives: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
@@ -159,10 +161,10 @@ function makeMergeFn(key) {
159
161
  const fn = mergeDefinitionFunctions[key];
160
162
  return (settings) => fn(key, settings);
161
163
  }
162
- const mergeIndividualSettingsFns = Object.keys(mergeDefinitionFunctions).map((k) => makeMergeFn(k));
163
164
  function mergeConfig(first, ...configs) {
164
165
  const settings = [first, ...configs].flat();
165
166
  if (settings.length === 1) return settings[0];
167
+ const mergeIndividualSettingsFns = Object.keys(mergeDefinitionFunctions).map((k) => makeMergeFn(k));
166
168
  const result = Object.assign(Object.create(null), ...settings);
167
169
  Object.assign(result, ...mergeIndividualSettingsFns.map((fn) => fn(settings)));
168
170
  return result;
package/dist/index.mjs CHANGED
@@ -51,6 +51,7 @@ const ConfigFields = {
51
51
  suggestWords: "suggestWords",
52
52
  unknownWords: "unknownWords",
53
53
  useGitignore: "useGitignore",
54
+ useIntlWordSegmentation: "useIntlWordSegmentation",
54
55
  usePnP: "usePnP",
55
56
  userWords: "userWords",
56
57
  validateDirectives: "validateDirectives",
@@ -147,6 +148,7 @@ const mergeDefinitionFunctions = {
147
148
  suggestWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
148
149
  unknownWords: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
149
150
  useGitignore: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
151
+ useIntlWordSegmentation: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
150
152
  usePnP: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
151
153
  userWords: (key, settings) => recKV(key, mArr(exKV(key, settings))),
152
154
  validateDirectives: (key, settings) => recKV(key, lastValue(exKV(key, settings))),
@@ -158,10 +160,10 @@ function makeMergeFn(key) {
158
160
  const fn = mergeDefinitionFunctions[key];
159
161
  return (settings) => fn(key, settings);
160
162
  }
161
- const mergeIndividualSettingsFns = Object.keys(mergeDefinitionFunctions).map((k) => makeMergeFn(k));
162
163
  function mergeConfig(first, ...configs) {
163
164
  const settings = [first, ...configs].flat();
164
165
  if (settings.length === 1) return settings[0];
166
+ const mergeIndividualSettingsFns = Object.keys(mergeDefinitionFunctions).map((k) => makeMergeFn(k));
165
167
  const result = Object.assign(Object.create(null), ...settings);
166
168
  Object.assign(result, ...mergeIndividualSettingsFns.map((fn) => fn(settings)));
167
169
  return result;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "10.2.0-alpha.5",
7
+ "version": "10.2.0",
8
8
  "description": "Types for cspell and cspell-lib",
9
9
  "type": "commonjs",
10
10
  "sideEffects": false,
@@ -85,5 +85,5 @@
85
85
  "node": ">=22.18.0"
86
86
  },
87
87
  "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
88
- "gitHead": "e4f1c80288d9d3857acdad42d8f6bd16663970f7"
88
+ "gitHead": "2d310afc22fa500b1be07e3c2e2d3897ec00daad"
89
89
  }