Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .changeset/strict-proxy-has.md

This file was deleted.

33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @qwik.dev/partytown

## 0.12.0

### Minor Changes

- Add `strictProxyHas` configuration option for accurate namespace conflict detection (by [@chadgauth](https://github.com/chadgauth) in [#692](https://github.com/QwikDev/partytown/pull/692))

**Summary:**

This release adds a new configuration option `strictProxyHas` that enables accurate property existence checks using the `in` operator. This is required for scripts like FullStory that check for namespace conflicts when loaded via Google Tag Manager (GTM).

**Key Changes:**

- Add `strictProxyHas?: boolean` config option to enable accurate `in` operator behavior
- Update window proxy's `has` trap to use `Reflect.has()` when `strictProxyHas: true`
- Default is `false` for backwards compatibility
- Add FullStory GTM integration test with production-ready snippet
- Document the configuration and provide usage guide

**Usage:**

```html
<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.

## 0.11.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qwik.dev/partytown",
"version": "0.11.2",
"version": "0.12.0",
"description": "Relocate resource intensive third-party scripts off of the main thread and into a web worker.",
"license": "MIT",
"main": "index.cjs",
Expand Down