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

@rnx-kit/config

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnx-kit/config - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

32

CHANGELOG.json

@@ -5,6 +5,36 @@ {

{
"date": "Wed, 26 May 2021 13:22:08 GMT",
"date": "Fri, 04 Jun 2021 12:36:23 GMT",
"tag": "@rnx-kit/config_v0.2.9",
"version": "0.2.9",
"comments": {
"patch": [
{
"comment": "Fixed error when React Native dev version is a range",
"author": "4123478+tido64@users.noreply.github.com",
"commit": "434c350f84c22f492f3e5f5065ba2bc2d31b2678",
"package": "@rnx-kit/config"
}
]
}
},
{
"date": "Thu, 03 Jun 2021 10:15:50 GMT",
"tag": "@rnx-kit/config_v0.2.8",
"version": "0.2.8",
"comments": {
"none": [
{
"comment": "Formatted all the things",
"author": "4123478+tido64@users.noreply.github.com",
"commit": "693d313e7ab36dcc0f28ec81b889bbd4aa4a89fd",
"package": "@rnx-kit/config"
}
]
}
},
{
"date": "Wed, 26 May 2021 13:22:22 GMT",
"tag": "@rnx-kit/config_v0.2.8",
"version": "0.2.8",
"comments": {
"patch": [

@@ -11,0 +41,0 @@ {

# Change Log - @rnx-kit/config
This log was last generated on Wed, 26 May 2021 13:22:08 GMT and should not be manually modified.
This log was last generated on Fri, 04 Jun 2021 12:36:23 GMT and should not be manually modified.
<!-- Start content -->
## 0.2.9
Fri, 04 Jun 2021 12:36:23 GMT
### Patches
- Fixed error when React Native dev version is a range (4123478+tido64@users.noreply.github.com)
## 0.2.8
Wed, 26 May 2021 13:22:08 GMT
Wed, 26 May 2021 13:22:22 GMT

@@ -11,0 +19,0 @@ ### Patches

2

lib/getKitCapabilities.js

@@ -17,3 +17,3 @@ "use strict";

if (!reactNativeDevVersion ||
!semver_1.default.satisfies(reactNativeDevVersion, reactNativeVersion)) {
!semver_1.default.subset(reactNativeDevVersion, reactNativeVersion)) {
throw new Error(`'${reactNativeDevVersion}' is not a valid dev version because it does not satisfy supported version range '${reactNativeVersion}'`);

@@ -20,0 +20,0 @@ }

@@ -34,2 +34,12 @@ "use strict";

});
test("returns declared React Native dev version", () => {
expect(getKitCapabilities_1.getKitCapabilities({
reactNativeVersion: "^0.63 || ^0.64",
reactNativeDevVersion: "0.64.0",
}).reactNativeDevVersion).toBe("0.64.0");
expect(getKitCapabilities_1.getKitCapabilities({
reactNativeVersion: "^0.63 || ^0.64",
reactNativeDevVersion: "^0.64.0",
}).reactNativeDevVersion).toBe("^0.64.0");
});
test("returns minimum supported React Native version as dev version when unspecified", () => {

@@ -36,0 +46,0 @@ expect(getKitCapabilities_1.getKitCapabilities({

{
"name": "@rnx-kit/config",
"version": "0.2.8",
"version": "0.2.9",
"description": "Package for defining and querying information about rnx kits",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

# @rnx-kit/config
A package for configuring and extracting configuration information about rnx-kits.
A package for configuring and extracting configuration information about
rnx-kits.
This is designed to be part of the tooling pipeline, thus it runs in the node environment.
This is designed to be part of the tooling pipeline, thus it runs in the node
environment.
## `getKitConfig([options]): KitConfig | null`
This is the core routine to retrieve information about an rnx-kit. By default this will load information about the current package. It will look for kit information in the current working directory using `cosmiconfig` to match either rnx-kit.config.js, a "rnx-kit" section of package.json, or any of the other standard ways of supplying configuration.
This is the core routine to retrieve information about an rnx-kit. By default
this will load information about the current package. It will look for kit
information in the current working directory using `cosmiconfig` to match either
rnx-kit.config.js, a "rnx-kit" section of package.json, or any of the other
standard ways of supplying configuration.

@@ -24,7 +30,12 @@ ### Additional Options

- Dependency gathering, both deep and direct. Required for platform bundling in both dynamic metro configs as well as the babel transform. For performance (and flexibility) the platform bundling step should produce generated output to track the explicit list included.
- Definitions of how a platform bundle was produced, including where a shipped version can be found.
- Dependency gathering, both deep and direct. Required for platform bundling in
both dynamic metro configs as well as the babel transform. For performance
(and flexibility) the platform bundling step should produce generated output
to track the explicit list included.
- Definitions of how a platform bundle was produced, including where a shipped
version can be found.
- Configuration of how a platform bundle should be consumed
- Platform masking of configurations, likely needed for specialized out of tree platform handling in metro configs
- Platform masking of configurations, likely needed for specialized out of tree
platform handling in metro configs
- Special handling instructions for bundling
- Special handling instructions for testing

@@ -54,2 +54,17 @@ import { getKitCapabilities } from "./getKitCapabilities";

test("returns declared React Native dev version", () => {
expect(
getKitCapabilities({
reactNativeVersion: "^0.63 || ^0.64",
reactNativeDevVersion: "0.64.0",
}).reactNativeDevVersion
).toBe("0.64.0");
expect(
getKitCapabilities({
reactNativeVersion: "^0.63 || ^0.64",
reactNativeDevVersion: "^0.64.0",
}).reactNativeDevVersion
).toBe("^0.64.0");
});
test("returns minimum supported React Native version as dev version when unspecified", () => {

@@ -56,0 +71,0 @@ expect(

@@ -35,3 +35,3 @@ import semver from "semver";

!reactNativeDevVersion ||
!semver.satisfies(reactNativeDevVersion, reactNativeVersion)
!semver.subset(reactNativeDevVersion, reactNativeVersion)
) {

@@ -38,0 +38,0 @@ throw new Error(

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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