566 Commits

Author SHA1 Message Date
github-actions[bot] b97fcb0a93 Version Packages 2026-05-19 18:28:24 +00:00
github-actions[bot] 1cc86bee1c Version Packages (next) 2026-04-21 15:07:43 +00:00
github-actions[bot] 93e643d142 Version Packages 2026-04-14 14:57:31 +00:00
github-actions[bot] 6c10d88c13 Version Packages (next) 2026-04-07 15:30:58 +00:00
github-actions[bot] a2cb332e25 Version Packages (next) 2026-03-31 15:30:51 +00:00
github-actions[bot] c1b510cabb Version Packages (next) 2026-03-24 14:54:00 +00:00
github-actions[bot] 5725b5fcfa Version Packages 2026-03-17 21:39:07 +00:00
github-actions[bot] 4bd6a3a1af Version Packages (next) 2026-02-24 19:24:06 +00:00
github-actions[bot] e6df5d52ce Version Packages 2026-02-17 16:06:18 +00:00
github-actions[bot] 7c41134684 Version Packages (next) 2026-02-10 16:14:59 +00:00
Patrik Oldsberg 68eb32266d add missing jest peer deps
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-09 21:16:24 +01:00
Paul Schultz a7e0d506a2 feat: enable react router feature flags for v7
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2026-02-03 09:37:11 -06:00
github-actions[bot] 1ea737c1e2 Version Packages (next) 2026-02-03 14:24:29 +00:00
github-actions[bot] d4b85dddee Version Packages (next) 2026-01-27 15:51:11 +00:00
github-actions[bot] c24788d5bb Version Packages 2025-12-16 14:08:20 +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
github-actions[bot] 756986e5e7 Version Packages (next) 2025-11-25 16:21:32 +00:00
Patrik Oldsberg 5fc53cb298 {core,frontend}-plugin-api: inverse dependency
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 01:59:06 +01:00
github-actions[bot] 792f4d7e3d Version Packages 2025-11-18 12:23:09 +00:00
github-actions[bot] 807af8ce0e Version Packages (next) 2025-10-21 16:14:43 +00:00
github-actions[bot] d6ce2db9ca Version Packages 2025-10-14 15:29:54 +00:00
github-actions[bot] ffb5b44d86 Version Packages (next) 2025-09-30 14:42:12 +00:00
github-actions[bot] c2c60546d2 Version Packages (next) 2025-09-24 12:57:42 +00:00
github-actions[bot] b93a3471c2 Version Packages 2025-08-19 13:01:39 +00:00
github-actions[bot] 531a48848c Version Packages (next) 2025-07-29 14:40:44 +00:00
github-actions[bot] 9a7cae26c9 Version Packages 2025-07-15 14:26:41 +00:00
github-actions[bot] eef10dfb4d Version Packages (next) 2025-07-08 13:35:26 +00:00
github-actions[bot] 952cefedd8 Version Packages (next) 2025-07-01 11:50:02 +00:00
github-actions[bot] f1e160615c Version Packages (next) 2025-06-24 12:20:36 +00:00
github-actions[bot] 58558ef2c1 Version Packages 2025-06-17 12:45:56 +00:00
github-actions[bot] 389d265b60 Version Packages 2025-05-20 08:25:02 +00:00
github-actions[bot] 1c0cb7be17 Version Packages (next) 2025-05-13 13:52:18 +00:00
Vincenzo Scamporlino 2061b44e10 Merge pull request #29732 from backstage/rugvip/new-areas
OWNERS.md: add new distinct areas for maintainer team
2025-05-07 11:02:12 +02:00
github-actions[bot] 35a0c4b598 Version Packages (next) 2025-05-06 13:51:57 +00:00
Patrik Oldsberg 83656f8999 .github/CODEOWNERS: adjust ownership for new project areas
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-05-05 14:19:45 +02:00
Patrik Oldsberg f99f505133 Merge pull request #29786 from backstage/rugvip/i18n-jsx
core-{app,plugin}-api: add support for JSX in translation messages
2025-05-02 15:27:53 +02:00
Patrik Oldsberg 0bc1804ce5 core-{app,plugin}-api: switch i18n JSX support to no longer requrie explicit format
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-30 17:00:13 +02:00
Patrik Oldsberg b5733414ab core-app-api,test-utils: refactor i18n jsx interpolation to re-use in mock implementation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-29 17:59:59 +02:00
github-actions[bot] 125d09682e Version Packages (next) 2025-04-29 14:27:15 +00:00
github-actions[bot] 2582af906d Version Packages 2025-04-15 15:36:15 +00:00
github-actions[bot] c590c4413a Version Packages (next) 2025-04-08 18:12:41 +00:00
Paul Schultz 66d2113abe update api reports
Signed-off-by: Paul Schultz <pschultz@pobox.com>

fix linting

Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
github-actions[bot] 127408219b Version Packages 2025-03-18 12:55:57 +00:00
github-actions[bot] 68af69b2b8 Version Packages (next) 2025-03-11 16:50:56 +00:00
Patrik Oldsberg 37c6510488 packages/{backend-,}-test-utils: move jest types to dev dep
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-03-10 12:32:09 +01:00
Patrik Oldsberg 6070fcfefc update API reports for TypeScript 5.6
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-03-08 11:35:44 +01:00
github-actions[bot] 0df84b6ae4 Version Packages 2025-02-18 15:19:53 +00:00
Fredrik Adelöw 971300a41f Merge pull request #28491 from Pike/knip-workspace-config
Improve knip reports by using a single config with workspaces
2025-01-29 16:50:12 +01:00
github-actions[bot] 84fdc40c42 Version Packages (next) 2025-01-28 13:06:36 +00:00