@feature-hub/logger
Advanced tools
Changelog
2.0.0 (2019-06-20)
FeatureAppManager#getFeatureAppScope
has been
replaced by FeatureAppManager#createFeatureAppScope
, since now a new
FeatureAppScope
is created for every call. When a Feature App is
unmounted, the release
method (previously called destroy
) must be
called. Only when all scopes for a Feature App ID have been released,
the Feature App instance is destroyed.currentRootLocation
and consumerLocation
parameters of createRootLocation
have been switched.AsyncSsrManagerV0
ExternalsValidatorLike
FeatureAppManagerLike
FeatureServiceRegistryLike
HistoryServiceV0
FeatureHubContextValue
SerializedStateManagerV0
ServerRequestV0
FeatureAppContainer
/FeatureAppLoader
catches a render error on the server, this error was previously re-thrown.
To re-create this behavior, an onError
prop must be defined that throws
the error.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.featureAppConfigs
has been removed
from the options of createFeatureHub
and from the options of the
FeatureAppManager
constructor. The env
that is passed to a
Feature App's create
method does not include an instanceConfig
property
anymore. If a Feature App must be configured, the integrator needs to
specify the config
prop of the FeatureAppLoader
or
FeatureAppContainer
. Furthermore, the FeatureAppLoader
or
FeatureAppContainer
now require a featureAppId
prop, and the
instanceConfig
and idSpecifier
props have been removed. The same
applies to the <feature-app-loader>
and <feature-app-container>
custom elements. Since the integrator now needs to define the ID of a
Feature App, the Feature App definition must not specify an id
anymore.primaryConsumerUid
of
createRootLocationTransformer
has been renamed to primaryConsumerId
.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.asyncSsrManagerDefinition
has been replaced with
the factory function defineAsyncSsrManager
. This function accepts
options to set the timeout
, which previously had to be set by the
integrator via Feature Service configs. This is in preparation of an
upcoming breaking change that removes the ability to provide Feature
Service configs through the Feature Service registry.FeatureAppDefinition
FeatureAppEnvironment
FeatureServiceProviderDefinition
FeatureServiceEnvironment