From 915125f135a592c2aea444a741e974928672c114 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Sat, 1 Jun 2019 12:11:22 +0000 Subject: [PATCH 01/65] chore(package): update ava to version 2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ae5ed99..e024280 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test" ], "devDependencies": { - "ava": "^1.0.1", + "ava": "^2.0.0", "nyc": "^14.0.0", "xo": "^0.24.0" } From 9e1767370ab47363adcf0854e08285adcf957bd9 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2019 04:22:23 +0000 Subject: [PATCH 02/65] chore(package): update xo to version 0.25.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e024280..07d6bda 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^2.0.0", "nyc": "^14.0.0", - "xo": "^0.24.0" + "xo": "^0.25.0" } } From 26f8410a6f90f233f6c954e46560a5b411d1a8a3 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2019 01:07:09 +0000 Subject: [PATCH 03/65] chore(package): update nyc to version 15.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 07d6bda..dc404d0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ ], "devDependencies": { "ava": "^2.0.0", - "nyc": "^14.0.0", + "nyc": "^15.0.0", "xo": "^0.25.0" } } From 97666070fdec866d0f6d2cc7336f2960d2c8bd1d Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2020 15:20:39 +0000 Subject: [PATCH 04/65] chore(package): update ava to version 3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dc404d0..97e627a 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test" ], "devDependencies": { - "ava": "^2.0.0", + "ava": "^3.0.0", "nyc": "^15.0.0", "xo": "^0.25.0" } From 338afb006ccf1445824aa5218389daa95aa321e6 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2020 23:50:45 +0000 Subject: [PATCH 05/65] chore(package): update xo to version 0.26.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 97e627a..7fc401f 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^3.0.0", "nyc": "^15.0.0", - "xo": "^0.25.0" + "xo": "^0.26.0" } } From bcbde3dd166dd0750ea77701d2381160b87bcaf0 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 13 Feb 2020 09:59:14 +0530 Subject: [PATCH 06/65] Create .mergify.yml [skip ci] --- .mergify.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..f2a253f --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,8 @@ +pull_request_rules: + - name: automatic merge for Greenkeeper pull requests + conditions: + - author=greenkeeper[bot] + - status-success=greenkeeper/verify + actions: + merge: + method: merge From d69ac7a52dade22546c624cddda09851bf35fcb8 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2020 19:34:03 +0000 Subject: [PATCH 07/65] chore(package): update xo to version 0.27.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7fc401f..d07b477 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^3.0.0", "nyc": "^15.0.0", - "xo": "^0.26.0" + "xo": "^0.27.0" } } From 8389d9439d110e99bd777053822c0c24b1e9442c Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2020 11:13:26 +0000 Subject: [PATCH 08/65] chore(package): update xo to version 0.28.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d07b477..406be9e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^3.0.0", "nyc": "^15.0.0", - "xo": "^0.27.0" + "xo": "^0.28.0" } } From 3bc8c414643a2162b89a2ebb743823b6afa89e33 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2020 21:12:36 +0000 Subject: [PATCH 09/65] chore(package): update xo to version 0.29.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 406be9e..924332e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^3.0.0", "nyc": "^15.0.0", - "xo": "^0.28.0" + "xo": "^0.29.0" } } From 4e7551a1646a6fa5053eef9fe8a43c9d3dbdfdad Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2020 16:11:41 +0000 Subject: [PATCH 10/65] chore(package): update xo to version 0.30.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 924332e..39e542e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "ava": "^3.0.0", "nyc": "^15.0.0", - "xo": "^0.29.0" + "xo": "^0.30.0" } } From 46ac74fec1b60e7e7d2612f170facb4f459a2570 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Thu, 7 May 2020 11:22:43 +0000 Subject: [PATCH 11/65] chore(readme): remove Greenkeeper badge --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1e1a580..7200aa5 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.org/palashmon/clone-array-objects.svg?branch=master)](https://travis-ci.org/palashmon/clone-array-objects) [![npm](https://img.shields.io/npm/v/clone-array-objects.svg)](https://www.npmjs.org/package/clone-array-objects) [![codecov](https://codecov.io/gh/palashmon/clone-array-objects/branch/master/graph/badge.svg)](https://codecov.io/gh/palashmon/clone-array-objects) -[![Gzip Size](https://img.badgesize.io/https://unpkg.com/clone-array-objects?compression=gzip)](https://bundlephobia.com/result?p=clone-array-objects) [![Greenkeeper badge](https://badges.greenkeeper.io/palashmon/clone-array-objects.svg)](https://greenkeeper.io/) +[![Gzip Size](https://img.badgesize.io/https://unpkg.com/clone-array-objects?compression=gzip)](https://bundlephobia.com/result?p=clone-array-objects) Tiny module to clone an array of objects From 0e164c0d27e1fc2c95d121b5aac7a1905c0db119 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 7 May 2020 17:35:28 +0530 Subject: [PATCH 12/65] Update .travis.yml --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index afc313a..0e7b403 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: node_js node_js: - - '10' - - '8' + - node notifications: email: false before_install: From bab73ce264c4de4df9b5efa19a6ad0b3f970f8a1 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 7 May 2020 17:59:07 +0530 Subject: [PATCH 13/65] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0e7b403..2f689b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - node + - '8' notifications: email: false before_install: From 1cbde251090127012729eae11de5ad59f36fc781 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Mon, 24 Apr 2023 17:00:58 +0530 Subject: [PATCH 14/65] chore: add ci pipeline configuration --- .github/dependabot.yml | 11 ++++++++ .github/workflows/main.yaml | 22 +++++++++++++++ index.js | 21 ++++++++++----- package.json | 13 ++++----- test.js | 54 +++++++++++++++++++++++++------------ 5 files changed, 92 insertions(+), 29 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/main.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e8c2dfc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "npm" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..74f94b7 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,22 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 18 + - 16 + - 14 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/index.js b/index.js index cbf90dd..c6664e4 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,15 @@ -module.exports = (arrayInput = []) => { - if (!Array.isArray(arrayInput)) { - throw new TypeError(`Expected an array, got ${typeof arrayInput}`); - } - return arrayInput.map(obj => ({...obj})); -}; +function cloneArrayObjects(arrayInput = []) { + if (!Array.isArray(arrayInput)) { + throw new TypeError(`Expected an array, got ${typeof arrayInput}`); + } + + return arrayInput.map((object) => { + if (typeof object !== "object" || object === null) { + throw new TypeError(`Expected an object, got ${typeof object}`); + } + + return { ...object }; + }); +} + +export default cloneArrayObjects; diff --git a/package.json b/package.json index 39e542e..29f1038 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clone-array-objects", - "version": "1.0.0", + "version": "1.0.2", "description": "Clone an array of objects", "license": "MIT", "repository": "https://github.com/palashmon/clone-array-objects", @@ -10,7 +10,7 @@ "url": "https://github.com/palashmon" }, "engines": { - "node": ">=8" + "node": ">=14" }, "scripts": { "test": "xo && ava", @@ -30,8 +30,9 @@ "test" ], "devDependencies": { - "ava": "^3.0.0", + "ava": "^5.1.0", "nyc": "^15.0.0", - "xo": "^0.30.0" - } -} + "xo": "^0.54.0" + }, + "type": "module" +} \ No newline at end of file diff --git a/test.js b/test.js index 59711ae..7d62404 100644 --- a/test.js +++ b/test.js @@ -1,24 +1,44 @@ import test from 'ava'; -import cloneArrayObjects from '.'; +import cloneArrayObjects from './index.js'; -test('Return typeerror when arrayInput is not an array.', t => { - const err = t.throws(() => { - cloneArrayObjects(23); - }, TypeError); - t.is(err.message, 'Expected an array, got number'); +test('should return a new array with cloned objects', t => { + const input = [ + {name: 'John', age: 30}, + {name: 'Jane', age: 25}, + ]; + const output = cloneArrayObjects(input); + + t.not(output, input); // Should not modify the original array + t.deepEqual(output, input); // Should have the same values as the input +}); + +test('should throw a TypeError if the input is not an array', t => { + const input = 'not an array'; + + const error = t.throws(() => cloneArrayObjects(input)); + + t.is(error.message, `Expected an array, got ${typeof input}`); +}); + +test('should throw a TypeError if any object in the array is null', t => { + const input = [{name: 'John', age: 30}, null]; + + const error = t.throws(() => cloneArrayObjects(input)); + + t.is(error.message, 'Expected an object, got object'); }); -test('Return empty array when no valid input passed.', t => { - t.deepEqual(cloneArrayObjects(), []); - t.deepEqual(cloneArrayObjects([]), []); +test('should throw a TypeError if any object in the array is not an object', t => { + const input = [{name: 'John', age: 30}, 'not an object']; + + const error = t.throws(() => cloneArrayObjects(input)); + + t.is(error.message, 'Expected an object, got string'); }); -test('Test clone', t => { - const actual = [{a: 1}, {b: 2}]; - const expected = [{a: 1}, {b: 2}]; - const modified = [{a: 1}, {b: 3}]; - t.deepEqual(cloneArrayObjects(actual), expected); - expected[1].b = 3; - t.notDeepEqual(cloneArrayObjects(actual), expected); - t.deepEqual(modified, expected); +test('should return an empty array if the input is an empty array', t => { + const input = []; + const output = cloneArrayObjects(input); + + t.deepEqual(output, []); }); From a90e1d32dcfc797c6f9ee75942183ee30adc7a8e Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Mon, 24 Apr 2023 17:07:43 +0530 Subject: [PATCH 15/65] fix: lint issues --- index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index c6664e4..4cedda9 100644 --- a/index.js +++ b/index.js @@ -1,15 +1,15 @@ function cloneArrayObjects(arrayInput = []) { - if (!Array.isArray(arrayInput)) { - throw new TypeError(`Expected an array, got ${typeof arrayInput}`); - } + if (!Array.isArray(arrayInput)) { + throw new TypeError(`Expected an array, got ${typeof arrayInput}`); + } - return arrayInput.map((object) => { - if (typeof object !== "object" || object === null) { - throw new TypeError(`Expected an object, got ${typeof object}`); - } + return arrayInput.map(object => { + if (typeof object !== 'object' || object === null) { + throw new TypeError(`Expected an object, got ${typeof object}`); + } - return { ...object }; - }); + return {...object}; + }); } export default cloneArrayObjects; From 3e6393f25137361811ae9a4729957fa129386238 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Mon, 24 Apr 2023 17:08:51 +0530 Subject: [PATCH 16/65] docs: update readme to include new ci badge --- readme.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 7200aa5..b2392e9 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,6 @@ -# clone-array-objects +# clone-array-objects ![CI](https://github.com/palashmon/clone-array-objects/actions/workflows/main.yaml/badge.svg) -[![Build Status](https://travis-ci.org/palashmon/clone-array-objects.svg?branch=master)](https://travis-ci.org/palashmon/clone-array-objects) -[![npm](https://img.shields.io/npm/v/clone-array-objects.svg)](https://www.npmjs.org/package/clone-array-objects) -[![codecov](https://codecov.io/gh/palashmon/clone-array-objects/branch/master/graph/badge.svg)](https://codecov.io/gh/palashmon/clone-array-objects) -[![Gzip Size](https://img.badgesize.io/https://unpkg.com/clone-array-objects?compression=gzip)](https://bundlephobia.com/result?p=clone-array-objects) - -Tiny module to clone an array of objects +> Tiny module to clone an array of objects ## Install From 2c23e13955b7658dd6872a709ef34e900ec06e61 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Fri, 11 Aug 2023 10:34:20 +0530 Subject: [PATCH 17/65] fix: update ci/cd workflow --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 74f94b7..ac3e326 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -10,9 +10,9 @@ jobs: fail-fast: false matrix: node-version: + - 20 - 18 - 16 - - 14 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 From 0e5e43e4f4e92115ae0ad096b6f9a9a2454ffbc4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:32:08 +0000 Subject: [PATCH 18/65] Bump xo from 0.54.2 to 0.56.0 Bumps [xo](https://github.com/xojs/xo) from 0.54.2 to 0.56.0. - [Release notes](https://github.com/xojs/xo/releases) - [Commits](https://github.com/xojs/xo/compare/v0.54.2...v0.56.0) --- updated-dependencies: - dependency-name: xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29f1038..70f77a5 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "devDependencies": { "ava": "^5.1.0", "nyc": "^15.0.0", - "xo": "^0.54.0" + "xo": "^0.56.0" }, "type": "module" } \ No newline at end of file From 2b09fd644893e3a83701d2845acb0c0b1689a0f6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:59:46 +0000 Subject: [PATCH 19/65] Bump ava from 5.3.1 to 6.0.1 Bumps [ava](https://github.com/avajs/ava) from 5.3.1 to 6.0.1. - [Release notes](https://github.com/avajs/ava/releases) - [Commits](https://github.com/avajs/ava/compare/v5.3.1...v6.0.1) --- updated-dependencies: - dependency-name: ava dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 70f77a5..88a5d14 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test" ], "devDependencies": { - "ava": "^5.1.0", + "ava": "^6.0.1", "nyc": "^15.0.0", "xo": "^0.56.0" }, From 4415310016a001679f7695c34013956c882c235b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:11:50 +0000 Subject: [PATCH 20/65] Bump xo from 0.56.0 to 0.57.0 Bumps [xo](https://github.com/xojs/xo) from 0.56.0 to 0.57.0. - [Release notes](https://github.com/xojs/xo/releases) - [Commits](https://github.com/xojs/xo/compare/v0.56.0...v0.57.0) --- updated-dependencies: - dependency-name: xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 88a5d14..50f93e2 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "devDependencies": { "ava": "^6.0.1", "nyc": "^15.0.0", - "xo": "^0.56.0" + "xo": "^0.57.0" }, "type": "module" } \ No newline at end of file From 6632c463ab2451ad3a4ab3e7aa60e15e7995a5ef Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 22 Feb 2024 12:49:24 +0530 Subject: [PATCH 21/65] chore: add dependabot version updates --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e8c2dfc..bb5d013 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,7 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" + ignore: + # For all packages, ignore all patch updates + - dependency-name: "*" + update-types: ["version-update:semver-major"] From f808c9b457f69411a641efdb2f75c11bcbb2541a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:35:50 +0000 Subject: [PATCH 22/65] chore(deps-dev): bump xo from 0.57.0 to 0.58.0 Bumps [xo](https://github.com/xojs/xo) from 0.57.0 to 0.58.0. - [Release notes](https://github.com/xojs/xo/releases) - [Commits](https://github.com/xojs/xo/compare/v0.57.0...v0.58.0) --- updated-dependencies: - dependency-name: xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 50f93e2..2279492 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "devDependencies": { "ava": "^6.0.1", "nyc": "^15.0.0", - "xo": "^0.57.0" + "xo": "^0.58.0" }, "type": "module" } \ No newline at end of file From 83a73a96560b6e674405a14f64d536560ff86de5 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Wed, 3 Apr 2024 18:55:38 +0530 Subject: [PATCH 23/65] chore: add stale GitHub action --- .github/workflows/stale.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..8a86964 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,26 @@ +# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues and pull requests +on: + schedule: + - cron: "*/10 5 * * *" +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 365 + stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' + exempt-issue-labels: 'Help Wanted, Good first issue, Never gets stale' + exempt-pr-labels: 'Help Wanted, Never gets stale' From 09379d642847f21ddd2ebae00d929d7861c09367 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Wed, 3 Apr 2024 22:07:49 +0530 Subject: [PATCH 24/65] chore: update dependabot action --- .github/dependabot.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bb5d013..fe8a7e5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,3 +13,8 @@ updates: # For all packages, ignore all patch updates - dependency-name: "*" update-types: ["version-update:semver-major"] + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" From e2cbf16150f2005721adf6e19512804595f2a16e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:38:56 +0000 Subject: [PATCH 25/65] chore(deps): bump actions/stale from 5 to 9 Bumps [actions/stale](https://github.com/actions/stale) from 5 to 9. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v5...v9) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 8a86964..5158023 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,7 +14,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 365 From 721358497a71626b5657ec10115a7f26766f34ea Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Wed, 3 Apr 2024 22:39:11 +0530 Subject: [PATCH 26/65] chore(actions): remove node 16 from actions --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ac3e326..c3cd2a9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -10,9 +10,9 @@ jobs: fail-fast: false matrix: node-version: + - 21 - 20 - 18 - - 16 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 From 7e55c3d686c5918c7f0dace3bd2464c7da144e01 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:10:01 +0000 Subject: [PATCH 27/65] chore(deps): bump actions/setup-node from 3 to 4 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c3cd2a9..1ff0bc1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -15,7 +15,7 @@ jobs: - 18 steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install From 7d7c584c80df75c8e855a27ea842a908f76a8a33 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 03:11:28 +0000 Subject: [PATCH 28/65] chore(deps): bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1ff0bc1..bc2d176 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -14,7 +14,7 @@ jobs: - 20 - 18 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} From 1468b15bfaf207344081df27615ac597cde56c7d Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 4 Apr 2024 12:11:21 +0530 Subject: [PATCH 29/65] chore: add npm publish action --- .github/workflows/npm-publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..18a369a --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,28 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + - run: npm i + - run: npm test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: npm i + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 75523ae370f31fdadbd7b2bae04996f31fb5c86c Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Mon, 8 Apr 2024 19:28:49 +0530 Subject: [PATCH 30/65] chore: update ci/cd pipeline --- .github/dependabot.yml | 6 +----- .github/workflows/main.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fe8a7e5..7cc6327 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,14 +1,10 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - package-ecosystem: "npm" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "weekly" + open-pull-requests-limit: 5 ignore: # For all packages, ignore all patch updates - dependency-name: "*" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bc2d176..26e609d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -20,3 +20,16 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install - run: npm test + + automerge: + name: Dependabot Auto-Merge + needs: test + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + steps: + - uses: fastify/github-action-merge-dependabot@v3 + with: + github-token: ${{ github.token }} + target: minor From d605f711d74725d4c6e90a0449badcad637c4c81 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 11 Apr 2024 11:31:11 +0530 Subject: [PATCH 31/65] chore: update dependabot version action --- .github/dependabot.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7cc6327..350db4a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,16 +1,18 @@ version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "npm" + directory: "/" schedule: - interval: "weekly" - open-pull-requests-limit: 5 + interval: "daily" + open-pull-requests-limit: 10 ignore: - # For all packages, ignore all patch updates - dependency-name: "*" update-types: ["version-update:semver-major"] - + commit-message: + prefix: "chore" - package-ecosystem: "github-actions" directory: "/" + commit-message: + prefix: "chore" schedule: - interval: "daily" + interval: "monthly" From 0d817803b61e8492ce87e5b81ef9fe394eaae69a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 05:29:39 +0000 Subject: [PATCH 32/65] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5a5e23d --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>palashmon/renovate-config" + ] +} From 7c40e3a17c608d60d6180a84e556b968abf71dea Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 18 Apr 2024 09:46:35 +0530 Subject: [PATCH 33/65] feat: update renovate config --- .github/dependabot.yml | 18 ------------- renovate.json => .github/renovate.json | 4 +-- .github/workflows/auto-approve.yml | 20 +++++++++++++++ .github/workflows/main.yaml | 35 -------------------------- .github/workflows/main.yml | 19 ++++++++++++++ .mergify.yml | 8 ------ .travis.yml | 15 ----------- 7 files changed, 40 insertions(+), 79 deletions(-) delete mode 100644 .github/dependabot.yml rename renovate.json => .github/renovate.json (55%) create mode 100644 .github/workflows/auto-approve.yml delete mode 100644 .github/workflows/main.yaml create mode 100644 .github/workflows/main.yml delete mode 100644 .mergify.yml delete mode 100644 .travis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 350db4a..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" - open-pull-requests-limit: 10 - ignore: - - dependency-name: "*" - update-types: ["version-update:semver-major"] - commit-message: - prefix: "chore" - - package-ecosystem: "github-actions" - directory: "/" - commit-message: - prefix: "chore" - schedule: - interval: "monthly" diff --git a/renovate.json b/.github/renovate.json similarity index 55% rename from renovate.json rename to .github/renovate.json index 5a5e23d..b5bdf51 100644 --- a/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "local>palashmon/renovate-config" - ] + "extends": ["github>palashmon/renovate-config"] } diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..c501b63 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,20 @@ +name: Auto-approve PR +on: pull_request_target +permissions: + contents: write + pull-requests: write +jobs: + auto-approve-renovate-prs: + runs-on: ubuntu-latest + steps: + - name: Git Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: '0' + - name: Approve PR + if: github.actor == 'renovate[bot]' + run: | + gh pr review --approve ${{ github.event.number }} -b "I'm **approving** \ + this pull request because it includes a patch or minor update." + env: + GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml deleted file mode 100644 index 26e609d..0000000 --- a/.github/workflows/main.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: CI -on: - - push - - pull_request -jobs: - test: - name: Node.js ${{ matrix.node-version }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - node-version: - - 21 - - 20 - - 18 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - - automerge: - name: Dependabot Auto-Merge - needs: test - runs-on: ubuntu-latest - permissions: - pull-requests: write - contents: write - steps: - - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ github.token }} - target: minor diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1e8a232 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: CI +on: [push, pull_request] +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: ['lts/*', 'current'] + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Setup Node.js (${{ matrix.node-version }}) + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test diff --git a/.mergify.yml b/.mergify.yml deleted file mode 100644 index f2a253f..0000000 --- a/.mergify.yml +++ /dev/null @@ -1,8 +0,0 @@ -pull_request_rules: - - name: automatic merge for Greenkeeper pull requests - conditions: - - author=greenkeeper[bot] - - status-success=greenkeeper/verify - actions: - merge: - method: merge diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2f689b2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - '8' -notifications: - email: false -before_install: - - "npm i -g npm@latest" -install: - - npm install - - npm install -g codecov -before_script: - - npm prune -script: - - npm run cover - - codecov From 74624ce906232e3238c5745afe219cc65070857d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 04:19:59 +0000 Subject: [PATCH 34/65] chore(deps): pin dependencies --- .github/workflows/main.yml | 4 ++-- .github/workflows/npm-publish.yml | 8 ++++---- .github/workflows/stale.yml | 2 +- package.json | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e8a232..76247d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,9 @@ jobs: node-version: ['lts/*', 'current'] steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Setup Node.js (${{ matrix.node-version }}) - uses: actions/setup-node@v4 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 18a369a..cc97b1e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,8 +6,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: node-version: "20.x" - run: npm i @@ -17,8 +17,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: node-version: "20.x" registry-url: "https://registry.npmjs.org" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5158023..c3fe721 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,7 +14,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v9 + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-stale: 365 diff --git a/package.json b/package.json index 2279492..9e36053 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "test" ], "devDependencies": { - "ava": "^6.0.1", - "nyc": "^15.0.0", - "xo": "^0.58.0" + "ava": "6.1.2", + "nyc": "15.1.0", + "xo": "0.58.0" }, "type": "module" } \ No newline at end of file From 6643685a0897c35a0f88ac15670c5ae7bbcea070 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 18 Apr 2024 11:09:20 +0530 Subject: [PATCH 35/65] feat: require node.js v18 --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e36053..69786fe 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "email": "palashm@live.in", "url": "https://github.com/palashmon" }, + "sideEffects": false, "engines": { - "node": ">=14" + "node": ">=18" }, "scripts": { "test": "xo && ava", @@ -35,4 +36,4 @@ "xo": "0.58.0" }, "type": "module" -} \ No newline at end of file +} From 51f217cd08d623937624c4157bae8c38a7acd4a3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 05:39:38 +0000 Subject: [PATCH 36/65] chore(deps): update node.js to >=18.20.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 69786fe..913982a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18" + "node": ">=18.20.2" }, "scripts": { "test": "xo && ava", From 52fb8dec12e95c1c5eb3d1dc0b1523f1014dcf38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:38:37 +0000 Subject: [PATCH 37/65] chore(deps): update actions/checkout digest to 1d96c77 --- .github/workflows/main.yml | 2 +- .github/workflows/npm-publish.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76247d7..976918e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: node-version: ['lts/*', 'current'] steps: - name: Checkout Repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 - name: Setup Node.js (${{ matrix.node-version }}) uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index cc97b1e..764349d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: node-version: "20.x" @@ -17,7 +17,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: node-version: "20.x" From b1e547bffa453b045638c72d2bd3831efeb1f817 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:38:41 +0000 Subject: [PATCH 38/65] chore(deps): update actions/checkout action to v4.1.3 --- .github/workflows/auto-approve.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index c501b63..ef20d2b 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Git Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 with: fetch-depth: '0' - name: Approve PR From aca352a944a7edf4958752edfc3df1fd475f1460 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 13:28:50 +0000 Subject: [PATCH 39/65] chore(deps): update all non-major dependencies --- .github/workflows/main.yml | 4 ++-- .github/workflows/npm-publish.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 976918e..e9cc925 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,9 @@ jobs: node-version: ['lts/*', 'current'] steps: - name: Checkout Repo - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Setup Node.js (${{ matrix.node-version }}) - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 764349d..912636d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,8 +6,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 - - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: "20.x" - run: npm i @@ -17,8 +17,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 - - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 + - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: "20.x" registry-url: "https://registry.npmjs.org" From 29ac12c0aa177d90705257bc5192ae14c55c17ae Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 25 Apr 2024 10:48:47 +0530 Subject: [PATCH 40/65] chore: add workflow updates (#35) --- .editorconfig | 9 ++++--- .github/release.yml | 42 ++++++++++++++++++++++++++++++ .github/workflows/auto-approve.yml | 19 +++----------- .github/workflows/main.yml | 30 ++++++++++----------- .github/workflows/pr-labeler.yml | 8 ++++++ .github/workflows/stale.yml | 31 ++++++---------------- 6 files changed, 81 insertions(+), 58 deletions(-) create mode 100644 .github/release.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.editorconfig b/.editorconfig index 1c6314a..5d12634 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,12 +1,13 @@ +# editorconfig.org root = true [*] -indent_style = tab +indent_style = space +indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[*.yml] -indent_style = space -indent_size = 2 +[*.md] +trim_trailing_whitespace = false diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..d85e1ad --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,42 @@ +# .github/release.yml + +changelog: + exclude: + labels: + - documentation + - ignore-for-release + categories: + - title: Breaking Changes + labels: + - breaking + exclude: + labels: + - dependencies + - title: New Features + labels: + - enhancement + exclude: + labels: + - dependencies + - title: Bug Fixes + labels: + - bug + exclude: + labels: + - dependencies + - title: Security Patches + labels: + - security + - "security" + exclude: + labels: + - dependencies + - title: Dependencies + labels: + - dependencies + - title: Maintenance + labels: + - "*" + exclude: + labels: + - dependencies diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index ef20d2b..557bce6 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -1,20 +1,9 @@ name: Auto-approve PR on: pull_request_target permissions: - contents: write pull-requests: write jobs: - auto-approve-renovate-prs: - runs-on: ubuntu-latest - steps: - - name: Git Checkout - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - with: - fetch-depth: '0' - - name: Approve PR - if: github.actor == 'renovate[bot]' - run: | - gh pr review --approve ${{ github.event.number }} -b "I'm **approving** \ - this pull request because it includes a patch or minor update." - env: - GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + apply: + if: github.actor == 'renovate[bot]' + uses: palashmon/reusable-workflows/.github/workflows/auto-approve.yml@main + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e9cc925..f4d5efc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,19 +1,17 @@ name: CI -on: [push, pull_request] + +on: + push: + branches: + - main + - master + pull_request: # PRs to main branches + workflow_dispatch: # manual trigger + +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: test: - name: Node.js ${{ matrix.node-version }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - node-version: ['lts/*', 'current'] - steps: - - name: Checkout Repo - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - - name: Setup Node.js (${{ matrix.node-version }}) - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test + uses: palashmon/reusable-workflows/.github/workflows/main-build.yml@main diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..f05f218 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,8 @@ +name: PR labeler +on: + - pull_request_target +jobs: + apply: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} # only PRs from this repo + uses: palashmon/reusable-workflows/.github/workflows/labeler-reusable.yml@main + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c3fe721..1d522a9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,26 +1,11 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. -# -# You can adjust the behavior by modifying this file. -# For more information, see: -# https://github.com/actions/stale -name: Mark stale issues and pull requests +name: 'Close stale issues and PRs' on: schedule: - - cron: "*/10 5 * * *" + - cron: '30 1 * * *' +permissions: + issues: write + pull-requests: write jobs: - stale: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - days-before-stale: 365 - stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.' - stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.' - close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' - close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' - exempt-issue-labels: 'Help Wanted, Good first issue, Never gets stale' - exempt-pr-labels: 'Help Wanted, Never gets stale' + apply: + uses: palashmon/reusable-workflows/.github/workflows/stale.yml@main + secrets: inherit From a73260464ca07776fa7b82a216985edcae9bba60 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Thu, 25 Apr 2024 11:02:30 +0530 Subject: [PATCH 41/65] chore: add ci badge update (#36) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b2392e9..6c618a2 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# clone-array-objects ![CI](https://github.com/palashmon/clone-array-objects/actions/workflows/main.yaml/badge.svg) +# clone-array-objects ![CI](https://github.com/palashmon/clone-array-objects/actions/workflows/main.yml/badge.svg) > Tiny module to clone an array of objects From be2367f99a8cdd50ffc727bf53c30fb61481132d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:43:09 +0000 Subject: [PATCH 42/65] chore(deps): update actions/checkout action to v4.1.4 (#37) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/npm-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 912636d..22802a9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: "20.x" @@ -17,7 +17,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: "20.x" From 1f7686c1ef01d42aa168cc1349e383fb828dc5bc Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Fri, 26 Apr 2024 22:53:39 +0530 Subject: [PATCH 43/65] chore: add workflow updates --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1d522a9..823f9cc 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,7 +1,7 @@ name: 'Close stale issues and PRs' on: schedule: - - cron: '30 1 * * *' + - cron: '30 1 * * 0' permissions: issues: write pull-requests: write From 0bfa47dae4ed304a3eec84a802381e48cc0e9689 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Fri, 3 May 2024 10:28:38 +0530 Subject: [PATCH 44/65] chore: add workflow updates --- .github/workflows/auto-approve.yml | 9 --------- .github/workflows/gh-release.yml | 22 ++++++++++++++++++++ .github/workflows/npm-publish.yml | 32 +++++++----------------------- .github/workflows/pr-labeler.yml | 2 +- 4 files changed, 30 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/auto-approve.yml create mode 100644 .github/workflows/gh-release.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml deleted file mode 100644 index 557bce6..0000000 --- a/.github/workflows/auto-approve.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Auto-approve PR -on: pull_request_target -permissions: - pull-requests: write -jobs: - apply: - if: github.actor == 'renovate[bot]' - uses: palashmon/reusable-workflows/.github/workflows/auto-approve.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml new file mode 100644 index 0000000..ef68db1 --- /dev/null +++ b/.github/workflows/gh-release.yml @@ -0,0 +1,22 @@ +name: GitHub Release + +on: + schedule: + - cron: '30 2 * * 5' # Weekly + workflow_dispatch: # manual trigger + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: write + packages: write + pull-requests: write + +jobs: + call-workflow: + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + uses: palashmon/reusable-workflows/.github/workflows/gh-release.yml@main + with: + branch_name: 'master' diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 22802a9..87bbaed 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,28 +1,10 @@ -name: Publish Package to npmjs +name: Publish NPM Release on: - release: - types: [published] + workflow_run: + workflows: ["GitHub Release"] + types: [completed] jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 - with: - node-version: "20.x" - - run: npm i - - run: npm test - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 - with: - node-version: "20.x" - registry-url: "https://registry.npmjs.org" - - run: npm i - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + if: ${{ github.event.workflow_run.conclusion == 'success' }} + uses: palashmon/reusable-workflows/.github/workflows/npm-publish.yml@main + secrets: inherit diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index f05f218..743fe1a 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -5,4 +5,4 @@ jobs: apply: if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} # only PRs from this repo uses: palashmon/reusable-workflows/.github/workflows/labeler-reusable.yml@main - secrets: inherit \ No newline at end of file + secrets: inherit From 23177bec7d0dbd22fb530bd292fd1c8f0d320c14 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 02:42:22 +0000 Subject: [PATCH 45/65] chore(release): v1.1.0 [skip ci] (#39) Co-authored-by: github-actions --- package.json | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 913982a..9c8a181 100644 --- a/package.json +++ b/package.json @@ -1,39 +1,39 @@ { - "name": "clone-array-objects", - "version": "1.0.2", - "description": "Clone an array of objects", - "license": "MIT", - "repository": "https://github.com/palashmon/clone-array-objects", - "author": { - "name": "Palash Mondal", - "email": "palashm@live.in", - "url": "https://github.com/palashmon" - }, - "sideEffects": false, - "engines": { - "node": ">=18.20.2" - }, - "scripts": { - "test": "xo && ava", - "lint": "xo --fix", - "cover": "nyc --reporter=lcov ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "clone", - "array", - "objects", - "multiple", - "array item", - "keys", - "test" - ], - "devDependencies": { - "ava": "6.1.2", - "nyc": "15.1.0", - "xo": "0.58.0" - }, - "type": "module" + "name": "clone-array-objects", + "version": "1.1.0", + "description": "Clone an array of objects", + "license": "MIT", + "repository": "https://github.com/palashmon/clone-array-objects", + "author": { + "name": "Palash Mondal", + "email": "palashm@live.in", + "url": "https://github.com/palashmon" + }, + "sideEffects": false, + "engines": { + "node": ">=18.20.2" + }, + "scripts": { + "test": "xo && ava", + "lint": "xo --fix", + "cover": "nyc --reporter=lcov ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "clone", + "array", + "objects", + "multiple", + "array item", + "keys", + "test" + ], + "devDependencies": { + "ava": "6.1.2", + "nyc": "15.1.0", + "xo": "0.58.0" + }, + "type": "module" } From 082043420105daec94880a7a5276181b873d3c6e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 19:09:38 +0000 Subject: [PATCH 46/65] chore(deps): update dependency ava to v6.1.3 (#38) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c8a181..68d2da0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test" ], "devDependencies": { - "ava": "6.1.2", + "ava": "6.1.3", "nyc": "15.1.0", "xo": "0.58.0" }, From 258832b8482e7875808c9c79c5016b5fa7df79e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 02:40:33 +0000 Subject: [PATCH 47/65] chore(release): v1.2.0 [skip ci] (#40) Co-authored-by: github-actions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 68d2da0..78f73b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clone-array-objects", - "version": "1.1.0", + "version": "1.2.0", "description": "Clone an array of objects", "license": "MIT", "repository": "https://github.com/palashmon/clone-array-objects", From c73768463c0803e92485ce35447cb8b805a5e3c4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 21:41:27 +0000 Subject: [PATCH 48/65] chore(deps): update node.js to >=18.20.3 (#41) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 78f73b8..42eb56a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18.20.2" + "node": ">=18.20.3" }, "scripts": { "test": "xo && ava", From 6d95ac4ee152c37c65db2ccef8e3a845388d5d44 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 02:41:18 +0000 Subject: [PATCH 49/65] chore(release): v1.3.0 [skip ci] (#42) Co-authored-by: github-actions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 42eb56a..4a70863 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clone-array-objects", - "version": "1.2.0", + "version": "1.3.0", "description": "Clone an array of objects", "license": "MIT", "repository": "https://github.com/palashmon/clone-array-objects", From ca1ee492aa33536cbe7d681c05e4b917d2198927 Mon Sep 17 00:00:00 2001 From: Palash Mondal <14850464+palashmon@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:26:49 +0530 Subject: [PATCH 50/65] chore: update release workflow --- .github/workflows/gh-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml index ef68db1..7c5fed9 100644 --- a/.github/workflows/gh-release.yml +++ b/.github/workflows/gh-release.yml @@ -2,7 +2,7 @@ name: GitHub Release on: schedule: - - cron: '30 2 * * 5' # Weekly + - cron: '30 2 1 * *' # Monthly workflow_dispatch: # manual trigger concurrency: From b686b01aad849e7db635bfbd2fdddd8f6b47537f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:35:43 +0000 Subject: [PATCH 51/65] chore(deps): update node.js to >=18.20.4 (#43) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4a70863..b685818 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18.20.3" + "node": ">=18.20.4" }, "scripts": { "test": "xo && ava", From 9dac850c5f7602e6ab18a94d16583a3209372920 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 11:06:35 +0530 Subject: [PATCH 52/65] chore(deps): update dependency xo to v0.59.0 (#44) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b685818..014d65b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "devDependencies": { "ava": "6.1.3", "nyc": "15.1.0", - "xo": "0.58.0" + "xo": "0.59.0" }, "type": "module" } From 5026048c9f13f81669d659dc88e6adb48386778b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 28 Jul 2024 21:38:22 +0000 Subject: [PATCH 53/65] chore(deps): update dependency xo to v0.59.2 (#45) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 014d65b..a010612 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "devDependencies": { "ava": "6.1.3", "nyc": "15.1.0", - "xo": "0.59.0" + "xo": "0.59.2" }, "type": "module" } From 386159480dc0aa3f0ae6388a54145cd707bff2b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:17:04 +0000 Subject: [PATCH 54/65] chore(deps): update dependency xo to v0.59.3 (#46) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a010612..9927b7e 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "devDependencies": { "ava": "6.1.3", "nyc": "15.1.0", - "xo": "0.59.2" + "xo": "0.59.3" }, "type": "module" } From 39eac9c55e706e979a249dd567886309220344b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 02:51:09 +0000 Subject: [PATCH 55/65] chore(release): v1.4.0 [skip ci] (#47) Co-authored-by: github-actions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9927b7e..08a85fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clone-array-objects", - "version": "1.3.0", + "version": "1.4.0", "description": "Clone an array of objects", "license": "MIT", "repository": "https://github.com/palashmon/clone-array-objects", From 5415db02a1acf52458646de2c5c525e42720adfc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:19:04 +0000 Subject: [PATCH 56/65] chore(deps): update dependency ava to v6.2.0 (#48) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08a85fa..43e463a 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test" ], "devDependencies": { - "ava": "6.1.3", + "ava": "6.2.0", "nyc": "15.1.0", "xo": "0.59.3" }, From c9929291afde7553c06d0a1e0936376ff049076d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:33:19 +0000 Subject: [PATCH 57/65] chore(deps): update node.js to >=18.20.5 (#49) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 43e463a..eccc52e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18.20.4" + "node": ">=18.20.5" }, "scripts": { "test": "xo && ava", From 3caa524e277b0b69cd6c105e3f3abdeb246f9689 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:07:07 +0000 Subject: [PATCH 58/65] chore(deps): update dependency xo to v0.60.0 (#50) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eccc52e..9324fd7 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "devDependencies": { "ava": "6.2.0", "nyc": "15.1.0", - "xo": "0.59.3" + "xo": "0.60.0" }, "type": "module" } From 5b6303b7616f7e07ea11401c9a41459d7185bc42 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 26 Jan 2025 21:30:23 +0000 Subject: [PATCH 59/65] chore(deps): update node.js to >=18.20.6 (#51) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9324fd7..d52ec2e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18.20.5" + "node": ">=18.20.6" }, "scripts": { "test": "xo && ava", From 3de8e6a5a9e76afdca64da9fea93791f79055c4e Mon Sep 17 00:00:00 2001 From: Palash Mondal <14850464+palashmon@users.noreply.github.com> Date: Mon, 27 Jan 2025 12:44:39 +0530 Subject: [PATCH 60/65] chore(deps): update node.js to >=20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d52ec2e..7593a9b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=18.20.6" + "node": ">=20" }, "scripts": { "test": "xo && ava", From 7767e30456500b04e511adc0add187cabf32d015 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 22:01:17 +0000 Subject: [PATCH 61/65] chore(deps): update node.js to >=20.18.2 (#52) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7593a9b..e126839 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=20" + "node": ">=20.18.2" }, "scripts": { "test": "xo && ava", From 7e465433fffcdb2308660ac123e1411dea8497d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:38:37 +0000 Subject: [PATCH 62/65] chore(deps): update node.js to >=20.18.3 (#53) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e126839..d5893d3 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "sideEffects": false, "engines": { - "node": ">=20.18.2" + "node": ">=20.18.3" }, "scripts": { "test": "xo && ava", From 9790ddb444414d8d5a53f4e4326053bf9e730fc4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 19:30:06 +0000 Subject: [PATCH 63/65] chore(dev-deps): update dependency ava to v6.3.0 (#55) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d5893d3..2b01778 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test" ], "devDependencies": { - "ava": "6.2.0", + "ava": "6.3.0", "nyc": "15.1.0", "xo": "0.60.0" }, From 2aac6bae9855d3ba4047d450f07d2b887c104433 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 19:33:32 +0000 Subject: [PATCH 64/65] chore(dev-deps): update dependency xo to v0.61.1 (#56) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b01778..96c5226 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "devDependencies": { "ava": "6.3.0", "nyc": "15.1.0", - "xo": "0.60.0" + "xo": "0.61.1" }, "type": "module" } From c4cf6d11584385c0d50c62708ab8e4d4cc065095 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:38:21 +0000 Subject: [PATCH 65/65] chore(dev-deps): update dependency ava to v6.4.0 (#57) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96c5226..00e36e2 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "test" ], "devDependencies": { - "ava": "6.3.0", + "ava": "6.4.0", "nyc": "15.1.0", "xo": "0.61.1" },