From e072f4db53f3e8cdabc863425380d6ab6615cdb1 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 25 Jun 2026 12:12:52 +0300 Subject: [PATCH 1/2] add npm test to prepublishOnly hook --- LICENSE | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 9be4a96..55d82ae 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ ISC License -Copyright (c) 2016 Mapbox +Copyright (c) 2026 Mapbox Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice diff --git a/package.json b/package.json index 333cd35..826c618 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ }, "scripts": { "pretest": "eslint *.js test/*.js", - "test": "node test/test.js" + "test": "node test/test.js", + "prepublishOnly": "npm test" }, "files": [ "include", @@ -29,6 +30,6 @@ "type": "git", "url": "https://github.com/mapbox/polylabel.git" }, - "author": "Vladimir Agafonkin", + "author": "Volodymyr Agafonkin", "license": "ISC" } From 1d9039fc0131c985b08c12ccd9e5bb20e6aaa200 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 25 Jun 2026 12:13:41 +0300 Subject: [PATCH 2/2] 2.1.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c96de1..57ed480 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "polylabel", - "version": "2.0.1", + "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "polylabel", - "version": "2.0.1", + "version": "2.1.0", "license": "ISC", "dependencies": { "tinyqueue": "^3.0.0" diff --git a/package.json b/package.json index 826c618..36f4bd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polylabel", - "version": "2.0.1", + "version": "2.1.0", "description": "A JS library for finding optimal label position inside a polygon", "keywords": [ "polygon",