@automattic/explat-client-react-helpers
Advanced tools
Comparing version 0.0.4 to 0.0.5
# Changelog | ||
## 0.0.5 | ||
- Loosen the requirements around dependencies | ||
## 0.0.4 | ||
@@ -3,0 +8,0 @@ |
@@ -46,8 +46,8 @@ "use strict"; | ||
if (isLoading) { | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: loadingExperience }, void 0); | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: loadingExperience }); | ||
} | ||
else if (!experimentAssignment?.variationName) { | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: defaultExperience }, void 0); | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: defaultExperience }); | ||
} | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: treatmentExperience }, void 0); | ||
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: treatmentExperience }); | ||
}; | ||
@@ -54,0 +54,0 @@ const ProvideExperimentData = ({ children, name: experimentName, options, }) => { |
@@ -44,8 +44,8 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime"; | ||
if (isLoading) { | ||
return _jsx(_Fragment, { children: loadingExperience }, void 0); | ||
return _jsx(_Fragment, { children: loadingExperience }); | ||
} | ||
else if (!experimentAssignment?.variationName) { | ||
return _jsx(_Fragment, { children: defaultExperience }, void 0); | ||
return _jsx(_Fragment, { children: defaultExperience }); | ||
} | ||
return _jsx(_Fragment, { children: treatmentExperience }, void 0); | ||
return _jsx(_Fragment, { children: treatmentExperience }); | ||
}; | ||
@@ -52,0 +52,0 @@ const ProvideExperimentData = ({ children, name: experimentName, options, }) => { |
{ | ||
"name": "@automattic/explat-client-react-helpers", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Standalone ExPlat Client: React Helpers.", | ||
@@ -29,4 +29,4 @@ "bugs": "https://github.com/Automattic/wp-calypso/issues", | ||
"@automattic/explat-client": "^0.0.3", | ||
"react": "^17.0.2", | ||
"tslib": "^2.3.0" | ||
"react": ">=16.8 <18", | ||
"tslib": ">=2.3.0" | ||
}, | ||
@@ -37,6 +37,6 @@ "devDependencies": { | ||
"@testing-library/react": "^12.1.3", | ||
"@testing-library/react-hooks": "7.0.2", | ||
"react-dom": "^17.0.2", | ||
"@testing-library/react-hooks": "^7.0.2", | ||
"react-dom": ">=16.8 <18", | ||
"typescript": "^4.5.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44015
503
0
Updatedreact@>=16.8 <18
Updatedtslib@>=2.3.0