Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@feature-hub/core
Advanced tools
Create scalable web applications using micro frontends.
Allows dynamic loading of micro frontends, lifecycle management of micro frontends, and controlled sharing of state and functionality between micro frontends.
yarn add @feature-hub/core
npm install @feature-hub/core
Copyright (c) 2018-2019 SinnerSchrader Deutschland GmbH. Released under the terms of the MIT License.
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
FAQs
Create scalable web applications using micro frontends.
The npm package @feature-hub/core receives a total of 25,289 weekly downloads. As such, @feature-hub/core popularity was classified as popular.
We found that @feature-hub/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.