From 503ea36ebc77146e93449b6e650b3641ae228bb3 Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Fri, 30 Oct 2026 11:10:08 -0400 Subject: [PATCH 1/2] chore(deps): switch from deprecated dependency CSS is no longer being maintained and suggested switching to @adobe version. --- packages/react-core/package.json | 2 +- packages/react-core/scripts/copyStyles.mjs | 2 +- yarn.lock | 39 +--------------------- 3 files changed, 3 insertions(+), 40 deletions(-) diff --git a/packages/react-core/package.json b/packages/react-core/package.json index a8e40a8ddb0..1f2b5c61c7d 100644 --- a/packages/react-core/package.json +++ b/packages/react-core/package.json @@ -54,9 +54,9 @@ "tslib": "^2.8.1" }, "devDependencies": { + "@adobe/css-tools": "^4.5.0", "@patternfly/patternfly": "6.7.0-prerelease.3", "case-anything": "^3.1.2", - "css": "^3.0.0", "fs-extra": "^11.3.3" }, "peerDependencies": { diff --git a/packages/react-core/scripts/copyStyles.mjs b/packages/react-core/scripts/copyStyles.mjs index 191045303c9..c671aab736a 100644 --- a/packages/react-core/scripts/copyStyles.mjs +++ b/packages/react-core/scripts/copyStyles.mjs @@ -2,7 +2,7 @@ import { copySync } from 'fs-extra/esm'; import { readFileSync, writeFileSync } from 'node:fs'; import { createRequire } from 'node:module'; import { resolve, dirname, join } from 'node:path'; -import { parse as parseCSS, stringify as stringifyCSS } from 'css'; +import { parse as parseCSS, stringify as stringifyCSS } from '@adobe/css-tools'; const require = createRequire(import.meta.url); const stylesDir = resolve(import.meta.dirname, '../dist/styles'); diff --git a/yarn.lock b/yarn.lock index df2b1a4e275..cd71d2c59b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5171,12 +5171,12 @@ __metadata: version: 0.0.0-use.local resolution: "@patternfly/react-core@workspace:packages/react-core" dependencies: + "@adobe/css-tools": "npm:^4.5.0" "@patternfly/patternfly": "npm:6.7.0-prerelease.3" "@patternfly/react-icons": "workspace:^" "@patternfly/react-styles": "workspace:^" "@patternfly/react-tokens": "workspace:^" case-anything: "npm:^3.1.2" - css: "npm:^3.0.0" focus-trap: "npm:7.6.6" fs-extra: "npm:^11.3.3" react-dropzone: "npm:^14.3.5" @@ -8117,15 +8117,6 @@ __metadata: languageName: node linkType: hard -"atob@npm:^2.1.2": - version: 2.1.2 - resolution: "atob@npm:2.1.2" - bin: - atob: bin/atob.js - checksum: 10c0/ada635b519dc0c576bb0b3ca63a73b50eefacf390abb3f062558342a8d68f2db91d0c8db54ce81b0d89de3b0f000de71f3ae7d761fd7d8cc624278fe443d6c7e - languageName: node - linkType: hard - "attr-accept@npm:^2.2.4": version: 2.2.5 resolution: "attr-accept@npm:2.2.5" @@ -10189,17 +10180,6 @@ __metadata: languageName: node linkType: hard -"css@npm:^3.0.0": - version: 3.0.0 - resolution: "css@npm:3.0.0" - dependencies: - inherits: "npm:^2.0.4" - source-map: "npm:^0.6.1" - source-map-resolve: "npm:^0.6.0" - checksum: 10c0/c17cb4a46a39c11b00225f1314158a892828af34cdf3badc7e88084882e9f414e4902a1d59231c0854f310af30bde343fd8a9e79c6001426fe88af45d3312fe2 - languageName: node - linkType: hard - "cssesc@npm:^3.0.0": version: 3.0.0 resolution: "cssesc@npm:3.0.0" @@ -10667,13 +10647,6 @@ __metadata: languageName: node linkType: hard -"decode-uri-component@npm:^0.2.0": - version: 0.2.2 - resolution: "decode-uri-component@npm:0.2.2" - checksum: 10c0/1f4fa54eb740414a816b3f6c24818fbfcabd74ac478391e9f4e2282c994127db02010ce804f3d08e38255493cfe68608b3f5c8e09fd6efc4ae46c807691f7a31 - languageName: node - linkType: hard - "dedent@npm:1.5.3, dedent@npm:^1.0.0": version: 1.5.3 resolution: "dedent@npm:1.5.3" @@ -21859,16 +21832,6 @@ __metadata: languageName: node linkType: hard -"source-map-resolve@npm:^0.6.0": - version: 0.6.0 - resolution: "source-map-resolve@npm:0.6.0" - dependencies: - atob: "npm:^2.1.2" - decode-uri-component: "npm:^0.2.0" - checksum: 10c0/bc2a94af3d2417196195eecf0130925b3558726726504a7c7bd1b9e383c4a789fa3f4616c4c673cf8bd7930ddd2e80481f203422282aeae342dbd56b91995188 - languageName: node - linkType: hard - "source-map-support@npm:0.5.13": version: 0.5.13 resolution: "source-map-support@npm:0.5.13" From 27d874ea490df1ebec8062b12759c9a7f3912ce5 Mon Sep 17 00:00:00 2001 From: Gabi Podolnikova Date: Fri, 30 Oct 2026 11:54:51 +0100 Subject: [PATCH 2/2] fix(CI): use America/New_York instead of EST for unit tests Since Oct 29 the Unit tests job fails 3 timezone-dependent Timestamp tests on every PR. The root test script runs jest with TZ=EST, and GitHub's ubuntu-latest image migrated from ubuntu-24.04 to ubuntu-26.04 between the last passing run (Oct 27) and the first failure (Oct 29); on the newer image TZ=EST no longer applies the UTC-5 offset and jest runs as UTC instead. EST is a legacy POSIX-style abbreviation rather than an IANA zone. America/New_York is identical to EST (UTC-5, standard time) for every date used in the Timestamp tests (all in January/February), so no expected values change. Full suite passes: 396 suites, 3902 tests, 914 snapshots. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 27224dd7002..cf5edc1106a 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "start": "yarn build && concurrently --kill-others \"yarn watch\" \"yarn workspace @patternfly/react-docs develop\"", "start:cypress": "lerna run cypress:open", "start:demo-app": "lerna run dev --scope=demo-app-ts --stream", - "test": "TZ=EST LC_ALL=en_US.UTF8 jest packages", + "test": "TZ=America/New_York LC_ALL=en_US.UTF8 jest packages", "test:a11y": "lerna run test:a11y --stream", "test:integration": "yarn workspace @patternfly/react-integration test:integration", "uninstall": "find . -name node_modules -type d | xargs rm -rf",