Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TryGhost/SDK
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @tryghost/helpers@1.1.70
Choose a base ref
...
head repository: TryGhost/SDK
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @tryghost/helpers@1.1.71
Choose a head ref
  • 15 commits
  • 12 files changed
  • 3 contributors

Commits on May 30, 2022

  1. Bumped default accept-content version to v5.0

    refs https://github.com/TryGhost/Toolbox/issues/348
    
    - With the release of Ghost v5 the default content version should be sent as "v5.0"
    naz committed May 30, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    ewokcami Camilla Odlund
    Copy the full SHA
    2033456 View commit details
  2. Fixed tests after a version bump

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs 2033456
    
    - Tests should've been updated for admin-api-sdk package too!
    naz committed May 30, 2022
    Copy the full SHA
    c060d5c View commit details
  3. Copy the full SHA
    6d2c473 View commit details
  4. Published new versions

     - @tryghost/admin-api@1.12.2
     - @tryghost/content-api@1.10.1
     - @tryghost/helpers-gatsby@2.0.0
    aileen committed May 30, 2022
    Copy the full SHA
    ce79057 View commit details

Commits on May 31, 2022

  1. 🔥 Dropped support for "host" parameter in Admin API SDK

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs 9d44031
    
    - The "host" parameter has been deprecated for few years now. It is not used in any of the clients we maintain and anybody who uses it externally had enough time to migrate.
    naz committed May 31, 2022
    Copy the full SHA
    931c845 View commit details
  2. 🔥 Dropped support for "host" parameter in Content API SDK

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs 9d44031
    
    - The "host" parameter has been deprecated for few years now. It is not used in any of the clients we maintain and anybody who uses it externally had enough time to migrate.
    naz committed May 31, 2022
    Copy the full SHA
    7fe05c1 View commit details
  3. Allowed disabling setting of 'User-Agent' header

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs https://github.com/TryGhost/Toolbox/issues/301
    refs #426
    
    - In certain environments (e.g. web browser) the client might want to disable sending User-Agent variable to avoid errors like in #426.
    - This is also a groundwork to have smarter defaults based on the environment - userAgent header would be disabled by default in browser environments as that's the main use case and will be enabled for nodejs environment
    naz committed May 31, 2022
    Copy the full SHA
    081a19a View commit details
  4. Disabled setting 'User-Agent' in browser environments by default

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs https://github.com/TryGhost/Toolbox/issues/301
    closes  #426
    refs https://bugs.chromium.org/p/chromium/issues/detail?id=571722
    
    - When Content API SDK is used in Chrome browser the requests are throwing "Refused to set unsafe header "User-Agent" errors. This is a bug in chrome due to historical reasons - the "User-Agent" header used to be on a "forbidden header names" list and still is in chrome.
    - In case the client needs to send the User-Agent header in Firefox for example the SDK can be configured with `userAgent: true` parameter
    naz committed May 31, 2022
    Copy the full SHA
    c90947f View commit details
  5. Enabled setting custom 'User-Agent' header

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs https://github.com/TryGhost/Toolbox/issues/301
    
    - Allows for a full control over the 'User-Agent' header. Enables customizing the header in whatever way the client needs (for example prepending a value when there's a wrapping library using the SDK)
    naz committed May 31, 2022
    Copy the full SHA
    39d539d View commit details
  6. Allowed disabling setting of 'UserAgent' header

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs https://github.com/TryGhost/Toolbox/issues/301
    
    - The behavior is symmetric to the one in Conte API SDK allowing to optionaly disable sending User-Agent header. Gives more control to the client to skip sending the header for whatever reason
    naz committed May 31, 2022
    Copy the full SHA
    683d24d View commit details
  7. Enabled setting custom 'User-Agent' header in Admin API SDK

    refs https://github.com/TryGhost/Toolbox/issues/348
    refs https://github.com/TryGhost/Toolbox/issues/301
    
    - Allows for a full control over the 'User-Agent' header. Enables customizing the header in whatever way the client needs (for example prepending a value when there's a wrapping library using the SDK)
    naz committed May 31, 2022
    Copy the full SHA
    1c564d5 View commit details
  8. Update rollup + plugins

    renovate-bot authored and renovate[bot] committed May 31, 2022
    Copy the full SHA
    64b67df View commit details

Commits on Jun 1, 2022

  1. Reverted "🔥 Dropped support for "host" parameter in Content API SDK"

    reverts 7fe05c1.
    refs https://github.com/TryGhost/Toolbox/issues/348
    
    - This is a breaking change and should go into a major release instead
    of a patch release, that is planned to be done next
    naz committed Jun 1, 2022
    Copy the full SHA
    3ad61a9 View commit details
  2. Reverted "🔥 Dropped support for "host" parameter in Admin API SDK"

    reverts 931c845.
    refs https://github.com/TryGhost/Toolbox/issues/348
    
    - Dropping the parameter would be breaking changes and would need a
    major release. That would be done after recent bugfixes come in and
    are released as a part of a minor bump
    naz committed Jun 1, 2022
    Copy the full SHA
    a0c4d35 View commit details
  3. Published new versions

     - @tryghost/admin-api@1.13.0
     - @tryghost/color-utils@0.1.19
     - @tryghost/content-api@1.11.0
     - @tryghost/helpers-gatsby@2.0.1
     - @tryghost/helpers@1.1.71
     - @tryghost/timezone-data@0.2.70
    naz committed Jun 1, 2022
    Copy the full SHA
    a1f560e View commit details
Loading