Skip to content
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

feat(core): remove ability to provide configs via FeatureServiceRegistry #500

Merged
merged 2 commits into from
Jun 5, 2019

Conversation

unstubbable
Copy link
Member

@unstubbable unstubbable commented Jun 5, 2019

BREAKING CHANGE: The option featureServiceConfigs has been removed from the options of createFeatureHub and from the options of the FeatureServiceRegistry constructor. The env that is passed to a Feature Service's create method does not include a config property anymore. If a Feature Service must be configured, a factory function that accepts options, and that returns a Feature Service definition, should be used instead, see @feature-hub/async-ssr-manager for an example.


Note: The primaryConsumerUid option of the History Service will be renamed to primaryConsumerId in a separate PR, since this would change the API of the @feature-hub/history-service package, whereas this PR only changes the API of @feature-hub/core.

@unstubbable unstubbable requested a review from clebert June 5, 2019 14:49
BREAKING CHANGE: The option `featureServiceConfigs` has been removed
from the options of `createFeatureHub` and from the options of the
`FeatureServiceRegistry` constructor. The `env` that is passed to a
Feature Service's `create` method does not include a `config` property
anymore. If a Feature Service must be configured, a factory function
that accepts options, and that returns a Feature Service definition,
should be used instead, see @feature-hub/async-ssr-manager for an
example.
packages/demos/src/custom-logging/integrator.tsx Outdated Show resolved Hide resolved
packages/core/src/feature-app-manager.ts Outdated Show resolved Hide resolved
@unstubbable unstubbable merged commit 388b9f0 into master Jun 5, 2019
@unstubbable unstubbable deleted the feature-registry-no-config branch June 5, 2019 15:46
stemey pushed a commit to stemey/feature-hub that referenced this pull request Jun 7, 2019
…try (feature-hub#500)

BREAKING CHANGE: The option `featureServiceConfigs` has been removed
from the options of `createFeatureHub` and from the options of the
`FeatureServiceRegistry` constructor. The `env` that is passed to a
Feature Service's `create` method does not include a `config` property
anymore. If a Feature Service must be configured, a factory function
that accepts options, and that returns a Feature Service definition,
should be used instead, see `@feature-hub/async-ssr-manager` for an
example.
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.

None yet

2 participants