Commit Graph

2383 Commits

Author SHA1 Message Date
Aramis Sennyey 64ea0d20c1 Merge pull request #32225 from backstage/sennyeya/fix-breaking-changes-comment-master 2026-01-06 11:14:57 -05:00
Andre Wanlin 95a5f625fb Update .github/vale/config/vocabularies/Backstage/accept.txt
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2026-01-05 13:50:28 -06:00
Andre Wanlin abdbc9ad31 Added Trixie to Vale
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-01-05 12:31:28 -06:00
Fredrik Adelöw 790a77c418 Merge pull request #32039 from backstage/renovate/actions-setup-node-6.x
chore(deps): update actions/setup-node action to v6
2026-01-05 14:14:27 +01:00
Patrik Oldsberg 0fe2a23ad9 Merge pull request #32015 from schultzp2020/ai-contrib
feat: add AI Use Policy and Guidelines
2026-01-02 13:22:27 +01:00
renovate[bot] 3db7157061 chore(deps): update actions/setup-node action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-31 12:43:49 +00:00
aramissennyeydd 4171b4e7e3 fix: use correct PR ID to post comments
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2025-12-30 12:39:09 -07:00
Fredrik Adelöw 1c341e19f2 use node 22 in the patch flow
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-12-17 09:39:59 +01:00
Patrik Oldsberg a0de7cf2b7 Merge pull request #31933 from backstage/upgrade-jsdom
chore: upgrade jsdom to v27 and Jest to v30
2025-12-15 16:01:01 +01:00
Fredrik Adelöw caf47623b3 Merge pull request #32090 from backstage/renovate/jamesives-github-pages-deploy-action-4.x
chore(deps): update jamesives/github-pages-deploy-action action to v4.7.6
2025-12-15 09:29:52 +01:00
Fredrik Adelöw ada1857fb7 Merge pull request #32088 from backstage/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.31.8
2025-12-15 09:29:38 +01:00
Paul Schultz 7df97b54b3 feat: add AI Use Policy and Guidelines
Signed-off-by: Paul Schultz <pschultz@pobox.com>

Address review comments: simplify cursor rules and clarify AI PR marking

- Simplify .cursor/rules/general.mdc to reference /.github/copilot-instructions.md
- Add clarification that AI-generated PRs should be clearly marked

Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-12-12 17:15:07 -06:00
renovate[bot] 4f9a6f8a1f chore(deps): update github/codeql-action action to v3.31.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 10:23:27 +00:00
Johan Persson cd0b8a11a3 chore: make jest a peer dependency with v29/v30 support
Move jest from dependencies to peer dependencies, allowing users to
choose between Jest 29 and Jest 30.

The CLI now detects the Jest version at runtime and uses the
appropriate environment:
- Jest 29: Uses standard jest-environment-jsdom
- Jest 30: Uses a custom environment based on @jest/environment-jsdom-abstract
  with fixes for Web API globals (fetch, streams, Error, etc.)

The cross-fetch polyfill is only injected for Jest 29, as with Jest 30+
our patched Jest environment is used. The network request blocker is made
MSW-compatible by checking if fetch was wrapped before blocking.

Jest 30 (with jsdom v27) fixes `Could not parse CSS stylesheet`
warnings/errors when testing components from @backstage/ui or other
packages using CSS `@layer` declarations.

New peer dependencies (install based on your Jest version):
- jest (required, ^29 or ^30)
- Jest 29 requires: jest-environment-jsdom
- Jest 30 requires: @jest/environment-jsdom-abstract, jsdom

Production code changes for jsdom 27 testability:
- AppIdentityProxy: extract navigateToUrl method for spying
- LiveReloadAddon: export utils.reloadPage for spying
- collect.ts: export internal.resolvePackagePath for mocking

MockFetchApi: evaluate global.fetch at call time instead of construction
time, allowing MSW to patch fetch after MockFetchApi is constructed.

Test adaptations for jsdom 27:
- Use RGB values instead of named colors in CSS assertions
- Update error format expectations (hyphenated type names, SyntaxError
  instead of FetchError for JSON parse errors)
- Simplify URL error assertions for cross-version compatibility
- Fix accessible name whitespace handling for external links
- Use history.replaceState for location mocking (non-configurable)
- Use fireEvent.blur for contentEditable elements
- Move async assertions inside waitFor for race conditions
- Remove Blob.prototype.text polyfill (now native)
- Remove test case using credentials in plugin:// URLs

Test adaptations for Jest 30:
- Replace `expect.objectContaining([...])` with direct array equality
- Replace `expect.objectContaining({ length: N })` with
  `expect.any(Array)` + separate `toHaveLength()` assertions
- Use child process for native Node.js module resolution in
  collect.test.ts to work around Jest 30's resolver behavior
- Update snapshot headers for new Jest format

Also removes the jest-haste-map patch which is no longer needed.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2025-12-11 18:06:55 +01:00
renovate[bot] 7fd171ee38 chore(deps): update jamesives/github-pages-deploy-action action to v4.7.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-10 00:20:51 +00:00
aramissennyeydd 0def824b4d remove --no-node-snapshots flag
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2025-12-08 17:28:19 -05:00
Fredrik Adelöw ec476bcb47 Merge pull request #32037 from backstage/renovate/actions-github-script-8.x
chore(deps): update actions/github-script action to v8
2025-12-08 16:05:18 +01:00
Fredrik Adelöw 40d8e94bd8 Merge pull request #32038 from backstage/renovate/actions-labeler-6.x
chore(deps): update actions/labeler action to v6
2025-12-08 16:04:21 +01:00
Fredrik Adelöw 13b3085450 Merge pull request #32045 from backstage/renovate/actions-stale-10.x
chore(deps): update actions/stale action to v10
2025-12-08 16:04:10 +01:00
Fredrik Adelöw 68e1cd1d17 add explicit node version to version packages flow
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-12-08 14:37:04 +01:00
Fredrik Adelöw 2bae83ab2e Version Policy Update - Node 22 to 24
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-12-08 10:53:38 +01:00
renovate[bot] ae8d79cd30 chore(deps): update actions/stale action to v10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 11:15:29 +00:00
renovate[bot] 98884553e0 chore(deps): update actions/labeler action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 16:06:05 +00:00
renovate[bot] b72cec522f chore(deps): update actions/github-script action to v8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 16:05:57 +00:00
renovate[bot] f08ef4c73c chore(deps): update actions/checkout action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 15:06:16 +00:00
Fredrik Adelöw 2d0665d3dd Merge pull request #31994 from backstage/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.31.6
2025-12-05 10:59:25 +01:00
Fredrik Adelöw f5888f1a59 Merge pull request #31988 from backstage/renovate/docker-login-action-3.x
chore(deps): update docker/login-action action to v3.6.0
2025-12-05 10:59:10 +01:00
renovate[bot] bea0f00ccf chore(deps): update stefanbuck/github-issue-parser digest to 25f1485
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 19:05:21 +00:00
renovate[bot] 87e9fe704f chore(deps): update github/codeql-action action to v3.31.6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 15:19:02 +00:00
renovate[bot] e3c9606d21 chore(deps): update docker/login-action action to v3.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 13:10:11 +00:00
renovate[bot] 305c2d35f0 chore(deps): update step-security/harden-runner action to v2.13.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 21:10:01 +00:00
renovate[bot] b1e584fac0 chore(deps): update actions/checkout digest to 34e1148
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 20:48:30 +01:00
Ben Lambert c287d93327 Merge pull request #31794 from backstage/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4.3.1
2025-11-25 10:39:20 +01:00
Fredrik Adelöw d9e12f8bce Merge pull request #31836 from SnowBlitzer/jordans/tokenizer
Changing tokenizer separator for search indexing
2025-11-21 17:43:23 +01:00
Jordan Snow 9353f6e3f9 Test fix and vocab addition
Signed-off-by: Jordan Snow <jordans@spotify.com>
2025-11-21 10:40:19 -05:00
renovate[bot] fe535cabb9 chore(deps): update actions/checkout action to v4.3.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 14:15:48 +00:00
Patrik Oldsberg fb5c157262 add new patch release process
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-21 11:04:32 +01:00
Fredrik Adelöw 831d5a3ab4 Merge pull request #31706 from backstage/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4.3.0
2025-11-17 14:26:58 +01:00
Fredrik Adelöw d8d8b4000b Merge pull request #31698 from backstage/renovate/step-security-harden-runner-2.x
chore(deps): update step-security/harden-runner action to v2.13.2
2025-11-17 13:45:51 +01:00
Fredrik Adelöw 90a623d1cd Merge pull request #31705 from backstage/renovate/actions-cache-4.x
chore(deps): update actions/cache action to v4.3.0
2025-11-17 13:45:27 +01:00
Fredrik Adelöw 4edc44bae4 Merge pull request #31707 from backstage/renovate/actions-github-script-7.x
chore(deps): update actions/github-script action to v7.1.0
2025-11-17 13:44:08 +01:00
Fredrik Adelöw 35f3bbb4be Fix all current docs quality script warnings
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-11-13 12:04:59 +01:00
renovate[bot] 5967139a40 chore(deps): update actions/github-script action to v7.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 16:10:14 +00:00
renovate[bot] ebefb234c3 chore(deps): update actions/checkout action to v4.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 16:10:06 +00:00
Fredrik Adelöw fe66c333bf Merge pull request #31696 from backstage/renovate/ossf-scorecard-action-2.x
chore(deps): update ossf/scorecard-action action to v2.4.3
2025-11-11 16:36:37 +01:00
Fredrik Adelöw 930c5ae865 Merge pull request #31667 from backstage/renovate/jamesives-github-pages-deploy-action-4.x
chore(deps): update jamesives/github-pages-deploy-action action to v4.7.4
2025-11-11 16:35:59 +01:00
renovate[bot] 796f24e483 chore(deps): update actions/cache action to v4.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 15:25:24 +00:00
renovate[bot] 93b61d847c chore(deps): update step-security/harden-runner action to v2.13.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 15:24:09 +00:00
renovate[bot] 3ae58949c8 chore(deps): update ossf/scorecard-action action to v2.4.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 15:12:47 +00:00
renovate[bot] 681e46178f chore(deps): update jamesives/github-pages-deploy-action action to v4.7.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 14:20:06 +00:00