-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2: add deprecation warnings for removed and not-previously-deprecated client options #1666
Comments
What do you mean by "add deprecation warnings" here? Do you mean to add warnings into v1 of ably-js? |
I was mainly thinking, if someone's doing eg |
OK, that is indeed not ideal. Is your suggestion that v2 emit a log message warning the user that they've provided a client option that's no longer used by the library, and explaining what they should use instead? |
yeah exactly |
I wonder whether it might be more consistent with the existing approach if we instead release a new version of 1.x that adds deprecation warnings for this stuff (and introduces the replacement API where possible, e.g. adding |
(To be clear, this would be in addition to the migration guide also explaining how to migrate away from all of the API removed in v2.) |
Cherry-picked from commit eaee6f6 in the integration/v2 branch, but preserving the old API with a deprecation warning. Message of that commit: > Conform to spec for logging configuration > > Replace the ClientOptions.log property with separate logLevel and > logHandler properties, to conform with TO3b and TO3c. > > Resolves #642. Decided to add the new API to v1 so that we can add a deprecation warning to the old one before removing it in v2. This is the approach that we’ve taken with all the other client options that v2 removes. Resolves #1666.
Cherry-picked from commit eaee6f6 in the integration/v2 branch, but preserving the old API with a deprecation warning. Message of that commit: > Conform to spec for logging configuration > > Replace the ClientOptions.log property with separate logLevel and > logHandler properties, to conform with TO3b and TO3c. > > Resolves #642. Decided to add the new API to v1 so that we can add a deprecation warning to the old one before removing it in v2. Part of #1666.
#1671 implements what I suggested above for the logging client options. Will look what other options need deprecation warnings. |
Cherry-picked from commit eaee6f6 in the integration/v2 branch, but preserving the old API with a deprecation warning. Message of that commit: > Conform to spec for logging configuration > > Replace the ClientOptions.log property with separate logLevel and > logHandler properties, to conform with TO3b and TO3c. > > Resolves #642. Decided to add the new API to v1 so that we can add a deprecation warning to the old one before removing it in v2. This will then allow the first step our our v2 migration guide to simply be “upgrade to the latest version of v1 and address all the deprecation warnings”. Part of #1666.
Cherry-picked from commit eaee6f6 in the integration/v2 branch, but preserving the old API with a deprecation warning. Message of that commit: > Conform to spec for logging configuration > > Replace the ClientOptions.log property with separate logLevel and > logHandler properties, to conform with TO3b and TO3c. > > Resolves #642. Decided to add the new API to v1 so that we can add a deprecation warning to the old one before removing it in v2. This will then allow the first step of our v2 migration guide to simply be “upgrade to the latest version of v1 and address all the deprecation warnings”. Part of #1666.
Along with an explanation of why it’s in DeprecatedClientOptions. We’ve removed this client option in commit d7aaf34 on the integration/v2 branch. It sounds unlikely this will affect anyone, but add a deprecation warning just in case, and to be consistent with our approach to other deprecated client options. TODO improve logging for deprecated client options Part of #1666.
Along with an explanation of why it’s in DeprecatedClientOptions. We’ve removed this client option in commit d7aaf34 on the integration/v2 branch. It sounds unlikely this will affect anyone, but add a deprecation warning just in case, and to be consistent with our approach to other deprecated client options. Part of #1666.
like clientOptions.log
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: