-
Notifications
You must be signed in to change notification settings - Fork 25
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
Proposal: Breaking change of beforeCreate #490
Comments
🤔 I kind of like the symmetry with the |
But we only give the integrator the |
Perhaps we should offer helper methods to combine or separate IDs? |
fixes #490 BREAKING CHANGE: Instead of passing the `featureAppId` and the `featureServices` as separate arguments to the `beforeCreate` callback, the full Feature App environment, that contains the `featureAppId` and `featureServices`, is now passed as a single argument (`env`). This is the same argument that is passed to the Feature App's `create` method.
fixes #490 BREAKING CHANGE: Instead of passing the `featureAppId` and the `featureServices` as separate arguments to the `beforeCreate` callback, the full Feature App environment, that contains the `featureAppId` and `featureServices`, is now passed as a single argument (`env`). This is the same argument that is passed to the Feature App's `create` method.
Maybe it would be better to pass the whole environment to
beforeCreate
instead of just the bound feature services. The environment is also the argument for thecreate
method and contains potentially useful information.New:
Current:
The text was updated successfully, but these errors were encountered: