Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@camden11 camden11 released this 26 Nov 21:03

Commit diff

Changes

  • Breaking change: Mode has been renamed to CmsPublishMode. This causes breaking changes in a few places
    • The new and legacy config modules now use defaultCmsPublishMode when creating and writing to configs. They are backwards compatible with reading configs using the old defaultMode setting
    • All functions, constants, and types exported from the library that referenced mode in their name have been renamed accordingly
      • For example updateDefaultMode is now updateDefaultCmsPublishMode. The MODE constant is now CMS_PUBLISH_MODE
    • The CliConfiguration type has been updated to make cmsPublishMode of type CmsPublishMode rather than string. This restricts its values to “draft” and “publish”
  • Breaking type change: The return type for all api modules has been changed from AxiosPromise to HubSpotPromise. HubSpotPromise is essentially just a rename of AxiosPromise - the structure of the two types is identical. This change was made so libraries that use local-dev-lib could import the return type of API functions directly from the library itself, rather than having to add Axios as a dependency.

Merged PRs

Full Changelog: v2.3.0...v3.0.0