Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/rename-select-combobox-package.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@backstage/migrate-select-combobox-props': patch
'@backstage/v1-52-0-migration-recipe': patch
---

Rename package from @backstage/migrate-select-combobox-deprecated-props to @backstage/migrate-select-combobox-props (50-char registry name limit)
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ See the [Codemod docs](https://docs.codemod.com) for more on building and runnin

Run the [`migration-recipe`](./codemods/v1.52.0/migration-recipe) to apply every codemod below in one pass, or run any individual codemod on its own.

| Codemod | Description |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [migrate-bui-props-to-intersection](./codemods/v1.52.0/migrate-bui-props-to-intersection) | Migrate ComboboxProps/SelectProps interface extends to type intersection |
| [migrate-select-combobox-deprecated-props](./codemods/v1.52.0/migrate-select-combobox-deprecated-props) | Migrate deprecated Select/Combobox search props and option value to id |
| [migration-recipe](./codemods/v1.52.0/migration-recipe) | Migration recipe that runs every @backstage v1.52.0 codemod from the registry in a safe order. |
| [remove-stitching-strategy-mode](./codemods/v1.52.0/remove-stitching-strategy-mode) | Remove deprecated catalog.stitchingStrategy.mode from app-config |
| [rename-bui-css-tokens-v1-52](./codemods/v1.52.0/rename-bui-css-tokens-v1-52) | Rename deprecated BUI semantic color tokens |
| Codemod | Description |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [migrate-bui-props-to-intersection](./codemods/v1.52.0/migrate-bui-props-to-intersection) | Migrate ComboboxProps/SelectProps interface extends to type intersection |
| [migrate-select-combobox-props](./codemods/v1.52.0/migrate-select-combobox-props) | Migrate deprecated Select/Combobox search props and option value to id |
| [migration-recipe](./codemods/v1.52.0/migration-recipe) | Migration recipe that runs every @backstage v1.52.0 codemod from the registry in a safe order. |
| [remove-stitching-strategy-mode](./codemods/v1.52.0/remove-stitching-strategy-mode) | Remove deprecated catalog.stitchingStrategy.mode from app-config |
| [rename-bui-css-tokens-v1-52](./codemods/v1.52.0/rename-bui-css-tokens-v1-52) | Rename deprecated BUI semantic color tokens |

### v1.51.0

Expand Down Expand Up @@ -97,6 +97,4 @@ codemods/

## License

Copyright 2026 © The Backstage Authors. All rights reserved.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @backstage/migrate-select-combobox-deprecated-props
# @backstage/migrate-select-combobox-props

## 0.2.1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
schema_version: '1.0'

name: '@backstage/migrate-select-combobox-deprecated-props'
name: '@backstage/migrate-select-combobox-props'
version: '0.2.1'
description: 'Backstage 1.52.0: Migrate deprecated Select/Combobox search props and option value to id'
author: 'Paul Schultz<pschultz@redhat.com>'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@backstage/migrate-select-combobox-deprecated-props",
"name": "@backstage/migrate-select-combobox-props",
"version": "0.2.1",
"description": "Backstage 1.52.0: Migrate deprecated Select/Combobox search props and option value to id",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Codemod, Edit, SgNode } from 'codemod:ast-grep'
import type TSX from 'codemod:ast-grep/langs/tsx'
import { useMetricAtom } from 'codemod:metrics'

const migrationMetric = useMetricAtom('migrate-select-combobox-deprecated-props')
const migrationMetric = useMetricAtom('migrate-select-combobox-props')

const UI_SOURCE = '@backstage/ui'
const SELECT_COMPONENTS = new Set(['Select'])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate-select-combobox-deprecated-props": [
"migrate-select-combobox-props": [
{
"cardinality": {
"action": "search-props-migrated",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate-select-combobox-deprecated-props": [
"migrate-select-combobox-props": [
{
"cardinality": {
"action": "skipped-existing-search",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate-select-combobox-deprecated-props": [
"migrate-select-combobox-props": [
{
"cardinality": {
"action": "option-value-to-id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate-select-combobox-deprecated-props": [
"migrate-select-combobox-props": [
{
"cardinality": {
"action": "search-props-migrated",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"migrate-select-combobox-deprecated-props": [
"migrate-select-combobox-props": [
{
"cardinality": {
"action": "todo-variable-options",
Expand Down
12 changes: 6 additions & 6 deletions codemods/v1.52.0/migration-recipe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Run every `@backstage/*` v1.52.0 codemod from the [Codemod Registry](https://go.

## What it runs

| # | Package | Domain | Type |
| --- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- | ----------- |
| 1 | [`@backstage/migrate-bui-props-to-intersection`](https://go.codemod.com/registry?q=backstage+migrate-bui-props-to-intersection) | @backstage/ui — type change | breaking |
| 2 | [`@backstage/remove-stitching-strategy-mode`](https://go.codemod.com/registry?q=backstage+remove-stitching-strategy-mode) | app-config — catalog config | breaking |
| 3 | [`@backstage/rename-bui-css-tokens-v1-52`](https://go.codemod.com/registry?q=backstage+rename-bui-css-tokens-v1-52) | @backstage/ui — CSS tokens | deprecation |
| 4 | [`@backstage/migrate-select-combobox-deprecated-props`](https://go.codemod.com/registry?q=backstage+migrate-select-combobox-deprecated-props) | @backstage/ui — JSX props | deprecation |
| # | Package | Domain | Type |
| --- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------- | ----------- |
| 1 | [`@backstage/migrate-bui-props-to-intersection`](https://go.codemod.com/registry?q=backstage+migrate-bui-props-to-intersection) | @backstage/ui — type change | breaking |
| 2 | [`@backstage/remove-stitching-strategy-mode`](https://go.codemod.com/registry?q=backstage+remove-stitching-strategy-mode) | app-config — catalog config | breaking |
| 3 | [`@backstage/rename-bui-css-tokens-v1-52`](https://go.codemod.com/registry?q=backstage+rename-bui-css-tokens-v1-52) | @backstage/ui — CSS tokens | deprecation |
| 4 | [`@backstage/migrate-select-combobox-props`](https://go.codemod.com/registry?q=backstage+migrate-select-combobox-props) | @backstage/ui — JSX props | deprecation |

## Usage

Expand Down
2 changes: 1 addition & 1 deletion codemods/v1.52.0/migration-recipe/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ nodes:

- name: 'Migrate deprecated Select/Combobox search props and option value to id'
codemod:
source: '@backstage/migrate-select-combobox-deprecated-props'
source: '@backstage/migrate-select-combobox-props'
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ __metadata:
languageName: unknown
linkType: soft

"@backstage/migrate-select-combobox-deprecated-props@workspace:codemods/v1.52.0/migrate-select-combobox-deprecated-props":
"@backstage/migrate-select-combobox-props@workspace:codemods/v1.52.0/migrate-select-combobox-props":
version: 0.0.0-use.local
resolution: "@backstage/migrate-select-combobox-deprecated-props@workspace:codemods/v1.52.0/migrate-select-combobox-deprecated-props"
resolution: "@backstage/migrate-select-combobox-props@workspace:codemods/v1.52.0/migrate-select-combobox-props"
dependencies:
"@codemod.com/jssg-types": "npm:1.6.2"
codemod: "npm:1.12.3"
Expand Down