Releases: thegreenwebfoundation/co2.js
v0.16.1
This release sets up the minimum capability to publish CO2.js to JSR. This is experimental at the moment, with the main purpose being to utilise some of the documenting capabilities that is available through JSR.
v0.16 - Add Sustainable Web Design Model v4
Significant updates in this release include:
- Add Sustainable Web Design version 4 b4a7eef
- Add Sustainable Web Design rating scale 142c041
- allow for SWDM version change 15e33a5
- add contributing.md 22d4bcc
- calculate operational and embodied emissions per segment a525f33
Release notes: https://www.thegreenwebfoundation.org/news/release-guide-co2-js-v0-16
v0.15.0 - Verbose hosting check results
CO2.js v0.15 gives developers access to richer information about a hosting provider when checking a domain or multiple domains for green hosting.
Release guide: https://www.thegreenwebfoundation.org/news/release-guide-co2-js-v0-15/
- Adds support for verbose response when checking domains d012292 . Thank you @sfishel18 for this contribution.
- update grid intensities 03b5e45
- remove pagexray dependency, related functions, and test 2a8f601 b2fefd0 41ee904 1e6508a
- Added new JSdoc typedef for components of CO2 estimate Added it as a union for return types that can be total or components d6700f5 . Thank you @mgriffin-scottlogic for this contribution.
Update average annual grid intensities
- [AUTOMATED] Update average annual grid intensities 5e532f5
0.14.3
- [AUTOMATED] Update average annual grid intensities f59eefc
Please note that this update includes data from Ember Climate that reflects their updated carbon intensity methodology.
Read the methodology at: https://ember-climate.org/data-catalogue/yearly-electricity-data/
A note from Ember about the change is below:
We have made a significant update to our carbon intensity calculations which hopefully helped to significantly increase their accuracy. Previously, we were using IPCC emissions factors by fuel that did not distinguish between countries or technologies. Our new factors are on a by country, by fuel, by year basis to more accurately capture coal and gas fleets, how they change over time, and where and how coal and gas is sourced.
Crucially, while widely used, IPCC factors were a significant underestimate, especially for emissions from coal generation. The IPCC, in its methodology, relied on calculations that assumed near impossible efficiency for future coal plants that does not accurately reflect current day coal generation.
We hope that our new approach will be more accurate and we're aiming to make our methodology fully public and reproducible in the near future.
v0.14.2
What's Changed
- Adds user agent header for requests to Green Web Foundation APIs by @sfishel18 in #184
import { hosting } from "@tgwf/co2"
hosting.check("google.com", "myGreenWebApp")
New Contributors
- @sfishel18 made their first contribution in #184
Full Changelog: v0.14.1...v0.14.2
v0.14.1
Why not v0.14.0? Because about 6 months ago I accidentally published v0.14.0 instead of a patch version update. I couldn't remove the tags from NPM or unpublish the package, so we're here now.
- Add guidance for using type definitions from DefinitelyTyped in production 27e2ed4 b5d8828
- Remove previous index.d.ts file ff6f767
- Reduce NPM package size dbd9d7d
- Update average annual average grid intensities 49da1c4 84384da
⚠️ Upcoming feature deprecation notice
In the next version of CO2.js (0.15.0) we will be removing some functions that were specific to using CO2.js with Sitespeed's Page X-ray. Namely, we will be removing the following functions from the CO2.js library:
perDomain
perPage
perContentType
dirtiestResources
perParty
This functionality has already been merged into the Sitespeed.io Sustainability Plugin. Once the above functions have been removed from CO2.js, you will need to use the Sitespeed.io Sustainability Plugin or your own code for that functionality.
If this change impacts your code, please follow the issue on GitHub and leave a comment if you have any concerns.