Repository navigation
chore: version packages - #87
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 8, 2026 14:54
56cc701 to
5e194b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@perspective-ai/sdk@1.16.0
Minor Changes
aeff765: Make the embed script safe to load from Google Tag Manager. Calls queued on a
Perspectivestub before the script arrives are replayed, andPerspective(...)stays callable afterwards alongside the existing methods. Evaluating the script again replays any new queue and re-runs auto-init instead of no-oping. An embed whose container — or the marker a float or fullpage was mounted from — has left the document is destroyed and remounted, including after an SPA history change.Embeds now push lifecycle events to the page's dataLayer:
perspective_widget_open,perspective_widget_ready,perspective_conversation_started,perspective_conversation_completedandperspective_widget_close. This applies to every build — the script tag, the npm package and@perspective-ai/sdk-react— wheneverwindow.dataLayeralready exists, as it does on most sites running Google Tag Manager.window.dataLayeris not created unlessconfigure({ dataLayer: true }).If your site already pushes its own Perspective events (from
onSubmit/onReadycallbacks, or a Custom HTML tag that listens forperspective:*messages), remove that code or callconfigure({ dataLayer: false })when you upgrade, or those conversions will be counted twice. To opt out a single embed, usedata-perspective-datalayer="false"on a script-tag embed, or passdataLayer: falsein its config — tocreateWidget,openPopupand the other constructors, or as a prop to the React components and hooks.Patch Changes
InvalidStateError("Closed before resume completed") on host pages when the float bubble unmounts while its welcome chime is still waiting on the browser to resume audio, such as on a client-side navigation to a page without the bubble.@perspective-ai/sdk-react@1.16.0
Minor Changes
aeff765: Make the embed script safe to load from Google Tag Manager. Calls queued on a
Perspectivestub before the script arrives are replayed, andPerspective(...)stays callable afterwards alongside the existing methods. Evaluating the script again replays any new queue and re-runs auto-init instead of no-oping. An embed whose container — or the marker a float or fullpage was mounted from — has left the document is destroyed and remounted, including after an SPA history change.Embeds now push lifecycle events to the page's dataLayer:
perspective_widget_open,perspective_widget_ready,perspective_conversation_started,perspective_conversation_completedandperspective_widget_close. This applies to every build — the script tag, the npm package and@perspective-ai/sdk-react— wheneverwindow.dataLayeralready exists, as it does on most sites running Google Tag Manager.window.dataLayeris not created unlessconfigure({ dataLayer: true }).If your site already pushes its own Perspective events (from
onSubmit/onReadycallbacks, or a Custom HTML tag that listens forperspective:*messages), remove that code or callconfigure({ dataLayer: false })when you upgrade, or those conversions will be counted twice. To opt out a single embed, usedata-perspective-datalayer="false"on a script-tag embed, or passdataLayer: falsein its config — tocreateWidget,openPopupand the other constructors, or as a prop to the React components and hooks.Patch Changes