diff --git a/.changeset/healthy-experts-pull.md b/.changeset/healthy-experts-pull.md deleted file mode 100644 index 76e807cc9..000000000 --- a/.changeset/healthy-experts-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@gitbook/cli': minor ---- - -Allow publishing integrations with content sources diff --git a/.changeset/honest-dots-divide.md b/.changeset/honest-dots-divide.md deleted file mode 100644 index 35a16667b..000000000 --- a/.changeset/honest-dots-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@gitbook/runtime': minor ---- - -Add APIs to define and expose content sources diff --git a/integrations/formspree/CHANGELOG.md b/integrations/formspree/CHANGELOG.md index 8f47ad72b..d4bdccd95 100644 --- a/integrations/formspree/CHANGELOG.md +++ b/integrations/formspree/CHANGELOG.md @@ -1,5 +1,12 @@ # @gitbook/integration-formspree +## 0.2.3 + +### Patch Changes + +- Updated dependencies [ebfa12c] + - @gitbook/runtime@0.18.0 + ## 0.2.2 ### Patch Changes diff --git a/integrations/formspree/package.json b/integrations/formspree/package.json index 5ce22f05f..02df680a0 100644 --- a/integrations/formspree/package.json +++ b/integrations/formspree/package.json @@ -1,6 +1,6 @@ { "name": "@gitbook/integration-formspree", - "version": "0.2.2", + "version": "0.2.3", "private": true, "dependencies": { "@gitbook/runtime": "workspace:*" diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index e031584b1..782aa07ee 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,199 +1,205 @@ # @gitbook/cli +## 0.20.0 + +### Minor Changes + +- ebfa12c: Allow publishing integrations with content sources + ## 0.19.0 ### Minor Changes -- a477524: Bump @gitbook/cli to use the latest OpenAPI spec +- a477524: Bump @gitbook/cli to use the latest OpenAPI spec ## 0.18.1 ### Patch Changes -- f95262e: Fix missing dependencies when running the CLI +- f95262e: Fix missing dependencies when running the CLI ## 0.18.0 ### Minor Changes -- bfe5f27: Improve `dev` command to no longer require a space and handle all events in the owning organization +- bfe5f27: Improve `dev` command to no longer require a space and handle all events in the owning organization ### Patch Changes -- Updated dependencies [76f2716] - - @gitbook/api@0.64.1 +- Updated dependencies [76f2716] + - @gitbook/api@0.64.1 ## 0.17.0 ### Minor Changes -- d3fcacc: Remove entities from CLI +- d3fcacc: Remove entities from CLI ### Patch Changes -- Updated dependencies [d3fcacc] - - @gitbook/api@0.57.0 +- Updated dependencies [d3fcacc] + - @gitbook/api@0.57.0 ## 0.16.0 ### Minor Changes -- 6646aac: Update the CLI to accommodate new category +- 6646aac: Update the CLI to accommodate new category ## 0.15.2 ### Patch Changes -- 65c7dc7: Bumping API and CLI package to use latest specs -- Updated dependencies [65c7dc7] - - @gitbook/api@0.44.0 +- 65c7dc7: Bumping API and CLI package to use latest specs +- Updated dependencies [65c7dc7] + - @gitbook/api@0.44.0 ## 0.15.1 ### Patch Changes -- 7d76dfb: Update integrations to use latest runtime and api client with `User-Agent` -- Updated dependencies [46c9686] - - @gitbook/api@0.27.0 +- 7d76dfb: Update integrations to use latest runtime and api client with `User-Agent` +- Updated dependencies [46c9686] + - @gitbook/api@0.27.0 ## 0.15.0 ### Minor Changes -- 2dfce83: Bump CLI to use the latest OpenAPI spec +- 2dfce83: Bump CLI to use the latest OpenAPI spec ## 0.14.0 ### Minor Changes -- a5e0e14: Updates the CLI to check for Windows machines in order to install dependencies correctly +- a5e0e14: Updates the CLI to check for Windows machines in order to install dependencies correctly ### Patch Changes -- Updated dependencies [1c45194] - - @gitbook/api@0.16.0 +- Updated dependencies [1c45194] + - @gitbook/api@0.16.0 ## 0.13.1 ### Patch Changes -- 28fb7f2: Validation method for target property in the manifest +- 28fb7f2: Validation method for target property in the manifest ## 0.13.0 ### Minor Changes -- 5f9c5c9: - Bump API client to use the latest spec - - Update CLI to use the latest manifest with target support +- 5f9c5c9: - Bump API client to use the latest spec + - Update CLI to use the latest manifest with target support ### Patch Changes -- Updated dependencies [5f9c5c9] - - @gitbook/api@0.11.0 +- Updated dependencies [5f9c5c9] + - @gitbook/api@0.11.0 ## 0.12.0 ### Minor Changes -- 6109681: Update CLI to support entities while publishing an integration +- 6109681: Update CLI to support entities while publishing an integration ## 0.11.0 ### Minor Changes -- 21891ed: Bump @gitbook/cli to use the latest API spec +- 21891ed: Bump @gitbook/cli to use the latest API spec ## 0.10.0 ### Minor Changes -- Update CLI to include new scopes during the `init` command +- Update CLI to include new scopes during the `init` command ## 0.9.1 ### Patch Changes -- e2972b9: Fix `gitbook new` script to generate correct (dev) deps -- 4f00cea: Destroy request during postinstall if there is a redirect +- e2972b9: Fix `gitbook new` script to generate correct (dev) deps +- 4f00cea: Destroy request during postinstall if there is a redirect ## 0.9.0 ### Minor Changes -- bd562ec: Update CLI template +- bd562ec: Update CLI template ## 0.8.0 ### Minor Changes -- 3326853: Update init template +- 3326853: Update init template ## 0.7.0 ### Minor Changes -- 0b60654: Fix logic to match tunnel output using an updated pattern +- 0b60654: Fix logic to match tunnel output using an updated pattern ## 0.6.0 ### Minor Changes -- 62ec05b: Disable autoupdate of cloudflared binary +- 62ec05b: Disable autoupdate of cloudflared binary ## 0.5.0 ### Minor Changes -- 014e2e6: Suppress experimental warning in the CLI +- 014e2e6: Suppress experimental warning in the CLI ## 0.4.0 ### Minor Changes -- ab8df1d: - Install deps for gitbook new command - - Create root folder when running gitbook new - - Bump cloudflared to 2023.4.0 +- ab8df1d: - Install deps for gitbook new command + - Create root folder when running gitbook new + - Bump cloudflared to 2023.4.0 ## 0.3.0 ### Minor Changes -- 87a1411: rebuild in dev mode in the watcher +- 87a1411: rebuild in dev mode in the watcher ## 0.2.0 ### Minor Changes -- 0a17e3b: new command: gitbook dev +- 0a17e3b: new command: gitbook dev ## 0.1.0 ### Minor Changes -- 980fd90: Handle integration requests for v1 of the integration API -- 9dff6c5: Add Linear integration -- 6e144c5: Add command "gitbook unpublish" to remove an integration -- 4f6e234: Add CLI argument '--organization' or environment variable 'GITBOOK_ORGANIZATION' to override with which organization the publish command will run with -- ce12efa: Publish custom blocks defined in the manifest +- 980fd90: Handle integration requests for v1 of the integration API +- 9dff6c5: Add Linear integration +- 6e144c5: Add command "gitbook unpublish" to remove an integration +- 4f6e234: Add CLI argument '--organization' or environment variable 'GITBOOK_ORGANIZATION' to override with which organization the publish command will run with +- ce12efa: Publish custom blocks defined in the manifest ### Patch Changes -- a1b68dd: Prioritize environment variable when setting configuration value -- a2bba42: Interpolate environment variables in the manifest' secrets using \${{ env.SOMETHING }} -- 704ae2b: Added the Plausible and Fathom integrations. +- a1b68dd: Prioritize environment variable when setting configuration value +- a2bba42: Interpolate environment variables in the manifest' secrets using \${{ env.SOMETHING }} +- 704ae2b: Added the Plausible and Fathom integrations. Also added some logic to load script with the `.raw.js` extension as text in the integrations. This should make sure that script injection is as seamless to develop as the other parts of teh integration by allowing us to write code in script file, then loading it as a script during the build process. -- 44d577c: Log the url of the newly published integration -- a472e04: Warn about missing environment variables used in secrets -- Updated dependencies [f0c07cb] -- Updated dependencies [782d91b] - - @gitbook/api@null +- 44d577c: Log the url of the newly published integration +- a472e04: Warn about missing environment variables used in secrets +- Updated dependencies [f0c07cb] +- Updated dependencies [782d91b] + - @gitbook/api@null ## 0.0.1 ### Patch Changes -- d588454: Add support for publishing preview images and external links +- d588454: Add support for publishing preview images and external links diff --git a/packages/cli/package.json b/packages/cli/package.json index 6677f0d38..205cd60ce 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@gitbook/cli", "description": "CLI to build and publish integrations on GitBook.com", - "version": "0.19.0", + "version": "0.20.0", "dependencies": { "@gitbook/api": "*", "check-node-version": "^4.2.1", diff --git a/packages/runtime/CHANGELOG.md b/packages/runtime/CHANGELOG.md index 588e91d15..f4f61a15c 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,190 +1,196 @@ # @gitbook/runtime +## 0.18.0 + +### Minor Changes + +- ebfa12c: Add APIs to define and expose content sources + ## 0.17.0 ### Minor Changes -- a1b07be: Add support for new render output types +- a1b07be: Add support for new render output types ### Patch Changes -- Updated dependencies [597ba64] - - @gitbook/api@0.67.0 +- Updated dependencies [597ba64] + - @gitbook/api@0.67.0 ## 0.16.0 ### Minor Changes -- 4842312: Add two new UI elements, configuration and stepper +- 4842312: Add two new UI elements, configuration and stepper ### Patch Changes -- Updated dependencies [0cd6eb4] - - @gitbook/api@0.65.0 +- Updated dependencies [0cd6eb4] + - @gitbook/api@0.65.0 ## 0.15.0 ### Minor Changes -- 09ac8f9: Improve typing and utilies for OAuth -- 09ac8f9: Export a `ExposableError` to show errors to the end users -- 09ac8f9: Improve overall typing and utilities for ContentKit components +- 09ac8f9: Improve typing and utilies for OAuth +- 09ac8f9: Export a `ExposableError` to show errors to the end users +- 09ac8f9: Improve overall typing and utilities for ContentKit components ## 0.14.1 ### Patch Changes -- cebbcb6: Updating inject scripts integration to support sites installations +- cebbcb6: Updating inject scripts integration to support sites installations ## 0.14.0 ### Minor Changes -- 1e3c023: return 4xx error instead of 5xx when failed to extract access token +- 1e3c023: return 4xx error instead of 5xx when failed to extract access token ## 0.13.0 ### Minor Changes -- 41fa1ec: Add support for fetch_visitor_authentication event +- 41fa1ec: Add support for fetch_visitor_authentication event ### Patch Changes -- Updated dependencies [0961cf4] - - @gitbook/api@0.31.0 +- Updated dependencies [0961cf4] + - @gitbook/api@0.31.0 ## 0.12.0 ### Minor Changes -- fe26302: Bump runtime to use the latest openAPI spec +- fe26302: Bump runtime to use the latest openAPI spec ## 0.11.0 ### Minor Changes -- 46c9686: Allow passing a `userAgent` to the API client (`@gitbook/api`) and set a default user-agent for all integrations +- 46c9686: Allow passing a `userAgent` to the API client (`@gitbook/api`) and set a default user-agent for all integrations ### Patch Changes -- Updated dependencies [46c9686] - - @gitbook/api@0.27.0 +- Updated dependencies [46c9686] + - @gitbook/api@0.27.0 ## 0.10.3 ### Patch Changes -- 95f041a: Add more logs during OAuth flow +- 95f041a: Add more logs during OAuth flow ## 0.10.2 ### Patch Changes -- dfd610b: Use status from error.code for GitBookAPIError errors +- dfd610b: Use status from error.code for GitBookAPIError errors ## 0.10.1 ### Patch Changes -- b607365: Fix worker dispatch catch handler to send a http response with the status code instead of throwing an error +- b607365: Fix worker dispatch catch handler to send a http response with the status code instead of throwing an error ## 0.10.0 ### Minor Changes -- 619e1e9: Add support for using functions as components in JSX +- 619e1e9: Add support for using functions as components in JSX ### Patch Changes -- Updated dependencies [619e1e9] - - @gitbook/api@0.14.0 +- Updated dependencies [619e1e9] + - @gitbook/api@0.14.0 ## 0.9.0 ### Minor Changes -- 4affdac: Add ContentKit support for codeblock element for input +- 4affdac: Add ContentKit support for codeblock element for input ### Patch Changes -- Updated dependencies [4affdac] - - @gitbook/api@0.9.0 +- Updated dependencies [4affdac] + - @gitbook/api@0.9.0 ## 0.8.0 ### Minor Changes -- 4b40290: Pass FetchEvent down to the integration +- 4b40290: Pass FetchEvent down to the integration ### Patch Changes -- e828239: Fixes that externalIds and space_selection is passed to the install +- e828239: Fixes that externalIds and space_selection is passed to the install ## 0.7.0 ### Minor Changes -- b2c17f4: Pass FetchEvent down to the integration +- b2c17f4: Pass FetchEvent down to the integration ## 0.6.0 ### Minor Changes -- fecaf55: Update createOAuthHandler signature to allow passing an optional options object +- fecaf55: Update createOAuthHandler signature to allow passing an optional options object ## 0.5.0 ### Minor Changes -- Update JSX for @gitbook/runtime +- Update JSX for @gitbook/runtime ## 0.4.1 ### Patch Changes -- 0768f10: Fix OAuth handler crashing due lack of optional chaining use while reading spaceInstallation +- 0768f10: Fix OAuth handler crashing due lack of optional chaining use while reading spaceInstallation ## 0.4.0 ### Minor Changes -- 2b19969: Use a JSON encoded state for OAuth state +- 2b19969: Use a JSON encoded state for OAuth state ## 0.3.0 ### Minor Changes -- 882996d: Accept application/json by default for OAuth token response +- 882996d: Accept application/json by default for OAuth token response ## 0.2.0 ### Minor Changes -- 0a17e3b: Dispatch version checked in production only +- 0a17e3b: Dispatch version checked in production only ## 0.1.0 ### Minor Changes -- b05a1dd: Publish @gitbook/runtime to NPM +- b05a1dd: Publish @gitbook/runtime to NPM ## null ### Minor Changes -- e36efa5: Remove old, unused runtime -- d762a7c: Add method element.setCache during rendering of component to define the max-age -- 9fa2838: Added a Mailchimp integration -- ce12efa: Expose createComponent and "components" option in createIntegration to define ContentKit components +- e36efa5: Remove old, unused runtime +- d762a7c: Add method element.setCache during rendering of component to define the max-age +- 9fa2838: Added a Mailchimp integration +- ce12efa: Expose createComponent and "components" option in createIntegration to define ContentKit components ### Patch Changes -- 782d91b: Allow `createOAuthHandler` to update the entire installation (including the externalIds) -- 5df9eff: Fixed a few bugs in the slack integration - - The channels endpoint didn't support pagination and that could lead to some unexpected behaviors due to the inherent weirdness of the slack API. See context here: https://github.com/GitbookIO/support-bucket/issues/961 - - The README was missing the signing secret step for publishing an integration. - - There was a bug where the signature validation code would lock the body by reading it, which made it throw once the event tried to read from it again. Solved with a request clone. - - There was an issue in the slack manifests where we would call the events path for `url_verifications`, but that should happen under `events_task`. -- Updated dependencies [f0c07cb] -- Updated dependencies [782d91b] - - @gitbook/api@null +- 782d91b: Allow `createOAuthHandler` to update the entire installation (including the externalIds) +- 5df9eff: Fixed a few bugs in the slack integration + - The channels endpoint didn't support pagination and that could lead to some unexpected behaviors due to the inherent weirdness of the slack API. See context here: https://github.com/GitbookIO/support-bucket/issues/961 + - The README was missing the signing secret step for publishing an integration. + - There was a bug where the signature validation code would lock the body by reading it, which made it throw once the event tried to read from it again. Solved with a request clone. + - There was an issue in the slack manifests where we would call the events path for `url_verifications`, but that should happen under `events_task`. +- Updated dependencies [f0c07cb] +- Updated dependencies [782d91b] + - @gitbook/api@null diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 015e3e17e..4656e130a 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,7 +1,7 @@ { "name": "@gitbook/runtime", "type": "module", - "version": "0.17.0", + "version": "0.18.0", "sideEffects": false, "main": "src/index.ts", "dependencies": {