OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
chore(sdk): land the 1.3.2 release commit and fix the release push (#586)
Carl-Gerhard Lindesvärd077137bf5ce7
diff --git a/.github/workflows/sdks.yml b/.github/workflows/sdks.ymlindex 0188d5978..835a20e9f 100644--- a/.github/workflows/sdks.yml+++ b/.github/workflows/sdks.yml@@ -150,9 +150,13 @@ jobs:set -euo pipefaildir="$(bun -e 'const fs = require("fs"); for (const d of fs.readdirSync("packages/sdks")) { const p = `packages/sdks/${d}/package.json`; if (fs.existsSync(p) && require(`./${p}`).name === process.argv[1]) console.log(d) }' "$PACKAGE")"version="$(jq -r '.version | sub("-local$"; "")' "packages/sdks/$dir/package.json")"- git config user.name "github-actions[bot]"- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"- git add packages/sdks apps/public/public/op1.js apps/public/public/op1-replay.js+ # The lockfile records the workspace versions, so main's frozen+ # install breaks without this.+ bun install+ # Authored by whoever pressed the button, not the bot.+ git config user.name "$GITHUB_ACTOR"+ git config user.email "[email protected]"+ git add bun.lock packages/sdks apps/public/public/op1.js apps/public/public/op1-replay.jsgit commit -m "chore(sdk): release $PACKAGE $version" \-m "Released from the SDKs workflow ($BUMP bump). Dependent SDKs were released with it; see the package versions in this commit."git format-patch -1 --stdout > /tmp/sdk-release.patch@@ -161,11 +165,13 @@ jobs:# The packages are on npm by now, so this commit must land whatever# happened on main meanwhile: rebase onto the current tip, never force.+ # --autostash: the setup action's codegen rewrites a tracked file from a+ # live source, and that stray change must not block the rebase.- name: Push the release commit to mainrun: |set -euo pipefailgit fetch origin main- if ! git rebase origin/main; then+ if ! git rebase --autostash origin/main; thenecho "::error::main moved during the release and the version commit conflicts with it. The packages are published; apply the sdk-release-commit artifact to main by hand."exit 1fidiff --git a/apps/public/public/op1.js b/apps/public/public/op1.jsindex 3f0a77dab..89d5c8134 100644--- a/apps/public/public/op1.js+++ b/apps/public/public/op1.js@@ -1 +1 @@-"use strict";(()=>{var y=Object.create;var c=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var w=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var b=(e,s,t,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of v(s))!k.call(e,n)&&n!==t&&c(e,n,{get:()=>s[n],enumerable:!(i=g(s,n))||i.enumerable});return e};var I=(e,s,t)=>(t=e!=null?y(m(e)):{},b(s||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e));var f=w((x,h)=>{"use strict";h.exports={}});var P=class{constructor(e){this.baseUrl=e.baseUrl,this.headers={"Content-Type":"application/json",...e.defaultHeaders},this.maxRetries=e.maxRetries??3,this.initialRetryDelay=e.initialRetryDelay??500}async resolveHeaders(){let e={};for(let[s,t]of Object.entries(this.headers)){let i=await t;i!==null&&(e[s]=i)}return e}addHeader(e,s){this.headers[e]=s}async post(e,s,t,i){try{let n=await fetch(e,{method:"POST",headers:await this.resolveHeaders(),body:s?JSON.stringify(s??{}):void 0,keepalive:!0,...t});if(n.status===401)return null;if(n.status!==200&&n.status!==202)throw new Error(`HTTP error! status: ${n.status}`);let r=await n.text();return r?JSON.parse(r):null}catch(n){if(i<this.maxRetries){let r=this.initialRetryDelay*2**i;return await new Promise(o=>setTimeout(o,r)),this.post(e,s,t,i+1)}return console.error("Max retries reached:",n),null}}async fetch(e,s,t={}){let i=`${this.baseUrl}${e}`;return this.post(i,s,t,0)}},d=class{constructor(e){this.groups=[],this.queue=[],this.options=e;let s={"openpanel-client-id":e.clientId};e.clientSecret&&(s["openpanel-client-secret"]=e.clientSecret),s["openpanel-sdk-name"]=e.sdk||"node",s["openpanel-sdk-version"]=e.sdkVersion||"1.3.1",this.api=new P({baseUrl:e.apiUrl||"https://api.openpanel.dev",defaultHeaders:s})}init(){}ready(){this.options.disabled=!1,this.options.waitForProfile=!1,this.flush()}shouldQueue(e){return!!(this.options.disabled||this.options.waitForProfile&&!this.profileId||e.type==="replay"&&!this.sessionId)}addQueue(e){e.type==="track"&&(e.payload.properties={...e.payload.properties??{},__timestamp:new Date().toISOString()}),this.queue.push(e)}async send(e){if(this.options.filter&&!this.options.filter(e))return Promise.resolve();if(this.shouldQueue(e))return this.addQueue(e),Promise.resolve();let s=await this.api.fetch("/track",e,{keepalive:e.type!=="replay"});this.deviceId=s?.deviceId;let t=!!this.sessionId;return this.sessionId=s?.sessionId,!t&&this.sessionId&&this.flush(),s}setGlobalProperties(e){this.global={...this.global,...e}}track(e,s){this.log("track event",e,s);let{groups:t,profileId:i,...n}=s??{},r=[...new Set([...this.groups,...t??[]])];return this.send({type:"track",payload:{name:e,profileId:i??this.profileId,groups:r.length>0?r:void 0,properties:{...this.global??{},...n}}})}identify(e){if(this.log("identify user",e),e.profileId&&(this.profileId=e.profileId,this.flush()),e.profileId&&Object.keys(e).length>1)return this.send({type:"identify",payload:{...e,properties:{...this.global,...e.properties}}})}upsertGroup(e){return this.log("upsert group",e),this.send({type:"group",payload:e})}setGroup(e){return this.log("set group",e),this.groups.includes(e)||(this.groups=[...this.groups,e]),this.send({type:"assign_group",payload:{groupIds:[e],profileId:this.profileId}})}setGroups(e){return this.log("set groups",e),this.groups=[...new Set([...this.groups,...e])],this.send({type:"assign_group",payload:{groupIds:e,profileId:this.profileId}})}alias(e){}increment(e){return this.send({type:"increment",payload:e})}decrement(e){return this.send({type:"decrement",payload:e})}revenue(e,s){let t=s?.deviceId;return delete s?.deviceId,this.track("revenue",{...s??{},...t?{__deviceId:t}:{},__revenue:e})}getDeviceId(){return this.deviceId??""}getSessionId(){return this.sessionId??""}fetchDeviceId(){return Promise.resolve(this.deviceId??"")}clear(){this.profileId=void 0,this.groups=[],this.deviceId=void 0,this.sessionId=void 0}buildFlushPayload(e){if(e.type==="replay")return e.payload;if(e.type==="track"){let s="groups"in e.payload?e.payload.groups??[]:[],t=[...new Set([...this.groups,...s])];return{...e.payload,profileId:e.payload.profileId??this.profileId,groups:t.length>0?t:void 0}}return e.type==="identify"||e.type==="increment"||e.type==="decrement"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.type==="assign_group"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.payload}flush(){let e=[];for(let s of this.queue){if(this.shouldQueue(s)){e.push(s);continue}let t=this.buildFlushPayload(s);this.send({...s,payload:t})}this.queue=e}log(...e){this.options.debug&&console.log("[OpenPanel.dev]",...e)}};var S=typeof document<"u"?document.currentScript:null;function R(e){return e.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace("-","").replace("_",""))}var l=class extends d{constructor(t){super({sdk:"web",sdkVersion:"1.4.1",...t});this.options=t;this.lastPath="";this.pendingRevenues=[];if(!this.isServer()){try{let i=sessionStorage.getItem("openpanel-pending-revenues");if(i){let n=JSON.parse(i);Array.isArray(n)&&(this.pendingRevenues=n)}}catch{this.pendingRevenues=[]}if(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackScreenViews&&(this.trackScreenViews(),setTimeout(()=>this.screenView(),0)),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackAttributes&&this.trackAttributes(),this.options.sessionReplay?.enabled){let i=this.options.sessionReplay.sampleRate??1;Math.random()<i&&this.loadReplayModule().then(r=>{r&&r.startReplayRecorder(this.options.sessionReplay,o=>{this.send({type:"replay",payload:{...o}})})})}}}async loadReplayModule(){try{{let t=S,i=this.options.sessionReplay?.scriptUrl||t?.src?.replace(".js","-replay.js")||"https://openpanel.dev/op1-replay.js";return window.__openpanel_replay?window.__openpanel_replay:new Promise(n=>{let r=document.createElement("script");r.src=i,r.onload=()=>{n(window.__openpanel_replay??null)},r.onerror=()=>{console.warn("[OpenPanel] Failed to load replay script from",i),n(null)},document.head.appendChild(r)})}return await Promise.resolve().then(()=>I(f(),1))}catch(t){return console.warn("[OpenPanel] Failed to load replay module",t),null}}debounce(t,i){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(t,i)}isServer(){return typeof document>"u"}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("a");if(n&&i){let r=n.getAttribute("href");if(r?.startsWith("http"))try{let o=new URL(r),a=window.location.hostname;o.hostname!==a&&super.track("link_out",{href:r,text:n.innerText||n.getAttribute("title")||i.getAttribute("alt")||i.getAttribute("title")})}catch{}}})}trackScreenViews(){if(this.isServer())return;let t=history.pushState;history.pushState=function(...o){let a=t.apply(this,o);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),a};let i=history.replaceState;history.replaceState=function(...o){let a=i.apply(this,o);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),a},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))});let n=()=>this.debounce(()=>this.screenView(),50);this.options.trackHashChanges?window.addEventListener("hashchange",n):window.addEventListener("locationchange",n)}trackAttributes(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("button"),r=i.closest("a"),o=n?.getAttribute("data-track")?n:r?.getAttribute("data-track")?r:null;if(o){let a={};for(let p of o.attributes)p.name.startsWith("data-")&&p.name!=="data-track"&&(a[R(p.name.replace(/^data-/,""))]=p.value);let u=o.getAttribute("data-track");u&&super.track(u,a)}})}track(t,i){return super.track(t,{...i,__path:this.lastPath})}screenView(t,i){if(this.isServer())return;let n,r;typeof t=="string"?(n=t,r=i):(n=window.location.href,r=t),this.lastPath!==n&&(this.lastPath=n,super.track("screen_view",{...r??{},__path:n,__title:document.title}))}async flushRevenue(){let t=this.pendingRevenues.map(i=>super.revenue(i.amount,i.properties));await Promise.all(t),this.clearRevenue()}clearRevenue(){if(this.pendingRevenues=[],!this.isServer())try{sessionStorage.removeItem("openpanel-pending-revenues")}catch{}}pendingRevenue(t,i){if(this.pendingRevenues.push({amount:t,properties:i}),!this.isServer())try{sessionStorage.setItem("openpanel-pending-revenues",JSON.stringify(this.pendingRevenues))}catch{}}};(e=>{if(e.op){let s=e.op.q||[],t=new l(s.shift()[1]);s.forEach(n=>{n[0]in t&&t[n[0]](...n.slice(1))});let i=new Proxy((n,...r)=>{let o=t[n]?t[n].bind(t):void 0;typeof o=="function"?o(...r):console.warn(`OpenPanel: ${n} is not a function`)},{get(n,r){if(r==="q")return;let o=t[r];return typeof o=="function"?o.bind(t):o}});e.op=i,e.openpanel=t}})(window);})();+"use strict";(()=>{var y=Object.create;var c=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var k=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var b=(e,s,t,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of v(s))!w.call(e,n)&&n!==t&&c(e,n,{get:()=>s[n],enumerable:!(i=g(s,n))||i.enumerable});return e};var P=(e,s,t)=>(t=e!=null?y(m(e)):{},b(s||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e));var f=k((x,h)=>{"use strict";h.exports={}});var I=class{constructor(e){this.baseUrl=e.baseUrl,this.headers={"Content-Type":"application/json",...e.defaultHeaders},this.maxRetries=e.maxRetries??3,this.initialRetryDelay=e.initialRetryDelay??500}async resolveHeaders(){let e={};for(let[s,t]of Object.entries(this.headers)){let i=await t;i!==null&&(e[s]=i)}return e}addHeader(e,s){this.headers[e]=s}async post(e,s,t,i){try{let n=await fetch(e,{method:"POST",headers:await this.resolveHeaders(),body:s?JSON.stringify(s??{}):void 0,keepalive:!0,...t});if(n.status===401)return null;if(n.status!==200&&n.status!==202)throw new Error(`HTTP error! status: ${n.status}`);let r=await n.text();return r?JSON.parse(r):null}catch(n){if(i<this.maxRetries){let r=this.initialRetryDelay*2**i;return await new Promise(o=>setTimeout(o,r)),this.post(e,s,t,i+1)}return console.error("Max retries reached:",n),null}}async fetch(e,s,t={}){let i=`${this.baseUrl}${e}`;return this.post(i,s,t,0)}},d=class{constructor(e){this.groups=[],this.queue=[],this.options=e;let s={"openpanel-client-id":e.clientId};e.clientSecret&&(s["openpanel-client-secret"]=e.clientSecret),s["openpanel-sdk-name"]=e.sdk||"node",s["openpanel-sdk-version"]=e.sdkVersion||"1.3.2",this.api=new I({baseUrl:e.apiUrl||"https://api.openpanel.dev",defaultHeaders:s})}init(){}ready(){this.options.disabled=!1,this.options.waitForProfile=!1,this.flush()}shouldQueue(e){return!!(this.options.disabled||this.options.waitForProfile&&!this.profileId||e.type==="replay"&&!this.sessionId)}addQueue(e){e.type==="track"&&(e.payload.properties={...e.payload.properties??{},__timestamp:new Date().toISOString()}),this.queue.push(e)}async send(e){if(this.options.filter&&!this.options.filter(e))return Promise.resolve();if(this.shouldQueue(e))return this.addQueue(e),Promise.resolve();let s=await this.api.fetch("/track",e,{keepalive:e.type!=="replay"});this.deviceId=s?.deviceId;let t=!!this.sessionId;return this.sessionId=s?.sessionId,!t&&this.sessionId&&this.flush(),s}setGlobalProperties(e){this.global={...this.global,...e}}track(e,s){this.log("track event",e,s);let{groups:t,profileId:i,...n}=s??{},r=[...new Set([...this.groups,...t??[]])];return this.send({type:"track",payload:{name:e,profileId:i??this.profileId,groups:r.length>0?r:void 0,properties:{...this.global??{},...n}}})}identify(e){if(this.log("identify user",e),e.profileId&&(this.profileId=e.profileId,this.flush()),e.profileId&&Object.keys(e).length>1)return this.send({type:"identify",payload:{...e,properties:{...this.global,...e.properties}}})}upsertGroup(e){return this.log("upsert group",e),this.send({type:"group",payload:e})}setGroup(e){return this.log("set group",e),this.groups.includes(e)||(this.groups=[...this.groups,e]),this.send({type:"assign_group",payload:{groupIds:[e],profileId:this.profileId}})}setGroups(e){return this.log("set groups",e),this.groups=[...new Set([...this.groups,...e])],this.send({type:"assign_group",payload:{groupIds:e,profileId:this.profileId}})}alias(e){}increment(e){return this.send({type:"increment",payload:e})}decrement(e){return this.send({type:"decrement",payload:e})}revenue(e,s){let t=s?.deviceId;return delete s?.deviceId,this.track("revenue",{...s??{},...t?{__deviceId:t}:{},__revenue:e})}getDeviceId(){return this.deviceId??""}getSessionId(){return this.sessionId??""}fetchDeviceId(){return Promise.resolve(this.deviceId??"")}clear(){this.profileId=void 0,this.groups=[],this.deviceId=void 0,this.sessionId=void 0}buildFlushPayload(e){if(e.type==="replay")return e.payload;if(e.type==="track"){let s="groups"in e.payload?e.payload.groups??[]:[],t=[...new Set([...this.groups,...s])];return{...e.payload,profileId:e.payload.profileId??this.profileId,groups:t.length>0?t:void 0}}return e.type==="identify"||e.type==="increment"||e.type==="decrement"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.type==="assign_group"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.payload}flush(){let e=[];for(let s of this.queue){if(this.shouldQueue(s)){e.push(s);continue}let t=this.buildFlushPayload(s);this.send({...s,payload:t})}this.queue=e}log(...e){this.options.debug&&console.log("[OpenPanel.dev]",...e)}};var S=typeof document<"u"?document.currentScript:null;function R(e){return e.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace("-","").replace("_",""))}var l=class extends d{constructor(t){super({sdk:"web",sdkVersion:"1.4.2",...t});this.options=t;this.lastPath="";this.pendingRevenues=[];if(!this.isServer()){try{let i=sessionStorage.getItem("openpanel-pending-revenues");if(i){let n=JSON.parse(i);Array.isArray(n)&&(this.pendingRevenues=n)}}catch{this.pendingRevenues=[]}if(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackScreenViews&&(this.trackScreenViews(),setTimeout(()=>this.screenView(),0)),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackAttributes&&this.trackAttributes(),this.options.sessionReplay?.enabled){let i=this.options.sessionReplay.sampleRate??1;Math.random()<i&&this.loadReplayModule().then(r=>{r&&r.startReplayRecorder(this.options.sessionReplay,o=>{this.send({type:"replay",payload:{...o,sessionId:this.sessionId}})})})}}}async loadReplayModule(){try{{let t=S,i=this.options.sessionReplay?.scriptUrl||t?.src?.replace(".js","-replay.js")||"https://openpanel.dev/op1-replay.js";return window.__openpanel_replay?window.__openpanel_replay:new Promise(n=>{let r=document.createElement("script");r.src=i,r.onload=()=>{n(window.__openpanel_replay??null)},r.onerror=()=>{console.warn("[OpenPanel] Failed to load replay script from",i),n(null)},document.head.appendChild(r)})}return await Promise.resolve().then(()=>P(f(),1))}catch(t){return console.warn("[OpenPanel] Failed to load replay module",t),null}}debounce(t,i){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(t,i)}isServer(){return typeof document>"u"}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("a");if(n&&i){let r=n.getAttribute("href");if(r?.startsWith("http"))try{let o=new URL(r),a=window.location.hostname;o.hostname!==a&&this.track("link_out",{href:r,text:n.innerText||n.getAttribute("title")||i.getAttribute("alt")||i.getAttribute("title")})}catch{}}})}trackScreenViews(){if(this.isServer())return;let t=history.pushState;history.pushState=function(...o){let a=t.apply(this,o);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),a};let i=history.replaceState;history.replaceState=function(...o){let a=i.apply(this,o);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),a},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))});let n=()=>this.debounce(()=>this.screenView(),50);this.options.trackHashChanges?window.addEventListener("hashchange",n):window.addEventListener("locationchange",n)}trackAttributes(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("button"),r=i.closest("a"),o=n?.getAttribute("data-track")?n:r?.getAttribute("data-track")?r:null;if(o){let a={};for(let p of o.attributes)p.name.startsWith("data-")&&p.name!=="data-track"&&(a[R(p.name.replace(/^data-/,""))]=p.value);let u=o.getAttribute("data-track");u&&this.track(u,a)}})}track(t,i){return super.track(t,{...i,__path:this.currentPath()})}currentPath(){return this.lastPath?this.lastPath:this.isServer()?"":window.location.href}screenView(t,i){if(this.isServer())return;let n,r;typeof t=="string"?(n=t,r=i):(n=window.location.href,r=t),this.lastPath!==n&&(this.lastPath=n,super.track("screen_view",{...r??{},__path:n,__title:document.title}))}async flushRevenue(){let t=this.pendingRevenues.map(i=>super.revenue(i.amount,i.properties));await Promise.all(t),this.clearRevenue()}clearRevenue(){if(this.pendingRevenues=[],!this.isServer())try{sessionStorage.removeItem("openpanel-pending-revenues")}catch{}}pendingRevenue(t,i){if(this.pendingRevenues.push({amount:t,properties:i}),!this.isServer())try{sessionStorage.setItem("openpanel-pending-revenues",JSON.stringify(this.pendingRevenues))}catch{}}};(e=>{if(e.op){let s=e.op.q||[],t=new l(s.shift()[1]);s.forEach(n=>{n[0]in t&&t[n[0]](...n.slice(1))});let i=new Proxy((n,...r)=>{let o=t[n]?t[n].bind(t):void 0;typeof o=="function"?o(...r):console.warn(`OpenPanel: ${n} is not a function`)},{get(n,r){if(r==="q")return;let o=t[r];return typeof o=="function"?o.bind(t):o}});e.op=i,e.openpanel=t}})(window);})();diff --git a/bun.lock b/bun.lockindex 4e29113bf..f450ede38 100644--- a/bun.lock+++ b/bun.lock@@ -465,7 +465,7 @@},"packages/sdks/astro": {"name": "@openpanel/astro",- "version": "1.4.1-local",+ "version": "1.4.2-local","dependencies": {"@openpanel/web": "workspace:1.4.1-local",},@@ -478,7 +478,7 @@},"packages/sdks/express": {"name": "@openpanel/express",- "version": "1.3.1-local",+ "version": "1.3.2-local","dependencies": {"@openpanel/sdk": "workspace:1.3.1-local",},@@ -495,7 +495,7 @@},"packages/sdks/nextjs": {"name": "@openpanel/nextjs",- "version": "1.5.1-local",+ "version": "1.5.2-local","dependencies": {"@openpanel/web": "workspace:1.4.1-local",},@@ -516,7 +516,7 @@},"packages/sdks/nuxt": {"name": "@openpanel/nuxt",- "version": "0.4.1-local",+ "version": "0.4.2-local","dependencies": {"@openpanel/web": "workspace:1.4.1-local",},@@ -537,7 +537,7 @@},"packages/sdks/react-native": {"name": "@openpanel/react-native",- "version": "1.4.1-local",+ "version": "1.4.2-local","dependencies": {"@openpanel/sdk": "workspace:1.3.1-local",},@@ -555,7 +555,7 @@},"packages/sdks/sdk": {"name": "@openpanel/sdk",- "version": "1.3.1-local",+ "version": "1.3.2-local","devDependencies": {"@openpanel/tsconfig": "workspace:*","@types/node": "catalog:",@@ -565,9 +565,9 @@},"packages/sdks/web": {"name": "@openpanel/web",- "version": "1.4.1-local",+ "version": "1.4.2-local","dependencies": {- "@openpanel/sdk": "workspace:1.3.1-local",+ "@openpanel/sdk": "workspace:1.3.2-local","@rrweb/types": "2.0.0-alpha.20","rrweb": "2.0.0-alpha.20",},diff --git a/packages/sdks/astro/package.json b/packages/sdks/astro/package.jsonindex 055cdb69d..44a5c9dcf 100644--- a/packages/sdks/astro/package.json+++ b/packages/sdks/astro/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/astro",- "version": "1.4.1-local",+ "version": "1.4.2-local","license": "MIT","repository": {"type": "git",@@ -26,7 +26,7 @@"astro-component"],"dependencies": {- "@openpanel/web": "workspace:1.4.1-local"+ "@openpanel/web": "workspace:1.4.2-local"},"devDependencies": {"astro": "6.4.2"diff --git a/packages/sdks/astro/src/OpenPanelComponent.astro b/packages/sdks/astro/src/OpenPanelComponent.astroindex 56c126adb..fed3a980f 100644--- a/packages/sdks/astro/src/OpenPanelComponent.astro+++ b/packages/sdks/astro/src/OpenPanelComponent.astro@@ -36,7 +36,7 @@ const methods: { name: OpenPanelMethodNames; value: unknown }[] = [value: {...options,sdk: 'astro',- sdkVersion: '1.4.1',+ sdkVersion: '1.4.2',},},];diff --git a/packages/sdks/express/package.json b/packages/sdks/express/package.jsonindex 7a47f7e73..49c4748dc 100644--- a/packages/sdks/express/package.json+++ b/packages/sdks/express/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/express",- "version": "1.3.1-local",+ "version": "1.3.2-local","license": "MIT","repository": {"type": "git",@@ -16,7 +16,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.1-local"+ "@openpanel/sdk": "workspace:1.3.2-local"},"peerDependencies": {"express": "^4.17.0 || ^5.0.0"diff --git a/packages/sdks/nextjs/package.json b/packages/sdks/nextjs/package.jsonindex e01fa72e4..d587bee51 100644--- a/packages/sdks/nextjs/package.json+++ b/packages/sdks/nextjs/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/nextjs",- "version": "1.5.1-local",+ "version": "1.5.2-local","license": "MIT","repository": {"type": "git",@@ -16,7 +16,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/web": "workspace:1.4.1-local"+ "@openpanel/web": "workspace:1.4.2-local"},"peerDependencies": {"next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",diff --git a/packages/sdks/nuxt/package.json b/packages/sdks/nuxt/package.jsonindex fdf611962..3cdbc5e04 100644--- a/packages/sdks/nuxt/package.json+++ b/packages/sdks/nuxt/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/nuxt",- "version": "0.4.1-local",+ "version": "0.4.2-local","license": "MIT","repository": {"type": "git",@@ -30,7 +30,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/web": "workspace:1.4.1-local"+ "@openpanel/web": "workspace:1.4.2-local"},"peerDependencies": {"h3": "^1.0.0",diff --git a/packages/sdks/react-native/package.json b/packages/sdks/react-native/package.jsonindex e6f840655..5140827c1 100644--- a/packages/sdks/react-native/package.json+++ b/packages/sdks/react-native/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/react-native",- "version": "1.4.1-local",+ "version": "1.4.2-local","license": "MIT","repository": {"type": "git",@@ -16,7 +16,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.1-local"+ "@openpanel/sdk": "workspace:1.3.2-local"},"devDependencies": {"@openpanel/tsconfig": "workspace:*",diff --git a/packages/sdks/sdk/package.json b/packages/sdks/sdk/package.jsonindex e05c000bf..eadc463cc 100644--- a/packages/sdks/sdk/package.json+++ b/packages/sdks/sdk/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/sdk",- "version": "1.3.1-local",+ "version": "1.3.2-local","license": "MIT","repository": {"type": "git",diff --git a/packages/sdks/web/package.json b/packages/sdks/web/package.jsonindex 270a7a035..2b4814b84 100644--- a/packages/sdks/web/package.json+++ b/packages/sdks/web/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/web",- "version": "1.4.1-local",+ "version": "1.4.2-local","license": "MIT","repository": {"type": "git",@@ -17,7 +17,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.1-local",+ "@openpanel/sdk": "workspace:1.3.2-local","@rrweb/types": "2.0.0-alpha.20","rrweb": "2.0.0-alpha.20"},diff --git a/tooling/publish/publish.ts b/tooling/publish/publish.tsindex 8a9347e0a..354555c1d 100644--- a/tooling/publish/publish.ts+++ b/tooling/publish/publish.ts@@ -47,7 +47,7 @@ const workspacePath = (relativePath: string) =>const savePackageJson = (absPath: string, data: PackageJson) => {fs.writeFileSync(absPath, JSON.stringify(data, null, 2), 'utf-8');- execSync(`npx biome format ${absPath} --fix`);+ execSync(`bunx biome format ${absPath} --fix`);};const exit = (message: string, error?: unknown) => {