Skip to content

fix: upgrade toolkit-lib and use stack displayName #134

Merged
corymhall merged 6 commits intov2-betafrom
corymhall/upgrade-toolkit-lib
May 14, 2025
Merged

fix: upgrade toolkit-lib and use stack displayName #134
corymhall merged 6 commits intov2-betafrom
corymhall/upgrade-toolkit-lib

Conversation

@corymhall
Copy link
Owner

This upgrades toolkit-lib to the latest version which fixes the libCheck
typechecking. In the latest version toolkit-lib also updates the diff to
use the stack display name instead of the name/id so this updates the
action to also use the display name.

This upgrades toolkit-lib to the latest version which fixes the libCheck
typechecking. In the latest version toolkit-lib also updates the diff to
use the stack display name instead of the name/id so this updates the
action to also use the display name.
@corymhall corymhall requested a review from Copilot May 11, 2025 12:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades toolkit-lib and refactors the code to use the stack display name instead of the name/id, while also switching from yarn to npm for dependency management.

  • Upgrade toolkit-lib and related dependencies in package.json
  • Update stack name handling in assembly and test files to use displayName
  • Migrate package manager commands from yarn to npm in projen configuration and workflow files

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.dev.json Removed skipLibCheck to leverage improved libCheck typechecking
test/stage-processor.test.ts Updated displayName usage in test assertions and removed an unnecessary type cast
test/assembly.test.ts Adjusted manifest keys and stack names to align with the new displayName format
src/assembly.ts Switched to using stack.displayName to determine the stack name
package.json Upgraded @aws-cdk/toolkit-lib and other dependencies
.projenrc.ts Added explicit package manager setting and removed skipLibCheck comments
.projen/tasks.json Replaced yarn commands with corresponding npm commands
.github/workflows/*.yml Updated dependency installation commands to npm
.gitattributes Added package-lock.json and removed yarn.lock entry
Comments suppressed due to low confidence (2)

test/stage-processor.test.ts:115

  • Removal of the type assertion might lead to type errors if stageComments is not publicly accessible; please verify that this change aligns with the type safety requirements of the project.
const p = processor.stageComments;

test/stage-processor.test.ts:566

  • Ensure that changing the stack's internal name from the previous format is consistent with displayName usage across the project and does not break external references.
name: `my-stack${i}`,

@corymhall corymhall merged commit db58dc1 into v2-beta May 14, 2025
6 checks passed
@corymhall corymhall deleted the corymhall/upgrade-toolkit-lib branch May 14, 2025 12:08
rantoniuk added a commit to rantoniuk/corymhall-cdk-diff-action that referenced this pull request Jun 2, 2025
* v2-beta:
  fix: process longer comments (corymhall#137)
  fix: upgrade toolkit-lib and use stack displayName  (corymhall#134)
corymhall added a commit that referenced this pull request Jun 20, 2025
This upgrades toolkit-lib to the latest version which fixes the libCheck
typechecking. In the latest version toolkit-lib also updates the diff to
use the stack display name instead of the name/id so this updates the
action to also use the display name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants