Changes
- Breaking change:
Mode
has been renamed toCmsPublishMode
. 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 olddefaultMode
setting - All functions, constants, and types exported from the library that referenced
mode
in their name have been renamed accordingly- For example
updateDefaultMode
is nowupdateDefaultCmsPublishMode
. TheMODE
constant is nowCMS_PUBLISH_MODE
- For example
- The
CliConfiguration
type has been updated to makecmsPublishMode
of typeCmsPublishMode
rather thanstring
. This restricts its values to “draft” and “publish”
- The new and legacy config modules now use
- Breaking type change: The return type for all api modules has been changed from
AxiosPromise
toHubSpotPromise
.HubSpotPromise
is essentially just a rename ofAxiosPromise
- 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
- More release script improvements by @camden11 in #211
- Update next tag for latest releases, not experimental by @camden11 in #212
- Only prompt to create release for latest releases by @camden11 in #213
- chore: Update config mode to Mode type by @camden11 in #215
- chore!: Rename Mode to CmsPublishMode by @camden11 in #216
- fix!: Wrap Axios type and export new type by @joe-yeager in #210
Full Changelog: v2.3.0...v3.0.0