Skip to content

Commit

Permalink
feat!: upgrade to [email protected] and [email protected] (#665)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The JavaScript versions of all classes have been removed. They have been functionally identical to the TypeScript versions since the beginning. Please use the TypeScript versions of the classes going forward.

BREAKING CHANGE: Low-level experimental classes `EsbuildAsset` and `EsbuildCode` have been removed. Please use `TypeScriptAsset` and `TypeScriptCode` respectively.
  • Loading branch information
mrgrain authored Sep 4, 2023
1 parent 8f935d5 commit fd7404f
Show file tree
Hide file tree
Showing 15 changed files with 1,541 additions and 2,070 deletions.
26 changes: 7 additions & 19 deletions .projen/deps.json

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

4 changes: 2 additions & 2 deletions .projen/tasks.json

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

16 changes: 15 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ const releaseBranches: StableReleaseBranches = {
minNodeVersion: '18.x',
releaseSchedule: '0 5 1,15 * *',
npmDistTags: ['cdk-v2'],
jsiiVersion: '5.1.x',
typescriptVersion: '5.1.x',
},
v4: {
majorVersion: 4,
cdkVersion: '2.12.0',
minNodeVersion: '16.x', // should be 14.x but that version doesn't build anymore
releaseSchedule: '0 5 15 * *',
jsiiVersion: '1.x',
typescriptVersion: '4.9.x',
},
v3: {
majorVersion: 3,
cdkVersion: '2.0.0',
minNodeVersion: '16.x', // should be 14.x but that version doesn't build anymore
releaseSchedule: '0 5 15 * *',
jsiiVersion: '1.x',
typescriptVersion: '4.9.x',
},
};

Expand Down Expand Up @@ -103,6 +109,8 @@ const project = new awscdk.AwsCdkConstructLibrary({

// Dependencies
cdkVersion: releaseBranches.main.cdkVersion,
jsiiVersion: releaseBranches.main.jsiiVersion,
typescriptVersion: releaseBranches.main.typescriptVersion,
devDeps: [
`@aws-cdk/aws-synthetics-alpha@${releaseBranches.main.cdkVersion}-alpha.0`,
'@types/eslint',
Expand Down Expand Up @@ -194,7 +202,13 @@ project.buildWorkflow?.addPostBuildJob('test-latest-versions', {

// jsii rosetta
project.package.addField('jsiiRosetta', {
strict: false,
strict: true,
exampleDependencies: {
'@aws-cdk/aws-synthetics-alpha': '2.88.0-alpha.0',
'aws-cdk-lib': '2.88.0',
'@mrgrain/cdk-esbuild': '^4',
'@types/node': '^18',
},
});
const rosetta = project.addTask('rosetta', { exec: 'jsii-rosetta extract' });
project.tasks.tryFind('post-compile')?.prependSpawn(rosetta);
Expand Down
Loading

0 comments on commit fd7404f

Please sign in to comment.