Commit Graph

650 Commits

Author SHA1 Message Date
Fredrik Adelöw 7455dae884 require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:22:53 +01:00
renovate[bot] 8d9f021df5 chore(deps): update dependency @storybook/addon-mcp to v0.1.8
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-20 20:06:42 +00:00
github-actions[bot] 2e902e7b43 Version Packages 2026-01-20 16:40:05 +00:00
github-actions[bot] 880310b797 Version Packages (next) 2026-01-13 12:10:45 +00:00
renovate[bot] 92c6f7376d chore(deps): update dependency eslint-plugin-testing-library to v7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-08 16:36:49 +01:00
Fredrik Adelöw 5d71ad009e Merge pull request #32180 from backstage/storybook-mcp
Add Storybook MCP
2026-01-07 18:13:47 +01:00
github-actions[bot] e237d65cdc Version Packages (next) 2026-01-05 22:23:51 +00:00
Fredrik Adelöw 5bfc3bc31d explicitly use jest 30
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-05 10:49:44 +01:00
renovate[bot] ac85225de4 chore(deps): update dependency cross-env to v10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-31 12:44:34 +00:00
Backstage Service Account 9f1ee3e667 Version Packages (next) (#32222)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-30 16:06:20 +01:00
Backstage Service Account fea3e3972d Version Packages (next) (#32150) 2025-12-23 18:22:06 +01:00
Charles de Dreuille 2b361f5198 Add Storybook MCP
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-12-19 10:30:37 +00:00
dependabot[bot] 9c766827d7 build(deps-dev): bump storybook from 10.1.9 to 10.1.10
Bumps [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/core) from 10.1.9 to 10.1.10.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v10.1.10/code/core)

---
updated-dependencies:
- dependency-name: storybook
  dependency-version: 10.1.10
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-18 18:58:27 +00:00
Charles de Dreuille 9ba74365e5 Merge pull request #32135 from backstage/storybook-10-upgrade
Upgrade Storybook to version 10
2025-12-17 18:40:14 +00:00
github-actions[bot] c24788d5bb Version Packages 2025-12-16 14:08:20 +00:00
Charles de Dreuille 2c4f1569c1 Upgrade Storybook to version 10
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-12-16 09:26:00 +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] e08f48a9b5 Version Packages (next) 2025-12-09 15:00:09 +00:00
Fredrik Adelöw 6fc8377792 Merge pull request #32048 from awanlin/topic/plugin-directory-audit
Plugins - Added plugin directory audit script
2025-12-09 13:51:42 +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
Andre Wanlin 9b2c9a9b9e initial script
Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Plugins - Added plugin directory audit script

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Remove comments

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated log statement

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2025-12-06 11:11:38 -06:00
github-actions[bot] 336db00d21 Version Packages (next) 2025-12-02 15:37:41 +00:00
github-actions[bot] 756986e5e7 Version Packages (next) 2025-11-25 16:21:32 +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
github-actions[bot] 792f4d7e3d Version Packages 2025-11-18 12:23:09 +00:00
Fredrik Adelöw 4d744bb728 Bump old space for tsc
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-11-17 14:56:43 +01:00
github-actions[bot] 20fae88bdf Version Packages (next) 2025-11-11 21:45:56 +00:00
github-actions[bot] 3738293d26 Version Packages (next) 2025-11-04 15:00:26 +00:00
github-actions[bot] 2c1fe37d3b Version Packages (next) 2025-10-24 13:22:48 +00:00
Fredrik Adelöw 50c9b6f4ad Merge pull request #31468 from backstage/mui-to-bui
MUI to BUI migration tracker
2025-10-23 16:53:56 +02:00
Charles de Dreuille 53ed7cf358 Update Github flow
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-10-23 11:19:17 +01:00
github-actions[bot] 807af8ce0e Version Packages (next) 2025-10-21 16:14:43 +00:00
Patrik Oldsberg 43b9f8fd90 Merge pull request #31107 from drodil/local_docker_env
feat(dev): allow running example app with docker
2025-10-20 19:12:17 +02:00
Charles de Dreuille e5a002a7d5 New script to track MUI to BUI migration
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-10-18 09:08:14 +01:00
github-actions[bot] d6ce2db9ca Version Packages 2025-10-14 15:29:54 +00:00
Hellgren Heikki f78b0b02b8 feat(dev): allow running example app with docker
this PR allows backstage contributors to run the example app against
actual postgres, opensearch and redis services using docker and docker
compose file.

no changeset as this doesn't affect any published packages.

Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
2025-10-09 13:33:13 +03:00
github-actions[bot] 316d0774b8 Version Packages (next) 2025-10-07 15:00:59 +00:00
github-actions[bot] ffb5b44d86 Version Packages (next) 2025-09-30 14:42:12 +00:00
Camila Belo a5f4d995e7 fix: gendocu public apis error
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2025-09-26 11:38:04 +02:00
github-actions[bot] c2c60546d2 Version Packages (next) 2025-09-24 12:57:42 +00:00
github-actions[bot] c73bfa46d4 Version Packages (next) 2025-09-23 15:00:29 +00:00
Charles de Dreuille 938973cdf3 Fix Storybook types issues
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-09-18 15:57:24 +01:00
Charles de Dreuille bd7e339ed8 Merge pull request #31151 from backstage/chromatic
Restrict Chromatic to only build BUI
2025-09-16 16:48:37 +01:00
Fredrik Adelöw 1606115402 Merge pull request #31099 from backstage/dependabot/npm_and_yarn/vite-7.1.5
chore(deps-dev): bump vite from 7.1.2 to 7.1.5
2025-09-16 17:20:11 +02:00
Charles de Dreuille 976fa7015c Cleanup
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-09-16 16:12:40 +01:00
github-actions[bot] b799a2d07f Version Packages 2025-09-16 13:22:58 +00:00
Charles de Dreuille 4a5830f8fd Fix Chromatic
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-09-15 22:32:51 +01:00
Charles de Dreuille 15de5ccd86 Add modes + a11y
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-09-15 21:26:08 +01:00
Charles de Dreuille ba64e73717 Restrict Chromatic to only build BUI
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-09-15 20:38:20 +01:00
dependabot[bot] 31540c24c3 chore(deps-dev): bump vite from 7.1.2 to 7.1.5
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.2 to 7.1.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.1.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 17:13:11 +00:00