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

chore!: Rename Mode to CmsPublishMode #216

Merged
merged 6 commits into from
Nov 25, 2024
Merged

chore!: Rename Mode to CmsPublishMode #216

merged 6 commits into from
Nov 25, 2024

Conversation

camden11
Copy link
Contributor

@camden11 camden11 commented Nov 22, 2024

Description and Context

See https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/718
This updates all references to mode to cmsPublishMode and renames all related functions and variables. It also changes the defaultMode setting within hubspot.config.yml to defaultCmsPublishMode. Both the new and legacy config modules have been updated to be able to read configs with either defaultMode or defaultCmsPublishMode, but will now always use defaultCmsPublishMode when making updates to config files.

Currently released on v0.1.0-experimental.0

TODO

Test thoroughly. Also might be worth updating the config unit tests to test the backwards compatibility functionality/

Who to Notify

@brandenrodgers @kemmerle @joe-yeager

@camden11 camden11 changed the title Rename Mode to CmsPublishMode Breaking change: Rename Mode to CmsPublishMode Nov 22, 2024
@camden11 camden11 marked this pull request as ready for review November 22, 2024 22:27
@camden11 camden11 changed the title Breaking change: Rename Mode to CmsPublishMode chore!: Rename Mode to CmsPublishMode Nov 22, 2024
package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "@hubspot/local-dev-lib",
"version": "2.3.0",
"version": "0.1.0-experimental.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Remember to change this back when you merge.

Copy link
Contributor

@kemmerle kemmerle left a comment

Choose a reason for hiding this comment

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

Tested out the changes with both the new and deprecated config, updating both defaultMode and defaultCmsPublishMode. It all appears to be WAD to me, unless there are other test scenarios I'm missing.

@camden11 camden11 merged commit ab7337c into main Nov 25, 2024
1 check passed
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.

2 participants