Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/236: Include all gridIntensity values in adjustments when only some are overridden #237

Merged
merged 3 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,25 @@
"contributions": [
"code"
]
}
},
{
"login": "dsubject",
"name": "Dani Subject",
"avatar_url": "https://avatars.githubusercontent.com/u/33845418?s=64&v=4",
"profile": "https://github.com/dsubject",
"contributions": [
"code"
]
},
{
"login": "Malay-dev",
"name": "Malay Kumar",
"avatar_url": "https://avatars.githubusercontent.com/u/91375797?s=64&v=4",
"profile": "https://github.com/Malay-dev",
"contributions": [
"doc"
]
},
],
"contributorsPerLine": 7,
"linkToUsage": false
Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@ name: Unit tests
on:
push:
branches:
- main
- ca-v0.10.0
- main
pull_request:
branches:
- main
- ca-v0.10.0
- main
permissions:
contents: read
contents: read
jobs:
build:
runs-on: ubuntu-latest
# We officially support LTS versions of nodejs still inside
# their security support window
# https://endoflife.date/nodejs
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Verify lint
run: npm run lint
- name: Run unit tests
run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Verify lint
run: npm run lint
- name: Run unit tests
run: npm test
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add ability to create adaptors which provide access to external data sources #134
- Add access to the Electricity Maps API free tier #134
- Allow access to individual models and their internal functions #195
- Update the Github actions testing matrix to Node 18,20, and 22 #242
<!-- - _(Add a summary of your feature, and if relevant the issue, in your PR for merging into `main`)_ -->

## Released
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Internally, you may want to use this library to create a _carbon budget_ for you

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).

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.
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.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions dist/iife/index.js

Large diffs are not rendered by default.

Loading