Skip to content

Conversation

@wobsoriano
Copy link
Member

@wobsoriano wobsoriano commented Sep 9, 2025

Description

Adds a deprecation warning to the @clerk/remix package to inform users that it's now in maintenance mode and will only receive security updates. Remix itself is in maintenance mode and only receives security updates.

The original Remix authors are working on a new "Remix" package that is not React-based, and may confuse future developers using the @clerk/remix package.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Documentation

    • Announced maintenance mode for the Remix SDK and provided migration guidance to @clerk/react-router with links to the Remix upgrade guide and Clerk’s React Router docs.
  • Chores

    • Added a one-time deprecation warning at runtime when the Remix SDK is imported.
    • Added a changeset to publish a minor release highlighting the deprecation.
    • No public API changes.

@changeset-bot
Copy link

changeset-bot bot commented Sep 9, 2025

🦋 Changeset detected

Latest commit: 84cd67b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/remix Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Sep 9, 2025 10:43pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 9, 2025

Walkthrough

Introduces a maintenance-mode deprecation notice for the Remix package. On module import, it logs a one-time warning directing users to migrate to @clerk/react-router, with links. Adds a changeset entry for a minor version update and migration guidance. No public APIs changed.

Changes

Cohort / File(s) Summary
Release notes / Changeset
\.changeset/eleven-timers-clean.md
Adds a changeset declaring a minor bump for @clerk/remix and deprecation/maintenance-mode notice with migration links to @clerk/react-router.
Runtime init / Deprecation logging
packages/remix/src/index.ts
Adds import-time side-effect: initializes shared logger and emits a warnOnce deprecation message for Remix, then continues existing exports from ./client. No API/signature changes.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant App as App (Importer)
    participant Remix as packages/remix/src/index.ts
    participant Logger as Logger

    App->>Remix: import '@clerk/remix'
    activate Remix
    Remix->>Logger: warnOnce("Remix in maintenance mode... migrate to @clerk/react-router")
    note right of Logger: One-time deprecation warning on first import
    Remix-->>App: export * from './client'
    deactivate Remix
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly and accurately highlights the primary change—adding a deprecation warning for maintenance mode in the @clerk/remix package—using clear and concise language without extraneous details.
Description Check ✅ Passed The description directly relates to the changeset by detailing the added deprecation warning, explaining the maintenance‐mode status, and providing context about the upstream Remix project, making it clearly relevant to the changes.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

I thump my paws—“A gentle nudge!”
A warning squeaks with courteous fudge.
Remix naps in maintenance light,
React Router hops into sight.
Version bumps with tidy cheer—
Onward we bound, with logs to steer. 🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rob/deprecation-warning-remix

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 9, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6744

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@6744

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@6744

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@6744

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@6744

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6744

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6744

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@6744

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@6744

@clerk/express

npm i https://pkg.pr.new/@clerk/express@6744

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@6744

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@6744

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@6744

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@6744

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@6744

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@6744

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6744

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@6744

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@6744

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@6744

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6744

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6744

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@6744

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@6744

commit: 84cd67b

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
.changeset/eleven-timers-clean.md (2)

7-8: Fix markdownlint MD034 (no-bare-urls).

Wrap the URLs in angle brackets or convert to link syntax to satisfy markdownlint.

-Migration guide: https://reactrouter.com/upgrading/remix
-React Router SDK: https://clerk.com/docs/quickstarts/react-router
+Migration guide: <https://reactrouter.com/upgrading/remix>
+React Router SDK: <https://clerk.com/docs/quickstarts/react-router>

1-6: Changeset content looks good. Consider whether this warrants patch vs. minor.

Since this is a runtime warning with no API change, a patch bump may also be appropriate. If your release policy prefers minor for deprecation messaging, ignore.

packages/remix/src/index.ts (3)

3-15: Gate the deprecation warning to dev/test to avoid production log noise.

This runs on every import (server and browser). Suggest gating to dev/test and allowing opt-out via env.

-import { logger } from '@clerk/shared/logger';
-
-logger.warnOnce(`
+import { logger } from '@clerk/shared/logger';
+
+if (process.env.NODE_ENV !== 'production' && process.env.CLERK_SDK_WARNINGS !== 'false') {
+  logger.warnOnce(`
 Clerk - DEPRECATION WARNING: @clerk/remix is now in maintenance mode.
 
 @clerk/remix will only receive security updates. No new features will be added.
 
 Please migrate to @clerk/react-router for continued development and new features:
 
 Migration guide: https://reactrouter.com/upgrading/remix
 React Router SDK: https://clerk.com/docs/quickstarts/react-router
-`);
+  `);
+}

5-14: Tune copy to align with official guidance and avoid implying “Remix itself” is in maintenance mode.

React Router v7 is positioned as the next major version after Remix v2; the “Wake up, Remix!” post outlines a new (non-React) direction for Remix v3. Suggest clarifying the message to focus on this package’s maintenance status and direct users to the upgrade guide.

-logger.warnOnce(`
-Clerk - DEPRECATION WARNING: @clerk/remix is now in maintenance mode.
-
-@clerk/remix will only receive security updates. No new features will be added.
-
-Please migrate to @clerk/react-router for continued development and new features:
-
-Migration guide: https://reactrouter.com/upgrading/remix
-React Router SDK: https://clerk.com/docs/quickstarts/react-router
-`);
+logger.warnOnce(`
+Clerk - NOTICE: The @clerk/remix package is now in maintenance mode and will only receive security updates.
+
+For ongoing feature development, migrate to @clerk/react-router. React Router v7 is the evolution of Remix v2.
+
+Upgrade guide: https://reactrouter.com/upgrading/remix
+Clerk React Router SDK: https://clerk.com/docs/quickstarts/react-router
+`);
  • Reference: “Upgrading from Remix” (React Router v7 is the next major version after v2). (reactrouter.com)
  • Context: “Wake up, Remix!” outlines Remix v3’s direction (not React-dependent). (remix.run)

3-3: Sanity check: confirm logger.warnOnce dedupes across both server and client bundles.

If warnOnce de-dupes per process only, users may still see one log on server and one in the browser. That’s acceptable, but confirm intent.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 7fe00d6 and 84cd67b.

📒 Files selected for processing (2)
  • .changeset/eleven-timers-clean.md (1 hunks)
  • packages/remix/src/index.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (9)
.changeset/**

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Automated releases must use Changesets.

Files:

  • .changeset/eleven-timers-clean.md
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

**/*.{js,jsx,ts,tsx}: All code must pass ESLint checks with the project's configuration
Follow established naming conventions (PascalCase for components, camelCase for variables)
Maintain comprehensive JSDoc comments for public APIs
Use dynamic imports for optional features
All public APIs must be documented with JSDoc
Provide meaningful error messages to developers
Include error recovery suggestions where applicable
Log errors appropriately for debugging
Lazy load components and features when possible
Implement proper caching strategies
Use efficient data structures and algorithms
Profile and optimize critical paths
Validate all inputs and sanitize outputs
Implement proper logging with different levels

Files:

  • packages/remix/src/index.ts
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use Prettier for consistent code formatting

Files:

  • packages/remix/src/index.ts
packages/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

TypeScript is required for all packages

Files:

  • packages/remix/src/index.ts
packages/**/*.{ts,tsx,d.ts}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Packages should export TypeScript types alongside runtime code

Files:

  • packages/remix/src/index.ts
packages/**/index.{js,ts}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use tree-shaking friendly exports

Files:

  • packages/remix/src/index.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/development.mdc)

Use proper TypeScript error types

**/*.{ts,tsx}: Always define explicit return types for functions, especially public APIs
Use proper type annotations for variables and parameters where inference isn't clear
Avoid any type - prefer unknown when type is uncertain, then narrow with type guards
Use interface for object shapes that might be extended
Use type for unions, primitives, and computed types
Prefer readonly properties for immutable data structures
Use private for internal implementation details
Use protected for inheritance hierarchies
Use public explicitly for clarity in public APIs
Prefer readonly for properties that shouldn't change after construction
Prefer composition and interfaces over deep inheritance chains
Use mixins for shared behavior across unrelated classes
Implement dependency injection for loose coupling
Let TypeScript infer when types are obvious
Use const assertions for literal types: as const
Use satisfies operator for type checking without widening
Use mapped types for transforming object types
Use conditional types for type-level logic
Leverage template literal types for string manipulation
Use ES6 imports/exports consistently
Use default exports sparingly, prefer named exports
Use type-only imports: import type { ... } from ...
No any types without justification
Proper error handling with typed errors
Consistent use of readonly for immutable data
Proper generic constraints
No unused type parameters
Proper use of utility types instead of manual type construction
Type-only imports where possible
Proper tree-shaking friendly exports
No circular dependencies
Efficient type computations (avoid deep recursion)

Files:

  • packages/remix/src/index.ts
**/*.{js,ts,tsx,jsx}

📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)

Support multiple Clerk environment variables (CLERK_, NEXT_PUBLIC_CLERK_, etc.) for configuration.

Files:

  • packages/remix/src/index.ts
**/index.ts

📄 CodeRabbit inference engine (.cursor/rules/react.mdc)

Use index.ts files for clean imports but avoid deep barrel exports

Avoid barrel files (index.ts re-exports) as they can cause circular dependencies

Files:

  • packages/remix/src/index.ts
🪛 markdownlint-cli2 (0.17.2)
.changeset/eleven-timers-clean.md

7-7: Bare URL used

(MD034, no-bare-urls)


8-8: Bare URL used

(MD034, no-bare-urls)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (25)
  • GitHub Check: Integration Tests (custom, chrome)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Integration Tests (tanstack-react-router, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Static analysis
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan

@wobsoriano wobsoriano merged commit 55a9f7f into main Sep 9, 2025
42 checks passed
@wobsoriano wobsoriano deleted the rob/deprecation-warning-remix branch September 9, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants