-
Notifications
You must be signed in to change notification settings - Fork 187
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
fix(connector): authEndpoint backward compatibility #410
Conversation
…orization&userAuthentication to pusher connector; full backward compatibility with deprecated pusher authEndpoint, authTransport, auth and authorizer options
Should we add |
I don't think so, because this dependency is currently optional, since Laravel Echo can use different connectors and Pusher may not always be needed. If we import Pusher from a dependency, it will increase the final bundle size for those using the |
Maybe we should add a warning for deprecated options to the console? |
These options have been deprecated for 3 years and have not been removed yet, so maybe some developers will want to hide these warnings
As good as it is to see this PR, this appears to break the standards and conventions set up within package, using ES6 classes instead of functions to manage the complexity. It would appear that moving those options out of that class is a mistake, and should be managed as part of the Connector API, as that manages the options. I think it's a relatively straight-forward change - if authorizer is present as part of the options, use that, else default to the other options for connectivity. |
In essence, options are still managed by classes - they just use utilities to improve code organization, which already happened with the
It's not just the |
This feels like a really big change? |
@ProjektGopher can you take a look at this if you have a chance? |
Not really big, just some refactoring to move Pusher options to the Pusher connector and fix backward compatibility |
Reverted the original PR for now. cc @ProjektGopher |
That's what I was going to suggest as the easiest temporary solution. I agree that this PR looks like more work than necessary for now |
Fix #408
Issue source: https://github.com/pusher/pusher-js/blob/37b057c45c403af27c79303123344c42f6da6a25/src/core/config.ts#L151