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
135 changes: 75 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,77 @@
{
"name": "mini-cms",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev:astro": "astro dev --port 4321 --remote",
"dev": "npm run dev:astro",
"build": "astro build --remote",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/alpinejs": "^0.4.9",
"@astrojs/check": "^0.9.6",
"@astrojs/db": "^0.18.3",
"@astrojs/node": "^9.5.1",
"@astrojs/react": "^4.4.2",
"@astrojs/sitemap": "^3.6.0",
"@astrojs/vercel": "^9.0.2",
"@auth/core": "^0.37.4",
"@fontsource/inter": "^5.2.5",
"@fontsource/space-grotesk": "^5.2.6",
"@hono/node-server": "^1.13.8",
"@hono/zod-validator": "^0.4.3",
"@libsql/client": "^0.15.4",
"@nanostores/persistent": "^1.0.0",
"@octokit/rest": "^21.1.1",
"@tabler/icons": "^3.35.0",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/vite": "^4.1.17",
"@toast-ui/editor": "^3.2.2",
"@toast-ui/react-editor": "^3.2.3",
"@types/alpinejs": "^3.13.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@upstash/redis": "^1.35.6",
"@vercel/analytics": "^1.6.1",
"alpinejs": "^3.15.1",
"astro": "^5.16.4",
"axios": "^1.12.0",
"hono": "^4.10.3",
"jsonwebtoken": "^9.0.2",
"nanostores": "^0.11.3",
"nodemailer": "^7.0.11",
"octokit": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^3.3.1",
"tailwind-variants": "^3.1.1",
"tailwindcss": "^4.1.17",
"tw-animate-css": "^1.4.0",
"typescript": "^5.8.3",
"uuid": "^13.0.0",
"yaml": "^2.8.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@biomejs/biome": "2.3.4",
"@types/jsonwebtoken": "^9.0.10",
"@types/nodemailer": "^7.0.4"
}
"name": "mini-cms",
"type": "module",
"version": "0.1.0",
"scripts": {
"dev:astro": "astro dev --port 4321 --remote",
"dev": "npm run dev:astro",
"build": "astro build --remote",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/alpinejs": "^0.4.9",
"@astrojs/check": "^0.9.6",
"@astrojs/db": "^0.18.3",
"@astrojs/node": "^9.5.1",
"@astrojs/react": "^4.4.2",
"@astrojs/sitemap": "^3.6.0",
"@astrojs/vercel": "^9.0.2",
"@auth/core": "^0.37.4",
"@fontsource/inter": "^5.2.5",
"@fontsource/space-grotesk": "^5.2.6",
"@hocuspocus/provider": "^3.4.3",
"@hocuspocus/server": "^3.4.3",
"@hono/node-server": "^1.13.8",
"@hono/zod-validator": "^0.4.3",
"@libsql/client": "^0.15.4",
"@nanostores/persistent": "^1.0.0",
"@octokit/rest": "^21.1.1",
"@tabler/icons": "^3.35.0",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/vite": "^4.1.17",
"@tanstack/react-query": "^5.96.0",
"@tanstack/react-virtual": "^3.13.23",
"@tiptap/extension-collaboration": "^3.15.3",
"@tiptap/extension-collaboration-cursor": "^2.26.2",
"@tiptap/extension-table": "^3.15.3",
"@tiptap/extension-table-cell": "^3.15.3",
"@tiptap/extension-table-header": "^3.15.3",
"@tiptap/extension-table-row": "^3.15.3",
"@tiptap/react": "^3.15.3",
"@tiptap/starter-kit": "^3.15.3",
"@toast-ui/editor": "^3.2.2",
Comment on lines +35 to +43
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# First, let's locate and read the package.json file to verify versions
find . -maxdepth 2 -name "package.json" -type f

Repository: Lftobs/mini-cms

Length of output: 73


🏁 Script executed:

# Search for any imports of the legacy 'tiptap' v1 package
rg -n --type=js --type=ts --type=tsx --type=jsx --type=astro "from ['\"]tiptap['\"]|require\\(['\"]tiptap['\"]\\)" -A2 -B2

Repository: Lftobs/mini-cms

Length of output: 86


🌐 Web query:

Tiptap @tiptap/extension-collaboration-cursorv2 compatibility with@tiptap v3 packages

💡 Result:

@tiptap/extension-collaboration-cursor v2 is not compatible with @tiptap/* v3 packages—you generally can’t mix major versions in Tiptap because of breaking API changes and peer dependency expectations.

In Tiptap v3, the cursor extension was renamed from CollaborationCursor to CollaborationCaret. So for a v3 editor you should use:

  • @tiptap/extension-collaboration (v3)
  • @tiptap/extension-collaboration-caret (v3) (tiptap.dev)

Practical rule: keep your Tiptap packages on the same major version (all v2 or all v3). (tiptap.dev)

Citations:


🌐 Web query:

Are @tiptap/extension-collaboration-cursorv2 and@tiptap v3 packages compatible

💡 Result:

No—don’t mix Tiptap major versions.

  • @tiptap/extension-collaboration-cursor@v2 is a Tiptap v2 extension and is not intended to work with @tiptap/*@v3 (v3 is a breaking major release, and packages are expected to be on the same major version). [1]
  • In Tiptap v3, the old CollaborationCursor extension was renamed; you should use @tiptap/extension-collaboration-caret@v3 instead (along with @tiptap/extension-collaboration@v3, @tiptap/core@v3, etc.). [2]

What to do: upgrade to the v3 caret package:

  • install @tiptap/extension-collaboration-caret (v3) rather than @tiptap/extension-collaboration-cursor (v2). [2]

Sources: Tiptap v3 upgrade/changes docs. [1], [2]


🏁 Script executed:

# Search for legacy tiptap v1 imports - fix file type issue
rg -n "from ['\"]tiptap['\"]|require\\(['\"]tiptap['\"]\\)" -A2 -B2

Repository: Lftobs/mini-cms

Length of output: 41


🏁 Script executed:

# Read the package.json file to verify all Tiptap versions
cat package.json | head -100

Repository: Lftobs/mini-cms

Length of output: 2303


🌐 Web query:

Astro v5 TypeScript version requirement

💡 Result:

Astro v5 itself does not declare a required TypeScript version (it doesn’t list typescript as a dependency/peer dependency), so TypeScript is optional unless you’re using TS tooling. [1]

If you use Astro’s type-checking tooling (astro check / @astrojs/check), it requires TypeScript ^5.0.0. [2]

Sources: [1] [2]


Replace @tiptap/extension-collaboration-cursor v2 with the v3 equivalent @tiptap/extension-collaboration-caret.

The v2 and v3 Tiptap packages are incompatible due to breaking API changes. In Tiptap v3, the CollaborationCursor extension was renamed to CollaborationCaret. Replace the v2 package with @tiptap/extension-collaboration-caret@^3.x.x to match your other Tiptap v3 dependencies.

Additionally, the tiptap v1 package in dependencies is unused and can be removed to clean up the dependency tree.

🤖 Prompt for AI Agents
In `@package.json` around lines 33 - 41, Update dependencies to use the Tiptap v3
collaboration caret and remove the old v2 and unused v1 packages: replace
"@tiptap/extension-collaboration-cursor" with
"@tiptap/extension-collaboration-caret@^3.x.x" so it matches the other
"@tiptap/*" v3 packages (e.g., "@tiptap/react", "@tiptap/starter-kit"), and
remove any "tiptap" v1 entry from dependencies to avoid unused/ incompatible
packages; ensure package.json only lists the v3 collaboration caret and then run
install to update lockfile.

"@toast-ui/react-editor": "^3.2.3",
"@types/alpinejs": "^3.13.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@upstash/redis": "^1.35.6",
"@vercel/analytics": "^1.6.1",
"alpinejs": "^3.15.1",
"astro": "^5.16.4",
"axios": "^1.12.0",
"compression": "^1.8.1",
"hono": "^4.10.3",
"jsonwebtoken": "^9.0.2",
"nanostores": "^0.11.3",
"nodemailer": "^7.0.11",
"octokit": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^3.3.1",
"tailwind-variants": "^3.1.1",
"tailwindcss": "^4.1.17",
"tiptap": "^1.32.2",
"tw-animate-css": "^1.4.0",
"typescript": "^5.8.3",
"uuid": "^13.0.0",
"yaml": "^2.8.1",
"yjs": "^13.6.29",
"zod": "^3.24.2"
},
"devDependencies": {
"@biomejs/biome": "2.3.4",
"@types/jsonwebtoken": "^9.0.10",
"@types/nodemailer": "^7.0.4"
}
}
Loading