Skip to content

Commit

Permalink
[Chore] dependencies update + publish process update (#1978)
Browse files Browse the repository at this point in the history
* Duplicate imports removed
* Middleware moved into reducers

Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com>

* Build fix
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
dariaterekhova-actionengine committed Nov 4, 2022
1 parent 72f201c commit 4eb6b24
Show file tree
Hide file tree
Showing 114 changed files with 1,881 additions and 1,931 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/npmpublish.yml
Expand Up @@ -15,6 +15,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm install -g yarn
- run: yarn
- run: npm publish
- run: npm install npm@8.19.2
- run: npm publish --workspaces --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
52 changes: 52 additions & 0 deletions UPGRADE-GUIDE.md
Expand Up @@ -92,3 +92,55 @@

### Bug Fixes
- __Cluster Layer__: Fix incorrect cluster point count. Fix cluster layer missing in exported image.

### Moved from `kepler.gl/utils` to `@kepler.gl/table`
- `maybeToDate`
- `getNewDatasetColor`
- `createNewDataEntry`
- `setFilterGpuMode`
- `assignGpuChannels`
- `assignGpuChannel`
- `resetFilterGpuMode`
- `getGpuFilterProps`
- `getDatasetFieldIndexForFilter`

### Moved from `kepler.gl/utils` to `@kepler.gl/reducers`
- `findMapBounds`
- `exportData`
- `TOOLTIP_MINUS_SIGN`
- `getDefaultInteraction`
- `BRUSH_CONFIG`
- `findFieldsToShow`
- `getTooltipDisplayDeltaValue`
- `getTooltipDisplayValue`
- `LayersToRender`
- `AggregationLayerHoverData`
- `LayerHoverProp`
- `findDefaultLayer`
- `calculateLayerData`
- `getLayerHoverProp`
- `renderDeckGlLayer`
- `isLayerRenderable`
- `isLayerVisible`
- `prepareLayersForDeck`
- `prepareLayersToRender`
- `getCustomDeckLayers`
- `ComputeDeckLayersProps`
- `computeDeckLayers`

### Moved from `kepler.gl/processors` to `@kepler.gl/utils`
- `ACCEPTED_ANALYZER_TYPES`
- `validateInputData`
- `getSampleForTypeAnalyze`
- `getFieldsFromData`
- `renameDuplicateFields`
- `analyzerTypeToFieldType`

### Moved from `kepler.gl/templates` to `@kepler.gl/utils`
- `exportMapToHTML`

### Moved from `kepler.gl/layers` to `@kepler.gl/utils`
- `getCentroid`
- `idToPolygonGeo`
- `h3IsValid`
- `getHexFields`
2 changes: 1 addition & 1 deletion contributing/DEVELOPERS.md
Expand Up @@ -290,7 +290,7 @@ In order to publish a new version of kepler.gl a developer must perform the foll
3. Create a new PR for review.
4. Once the PR is reviewed and merged, pull the latest changes locally.
5. Run ```gh-release```: this command will create a new Github Release with the new updated CHANGELOG.md section.
6. Once the new Github Release is created, Github will automatically trgger a new Github Action flow that will automatically build and publish the new package version to NPM registry.
6. Once the new Github Release is created, Github will automatically trigger a new Github Action flow that will automatically build and publish the new package version to NPM registry.
__After Release is completed and pushed__
* Update each of the example folder package.json kepler.gl dependency with the newer. To update all examples, run
Expand Down
Expand Up @@ -22,7 +22,7 @@ import {OAuthApp} from '@carto/toolkit';
import Console from 'global/console';
import CartoIcon from './carto-icon';
import {Provider} from '@kepler.gl/cloud-providers';
import {createDataContainer} from '@kepler.gl/table';
import {createDataContainer} from '@kepler.gl/utils';
import {formatCsv} from 'reducers';

const NAME = 'carto';
Expand Down
139 changes: 14 additions & 125 deletions package.json
Expand Up @@ -21,7 +21,6 @@
"./src/utils",
"./src/styles",
"./src/localization",
"./src/middleware",
"./src/deckgl-layers",
"./src/layers",
"./src/schemas",
Expand Down Expand Up @@ -65,14 +64,14 @@
"start:web": "yarn install-and-start -- website start",
"start:https": "yarn install-and-start -- examples/demo-app start-local-https",
"start:e2e": "yarn install-and-start -- examples/demo-app start-local-e2e",
"build": "rm -fr dist && babel src/{actions,components,middleware,reducers,cloud-providers,localization,tasks} --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
"build": "rm -fr dist && babel src/{actions,components,reducers,cloud-providers,localization,tasks} --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
"build:umd": "webpack --config ./webpack/umd.js --progress --env.prod",
"build:types": "tsc --project tsconfig.production.json",
"analyze": "yarn analyze:bundle",
"analyze:bundle": "webpack --config ./webpack/bundle.js --progress --env.prod",
"check-licence": "uber-licence --dry",
"add-licence": "uber-licence",
"prepublish": "yarn workspaces run stab && yarn workspaces run prepublish && uber-licence && yarn build && yarn build:umd && yarn build:types",
"prepublish": "yarn workspaces run stab && yarn workspaces run prepublish && uber-licence && yarn build:umd && yarn build:types",
"docs": "babel-node ./scripts/documentation.js",
"typedoc": "typedoc --theme markdown --out typedoc --inputFiles ./src/reducers --inputFiles ./src/actions --excludeExternals --excludeNotExported --excludePrivate",
"example-version": "babel-node ./scripts/edit-version.js",
Expand Down Expand Up @@ -102,128 +101,18 @@
"umd"
],
"dependencies": {
"@danmarshall/deckgl-typings": "4.9.22",
"@deck.gl/aggregation-layers": "8.6.0",
"@deck.gl/core": "^8.6.0",
"@deck.gl/extensions": "^8.6.0",
"@deck.gl/geo-layers": "^8.6.0",
"@deck.gl/layers": "^8.6.0",
"@deck.gl/mapbox": "^8.6.0",
"@deck.gl/mesh-layers": "^8.6.0",
"@deck.gl/react": "^8.6.0",
"@hubble.gl/core": "1.2.0-alpha.6",
"@hubble.gl/react": "1.2.0-alpha.6",
"@loaders.gl/core": "^3.0.9",
"@loaders.gl/csv": "^3.0.9",
"@loaders.gl/gltf": "^3.0.9",
"@loaders.gl/json": "^3.0.9",
"@loaders.gl/loader-utils": "^3.0.9",
"@loaders.gl/polyfills": "^3.0.9",
"@loaders.gl/shapefile": "^3.0.9",
"@luma.gl/constants": "^8.5.10",
"@luma.gl/core": "^8.5.10",
"@mapbox/geo-viewport": "^0.4.1",
"@mapbox/geojson-normalize": "0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@reduxjs/toolkit": "^1.7.2",
"@tippyjs/react": "^4.2.0",
"@turf/bbox": "^6.0.1",
"@turf/boolean-within": "^6.0.1",
"@turf/helpers": "^6.1.4",
"@types/classnames": "^2.3.1",
"@types/d3-brush": "^3.0.1",
"@types/d3-selection": "^3.0.2",
"@types/exenv": "^1.2.0",
"@types/keymirror": "^0.1.1",
"@types/lodash.clonedeep": "^4.5.7",
"@types/lodash.curry": "^4.1.7",
"@types/lodash.debounce": "^4.0.7",
"@types/lodash.flattendeep": "^4.4.7",
"@types/lodash.get": "^4.4.6",
"@types/lodash.isequal": "^4.5.5",
"@types/lodash.memoize": "^4.1.7",
"@types/lodash.pick": "^4.4.6",
"@types/lodash.throttle": "^4.1.7",
"@types/lodash.uniq": "^4.5.7",
"@types/lodash.uniqby": "^4.7.7",
"@types/lodash.xor": "^4.5.7",
"@types/mapbox__geo-viewport": "^0.4.1",
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^18.0.0",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-map-gl": "^6.1.2",
"@types/react-modal": "^3.13.1",
"@types/react-onclickoutside": "^6.7.4",
"@types/react-redux": "^7.1.23",
"@types/react-virtualized": "^9.21.20",
"@types/react-vis": "^1.8.0",
"@types/styled-components": "^5.1.25",
"@typescript-eslint/parser": "^5.27.0",
"classnames": "^2.2.1",
"colorbrewer": "^1.5.0",
"copy-to-clipboard": "^3.3.1",
"d3-array": "^2.8.0",
"d3-axis": "^2.0.0",
"d3-brush": "^2.1.0",
"d3-color": "^2.0.0",
"d3-dsv": "^2.0.0",
"d3-format": "^2.0.0",
"d3-hexbin": "^0.2.2",
"d3-request": "^1.0.6",
"d3-scale": "^3.2.3",
"decimal.js": "^10.2.0",
"eslint-config-developit": "^1.2.0",
"exenv": "^1.2.2",
"fuzzy": "^0.1.3",
"global": "^4.3.0",
"h3-js": "^3.1.0",
"html-webpack-plugin": "^4.3.0",
"keymirror": "^0.1.1",
"lodash.clonedeep": "^4.0.1",
"lodash.curry": "^4.1.1",
"lodash.debounce": "^4.0.8",
"lodash.flattendeep": "^4.2.0",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
"lodash.memoize": "^4.1.2",
"lodash.pick": "^4.4.0",
"lodash.throttle": "^4.1.1",
"lodash.uniq": "^4.0.1",
"lodash.uniqby": "^4.7.0",
"lodash.xor": "^4.5.0",
"long": "^4.0.0",
"mapbox": "^1.0.0-beta10",
"mini-svg-data-uri": "^1.0.3",
"moment": "^2.10.6",
"moment-timezone": "^0.5.32",
"pbf": "^3.1.0",
"prop-types": "^15.6.0",
"react-color": "^2.17.3",
"react-copy-to-clipboard": "^5.0.2",
"react-intl": "^3.12.0",
"react-json-pretty": "^2.2.0",
"react-lifecycles-compat": "^3.0.4",
"react-map-gl": "^5.0.3",
"react-map-gl-draw": "0.14.8",
"react-markdown": "^5.0.2",
"react-modal": "^3.8.1",
"react-onclickoutside": "^6.7.1",
"react-palm": "^3.3.7",
"react-redux": "^7.1.3",
"react-sortable-hoc": "^1.8.3",
"react-tooltip": "^4.2.17",
"react-virtualized": "^9.21.1",
"react-vis": "^1.8.0",
"redux": "^4.0.5",
"redux-actions": "^2.2.1",
"reselect": "^4.0.0",
"resize-observer-polyfill": "^1.5.1",
"s2-geometry": "^1.2.10",
"supercluster": "^7.1.0",
"type-analyzer": "0.3.0",
"typedoc": "^0.19.2",
"viewport-mercator-project": "^6.0.0",
"wellknown": "^0.5.0"
"@deck.gl/mapbox":"^8.6.0",
"@hubble.gl/core":"1.2.0-alpha.6",
"@hubble.gl/react":"1.2.0-alpha.6",
"@kepler.gl/components":"2.5.5",
"@loaders.gl/polyfills":"^3.0.9",
"@loaders.gl/shapefile":"^3.0.9",
"@types/mapbox__geo-viewport":"^0.4.1",
"@typescript-eslint/parser":"^5.27.0",
"d3-hexbin":"^0.2.2",
"eslint-config-developit":"^1.2.0",
"html-webpack-plugin":"^4.3.0",
"typedoc":"^0.19.2"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
Expand Down
16 changes: 16 additions & 0 deletions src/actions/package.json
Expand Up @@ -29,6 +29,22 @@
"dist",
"umd"
],
"dependencies": {
"@kepler.gl/cloud-providers": "2.5.5",
"@kepler.gl/constants": "2.5.5",
"@kepler.gl/layers": "2.5.5",
"@kepler.gl/processors": "2.5.5",
"@kepler.gl/types": "2.5.5",
"@reduxjs/toolkit": "^1.7.2",
"@types/lodash.curry": "^4.1.7",
"@types/react-redux": "^7.1.23",
"@types/redux-actions": "^2.6.2",
"lodash.curry": "^4.1.1",
"react-palm": "^3.3.7",
"react-redux": "^7.1.3",
"redux": "^4.0.5",
"redux-actions": "^2.2.1"
},
"nyc": {
"sourceMap": false,
"instrument": false
Expand Down
2 changes: 1 addition & 1 deletion src/actions/src/vis-state-actions.ts
Expand Up @@ -21,9 +21,9 @@
// vis-state-reducer
import {default as ActionTypes} from './action-types';
import {FileCacheItem} from '@kepler.gl/processors';
import {AddDataToMapPayload} from '@kepler.gl/types';
import {Layer, LayerBaseConfig} from '@kepler.gl/layers';
import {
AddDataToMapPayload,
ValueOf,
Merge,
RGBColor,
Expand Down
4 changes: 4 additions & 0 deletions src/cloud-providers/package.json
Expand Up @@ -29,6 +29,10 @@
"dist",
"umd"
],
"dependencies": {
"@kepler.gl/types": "2.5.5",
"react": "^16.8.4"
},
"nyc": {
"sourceMap": false,
"instrument": false
Expand Down
2 changes: 1 addition & 1 deletion src/cloud-providers/src/index.ts
Expand Up @@ -20,5 +20,5 @@

export {default as Provider, FILE_CONFLICT_MSG} from './provider';
// eslint-disable-next-line prettier/prettier
export type {MapListItem, Millisecond, Thumbnail, ProviderProps, IconProps} from './provider';
export type {MapListItem, Thumbnail, ProviderProps, IconProps} from './provider';
export {default as Upload} from './upload';
4 changes: 1 addition & 3 deletions src/cloud-providers/src/provider.ts
Expand Up @@ -19,11 +19,9 @@
// THE SOFTWARE.

import Upload from './upload';
import {MapData, ExportFileOptions} from '@kepler.gl/types';
import {MapData, ExportFileOptions, Millisecond} from '@kepler.gl/types';
import {ComponentType} from 'react';

export type Millisecond = number;

export type MapListItem = {
id: string;
title: string;
Expand Down

0 comments on commit 4eb6b24

Please sign in to comment.