-
-
Notifications
You must be signed in to change notification settings - Fork 78
Comparing changes
Open a pull request
base repository: TryGhost/SDK
base: @tryghost/helpers@1.1.70
head repository: TryGhost/SDK
compare: @tryghost/helpers@1.1.71
- 15 commits
- 12 files changed
- 3 contributors
Commits on May 30, 2022
-
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"
Configuration menu - View commit details
-
Copy full SHA for 2033456 - Browse repository at this point
Copy the full SHA 2033456View commit details -
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!
Configuration menu - View commit details
-
Copy full SHA for c060d5c - Browse repository at this point
Copy the full SHA c060d5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d2c473 - Browse repository at this point
Copy the full SHA 6d2c473View commit details -
- @tryghost/admin-api@1.12.2 - @tryghost/content-api@1.10.1 - @tryghost/helpers-gatsby@2.0.0
Configuration menu - View commit details
-
Copy full SHA for ce79057 - Browse repository at this point
Copy the full SHA ce79057View commit details
Commits on May 31, 2022
-
🔥 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.
Configuration menu - View commit details
-
Copy full SHA for 931c845 - Browse repository at this point
Copy the full SHA 931c845View commit details -
🔥 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.
Configuration menu - View commit details
-
Copy full SHA for 7fe05c1 - Browse repository at this point
Copy the full SHA 7fe05c1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 081a19a - Browse repository at this point
Copy the full SHA 081a19aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c90947f - Browse repository at this point
Copy the full SHA c90947fView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 39d539d - Browse repository at this point
Copy the full SHA 39d539dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 683d24d - Browse repository at this point
Copy the full SHA 683d24dView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 1c564d5 - Browse repository at this point
Copy the full SHA 1c564d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64b67df - Browse repository at this point
Copy the full SHA 64b67dfView commit details
Commits on Jun 1, 2022
-
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
Configuration menu - View commit details
-
Copy full SHA for 3ad61a9 - Browse repository at this point
Copy the full SHA 3ad61a9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a0c4d35 - Browse repository at this point
Copy the full SHA a0c4d35View commit details -
- @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
Configuration menu - View commit details
-
Copy full SHA for a1f560e - Browse repository at this point
Copy the full SHA a1f560eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff @tryghost/helpers@1.1.70...@tryghost/helpers@1.1.71