diff --git a/.changeset/vast-impalas-fold.md b/.changeset/vast-impalas-fold.md deleted file mode 100644 index c10f9ea..0000000 --- a/.changeset/vast-impalas-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-frame-component': patch ---- - -Add types condition to package.json exports to fix TypeScript resolution with TSGo and modern ESM tools diff --git a/.changeset/wise-keys-cough.md b/.changeset/wise-keys-cough.md deleted file mode 100644 index 2003342..0000000 --- a/.changeset/wise-keys-cough.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'react-frame-component': patch ---- - -## Fix race condition in getMountTarget() (issue #250) - -Fixed "Cannot read properties of null" errors when `initialContent` changes rapidly by adding null checks for `doc` and `doc.body` in `getMountTarget()`. - -### Changes - -- **src/Frame.jsx**: Added null check in `getMountTarget()` to handle cases when iframe document is temporarily unavailable during rapid rerenders diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f92ebe..9040d98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # react-frame-component +## 5.3.2 + +### Patch Changes + +- f191d58: Add types condition to package.json exports to fix TypeScript resolution with TSGo and modern ESM tools +- 1820bc3: ## Fix race condition in getMountTarget() (issue #250) + + Fixed "Cannot read properties of null" errors when `initialContent` changes rapidly by adding null checks for `doc` and `doc.body` in `getMountTarget()`. + + ### Changes + - **src/Frame.jsx**: Added null check in `getMountTarget()` to handle cases when iframe document is temporarily unavailable during rapid rerenders + ## 5.3.1 ### Patch Changes diff --git a/package.json b/package.json index 055234f..4de94c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-frame-component", - "version": "5.3.1", + "version": "5.3.2", "type": "module", "description": "React component to wrap your application or component in an iFrame for encapsulation purposes", "main": "dist/react-frame-component.umd.js",