From 6420900c96daa38cce29cde53ede263589b848ce Mon Sep 17 00:00:00 2001 From: Eldar B Date: Sun, 19 Nov 2023 11:04:50 +0200 Subject: [PATCH 1/4] docs(readme): add supported nodejs version --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e0640..f2e959f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ [Sqids](https://sqids.org/javascript) (*pronounced "squids"*) is a small library that lets you **generate unique IDs from numbers**. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups. +Supports Node.js 18 and above + Features: - **Encode multiple numbers** - generate short IDs from one or several non-negative numbers @@ -81,4 +83,4 @@ const numbers = sqids.decode(id) // [1, 2, 3] ## 📝 License -[MIT](LICENSE) \ No newline at end of file +[MIT](LICENSE) From 2fb82017c134461d5638b37a21501645b14160bb Mon Sep 17 00:00:00 2001 From: Eldar B Date: Sun, 19 Nov 2023 20:14:50 +0200 Subject: [PATCH 2/4] build: add engines to package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 0230d70..add3a22 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,9 @@ "maintained node versions", "not dead" ], + "engines": { + "node": ">=18" + }, "devDependencies": { "@niieani/scaffold": "^1.7.8", "nodemark": "^0.3.0", From ee04890eed94b1d0e63fe6c9ba58da631ab97b0f Mon Sep 17 00:00:00 2001 From: Eldar B Date: Sun, 19 Nov 2023 20:15:50 +0200 Subject: [PATCH 3/4] style: spacing --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index add3a22..0ffe87e 100644 --- a/package.json +++ b/package.json @@ -80,8 +80,8 @@ "not dead" ], "engines": { - "node": ">=18" - }, + "node": ">=18" + }, "devDependencies": { "@niieani/scaffold": "^1.7.8", "nodemark": "^0.3.0", From b7089aeadbb45ef14713275f67287e4d5fda773a Mon Sep 17 00:00:00 2001 From: Eldar B Date: Sun, 26 Nov 2023 17:57:15 +0200 Subject: [PATCH 4/4] Remove version from README --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index f2e959f..7c7169b 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ [Sqids](https://sqids.org/javascript) (*pronounced "squids"*) is a small library that lets you **generate unique IDs from numbers**. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups. -Supports Node.js 18 and above - Features: - **Encode multiple numbers** - generate short IDs from one or several non-negative numbers