@flit/cdk-pipeline 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flit/cdk-pipeline",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "A highly customizable and extensible CI/CD pipeline intended as alternative to CDK's native CodePipeline",
5
5
  "keywords": [
6
6
  "aws",
@@ -51,18 +51,18 @@
51
51
  "useTabs": true
52
52
  },
53
53
  "devDependencies": {
54
- "@types/node": "^24.3.1",
55
- "aws-cdk-lib": "^2.214.0",
56
- "constructs": "^10.4.2",
57
- "jsii": "^5.9.4",
58
- "jsii-pacmak": "^1.114.1",
59
- "prettier": "^3.6.2",
60
- "prettier-plugin-packagejson": "^2.5.19",
61
- "typescript": "^5.9.2"
54
+ "@types/node": "^25.0.3",
55
+ "aws-cdk-lib": "^2.232.0",
56
+ "constructs": "^10.4.0",
57
+ "jsii": "^5.9.22",
58
+ "jsii-pacmak": "^1.125.0",
59
+ "prettier": "^3.7.4",
60
+ "prettier-plugin-packagejson": "^2.5.20",
61
+ "typescript": "^5.9.3"
62
62
  },
63
63
  "peerDependencies": {
64
- "aws-cdk-lib": "^2.210.0",
65
- "constructs": "^10.4.2"
64
+ "aws-cdk-lib": "^2.232.0",
65
+ "constructs": "^10.4.0"
66
66
  },
67
67
  "publishConfig": {
68
68
  "access": "public"
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "targets": {
77
77
  "java": {
78
- "package": "flit.cdk-pipeline",
78
+ "package": "flit.cdk.pipeline",
79
79
  "maven": {
80
80
  "groupId": "flit",
81
81
  "artifactId": "cdk-pipeline"
@@ -86,8 +86,7 @@
86
86
  "packageId": "Flit.CDK.Pipeline"
87
87
  },
88
88
  "python": {
89
- "libName": "flit.cdk-pipeline",
90
- "module": "flit.cdk-pipeline",
89
+ "module": "flit.cdk.pipeline",
91
90
  "classifiers": [
92
91
  "Framework :: AWS CDK",
93
92
  "Framework :: AWS CDK :: 2"
@@ -3,7 +3,7 @@ import {
3
3
  CodeCommitSourceAction,
4
4
  CodeCommitTrigger,
5
5
  } from "aws-cdk-lib/aws-codepipeline-actions";
6
- import { IRepository } from "aws-cdk-lib/aws-codecommit";
6
+ import { Repository } from "aws-cdk-lib/aws-codecommit";
7
7
 
8
8
  import { Pipeline } from "./pipeline";
9
9
  import { Artifact } from "./artifact";
@@ -11,7 +11,8 @@ import { SegmentConstructed } from "./segment";
11
11
  import { SourceSegment, SourceSegmentProps } from "./source-segment";
12
12
 
13
13
  export interface CodeCommitSourceSegmentProps extends SourceSegmentProps {
14
- readonly repository: IRepository;
14
+ readonly repositoryName: string;
15
+ readonly repositoryArn: string;
15
16
  readonly branch?: string;
16
17
  readonly trigger?: CodeCommitTrigger;
17
18
  readonly variablesNamespace?: string;
@@ -27,7 +28,9 @@ export class CodeCommitSourceSegment extends SourceSegment {
27
28
  this.props = props;
28
29
  }
29
30
  construct(scope: Pipeline): SegmentConstructed {
30
- const name = `${this.props.repository}-${this.props.branch || "master"}`;
31
+ const name = `${this.props.repositoryName}-${
32
+ this.props.branch || "master"
33
+ }`;
31
34
 
32
35
  return new CodeCommitSourceSegmentConstructed(scope, name, {
33
36
  ...this.props,
@@ -39,7 +42,7 @@ export class CodeCommitSourceSegment extends SourceSegment {
39
42
  export interface CodeCommitSourceSegmentConstructedProps {
40
43
  readonly output: Artifact;
41
44
  readonly actionName: string;
42
- readonly repository: IRepository;
45
+ readonly repositoryArn: string;
43
46
  readonly branch?: string;
44
47
  readonly trigger?: CodeCommitTrigger;
45
48
  readonly variablesNamespace?: string;
@@ -55,6 +58,15 @@ export class CodeCommitSourceSegmentConstructed extends SegmentConstructed {
55
58
  ) {
56
59
  super(scope, id);
57
60
  this.name = "Source";
58
- this.actions = [new CodeCommitSourceAction(props)];
61
+ this.actions = [
62
+ new CodeCommitSourceAction({
63
+ repository: Repository.fromRepositoryArn(
64
+ this,
65
+ "Repository",
66
+ props.repositoryArn,
67
+ ),
68
+ ...props,
69
+ }),
70
+ ];
59
71
  }
60
72
  }