Skip to content

Add warning about switching default model to SWDMv4#269

Merged
fershad merged 2 commits intonextfrom
fi-swdmv4-warning
Dec 1, 2025
Merged

Add warning about switching default model to SWDMv4#269
fershad merged 2 commits intonextfrom
fi-swdmv4-warning

Conversation

@fershad
Copy link
Contributor

@fershad fershad commented Dec 1, 2025

Triage

Type of change

Please select any of the below items that are appropriate.

This pull request:

  • Adds a new carbon estimation model to CO2.js
  • Adds new functionality to an existing model
  • Fixes a bug with an existing model implementation
  • Add other new functionality to CO2.js
  • Add new data to CO2.js
  • Improves developer experience for contributors
  • Adds contributors to CO2.js
  • Does something not specified above

Related issue/s

Please list below any issues this pull request is related to.

Docs changes required

Do any changes made in this pull request require parts of the CO2.js documentation to be updated?

  • Yes
  • No
  • I don't know

If you answered "Yes", please create an corresponding issue in our Developer Documentation repository.

Describe the changes made in this pull request

This change adds a console warning message that appears whenever a carbon estimation model is not explicitly set. The purpose of this message is to inform users that in the next release of CO2.js (v0.18) the default estimation model will be changed to Sustainable Web Design Model v4.

@fershad fershad merged commit 1e18249 into next Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant