Skip to content

Commit fb2bc62

Browse files
backstage-servicegithub-actions[bot]andreahlert
authored
n8n - version:bump to v1.49.2 (#8265)
* v1.49.2 version bump * fix(n8n): resolve TS2742 and NoInfer build errors for v1.49.2 Add explicit FrontendPlugin, ExtensionDefinition, and ApiRef type annotations to fix TS2742 errors from changed internal type paths in @backstage/frontend-plugin-api. Bump TypeScript from ~5.3.0 to ~5.4.0 to support NoInfer<T> used by react-aria-components@1.15.1. Signed-off-by: André Ahlert <andre@aex.partners> * fix(n8n): use satisfies instead of explicit type annotations Preserves concrete generic types instead of widening them to base FrontendPlugin/ExtensionDefinition defaults. Signed-off-by: André Ahlert <andre@aex.partners> --------- Signed-off-by: André Ahlert <andre@aex.partners> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: André Ahlert <andre@aex.partners>
1 parent bc9a6ad commit fb2bc62

11 files changed

Lines changed: 1832 additions & 682 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@backstage-community/plugin-n8n': minor
3+
'@backstage-community/plugin-n8n-backend': minor
4+
'@backstage-community/plugin-n8n-common': minor
5+
---
6+
7+
Backstage version bump to v1.49.2

workspaces/n8n/.yarn/plugins/@yarnpkg/plugin-backstage.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

workspaces/n8n/.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
plugins:
2-
- checksum: b3b00465cee9a55ea92b7555876084a6dbfb4b9dd2ce7617a0bca1c138dec6b33befabdff7f4035b2a2ad70d59a05dad3a8faf3a34d3bec21fa7949a497fdf48
2+
- checksum: 05b51f75814596aa3e15b296af3287240351c8b7f1df1e05c2ceedf7f3820627759605825fd932f1f7c3c3287b61b16f9e8195b0927a0f80345493f81376947a
33
path: .yarn/plugins/@yarnpkg/plugin-backstage.cjs
4-
spec: 'https://versions.backstage.io/v1/releases/1.48.2/yarn-plugin'
4+
spec: 'https://versions.backstage.io/v1/releases/1.49.2/yarn-plugin'

workspaces/n8n/backstage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "1.48.2"
2+
"version": "1.49.2"
33
}

workspaces/n8n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"knip": "^5.27.4",
4343
"node-gyp": "^10.0.0",
4444
"prettier": "^2.3.2",
45-
"typescript": "~5.3.0"
45+
"typescript": "~5.4.0"
4646
},
4747
"resolutions": {
4848
"@types/react": "^18",

workspaces/n8n/plugins/n8n/src/alpha.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
* limitations under the License.
1515
*/
1616
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
17-
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
17+
import {
18+
createFrontendPlugin,
19+
FrontendPlugin,
20+
} from '@backstage/frontend-plugin-api';
1821
import {
1922
entityN8nContent,
2023
entityN8nLatestExecutionCard,
@@ -37,4 +40,4 @@ export default createFrontendPlugin({
3740
entityN8nWorkflowsTable,
3841
n8nApi,
3942
],
40-
});
43+
}) satisfies FrontendPlugin;

workspaces/n8n/plugins/n8n/src/alpha/apis.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
ApiBlueprint,
1818
discoveryApiRef,
1919
fetchApiRef,
20+
ExtensionDefinition,
2021
} from '@backstage/frontend-plugin-api';
2122
import { n8nApiRef, N8nClient } from '../api';
2223

@@ -35,4 +36,4 @@ export const n8nApi = ApiBlueprint.make({
3536
factory: ({ discoveryApi, fetchApi }) =>
3637
new N8nClient({ discoveryApi, fetchApi }),
3738
}),
38-
});
39+
}) satisfies ExtensionDefinition;

workspaces/n8n/plugins/n8n/src/alpha/entityCards.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import { ExtensionDefinition } from '@backstage/frontend-plugin-api';
1617
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
1718
import { isN8nAvailable } from '../components/Router';
1819

@@ -28,7 +29,7 @@ export const entityN8nLatestExecutionCard = EntityCardBlueprint.make({
2829
'../components/N8nLatestExecutionCard/N8nLatestExecutionCard'
2930
).then(m => <m.N8nLatestExecutionCard />),
3031
},
31-
});
32+
}) satisfies ExtensionDefinition;
3233

3334
/**
3435
* @alpha
@@ -42,4 +43,4 @@ export const entityN8nWorkflowsTable = EntityCardBlueprint.make({
4243
<m.N8nWorkflowsTable />
4344
)),
4445
},
45-
});
46+
}) satisfies ExtensionDefinition;

workspaces/n8n/plugins/n8n/src/alpha/entityContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
compatWrapper,
1818
convertLegacyRouteRef,
1919
} from '@backstage/core-compat-api';
20+
import { ExtensionDefinition } from '@backstage/frontend-plugin-api';
2021
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
2122
import { rootRouteRef } from '../plugin';
2223
import { isN8nAvailable } from '../components/Router';
@@ -34,4 +35,4 @@ export const entityN8nContent = EntityContentBlueprint.make({
3435
loader: () =>
3536
import('../components/Router').then(m => compatWrapper(<m.Router />)),
3637
},
37-
});
38+
}) satisfies ExtensionDefinition;

workspaces/n8n/plugins/n8n/src/api/N8nApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { createApiRef } from '@backstage/core-plugin-api';
17+
import { ApiRef, createApiRef } from '@backstage/core-plugin-api';
1818
import type { N8nWorkflow, N8nExecution } from './types';
1919

2020
/** @public */
@@ -27,6 +27,6 @@ export interface N8nApi {
2727
}
2828

2929
/** @public */
30-
export const n8nApiRef = createApiRef<N8nApi>({
30+
export const n8nApiRef: ApiRef<N8nApi> = createApiRef<N8nApi>({
3131
id: 'plugin.n8n.service',
3232
});

0 commit comments

Comments
 (0)