Skip to content

Remove backwards compatibility code after new auth deployment #4106

Closed as duplicate

Description

@coderabbitai

Description

Several pieces of backwards compatibility code can be removed once the new authentication system is fully deployed and all users have migrated.

Affected Files

  • packages/serverpod_client/lib/src/serverpod_client_shared.dart:243 - "Remove this backwards compatibility assignment"
  • packages/serverpod_serialization/lib/src/serialization.dart:250 - "Remove this in 2.0.0 as the extensions should be used instead"

Context

The first TODO is about authenticationKeyManager backwards compatibility, which should be removed after new auth is deployed.
The second TODO is about serialization fallback, but this should remain as it's an intentional safety feature (not truly a "backwards compatibility" issue).

Suggested Implementation

  • Mark authenticationKeyManager as deprecated
  • Plan removal for next major version after migration period
  • Update documentation with migration instructions
  • Add warnings for deprecated usage
  • Monitor usage before removal

Impact

Cleaner API, reduced maintenance burden

Related

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions