Skip to content

Releases: thegreenwebfoundation/co2.js

v0.16.1

10 Sep 07:46
Compare
Choose a tag to compare

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.0...v0.16.1

v0.16 - Add Sustainable Web Design Model v4

01 Jul 04:01
Compare
Choose a tag to compare

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

v0.15.0...v0.16.0

Release notes: https://www.thegreenwebfoundation.org/news/release-guide-co2-js-v0-16

v0.15.0 - Verbose hosting check results

03 May 04:56
Compare
Choose a tag to compare

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.

v0.14.4...v0.15.0

Update average annual grid intensities

08 Mar 14:36
Compare
Choose a tag to compare
  • [AUTOMATED] Update average annual grid intensities 5e532f5

v0.14.3...v0.14.4

0.14.3

21 Feb 08:52
Compare
Choose a tag to compare
  • [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...v0.14.3

v0.14.2

29 Jan 04:42
Compare
Choose a tag to compare

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

Full Changelog: v0.14.1...v0.14.2

v0.14.1

09 Jan 06:34
Compare
Choose a tag to compare

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

v0.13.10...v0.14.1

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

v0.13.10

16 Dec 09:24
Compare
Choose a tag to compare
  • [AUTOMATED] Update average annual grid intensities data 3085219

v0.13.9

07 Nov 07:37
Compare
Choose a tag to compare
  • Fix to return expected results when variables with 0 value are passed into function b1c0679
  • [AUTOMATED] Update average annual grid intensities 0e76dbe

v0.13.8...v0.13.9

v0.13.8

09 Oct 12:08
Compare
Choose a tag to compare
  • Add support for values equal to 0 in perByteTrace and perVisitTrace. Thanks @p-gerard. a045b14
  • Update average annual grid intensities c2a805a
  • Add some forgiveness to perByteTrace and perVisitTrace tests 26972e4

v0.13.7...v0.13.8