From 5a7c6a55728c47b15d404cddf50533e83ac902f5 Mon Sep 17 00:00:00 2001
From: Bjoern Clees <piranhadev@gmail.com>
Date: Mon, 9 Jun 2025 19:36:12 +0200
Subject: [PATCH 1/3] chore(CI): remove semantic-release commits

---
 .github/workflows/release.yml             | 14 +++++++-------
 .releaserc                                |  3 +--
 package.json                              |  3 +--
 packages/react-netlify-forms/package.json |  2 +-
 4 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fd415d9..e271998 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,16 +1,20 @@
 name: release
 
 on:
-  pull_request:
-    branches:
-      - master
   push:
     branches:
       - master
 
+permissions:
+  contents: read # for checkout
+
 jobs:
   semantic-release:
     runs-on: ubuntu-22.04
+    permissions:
+      contents: write # to be able to publish a GitHub release
+      issues: write # to be able to comment on released issues
+      pull-requests: write # to be able to comment on released pull requests
     steps:
       - uses: actions/checkout@v4
 
@@ -25,10 +29,6 @@ jobs:
 
       - name: Semantic Release
         uses: cycjimmy/semantic-release-action@v4
-        with:
-          extra_plugins: |
-            @semantic-release/git
-          semantic_version: 19
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/.releaserc b/.releaserc
index 83b6c07..ce5fe60 100644
--- a/.releaserc
+++ b/.releaserc
@@ -3,7 +3,6 @@
     "@semantic-release/commit-analyzer",
     "@semantic-release/release-notes-generator",
     "@semantic-release/npm",
-    "@semantic-release/github",
-    "@semantic-release/git"
+    "@semantic-release/github"
   ]
 }
diff --git a/package.json b/package.json
index dbceb0e..4f18b94 100644
--- a/package.json
+++ b/package.json
@@ -24,6 +24,5 @@
       "path": "./node_modules/cz-conventional-changelog"
     }
   },
-  "packageManager": "bun@1.2.15",
-  "version": "2.0.0"
+  "packageManager": "bun@1.2.15"
 }
diff --git a/packages/react-netlify-forms/package.json b/packages/react-netlify-forms/package.json
index f0fa4e1..7a77d47 100644
--- a/packages/react-netlify-forms/package.json
+++ b/packages/react-netlify-forms/package.json
@@ -1,6 +1,6 @@
 {
   "name": "react-netlify-forms",
-  "version": "1.3.5",
+  "version": "2.0.0",
   "homepage": "https://pyrax.github.io/react-netlify-forms",
   "bugs": {
     "url": "https://github.com/pyrax/react-netlify-forms/issues"

From 5f1b161748ce4696cdf45120ef252d283d876c38 Mon Sep 17 00:00:00 2001
From: Bjoern Clees <piranhadev@gmail.com>
Date: Fri, 13 Jun 2025 19:40:13 +0200
Subject: [PATCH 2/3] chore: ensure bun runtime in docs

---
 packages/docs/package.json | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/docs/package.json b/packages/docs/package.json
index 54b4cef..0b6a5e2 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -4,11 +4,11 @@
   "version": "0.0.1",
   "private": true,
   "scripts": {
-    "dev": "astro dev",
-    "start": "astro dev",
-    "build": "astro build",
-    "preview": "astro preview",
-    "astro": "astro"
+    "dev": "bunx --bun astro dev",
+    "start": "bunx --bun astro dev",
+    "build": "bunx --bun astro build",
+    "preview": "bunx --bun astro preview",
+    "astro": "bunx --bun astro"
   },
   "dependencies": {
     "@astrojs/mdx": "^4.3.0",

From 9db0421e0151071bc5e8c49b5cdf52ca41035585 Mon Sep 17 00:00:00 2001
From: Bjoern Clees <piranhadev@gmail.com>
Date: Fri, 13 Jun 2025 20:09:23 +0200
Subject: [PATCH 3/3] fix(build): bundle with react-jsx instead of react-jsxdev

---
 packages/react-netlify-forms/package.json | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/packages/react-netlify-forms/package.json b/packages/react-netlify-forms/package.json
index 7a77d47..e451f10 100644
--- a/packages/react-netlify-forms/package.json
+++ b/packages/react-netlify-forms/package.json
@@ -27,14 +27,13 @@
     "node": ">=10"
   },
   "scripts": {
-    "build": "bun build ./src/index.js --outdir ./dist --minify --sourcemap=linked --external react",
-    "start": "bun build ./src/index.js --outdir ./dist --watch"
+    "build": "bun build ./src/index.js --outdir ./dist --production --minify --sourcemap=linked --external react --jsx=react-jsx",
+    "start": "bun run build --watch"
   },
   "peerDependencies": {
     "react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"
   },
   "dependencies": {
     "react-google-recaptcha": "^2.1.0"
-  },
-  "jsxImportSource": "react"
+  }
 }
