Skip to content

Conversation

@tharropoulos
Copy link
Contributor

Change Summary

  • add warn_deprecation decorator to logger module for runtime deprecation warnings
  • add suppress_deprecation_warnings configuration option to control warning visibility
  • add typing-extensions dependency for @deprecated decorator support
  • apply @deprecated decorators to deprecated classes (analytics_v1, analytics_rule_v1, override, overrides, synonyms)
  • apply @warn_deprecation decorators to deprecated class constructors
  • convert analyticsV1, overrides, and synonyms to private attributes with deprecated properties
  • remove manual deprecation warning code and global flags
  • replace logger.warn calls with logger.warning in configuration validations
  • add curation_sets attribute to client class

PR Checklist

- add suppress_deprecation_warnings field to configdict typeddict
- initialize suppress_deprecation_warnings in configuration class
- default to false to maintain existing warning behavior
- add warn_deprecation decorator for method deprecation warnings
- track shown warnings to prevent duplicate messages
- support configurable suppression via suppress_deprecation_warnings
- integrate with apicall configuration for warning control
- add warn_deprecation decorator to analytics_rule_v1 and analytics_rules_v1
- add warn_deprecation decorator to override and overrides classes
- add warn_deprecation decorator to synonym and synonyms classes
- remove manual deprecation warning code and global flags
- replace manual logger.warning calls with decorator-based warnings
- add @deprecated decorator to analytics_rule_v1, analytics_v1 classes
- add @deprecated decorator to override, overrides, synonyms classes
- convert analyticsV1 to private attribute with deprecated property
- convert overrides and synonyms to private attributes with deprecated properties
- remove manual deprecation warning code from analytics_v1
- enable static type checker warnings for deprecated apis
@kishorenc kishorenc merged commit 3109f95 into typesense:master Nov 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants