Skip to content

Commit

Permalink
feat: upgrade to AWS CDK v2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: package now requires  AWS CDK v2
  • Loading branch information
mrgrain committed Dec 4, 2021
1 parent 03e5e9b commit c83b3e4
Show file tree
Hide file tree
Showing 15 changed files with 8,234 additions and 9,971 deletions.
104 changes: 14 additions & 90 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 13 additions & 20 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,29 @@ const project = new AwsCdkConstructLibrary({

// Release
packageManager: NodePackageManager.NPM,
npmDistTag: 'latest',
defaultReleaseBranch: 'main',
majorVersion: 2,
npmDistTag: 'next',
defaultReleaseBranch: 'next',
majorVersion: 3,
prerelease: 'rc',
releaseTrigger: release.ReleaseTrigger.manual(),
catalog: {
twitter: '@mrgrain',
},
workflowContainerImage: 'jsii/superchain:1-buster-slim-node14',

// Dependencies
cdkVersion: '1.99.0',
cdkDependencies: [
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-s3',
'@aws-cdk/aws-s3-assets',
'@aws-cdk/aws-s3-deployment',
'@aws-cdk/aws-synthetics',
'@aws-cdk/core',
],
cdkTestDependencies: [
'@aws-cdk/assert',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-s3',
'@aws-cdk/aws-s3-assets',
'@aws-cdk/aws-s3-deployment',
'@aws-cdk/aws-synthetics',
'@aws-cdk/core',
cdkVersion: '2.0.0',
peerDeps: [
'aws-cdk-lib@^2.0.0',
],
cdkDependencies: [],
cdkTestDependencies: [],
cdkAssert: false,
devDeps: [
'@aws-cdk/aws-synthetics-alpha',
'@types/eslint',
'[email protected]',
'[email protected]',
'esbuild@^0.14.0',
'ts-morph',
],
Expand Down
34 changes: 17 additions & 17 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ const codeConfig: CodeConfig = { ... }
public readonly s3Location: Location;
```

- *Type:* [`@aws-cdk/aws-s3.Location`](#@aws-cdk/aws-s3.Location)
- *Type:* [`aws-cdk-lib.aws_s3.Location`](#aws-cdk-lib.aws_s3.Location)

The location of the code in S3.

Expand Down Expand Up @@ -1563,7 +1563,7 @@ E.g. `src/index.ts`.
public readonly image: DockerImage;
```

- *Type:* [`@aws-cdk/core.DockerImage`](#@aws-cdk/core.DockerImage)
- *Type:* [`aws-cdk-lib.DockerImage`](#aws-cdk-lib.DockerImage)

---

Expand All @@ -1573,7 +1573,7 @@ public readonly image: DockerImage;
public readonly local: ILocalBundling;
```

- *Type:* [`@aws-cdk/core.ILocalBundling`](#@aws-cdk/core.ILocalBundling)
- *Type:* [`aws-cdk-lib.ILocalBundling`](#aws-cdk-lib.ILocalBundling)

Implementation of `ILocalBundling` interface, responsible for calling esbuild functions.

Expand Down Expand Up @@ -1764,7 +1764,7 @@ new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)

##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

Expand Down Expand Up @@ -1829,7 +1829,7 @@ public bind(scope: Construct)

###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

Expand All @@ -1841,13 +1841,13 @@ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)

###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.resource"></a>

- *Type:* [`@aws-cdk/core.CfnResource`](#@aws-cdk/core.CfnResource)
- *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)

---

###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.options"></a>

- *Type:* [`@aws-cdk/aws-lambda.ResourceBindOptions`](#@aws-cdk/aws-lambda.ResourceBindOptions)
- *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)

---

Expand All @@ -1871,7 +1871,7 @@ Determines whether this Code is inline code or not.

### JavaScriptSource <a name="@mrgrain/cdk-esbuild.JavaScriptSource"></a>

- *Implements:* [`@aws-cdk/aws-s3-deployment.ISource`](#@aws-cdk/aws-s3-deployment.ISource)
- *Implements:* [`aws-cdk-lib.aws_s3_deployment.ISource`](#aws-cdk-lib.aws_s3_deployment.ISource)

#### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptSource.Initializer"></a>

Expand Down Expand Up @@ -1903,13 +1903,13 @@ public bind(scope: Construct, context?: DeploymentSourceContext)

###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

###### `context`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSource.parameter.context"></a>

- *Type:* [`@aws-cdk/aws-s3-deployment.DeploymentSourceContext`](#@aws-cdk/aws-s3-deployment.DeploymentSourceContext)
- *Type:* [`aws-cdk-lib.aws_s3_deployment.DeploymentSourceContext`](#aws-cdk-lib.aws_s3_deployment.DeploymentSourceContext)

---

Expand Down Expand Up @@ -1943,7 +1943,7 @@ new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)

##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

Expand Down Expand Up @@ -2008,7 +2008,7 @@ public bind(scope: Construct)

###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

Expand All @@ -2020,13 +2020,13 @@ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)

###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.resource"></a>

- *Type:* [`@aws-cdk/core.CfnResource`](#@aws-cdk/core.CfnResource)
- *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)

---

###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.options"></a>

- *Type:* [`@aws-cdk/aws-lambda.ResourceBindOptions`](#@aws-cdk/aws-lambda.ResourceBindOptions)
- *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)

---

Expand All @@ -2050,7 +2050,7 @@ Determines whether this Code is inline code or not.

### TypeScriptSource <a name="@mrgrain/cdk-esbuild.TypeScriptSource"></a>

- *Implements:* [`@aws-cdk/aws-s3-deployment.ISource`](#@aws-cdk/aws-s3-deployment.ISource)
- *Implements:* [`aws-cdk-lib.aws_s3_deployment.ISource`](#aws-cdk-lib.aws_s3_deployment.ISource)

#### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptSource.Initializer"></a>

Expand Down Expand Up @@ -2082,13 +2082,13 @@ public bind(scope: Construct, context?: DeploymentSourceContext)

###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.scope"></a>

- *Type:* [`@aws-cdk/core.Construct`](#@aws-cdk/core.Construct)
- *Type:* [`constructs.Construct`](#constructs.Construct)

---

###### `context`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSource.parameter.context"></a>

- *Type:* [`@aws-cdk/aws-s3-deployment.DeploymentSourceContext`](#@aws-cdk/aws-s3-deployment.DeploymentSourceContext)
- *Type:* [`aws-cdk-lib.aws_s3_deployment.DeploymentSourceContext`](#aws-cdk-lib.aws_s3_deployment.DeploymentSourceContext)

---

Expand Down
Loading

0 comments on commit c83b3e4

Please sign in to comment.