Skip to content

Bump guardian/libs to 29.0.1#28655

Draft
akinsola-guardian wants to merge 6 commits intomainfrom
al/bump-gu-libs-29-0-0
Draft

Bump guardian/libs to 29.0.1#28655
akinsola-guardian wants to merge 6 commits intomainfrom
al/bump-gu-libs-29-0-0

Conversation

@akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Mar 4, 2026

What does this change?

  • Bump @guardian/libs to 29.0.1
  • Update AUS consentUUID cookie lookup to prefer globalcmpUUID with ccpaUUID fallback.

Why?

Migrating Australian framework to GlobalCMP framework.

@akinsola-guardian akinsola-guardian added the dependencies Pull requests that update a dependency file label Mar 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the frontend’s dependency on @guardian/libs to v29.0.1, with corresponding lockfile updates, and modifies consent UUID extraction logic in boot.js for USNAT/AUS consent reporting to Ophan.

Changes:

  • Bump @guardian/libs from 26.1.0 to 29.0.1 in package.json.
  • Update yarn.lock for the new @guardian/libs version (including updated transitive deps/peer expectations).
  • Adjust consent UUID selection logic/comments in static/src/javascripts/boot.js (USNAT and AUS branches).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 6 comments.

File Description
package.json Updates declared dependency version for @guardian/libs.
yarn.lock Locks @guardian/libs@29.0.1 and updated related dependency metadata.
static/src/javascripts/boot.js Updates consent UUID lookup behavior (USNAT/AUS) and adds explanatory comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 98 to 99
// Users who interacted with the CCPA banner before the migration to usnat will still have a ccpaUUID cookie. The usnatUUID cookie is set when the USNAT banner is interacted with. We need to check both cookies to ensure we have the correct consentUUID.
const consentUUID =
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newly added comment line uses tab indentation and is misaligned relative to surrounding code. It also appears to exceed typical max line length; please reformat to match the file’s indentation/style so linting/formatting stays consistent.

Copilot uses AI. Check for mistakes.
package.json Outdated
"@guardian/identity-auth": "6.0.1",
"@guardian/identity-auth-frontend": "8.1.0",
"@guardian/libs": "26.1.0",
"@guardian/libs": "29.0.1",
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping @guardian/libs to 29.0.1 updates its peer dependency expectations (in yarn.lock) to tslib: ^2.8.1 and typescript: ~5.9.3, but this repo still pins tslib@2.6.2 and typescript@5.3.3. Please either bump these to satisfy the new peer ranges or confirm (and document) that @guardian/libs@29.0.1 is compatible with the older versions to avoid runtime helper or type-check issues.

Suggested change
"@guardian/libs": "29.0.1",
"@guardian/libs": "28.0.0",

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants