Commit Graph

70840 Commits

Author SHA1 Message Date
Patrik Oldsberg fc03fa6ab2 Fix backend package.json reference to search-backend-module-explore
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-23 14:44:11 +01:00
Patrik Oldsberg 07816d67f3 Address PR review comments
- Refactor targetPaths/findOwnPaths to class-based implementations with
  unified caching and .dir/.rootDir properties alongside resolve methods
- Replace jest.mock with jest.spyOn in plugin-manager.test.ts
- Remove paths compatibility wrapper from repo-tools, migrate all internal
  consumers to use targetPaths from @backstage/cli-common directly
- Fix changeset package name (@techdocs/cli not @backstage/techdocs-cli)
- Add migration examples to cli-common changeset
- Update API report for cli-common

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-23 14:44:11 +01:00
Patrik Oldsberg 70fc178697 Replace findPaths with targetPaths and findOwnPaths
Split the path resolution API in @backstage/cli-common into
targetPaths (cwd-based singleton) and findOwnPaths (package-relative).
Migrate all consumers across the repo away from the deprecated findPaths.

Rename TargetPaths/OwnPaths properties to resolve/resolveRoot,
removing the redundant type prefix from property names.

Make findOwnPaths calls lazy in modules - called inside functions
rather than at module scope.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 14:44:10 +01:00
Patrik Oldsberg 29e91e9159 Give each CLI module its own paths instead of importing from lib/
Split the paths API in @backstage/cli-common into targetPaths (a lazily
initialized singleton for cwd-based paths) and findOwnPaths (a cached function
for package-relative paths). Most CLI module files only need target paths, which
can now be imported directly without __dirname. The few files that need own paths
use findOwnPaths(__dirname).

Added hierarchical caching to findOwnDir so the filesystem walk only happens
once per package. targetPaths re-resolves automatically if process.cwd() changes.

The deprecated findPaths function is preserved for backward compatibility,
delegating to the new primitives internally.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 14:44:10 +01:00
Patrik Oldsberg 56bd494b0c Give each CLI module its own paths instead of importing from lib/
Each module file that needs paths now calls findPaths(__dirname) directly from
@backstage/cli-common. This removes the coupling between modules and lib/paths,
and will continue to work when modules are extracted into separate packages since
each package's __dirname resolves to its own root.

Added hierarchical caching to findOwnDir in cli-common so that the filesystem
walk only happens once per package - subsequent calls from sibling directories
hit the cache at a common ancestor.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 14:44:10 +01:00
Patrik Oldsberg 158bfe8a69 Give each CLI module its own paths instead of importing from lib/
Each module now has a local paths.ts that calls findPaths(__dirname) directly.
This makes modules fully independent of lib/paths.ts, and the pattern will
continue to work when modules are extracted into separate packages since each
package's __dirname will resolve to its own root.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 14:44:10 +01:00
Andre Wanlin ca0fb2d9ef Merge pull request #32950 from awanlin/topic/api-extractor-repo-tools
Updated `@microsoft/api-extractor` to `7.57.3`
2026-02-23 07:11:50 -06:00
Andre Wanlin 4541817031 Updated API reports due to the package change
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-23 06:29:04 -06:00
Patrik Oldsberg ce676fea2f Merge pull request #32904 from backstage/rugvip/translation-export-import
cli: add translations export and import commands
2026-02-23 13:18:03 +01:00
Andre Wanlin d0469f605a Updated to latest patch version
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-23 06:08:29 -06:00
Patrik Oldsberg e75d80dbc5 Merge pull request #32956 from backstage/rugvip/cli-node-parallel-helpers
cli-node: move parallel worker utilities from cli
2026-02-23 12:05:05 +01:00
Patrik Oldsberg f467a4126e Return object from runWorkerQueueThreads
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 11:38:23 +01:00
Patrik Oldsberg 951924d0c2 Update CLI changeset message
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 11:25:17 +01:00
Patrik Oldsberg 90ffb54552 Rename parallel/ to concurrency/ and split into separate files
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 11:21:51 +01:00
Patrik Oldsberg 67958e2d6c Fix prettier formatting
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 10:59:43 +01:00
Fredrik Adelöw 78b37160d6 Merge pull request #32953 from backstage/freben/catalog-client-ref
🧹  touch up the catalog client docs
2026-02-23 09:53:54 +01:00
Fredrik Adelöw e9991c2ac0 Merge pull request #32954 from backstage/freben/reversible-auth 2026-02-23 09:01:47 +01:00
Fredrik Adelöw 5805d6d79f Merge pull request #32964 from backstage/freben/catalog-ded 2026-02-23 09:01:30 +01:00
Patrik Oldsberg 1dfc3436d9 cli: address review feedback from freben
Fix whitespace alignment in CLI command summary, improve export command
description to clarify it operates from an app context, and update the
corresponding docs section.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 01:05:15 +01:00
Patrik Oldsberg 4f0c7ec86a Address PR review feedback
- Rename runParallelWorkers to runConcurrentTasks, return void
- Rename ParallelWorkerOptions to ConcurrentTasksOptions
- Rename parallelismFactor to concurrencyFactor
- Remove unused runWorkerThreads and WorkerThreadsOptions
- Rename workerData to context in WorkerQueueThreadsOptions
- Drop threadCount from public API types
- Rename env var to BACKSTAGE_CLI_CONCURRENCY
- Make cli-node changeset a patch

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-23 00:41:17 +01:00
Fredrik Adelöw 2eb3cf6344 use fake timers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-22 23:38:14 +01:00
Fredrik Adelöw fbf382f1f8 catalog: minor internal optimisation
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-22 22:37:18 +01:00
Patrik Oldsberg c8237e212d Rename parallelism env var to BACKSTAGE_CLI_PARALLELISM
Renames from BACKSTAGE_CLI_BUILD_PARALLEL to the more general
BACKSTAGE_CLI_PARALLELISM. The old name is still supported but
logs a one-time deprecation warning.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-22 17:20:16 +01:00
Patrik Oldsberg 649d3ca3b6 Remove dead parallelism options and narrow public API
The parallelism fields on bundler types (BundlingOptions, BuildOptions,
BackendBundlingOptions) and createDistWorkspace Options were defined but
never read — fully dead code. Likewise the parallelismSetting option on
ParallelWorkerOptions was never passed by any caller.

Also narrows the cli-node public API to only export the three runner
functions and their option types, keeping getEnvironmentParallelism and
parseParallelismOption as internal utilities.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-22 16:49:55 +01:00
Fredrik Adelöw 679e08b78c Merge pull request #32819 from backstage/dependabot/npm_and_yarn/microsite/qs-6.14.2
build(deps): bump qs from 6.14.1 to 6.14.2 in /microsite
2026-02-22 16:39:04 +01:00
Fredrik Adelöw 30fdd47359 Merge pull request #32888 from backstage/renovate/isomorphic-git-1.x-lockfile
chore(deps): update dependency isomorphic-git to v1.37.1
2026-02-22 16:37:14 +01:00
Fredrik Adelöw 92fca6553b Merge pull request #32898 from backstage/renovate/mysql2-3.x-lockfile
chore(deps): update dependency mysql2 to v3.17.2
2026-02-22 16:36:54 +01:00
Fredrik Adelöw 0258045df5 Merge pull request #32917 from backstage/renovate/nodemailer-7.x-lockfile
chore(deps): update dependency @types/nodemailer to v7.0.10
2026-02-22 16:35:56 +01:00
Fredrik Adelöw 159003de60 Merge pull request #32928 from backstage/renovate/swagger-ui-react-5.x-lockfile
chore(deps): update dependency swagger-ui-react to v5.31.1
2026-02-22 16:35:38 +01:00
Fredrik Adelöw aa975a6c83 Merge pull request #32927 from backstage/dependabot/npm_and_yarn/hono-4.12.0
build(deps): bump hono from 4.11.7 to 4.12.0
2026-02-22 16:35:12 +01:00
Fredrik Adelöw 6c4708b4bf Merge pull request #32941 from backstage/renovate/next-mdx-remote-client-2.x-lockfile
chore(deps): update dependency next-mdx-remote-client to v2.1.8
2026-02-22 16:34:30 +01:00
Fredrik Adelöw 869900c03e Merge pull request #32948 from backstage/renovate/storybook-addon-mcp-0.x-lockfile
chore(deps): update dependency @storybook/addon-mcp to v0.2.3
2026-02-22 16:33:53 +01:00
Fredrik Adelöw 3dc01eff5d Merge pull request #32949 from backstage/renovate/motion-12.x-lockfile
chore(deps): update dependency motion to v12.34.2
2026-02-22 16:33:01 +01:00
Fredrik Adelöw df22fef905 Merge pull request #32942 from karpfslp/fix-default-pg-connection-config-check-type
fix: default pg connection config:check type
2026-02-22 16:27:22 +01:00
Patrik Oldsberg 06c2015e5b Move parallel worker utilities to @backstage/cli-node
Moves `runParallelWorkers`, `runWorkerQueueThreads`, `runWorkerThreads`,
`parseParallelismOption`, and `getEnvironmentParallelism` from the CLI
internal lib to the shared `@backstage/cli-node` package.

This is part of the ongoing effort to make CLI modules independent of
each other and the shared lib code.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-22 16:19:49 +01:00
Fredrik Adelöw 2ba6e22d9b address review comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-22 15:37:58 +01:00
Fredrik Adelöw d2494d6319 touch up the catalog client docs
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-22 14:54:30 +01:00
Fredrik Adelöw 619be54133 auth: got rid of the sql report warnings
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-22 14:52:48 +01:00
Andre Wanlin 35e8d6cb34 Merge pull request #32813 from intelliking/fix/issue-32804
fix: Parameter field input data is obscured with dark mode on
2026-02-21 11:52:39 -06:00
Andre Wanlin 18a946c018 Updated @microsoft/api-extractor to 7.57.2
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-21 11:37:14 -06:00
renovate[bot] cf30f34746 chore(deps): update dependency motion to v12.34.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-21 16:49:27 +00:00
renovate[bot] d533ec1954 chore(deps): update dependency @storybook/addon-mcp to v0.2.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-21 16:40:33 +00:00
Patrik Oldsberg 605c98ee47 Merge pull request #32918 from backstage/renovate/qs-6.x-lockfile
chore(deps): update dependency qs to v6.15.0
2026-02-21 17:34:40 +01:00
Patrik Oldsberg aa6f4d17cc Merge pull request #32919 from backstage/renovate/undici-7.x-lockfile
chore(deps): update dependency undici to v7.22.0
2026-02-21 17:33:37 +01:00
Patrik Oldsberg eeb74ffe79 Merge pull request #32934 from soapraj/soapraj/bump-bfj-v9
cli: bump bfj dependency from ^8.0.0 to ^9.0.2
2026-02-21 17:33:13 +01:00
Patrik Oldsberg 6435f57354 Merge pull request #32945 from elaine-mattos/chore/devcontainer-improvements
chore(devcontainer): update mkdocs feature source and improve setup docs
2026-02-21 17:05:34 +01:00
ElaineDeMattosSilvaB 2f2233e8c1 chore(devcontainer): update mkdocs feature source and improve setup docs
- Update mkdocs feature from devcontainers-contrib to devcontainers-extra (ref: https://github.com/microsoft/vscode-remote-release/issues/11046)
- Clarify fork workflow in devcontainer tutorial

Signed-off-by: ElaineDeMattosSilvaB <elaine.de-mattos-silva-bezerra@deutschebahn.com>
2026-02-21 12:12:43 +01:00
Fredrik Adelöw 4e6ed1ab6b Merge pull request #32940 from backstage/dependabot/npm_and_yarn/microsite/ajv-6.14.0 2026-02-21 08:21:51 +01:00
Sandor Karpf b99158a1d8 fix: default pg connection config:check type
Signed-off-by: Sandor Karpf <sandor.karpf@lastpass.com>
2026-02-21 02:54:42 +01:00
Patrik Oldsberg f1756fe39b Merge pull request #32733 from kaidubauskas-dd/kaidd/slack-block-kit-extension
feat(notifications-slack): Create slack block kit extension
2026-02-21 00:10:24 +01:00