Skip to content

Commit e58125e

Browse files
committed
Squashed commit of the following:
commit 431492d Author: samuelIkoli <ayibanimiikoli@gmail.com> Date: Thu Nov 14 11:18:57 2024 +0100 spelling typo corrected commit d4731ba Author: Chris Adams <chris@productscience.co.uk> Date: Fri Nov 15 07:45:38 2024 +0000 Update changelog to include new PR commit 4146166 Author: Chris Adams <chris@productscience.co.uk> Date: Fri Nov 15 07:40:58 2024 +0000 Update supported versions of nodejs in tests commit 32047da Author: fershad <27988517+fershad@users.noreply.github.com> Date: Tue Nov 12 12:23:08 2024 +0800 update contributors commit 13bb452 Author: fershad <27988517+fershad@users.noreply.github.com> Date: Tue Nov 12 12:20:21 2024 +0800 update to 0.16.2 commit 95c2d00 Author: fershad <27988517+fershad@users.noreply.github.com> Date: Tue Nov 12 12:17:28 2024 +0800 0.16.2 commit 5680b23 Merge: 81633d7 978a92d Author: fershad <27988517+fershad@users.noreply.github.com> Date: Tue Nov 12 11:52:33 2024 +0800 Bump url2green version commit 978a92d Author: fershad <27988517+fershad@users.noreply.github.com> Date: Tue Nov 12 11:51:31 2024 +0800 bump url2green 0.4.1 commit 8eb0630 Author: fershad <27988517+fershad@users.noreply.github.com> Date: Thu Oct 24 12:56:34 2024 +0800 update iife
1 parent afea798 commit e58125e

File tree

7 files changed

+8219
-15399
lines changed

7 files changed

+8219
-15399
lines changed

.all-contributorsrc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,25 @@
141141
"contributions": [
142142
"code"
143143
]
144-
}
144+
},
145+
{
146+
"login": "dsubject",
147+
"name": "Dani Subject",
148+
"avatar_url": "https://avatars.githubusercontent.com/u/33845418?s=64&v=4",
149+
"profile": "https://github.com/dsubject",
150+
"contributions": [
151+
"code"
152+
]
153+
},
154+
{
155+
"login": "Malay-dev",
156+
"name": "Malay Kumar",
157+
"avatar_url": "https://avatars.githubusercontent.com/u/91375797?s=64&v=4",
158+
"profile": "https://github.com/Malay-dev",
159+
"contributions": [
160+
"doc"
161+
]
162+
},
145163
],
146164
"contributorsPerLine": 7,
147165
"linkToUsage": false

.github/workflows/unittests.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,30 @@ name: Unit tests
22
on:
33
push:
44
branches:
5-
- main
6-
- ca-v0.10.0
5+
- main
76
pull_request:
87
branches:
9-
- main
10-
- ca-v0.10.0
8+
- main
119
permissions:
12-
contents: read
10+
contents: read
1311
jobs:
1412
build:
1513
runs-on: ubuntu-latest
14+
# We officially support LTS versions of nodejs still inside
15+
# their security support window
16+
# https://endoflife.date/nodejs
1617
strategy:
1718
matrix:
18-
node-version: [14.x, 16.x, 18.x]
19+
node-version: [18.x, 20.x, 22.x]
1920
steps:
20-
- uses: actions/checkout@v3
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
- name: Install
26-
run: npm ci
27-
- name: Verify lint
28-
run: npm run lint
29-
- name: Run unit tests
30-
run: npm test
21+
- uses: actions/checkout@v4
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install
27+
run: npm ci
28+
- name: Verify lint
29+
run: npm run lint
30+
- name: Run unit tests
31+
run: npm test

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Add ability to create adaptors which provide access to external data sources #134
1818
- Add access to the Electricity Maps API free tier #134
1919
- Allow access to individual models and their internal functions #195
20+
- Update the Github actions testing matrix to Node 18,20, and 22 #242
2021
<!-- - _(Add a summary of your feature, and if relevant the issue, in your PR for merging into `main`)_ -->
2122

2223
## Released

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Internally, you may want to use this library to create a _carbon budget_ for you
2424

2525
For user facing applications, CO2.js could be used to check & block the uploading of carbon intensive files. Or, to present users with information about the carbon impact of their online activities (such as browsing a website).
2626

27-
The above a just a few examples of the many and varied ways CO2.js can be applied to provide carbon estimates for data transfer. If you’re using CO2.js in production we’d love to hear how! [Contact us](https://www.thegreenwebfoundation.org/support-form/) via our website.
27+
The above are just a few examples of the many and varied ways CO2.js can be applied to provide carbon estimates for data transfer. If you’re using CO2.js in production we’d love to hear how! [Contact us](https://www.thegreenwebfoundation.org/support-form/) via our website.
2828

2929
## Installation
3030

dist/iife/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)