Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps) npm update + shadow-bump of commitizen #218

Merged
merged 9 commits into from May 18, 2021

Conversation

louis-bompart
Copy link
Collaborator

@louis-bompart louis-bompart commented May 13, 2021

Issue: https://github.com/coveo/cli/security/dependabot/package-lock.json/merge/open

Diagnostic:

> npm ls merge
`-- cz-conventional-changelog@3.3.0
  `-- commitizen@4.2.3
    `-- find-node-modules@2.0.0
      `-- merge@1.2.1

Resolution: commitizen/cz-cli#824

On our end, we just 'update' the sub dep (it's janky: install the dep version you want, then uninstall it. The pkg-lock tho will keep the version you installed).

This makes so we have our dependency tree updated and don't have to wait for cz-conventional-changelog to be bumped.

Also, bonus round: I ran an npm update to dust off our deps.

Edit: Bonus round 2. Updated to prettier 2.3.0
https://prettier.io/blog/2021/05/09/2.3.0.html

Some minor changes, reapplied prettier to the project to keep it tidy


CDX-227

@louis-bompart louis-bompart changed the title npm update + shadow-bump of commitizen build(deps) npm update + shadow-bump of commitizen May 13, 2021
@github-actions
Copy link
Contributor

Pull Request Report

PR Title

❌ Title should follow the conventional commit spec:

(optional scope):

Example:

feat(cli): add new command

Comment on lines +27 to +29
({
getAllOrgsUserHasAccessTo: mockGetOrgs,
} as unknown) as AuthenticatedClient)
} as unknown as AuthenticatedClient)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

@@ -11,7 +11,7 @@ describe('hooks:prerun', () => {
const mockSet = jest.fn();

mockConfig.mockImplementation(
() => (({get: mockGet, set: mockSet} as unknown) as Config)
() => ({get: mockGet, set: mockSet} as unknown as Config)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

Comment on lines +19 to +28
({
set: mockSet,
} as unknown) as Config)
} as unknown as Config)
);

mockedClient.mockImplementation(
() =>
(({
({
getUserHasAccessToOrg: mockGetHasAccessToOrg,
} as unknown) as AuthenticatedClient)
} as unknown as AuthenticatedClient)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

Comment on lines +16 to +19
({
get: mockGet,
set: mockSet,
} as unknown) as Config)
} as unknown as Config)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

Comment on lines +55 to +58
({
get: mockConfigGet,
set: mockConfigSet,
} as unknown) as Config)
} as unknown as Config)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

Comment on lines +38 to +41
({
getAllOrgsUserHasAccessTo: mockListOrgs,
getUserHasAccessToOrg: mockGetHasAccessToOrg,
} as unknown) as AuthenticatedClient)
} as unknown as AuthenticatedClient)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prettier has spoken.

@louis-bompart louis-bompart merged commit 64d8dc9 into master May 18, 2021
@louis-bompart louis-bompart deleted the CDX-227-commitizen branch July 29, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants