[Pkg-javascript-devel] Bug#1005335: eslint: Please update to node-regenerate-unicode-properties 10

Yadd yadd at debian.org
Fri Feb 11 13:30:44 GMT 2022


Package: eslint
Version: 6.4.0~dfsg+~6.1.9-2
Severity: wishlist
Tags: patch

Hi,

node-regenerate-unicode-properties API changed. Here is a patch to use
version 10 (pushed to experimental)

Cheers,
Yadd
-------------- next part --------------
diff --git a/debian/control b/debian/control
index 138fd942..ae22a9a6 100644
--- a/debian/control
+++ b/debian/control
@@ -53,7 +53,7 @@ Build-Depends:
  node-progress <!nocheck>,
  node-proxyquire <!nocheck>,
  node-recast <!nocheck>,
- node-regenerate-unicode-properties <!nocheck> <!nodoc>,
+ node-regenerate-unicode-properties (>= 10) <!nocheck> <!nodoc>,
  node-regexpp <!nocheck> <!nodoc>,
  node-semver <!nocheck>,
  node-shelljs <!nocheck>,
@@ -99,7 +99,7 @@ Depends:
  node-mkdirp,
  node-optionator,
  node-progress,
- node-regenerate-unicode-properties,
+ node-regenerate-unicode-properties (>= 10),
  node-regexpp,
  node-semver,
  node-strip-json-comments,
diff --git a/debian/patches/1001_use_regenerate-unicode-properties.patch b/debian/patches/1001_use_regenerate-unicode-properties.patch
index 5fa41188..717046e2 100644
--- a/debian/patches/1001_use_regenerate-unicode-properties.patch
+++ b/debian/patches/1001_use_regenerate-unicode-properties.patch
@@ -11,9 +11,9 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  //------------------------------------------------------------------------------
  
 -const LETTER_PATTERN = require("./utils/patterns/letters");
-+const letters = require("regenerate-unicode-properties/General_Category/Letter.js"),
-+    lettersUppercase = require("regenerate-unicode-properties/General_Category/Uppercase_Letter.js"),
-+    lettersLowercase = require("regenerate-unicode-properties/General_Category/Lowercase_Letter.js");
++const letters = require("regenerate-unicode-properties/General_Category/Letter.js").characters,
++    lettersUppercase = require("regenerate-unicode-properties/General_Category/Uppercase_Letter.js").characters,
++    lettersLowercase = require("regenerate-unicode-properties/General_Category/Lowercase_Letter.js").characters;
  const astUtils = require("./utils/ast-utils");
  
  //------------------------------------------------------------------------------
@@ -54,7 +54,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
      "natural-compare": "^1.4.0",
      "optionator": "^0.8.2",
      "progress": "^2.0.0",
-+    "regenerate-unicode-properties": "^1.0.0",
++    "regenerate-unicode-properties": "^10.0.0",
      "regexpp": "^2.0.1",
      "semver": "^6.1.2",
      "strip-ansi": "^5.2.0",


More information about the Pkg-javascript-devel mailing list