set max engine versions to discourage use when native buffer encoding available
authorJustin Wind <justin.wind+git@gmail.com>
Sun, 11 Jun 2023 18:39:26 +0000 (11:39 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Sun, 11 Jun 2023 18:39:26 +0000 (11:39 -0700)
README.md
package.json

index bcfd524dad765d3b88495aec60265945b0b12af6..c8833cbe907619c77e77566c179366290dc09065 100644 (file)
--- a/README.md
+++ b/README.md
@@ -2,8 +2,9 @@
 
 Convert between Base64 and Base64URL encodings.
 
+No longer needed as of node versions 15.7.0 and 14.18.0 due to native support for base64url encoding.
+
 ## API
 
 base64ToBase64URL(input)
 base64URLToBase64(input)
-
index a67962591be58c0fe1f2c71f01285dec79b592b3..3ac5db885613559e905eb8c6a6a88c1bc0a0e411 100644 (file)
@@ -1,7 +1,7 @@
 {
   "name": "@squeep/base64url",
   "version": "1.0.5",
-  "description": "Convert between base64 and base64url encodings.",
+  "description": "Convert between base64 and base64url encodings. (Deprecated as of nodejs 15.7.0 and 14.18.0 due to native support.)",
   "main": "index.js",
   "scripts": {
     "coverage": "nyc npm test",
@@ -23,7 +23,7 @@
     "base64"
   ],
   "engines": {
-    "node": ">=14"
+    "node": "^15 <15.7 || <14.18"
   },
   "author": "Justin Wind <jwind-npm@squeep.com>",
   "license": "ISC",