-
Add
strictProxyHasconfiguration option for accurate namespace conflict detection (by @chadgauth in #692)Summary:
This release adds a new configuration option
strictProxyHasthat enables accurate property existence checks using theinoperator. This is required for scripts like FullStory that check for namespace conflicts when loaded via Google Tag Manager (GTM).Key Changes:
- Add
strictProxyHas?: booleanconfig option to enable accurateinoperator behavior - Update window proxy's
hastrap to useReflect.has()whenstrictProxyHas: true - Default is
falsefor backwards compatibility - Add FullStory GTM integration test with production-ready snippet
- Document the configuration and provide usage guide
Usage:
<script> partytown = { forward: ['FS.identify', 'FS.event'], strictProxyHas: true, // Enable for FullStory via GTM }; </script>
Backwards Compatibility:
This is a non-breaking change. The default behavior remains unchanged (
strictProxyHas: false), so existing implementations will continue to work without modifications. - Add
-
✨ Implement full attribute methods for HTMLImageElement (by @mws19901118 in #681)
Implemented complete attribute handling for HTMLImageElement class including getAttribute(), setAttribute(), hasAttribute(), removeAttribute(), and toggleAttribute() methods. Added attributes Map to store element attributes and enhanced setAttribute() to properly handle src attribute. Includes comprehensive unit tests covering all attribute methods.
- Add adoptedStyleSheets.get() to patched
documentin worker. (by @leeroybrun in #674)
-
Bunch of fixes and a new release system.. (by @shairez in #652)
Here's a list of the changes:
- add config fallback timeout (#620)
- Same-origin iframe set/get cookie/localStorage bug (#600)
- make sure unknown is mapped to HTMLUnknownElement cstr (#606)
- making install commands consistent (#638)
- Add example reverse proxy handler for Facebook Pixel (#648)
- add integration module for Magento 2 (#594)
- add clarification that the worker strategy is not supported with app directory (#625)
- use dummy web property ID (#621)
- revert recent incorrect change to SvelteKit destination (#622)