Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

fix issue #264, move styled-components to peer-dep (#265)

Charlie Martellf936c6a2a369
diff --git a/package.json b/package.json
index af5a73132..f9aa5a4ae 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,8 @@
"name": "kepler.gl",
"author": "Shan He <[email protected]>",
"version": "0.1.6",
- "description": "kepler.gl is a webgl based application to visualize large scale location data in the browser",
+ "description":
+ "kepler.gl is a webgl based application to visualize large scale location data in the browser",
"license": "MIT",
"main": "dist/index.js",
"engines": {
@@ -10,14 +11,7 @@
"npm": ">=5.4.2",
"yarn": ">=0.27.5"
},
- "keywords": [
- "babel",
- "es6",
- "react",
- "webgl",
- "visualization",
- "deck.gl"
- ],
+ "keywords": ["babel", "es6", "react", "webgl", "visualization", "deck.gl"],
"repository": {
"type": "git",
"url": "https://github.com/uber/kepler.gl.git"
@@ -25,24 +19,34 @@
"scripts": {
"install:example": "cd examples/demo-app && npm i",
"install-and-start": "node ./scripts/install-and-start",
- "fast-test": "NODE_ENV=test babel-tape-runner ./test/node.js && NODE_ENV=test babel-tape-runner -r ./test/setup-browser-env.js ./test/browser.js",
- "test-browser": "NODE_ENV=test babel-tape-runner -r ./test/setup-browser-env.js ./test/browser.js",
+ "fast-test":
+ "NODE_ENV=test babel-tape-runner ./test/node.js && NODE_ENV=test babel-tape-runner -r ./test/setup-browser-env.js ./test/browser.js",
+ "test-browser":
+ "NODE_ENV=test babel-tape-runner -r ./test/setup-browser-env.js ./test/browser.js",
"test-node": "NODE_ENV=test babel-tape-runner ./test/node.js | tap-spec",
"test": "npm run test-node && npm run test-browser",
- "cover": "nyc --reporter html --reporter cobertura --reporter json-summary npm test && nyc report",
+ "cover":
+ "nyc --reporter html --reporter cobertura --reporter json-summary npm test && nyc report",
"start": "npm run install-and-start -- examples/demo-app start-local",
- "start:custom-layer": "npm run install-and-start -- examples/custom-layer start-local",
- "start:open-modal": "npm run install-and-start -- examples/open-modal start-local",
- "start:custom-reducer": "npm run install-and-start -- examples/custom-reducer start-local",
+ "start:custom-layer":
+ "npm run install-and-start -- examples/custom-layer start-local",
+ "start:open-modal":
+ "npm run install-and-start -- examples/open-modal start-local",
+ "start:custom-reducer":
+ "npm run install-and-start -- examples/custom-reducer start-local",
"start:": "npm run install-and-start -- examples/open-modal start-local",
- "build": "rm -fr dist && uber-licence && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs --source-maps inline",
+ "build":
+ "rm -fr dist && uber-licence && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs --source-maps inline",
"lint": "eslint src examples/**/src website/src",
"check-licence": "uber-licence --dry",
"add-licence": "uber-licence",
"prepublish": "uber-licence && npm run build",
- "web": "(npm run install:example && cd website && yarn --ignore-engines && yarn start)",
- "deploy": "(cd website && yarn build && git checkout gh-pages && cp dist/* .. && git add .. && git commit -m 'Update website' && git push origin gh-pages && git checkout master)",
- "clean": "rm -rf node_modules examples/demo-app/node_modules website/node_modules"
+ "web":
+ "(npm run install:example && cd website && yarn --ignore-engines && yarn start)",
+ "deploy":
+ "(cd website && yarn build && git checkout gh-pages && cp dist/* .. && git add .. && git commit -m 'Update website' && git push origin gh-pages && git checkout master)",
+ "clean":
+ "rm -rf node_modules examples/demo-app/node_modules website/node_modules"
},
"files": [
"dist",
@@ -92,17 +96,19 @@
"react-json-pretty": "^1.7.9",
"react-map-gl": "^3.2.1",
"react-modal": "^3.1.10",
- "react-onclickoutside": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.7.1.tgz",
+ "react-onclickoutside":
+ "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.7.1.tgz",
"react-palm": "^1.1.2",
"react-redux": "^4.0.0",
- "react-tooltip": "https://registry.npmjs.org/react-tooltip/-/react-tooltip-3.3.0.tgz",
+ "react-tooltip":
+ "https://registry.npmjs.org/react-tooltip/-/react-tooltip-3.3.0.tgz",
"react-vis": "^1.8.0",
"redux": "^3.0.4",
"redux-actions": "^2.2.1",
"reselect": "^3.0.1",
- "styled-components": "^2.2.4",
"supercluster": "^3.0.0",
- "type-analyzer": "https://registry.npmjs.org/type-analyzer/-/type-analyzer-0.1.4.tgz",
+ "type-analyzer":
+ "https://registry.npmjs.org/type-analyzer/-/type-analyzer-0.1.4.tgz",
"uber-licence": "^3.1.1",
"wellknown": "^0.5.0"
},
@@ -148,6 +154,7 @@
"redux-mock-store": "^1.2.1",
"sinon": "^2.4.1",
"source-map-loader": "^0.2.1",
+ "styled-components": "^3.1.6",
"tap-spec": "^4.1.1",
"tape": "4.8.0",
"tape-catch": "^1.0.6",
@@ -161,14 +168,13 @@
},
"peerDependencies": {
"react": "0.14.x - 16.x",
- "react-dom": "0.14.x - 16.x"
+ "react-dom": "0.14.x - 16.x",
+ "styled-components": ">= 3"
},
"nyc": {
"sourceMap": false,
"instrument": false,
- "exclude": [
- "test/**/*.js"
- ]
+ "exclude": ["test/**/*.js"]
},
"maintainers": [
"Shan He <[email protected]>",
diff --git a/yarn.lock b/yarn.lock
index ff54cee4f..68dd724c0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1544,13 +1544,20 @@ buffer@^4.3.0:
ieee754 "^1.1.4"
isarray "^1.0.0"
-buffer@^5.0.2, buffer@^5.0.3:
+buffer@^5.0.2:
version "5.1.0"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.1.0.tgz#c913e43678c7cb7c8bd16afbcddb6c5505e8f9fe"
dependencies:
base64-js "^1.0.2"
ieee754 "^1.1.4"
+buffer@^5.0.3:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.1.tgz#dd57fa0f109ac59c602479044dca7b8b3d0b71d6"
+ dependencies:
+ base64-js "^1.0.2"
+ ieee754 "^1.1.4"
+
builtin-modules@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
@@ -2039,8 +2046,8 @@ css-select@~1.2.0:
nth-check "~1.0.1"
css-to-react-native@^2.0.3:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.2.0.tgz#d524ef7f39a2747a8914e86563669ba35b7cf2e7"
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.2.2.tgz#c077d0f7bf3e6c915a539e7325821c9dd01f9965"
dependencies:
css-color-keywords "^1.0.0"
fbjs "^0.8.5"
@@ -3078,7 +3085,7 @@ faye-websocket@~0.11.0:
dependencies:
websocket-driver ">=0.5.1"
-fbjs@^0.8.16, fbjs@^0.8.5, fbjs@^0.8.9:
+fbjs@^0.8.16, fbjs@^0.8.9:
version "0.8.16"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
dependencies:
@@ -3090,6 +3097,18 @@ fbjs@^0.8.16, fbjs@^0.8.5, fbjs@^0.8.9:
setimmediate "^1.0.5"
ua-parser-js "^0.7.9"
+fbjs@^0.8.5:
+ version "0.8.17"
+ resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
+ dependencies:
+ core-js "^1.0.0"
+ isomorphic-fetch "^2.1.1"
+ loose-envify "^1.0.0"
+ object-assign "^4.1.0"
+ promise "^7.1.1"
+ setimmediate "^1.0.5"
+ ua-parser-js "^0.7.18"
+
figures@^1.3.5, figures@^1.4.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
@@ -3640,10 +3659,6 @@ [email protected]:
version "4.2.1"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
-hoist-non-react-statics@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-1.2.0.tgz#aa448cf0986d55cc40773b17174b7dd066cb7cfb"
-
hoist-non-react-statics@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40"
@@ -5596,8 +5611,8 @@ posix-character-classes@^0.1.0:
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
postcss-value-parser@^3.3.0:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15"
+ version "3.3.1"
+ resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
prelude-ls@~1.1.0, prelude-ls@~1.1.1, prelude-ls@~1.1.2:
version "1.1.2"
@@ -5865,6 +5880,10 @@ react-hot-loader@^3.0.0-beta.6:
redbox-react "^1.3.6"
source-map "^0.6.1"
+react-is@^16.3.1:
+ version "16.5.2"
+ resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.5.2.tgz#e2a7b7c3f5d48062eb769fcb123505eb928722e3"
+
react-json-pretty@^1.7.9:
version "1.7.9"
resolved "https://registry.yarnpkg.com/react-json-pretty/-/react-json-pretty-1.7.9.tgz#d153c52579fda9e245c81fceb3da22fdf1d93c1e"
@@ -6962,22 +6981,27 @@ strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
-styled-components@^2.2.4:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-2.4.0.tgz#086d0fd483d54638837fca3ea546a030b94adf75"
+styled-components@^3.1.6:
+ version "3.4.10"
+ resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.4.10.tgz#9a654c50ea2b516c36ade57ddcfa296bf85c96e1"
dependencies:
buffer "^5.0.3"
css-to-react-native "^2.0.3"
- fbjs "^0.8.9"
- hoist-non-react-statics "^1.2.0"
- is-plain-object "^2.0.1"
+ fbjs "^0.8.16"
+ hoist-non-react-statics "^2.5.0"
prop-types "^15.5.4"
- stylis "^3.4.0"
+ react-is "^16.3.1"
+ stylis "^3.5.0"
+ stylis-rule-sheet "^0.0.10"
supports-color "^3.2.3"
-stylis@^3.4.0:
- version "3.5.0"
- resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.0.tgz#016fa239663d77f868fef5b67cf201c4b7c701e1"
+stylis-rule-sheet@^0.0.10:
+ version "0.0.10"
+ resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
+
+stylis@^3.5.0:
+ version "3.5.3"
+ resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.3.tgz#99fdc46afba6af4deff570825994181a5e6ce546"
subarg@^1.0.0:
version "1.0.0"
@@ -7264,7 +7288,7 @@ typedarray@^0.0.6, typedarray@~0.0.5:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
-ua-parser-js@^0.7.9:
+ua-parser-js@^0.7.18, ua-parser-js@^0.7.9:
version "0.7.18"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed"