Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
413 stars 67 forks source link

CPLAT-15062 Export generateJsProps #316

Closed greglittlefield-wf closed 3 years ago

greglittlefield-wf commented 3 years ago

Motivation

generateJsProps is used in ReactComponentFactoryProxy classes to construct React.createElement-compatible JS props objects from Dart props Maps, and includes conversion of refs and optional deep jsifiation of nested objects.

React.createElement is the primary recipient of these kinds of JS props objects, but there are cases in which consumers may need to pass those props to other JS recipients.

For example, you may want to call a JS callback with those props, or even opt to perform conversion of props before they get to the ReactComponentFactoryProxy.

Solution

Unrelated changes

Testing Steps

N/A (CI passes)

aviary-wf commented 3 years ago

Security Insights

(5) Vulnerable direct dependencies were detected
  • 1 vulns in browserslist < 4.16.5 via yarn.lock
  • 1 vulns in elliptic < 6.5.4 via yarn.lock
  • 1 vulns in glob-parent < 5.1.2 via yarn.lock
  • 1 vulns in lodash < 4.17.21 via yarn.lock
  • 1 vulns in ssri < 6.0.2 via yarn.lock
  • Action Items

    semveraudit-wf commented 3 years ago

    Public API Changes

    Recommendation: :warning: Minor version bump

    @@ line 112: package:react/src/react_client/factory_util.dart @@
    +  JsMap generateJsProps(Map<dynamic, dynamic> props, {bool convertRefValue = true, bool convertCallbackRefValue = true, List<String> additionalRefPropKeys = const [], bool wrapWithJsify = true})
    // Adding a top-level function is a minor change.

    Showing results for feac6244fdb701a8c88a76e277bb67ce193ae5bb

    Powered by semver-audit-service. Please report any problems by filing an issue. Reported by the dart semver audit client 2.2.2 Browse public API.

    Last edited UTC Aug 02 at 19:38:59

    aaronlademann-wf commented 3 years ago

    @Workiva/release-management-pp