Skip to content

v0.19.0

Compare
Choose a tag to compare
@belemaire belemaire released this 04 Jun 20:13
· 1620 commits to master since this release

Add new target React Native version : 0.55.4

Breaking Changes

  • #779 Due to the introduction of custom Container publishers (see below), the ern cauldron add publisher command has been refactored to make it easier to use and to allow to add any type of publisher. It now accepts pretty much similar options as the ern publish-container command.

Upcoming Deprecations

  • #779 If you were using github publisher name from your Cauldron, please update the name of this publisher to git. A warning message will appear if using github as we will deprecate this publisher name soon, in favor of git

New Features

  • #779 Custom Container publishers
    In an effort of adding extensibility points to Electrode Native, starting with Container Publishers, it is now possible to create your own custom Electrode Native Container Publisher, for your needs, and distribute it easily. The three publishers that were shipped with Electrode Native (git/maven/jcenter) have been extracted from Electrode Native, and are now shipped on their own as dedicated packages coming with their documentation (as ern-container-publisher-git, ern-container-publisher-maven and ern-container-publisher-jcenter). These publishers are not distributed with Electrode Native any-longer but are instead lazily retrieved when used.

  • #783 Local Cauldrons
    Given that a Cauldron can be considered as a workspace, it makes sense to offer the option to have a local workspace, not shared with anyone. A local cauldron can be created by using local keyword instead of a remote repository url. Local Cauldrons are also much faster than Remote Cauldrons as they don't require any kind of synchronization with a remote.

Improvements

  • #782 Support latest version keyword for ern platform use and ern platform install commands. Using latest for the version, instead of a specific version, will install the latest available version of Electrode Native.

  • #772 [MiniApps] Generate a .npmignore file for MiniApps, when using ern create-miniapp command to exclude ios and android directories (for the most part), to reduce the size of published packages.

  • #775 [Android Container] startActivitySafely method now returns a boolean (instead of void) to indicate the result of the operation.

  • #777 Store two new properties in the Container Metadata document (container-metadata.json) : platform (ios or android), identifying the target platform of the Container, and ernVersion to store the version of Electrode Native that was used to generate the Container.

  • #781 Store in Cauldron, in the Container object, the Electrode Native version that was used to generate this Container. This is for tracking only and troubleshooting. Electrode Native does not make use of this yet, but soon might.

Misc.

  • #760 Change prefix of iOS bundle id of Container/APIs from com.walmart.electronics to com.walmartlabs.ern, more generic naming, and now on parity with our Android namespace.

Internals

  • #773 Improve getActiveCauldron function so that it only caches the Cauldron instance by alias.

  • #767 Fix TypeScript compilation on Windows.

  • #768 Disable prettier for json files.

  • #769 Group npm related scripts.

  • #777 Add NativePlatform type.

  • #784 Bump dependencies versions.