Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@feature-hub/core

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feature-hub/core - npm Package Versions

1
6

2.7.0-alpha.1

Diff

unstubbable
published 2.7.0-alpha.0 •

feature-hub-ci
published 2.4.1 •

Changelog

Source

2.4.1 (2020-02-12)

Bug Fixes

  • core: avoid wrong featureServiceAlreadyRegistered logs (#560) (80eb1bf)
  • history-service: handle absolute server request urls (#561) (be84e93)
feature-hub-ci
published 2.4.0 •

Changelog

Source

2.4.0 (2019-12-18)

Features

feature-hub-ci
published 2.3.1 •

Changelog

Source

2.3.1 (2019-11-01)

Bug Fixes

  • core: coerce dependency versions to caret ranges (#543) (915012f)
feature-hub-ci
published 2.2.0 •

Changelog

Source

2.2.0 (2019-07-11)

Bug Fixes

  • history-service: set initial hash from root location on primary location (#527) (052f7aa)

Features

  • demos: use react-router in history-service demo (#477) (bd94620)
feature-hub-ci
published 2.1.1 •

Changelog

Source

2.1.1 (2019-07-06)

Bug Fixes

  • history-service: allow LocationDescriptorObject in more places (#522) (656eeb0)
feature-hub-ci
published 2.0.0 •

Changelog

Source

2.0.0 (2019-06-20)

Bug Fixes

  • all: do not destroy Feature App when it is rendered multiple times (#512) (bf8a8ad), closes #505
  • all: remove all deprecated interfaces (#510) (7df042e)
  • history-service: reorder createRootLocation params (#511) (92d6070)

Features

  • all: let featureAppId be defined by the integrator (#504) (2565f0c), closes #495
  • all: pass full env to beforeCreate callback (#506) (abeb26a), closes #490
  • async-ssr-manager: move timeout from config to options (#499) (9536ef7)
  • core: remove ability to provide configs via FeatureServiceRegistry (#500) (388b9f0)
  • history-service: rename primaryConsumerUid to primaryConsumerId (#502) (49fae65)
  • react: do not re-throw render errors on server (#508) (4b1c53e)

BREAKING CHANGES

  • all: 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.
  • history-service: The currentRootLocation and consumerLocation parameters of createRootLocation have been switched.
  • all: The following interfaces have been removed:
    • AsyncSsrManagerV0
    • ExternalsValidatorLike
    • FeatureAppManagerLike
    • FeatureServiceRegistryLike
    • HistoryServiceV0
    • FeatureHubContextValue
    • SerializedStateManagerV0
    • ServerRequestV0
  • react: When the 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.
  • all: 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.
  • all: The option 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.
  • history-service: The option primaryConsumerUid of createRootLocationTransformer has been renamed to primaryConsumerId.
  • core: 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.
  • async-ssr-manager: The 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.
  • core: The type params of the following interfaces have been changed:
    • FeatureAppDefinition
    • FeatureAppEnvironment
    • FeatureServiceProviderDefinition
    • FeatureServiceEnvironment
unstubbable
published 2.0.0-alpha.1 •

unstubbable
published 2.0.0-alpha.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc