eslint-plugin-markdown-preferences 0.34.0 → 0.34.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.
package/lib/index.d.ts CHANGED
@@ -545,7 +545,7 @@ declare namespace meta_d_exports {
545
545
  export { name, version };
546
546
  }
547
547
  declare const name: "eslint-plugin-markdown-preferences";
548
- declare const version: "0.34.0";
548
+ declare const version: "0.34.2";
549
549
  //#endregion
550
550
  //#region src/language/ast-types.d.ts
551
551
  type Node = mdast.Node;
package/lib/index.js CHANGED
@@ -408,7 +408,6 @@ let segmenter;
408
408
  */
409
409
  function getTextWidth(text, start = 0, end = text.length) {
410
410
  if (!text.includes(" ")) return stringWidth(text.slice(start, end));
411
- if (!segmenter) segmenter = new Intl.Segmenter("en");
412
411
  const prefixWidth = getTextWidthBySegment(text.slice(0, start), 0);
413
412
  return getTextWidthBySegment(text.slice(start, end), prefixWidth);
414
413
  }
@@ -11991,7 +11990,7 @@ var meta_exports = /* @__PURE__ */ __export({
11991
11990
  version: () => version
11992
11991
  });
11993
11992
  const name = "eslint-plugin-markdown-preferences";
11994
- const version = "0.34.0";
11993
+ const version = "0.34.2";
11995
11994
 
11996
11995
  //#endregion
11997
11996
  //#region src/language/extensions/micromark-custom-container.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-markdown-preferences",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "ESLint plugin that enforces our markdown preferences",
5
5
  "type": "module",
6
6
  "exports": {