diff --git a/.changeset/large-dryers-worry.md b/.changeset/large-dryers-worry.md new file mode 100644 index 0000000000..8601afbd99 --- /dev/null +++ b/.changeset/large-dryers-worry.md @@ -0,0 +1,13 @@ +--- +"@uploadthing/expo": patch +"@uploadthing/mime-types": patch +"@uploadthing/nuxt": patch +"@uploadthing/react": patch +"@uploadthing/shared": patch +"@uploadthing/solid": patch +"@uploadthing/svelte": patch +"uploadthing": patch +"@uploadthing/vue": patch +--- + +chore: more relaxed peer dep requirements between uploadthing packages diff --git a/.github/release-canary.js b/.github/release-canary.js index 3c59f16794..936ff22e4d 100644 --- a/.github/release-canary.js +++ b/.github/release-canary.js @@ -41,10 +41,15 @@ async function version() { // Update dependencies for (const dep in pkg.dependencies) { - if (versions[dep]) { + if (versions[dep] && pkg.dependencies[dep].startsWith("workspace:")) { pkg.dependencies[dep] = versions[dep]; } } + for (const dep in pkg.peerDependencies) { + if (versions[dep] && pkg.peerDependencies[dep].startsWith("workspace:")) { + pkg.peerDependencies[dep] = versions[dep]; + } + } const fmt = prettier.format(JSON.stringify(pkg), { filepath: pkgJsonPath }); fs.writeFileSync(pkgJsonPath, fmt); diff --git a/.github/replace-workspace-protocol.ts b/.github/replace-workspace-protocol.ts index 208c6c70e3..85971886ac 100644 --- a/.github/replace-workspace-protocol.ts +++ b/.github/replace-workspace-protocol.ts @@ -34,11 +34,16 @@ await Promise.all( const workspacePkg = await Bun.file("package.json").json(); for (const dep in workspacePkg.dependencies) { if (dep in packageVersions) { - workspacePkg.dependencies[dep] = packageVersions[dep]; + if (workspacePkg.dependencies[dep].startsWith("workspace:")) { + workspacePkg.dependencies[dep] = packageVersions[dep]; + } } } for (const dep in workspacePkg.peerDependencies) { - if (dep in packageVersions) { + if ( + dep in packageVersions && + workspacePkg.peerDependencies[dep].startsWith("workspace:") + ) { workspacePkg.peerDependencies[dep] = packageVersions[dep]; } }