From aabc86b8812e4e4352b0b610db7f75938ce66299 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Sun, 11 Jun 2023 11:39:26 -0700 Subject: [PATCH] set max engine versions to discourage use when native buffer encoding available --- README.md | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bcfd524..c8833cb 100644 --- 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) - diff --git a/package.json b/package.json index a679625..3ac5db8 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "ISC", -- 2.45.2