Skip to content

Bump version packages - #374

Merged
KevinVoortmansAdhese merged 1 commit into
mainfrom
changeset-release/main
Sep 3, 2026
Merged

Bump version packages#374
KevinVoortmansAdhese merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

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

@adhese/sdk@1.12.0

Minor Changes

  • 3ba4427: Add support for identifying an ad's creative as empty (a no-fill/house banner) while still tracking the slot's position, without rendering it.

    Call the new processOnEmpty(ad) overload from the onRequest hook, passing the ad you received, when its content indicates there's nothing real to show. This fires onEmpty immediately — as soon as the ad is known to be empty — while keeping the ad's data available so impression and viewability tracking pixels still fire once the slot actually renders; no creative is ever written to the element. processOnEmpty() called with no argument keeps its original behaviour: a hard empty (server returned no ad at all), with status becoming empty and nothing tracked.

    Returning a falsy value from the onBeforeRender hook now has the same tracked-but-not-rendered effect as a render-time alternative, useful when the decision can only be made right before the creative would be written to the DOM. Either way, the new isEmpty flag on the slot context reports whether a rendered slot actually got a creative or not.

    This also fixes a no-fill creative that was fetched while a slot was out of the viewport still being rendered once the slot scrolled into view: the position-tracked decision is now re-checked at the actual render step (whenever it happens), instead of only at request time.

    The devtools slots table now shows a "No-fill" badge for slots that reached rendered with isEmpty set.

    Also fixes a pending viewability tracking pixel outliving a disposed slot: its dwell-time timer is now cancelled on dispose() instead of firing later regardless.

    When an ad is marked empty, render() no longer clears the slot's element. Previously it called cleanElement() right before setting status to rendered, which wiped out any fallback content the app had rendered itself (e.g. from onEmpty or onBeforeRender) — defeating the purpose of firing onEmpty early. The SDK now only skips writing its own creative and leaves the element exactly as the app's hooks left it.

@adhese/sdk-devtools@1.0.3

Patch Changes

  • 3ba4427: Add support for identifying an ad's creative as empty (a no-fill/house banner) while still tracking the slot's position, without rendering it.

    Call the new processOnEmpty(ad) overload from the onRequest hook, passing the ad you received, when its content indicates there's nothing real to show. This fires onEmpty immediately — as soon as the ad is known to be empty — while keeping the ad's data available so impression and viewability tracking pixels still fire once the slot actually renders; no creative is ever written to the element. processOnEmpty() called with no argument keeps its original behaviour: a hard empty (server returned no ad at all), with status becoming empty and nothing tracked.

    Returning a falsy value from the onBeforeRender hook now has the same tracked-but-not-rendered effect as a render-time alternative, useful when the decision can only be made right before the creative would be written to the DOM. Either way, the new isEmpty flag on the slot context reports whether a rendered slot actually got a creative or not.

    This also fixes a no-fill creative that was fetched while a slot was out of the viewport still being rendered once the slot scrolled into view: the position-tracked decision is now re-checked at the actual render step (whenever it happens), instead of only at request time.

    The devtools slots table now shows a "No-fill" badge for slots that reached rendered with isEmpty set.

    Also fixes a pending viewability tracking pixel outliving a disposed slot: its dwell-time timer is now cancelled on dispose() instead of firing later regardless.

    When an ad is marked empty, render() no longer clears the slot's element. Previously it called cleanElement() right before setting status to rendered, which wiped out any fallback content the app had rendered itself (e.g. from onEmpty or onBeforeRender) — defeating the purpose of firing onEmpty early. The SDK now only skips writing its own creative and leaves the element exactly as the app's hooks left it.

@adhese/sdk-react@1.12.0

Patch Changes

  • Updated dependencies [3ba4427]
    • @adhese/sdk@1.12.0

@KevinVoortmansAdhese
KevinVoortmansAdhese merged commit c35ceba into main Sep 3, 2026
11 checks passed
@KevinVoortmansAdhese
KevinVoortmansAdhese deleted the changeset-release/main branch September 3, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants