From 14eb5a1e75cdafc1e31e209cf24600475a7e5e07 Mon Sep 17 00:00:00 2001 From: Cameron Knight Date: Tue, 4 Sep 2018 10:41:42 -0700 Subject: [PATCH] Pin create-react-context at v0.2.2 (#4950) Because `create-react-context` updated its license from MIT (read: Open Source) to a more-restrictive, non-Open Source license without appropriately bumping its major version in violation of semver, the `create-react-context` version within `react-navigation` necessarily needs to have its version pinned to a version of `create-react-context` before the license change. v0.2.2 is the most recent version of `create-react-context` that still retains an Open Source license. Note: Another solution to this would be to require `react` `16.3.x` or higher, which includes the official `React.createContext` API without need to rely on a third-party library. Closes #4934 --- CHANGELOG.md | 4 ++++ package.json | 2 +- yarn.lock | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33d0a5c..006d1f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed +- Pinned `create-react-context` dependency to `0.2.2` (https://github.com/react-navigation/react-navigation/issues/4934) + + ## [2.12.1] - [2018-08-23](https://github.com/react-navigation/react-navigation/releases/tag/2.12.1) ### Fixed diff --git a/package.json b/package.json index 57b327b..d46e5e5 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "clamp": "^1.0.1", - "create-react-context": "^0.2.1", + "create-react-context": "0.2.2", "hoist-non-react-statics": "^2.2.0", "path-to-regexp": "^1.7.0", "query-string": "^6.1.0", diff --git a/yarn.lock b/yarn.lock index 8aab239..9eb60d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1584,7 +1584,7 @@ create-react-class@^15.5.2: loose-envify "^1.3.1" object-assign "^4.1.1" -create-react-context@^0.2.1: +create-react-context@0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.2.tgz#9836542f9aaa22868cd7d4a6f82667df38019dca" dependencies: