From be71e7c0f400bcd2ad89623fd82737f67ebeeb40 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Wed, 8 Jul 2026 23:18:18 -0400 Subject: [PATCH 1/3] chore: organize package.json --- package.json | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 2e9fa6f..579268c 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,24 @@ { "name": "@gh-top-languages/lib", - "description": "Library for github-top-languages — chart generation, SVG output, and parameter parsing", - "author": "Mason L'Etoile", "version": "1.1.2", + "description": "Library for github-top-languages — chart generation, SVG output, and parameter parsing", + "keywords": [ + "svg", + "charts", + "github-profile", + "github-top-languages" + ], + "homepage": "https://github.com/gh-top-languages/lib#readme", + "bugs": { + "url": "https://github.com/gh-top-languages/lib/issues" + }, "license": "MIT", + "author": "Mason L'Etoile", "repository": { "type": "git", "url": "git+https://github.com/gh-top-languages/lib.git" }, - "homepage": "https://github.com/gh-top-languages/lib#readme", - "bugs": { - "url": "https://github.com/gh-top-languages/lib/issues" - }, - "keywords": ["svg", "charts", "github-profile", "github-top-languages"], "type": "module", - "scripts": { - "test": "vitest", - "test:coverage": "vitest --coverage", - "typecheck": "tsc --noEmit -p tsconfig.test.json", - "build": "tsc -p tsconfig.build.json", - "prepare": "tsc -p tsconfig.build.json" - }, - "devDependencies": { - "typescript": "~6.0.2", - "vitest": "^4.0.17", - "@vitest/coverage-v8": "^4.0.17" - }, - "files": ["dist", "src"], "exports": { "./charts/types.js": { "types": "./dist/charts/types.d.ts", "import": "./dist/charts/types.js" }, "./charts/geometry.js": { "types": "./dist/charts/geometry.d.ts", "import": "./dist/charts/geometry.js" }, @@ -42,5 +34,21 @@ "./constants/styles.js": { "types": "./dist/constants/styles.d.ts", "import": "./dist/constants/styles.js" }, "./constants/themes.js": { "types": "./dist/constants/themes.d.ts", "import": "./dist/constants/themes.js" }, "./constants/types.js": { "types": "./dist/constants/types.d.ts", "import": "./dist/constants/types.js" } + }, + "files": [ + "dist", + "src" + ], + "scripts": { + "test": "vitest", + "test:coverage": "vitest --coverage", + "typecheck": "tsc --noEmit -p tsconfig.test.json", + "build": "tsc -p tsconfig.build.json", + "prepare": "tsc -p tsconfig.build.json" + }, + "devDependencies": { + "typescript": "~6.0.2", + "vitest": "^4.0.17", + "@vitest/coverage-v8": "^4.0.17" } } From cc4b6505e1f7776b318bd1e6a6891a0d041cb9e8 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Wed, 8 Jul 2026 23:21:10 -0400 Subject: [PATCH 2/3] chore: set minimum Node version to 22 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 579268c..30e7906 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "url": "git+https://github.com/gh-top-languages/lib.git" }, "type": "module", + "engines": { "node": ">=22" }, "exports": { "./charts/types.js": { "types": "./dist/charts/types.d.ts", "import": "./dist/charts/types.js" }, "./charts/geometry.js": { "types": "./dist/charts/geometry.d.ts", "import": "./dist/charts/geometry.js" }, From 3d94bf8947ef1590711a5246dd36ad63db83b3c8 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Wed, 8 Jul 2026 23:21:27 -0400 Subject: [PATCH 3/3] docs: bump Node version to 22 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77b65fe..89948f3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Core library for gh-top-languages — chart generation, SVG output, and paramete [![CI](https://github.com/gh-top-languages/lib/actions/workflows/ci.yml/badge.svg)](https://github.com/gh-top-languages/lib/actions/workflows/ci.yml) [![Library Version](https://img.shields.io/npm/v/@gh-top-languages/lib)](https://www.npmjs.com/package/@gh-top-languages/lib) -![Node](https://img.shields.io/badge/Node.js-20+-green) +![Node](https://img.shields.io/badge/Node.js-22+-green) [![License: MIT](https://img.shields.io/badge/License-MIT-green)](./LICENSE) ## Modules @@ -50,7 +50,7 @@ When the supplied languages sum to less than 100%, `gap_type` controls what fill ## Installation ### Prerequisites -- Node.js 20+ +- Node.js 22+ ### Install Library ```bash