Version 2.7.0
@freshjuice/zest@2.7.0 adds a new allowedDomains config option and fixes two issues — the geo gateway blocking itself and the center banner looking squeezed on mobile.
Added
allowedDomains config option
Consumer-supplied domains that bypass all blocking — overrides mode, blockedDomains, and doomsday third-party blocking. Subdomains are included ('example.com' matches 'api.example.com'). cookiezest.com is always allowed and doesn’t need to be listed.
window.ZestConfig = {
mode: 'doomsday',
allowedDomains: ['my-cdn.com', 'trusted-analytics.com']
};
allowedDomains wins over blockedDomains — if a domain appears in both, it passes through.
Fixed
Geo gateway self-block (#8)
geo.cookiezest.com was caught by doomsday mode (third-party block) and by blockedDomains if listed. An allowed-domain check now runs before any block decision in the network, element, and script interceptors. Closes #8.
Center banner width on mobile (#7)
The center-positioned banner shrunk to content width on mobile, looking squeezed. It now takes calc(100% - 32px) with a 480px cap, giving it ~91% width with 16px gaps on each side. Closes #7.
Install
npm install @freshjuice/zest@2.7.0
Or via CDN:
<script src="https://cdn.jsdelivr.net/npm/@freshjuice/zest@2.7.0"></script>
All three packages bumped to 2.7.0: @freshjuice/zest, @freshjuice/zest-astro, @freshjuice/zest-eleventy.