Skip to content

Commit

Permalink
[chore] bump loaders (keplergl#2480)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Chris Gervang <chris@gervang.com>
  • Loading branch information
igorDykhta authored and chrisgervang committed Dec 19, 2023
1 parent 09fe9a1 commit ce52721
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 119 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"@hubble.gl/core": "1.2.0-alpha.6",
"@hubble.gl/react": "1.2.0-alpha.6",
"@kepler.gl/components": "3.0.0-alpha.1",
"@loaders.gl/polyfills": "^4.1.0-alpha.2",
"@loaders.gl/polyfills": "^4.1.0-alpha.3",
"@types/mapbox__geo-viewport": "^0.4.1",
"@typescript-eslint/parser": "^5.27.0",
"eslint-config-developit": "^1.2.0",
Expand Down Expand Up @@ -142,7 +142,7 @@
"@babel/traverse": "^7.12.1",
"@cfaester/enzyme-adapter-react-18": "^0.7.0",
"@deck.gl/test-utils": "^8.9.27",
"@loaders.gl/polyfills": "^4.1.0-alpha.2",
"@loaders.gl/polyfills": "^4.1.0-alpha.3",
"@luma.gl/test-utils": "^8.5.20",
"@nebula.gl/layers": "1.0.2-alpha.1",
"@probe.gl/env": "^3.5.0",
Expand Down Expand Up @@ -216,12 +216,12 @@
"webpack-stats-plugin": "^0.2.1"
},
"resolutions": {
"@loaders.gl/core": "^4.1.0-alpha.2",
"@loaders.gl/csv": "^4.1.0-alpha.2",
"@loaders.gl/gltf": "^4.1.0-alpha.2",
"@loaders.gl/json": "^4.1.0-alpha.2",
"@loaders.gl/loader-utils": "^4.1.0-alpha.2",
"@loaders.gl/polyfills": "^4.1.0-alpha.2",
"@loaders.gl/core": "^4.1.0-alpha.3",
"@loaders.gl/csv": "^4.1.0-alpha.3",
"@loaders.gl/gltf": "^4.1.0-alpha.3",
"@loaders.gl/json": "^4.1.0-alpha.3",
"@loaders.gl/loader-utils": "^4.1.0-alpha.3",
"@loaders.gl/polyfills": "^4.1.0-alpha.3",
"@luma.gl/constants": "8.5.20",
"@luma.gl/core": "8.5.20",
"@luma.gl/experimental": "8.5.20",
Expand Down
10 changes: 5 additions & 5 deletions src/layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
"@kepler.gl/table": "3.0.0-alpha.1",
"@kepler.gl/types": "3.0.0-alpha.1",
"@kepler.gl/utils": "3.0.0-alpha.1",
"@loaders.gl/arrow": "^4.1.0-alpha.2",
"@loaders.gl/core": "^4.1.0-alpha.2",
"@loaders.gl/gis": "^4.1.0-alpha.2",
"@loaders.gl/gltf": "^4.1.0-alpha.2",
"@loaders.gl/wkt": "^4.1.0-alpha.2",
"@loaders.gl/arrow": "^4.1.0-alpha.3",
"@loaders.gl/core": "^4.1.0-alpha.3",
"@loaders.gl/gis": "^4.1.0-alpha.3",
"@loaders.gl/gltf": "^4.1.0-alpha.3",
"@loaders.gl/wkt": "^4.1.0-alpha.3",
"@luma.gl/constants": "^8.5.20",
"@mapbox/geojson-normalize": "0.0.1",
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
Expand Down
10 changes: 5 additions & 5 deletions src/processors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"@kepler.gl/schemas": "3.0.0-alpha.1",
"@kepler.gl/types": "3.0.0-alpha.1",
"@kepler.gl/utils": "3.0.0-alpha.1",
"@loaders.gl/arrow": "^4.1.0-alpha.2",
"@loaders.gl/core": "^4.1.0-alpha.2",
"@loaders.gl/csv": "^4.1.0-alpha.2",
"@loaders.gl/json": "^4.1.0-alpha.2",
"@loaders.gl/loader-utils": "^4.1.0-alpha.2",
"@loaders.gl/arrow": "^4.1.0-alpha.3",
"@loaders.gl/core": "^4.1.0-alpha.3",
"@loaders.gl/csv": "^4.1.0-alpha.3",
"@loaders.gl/json": "^4.1.0-alpha.3",
"@loaders.gl/loader-utils": "^4.1.0-alpha.3",
"@mapbox/geojson-normalize": "0.0.1",
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
"@turf/helpers": "^6.1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@kepler.gl/tasks": "3.0.0-alpha.1",
"@kepler.gl/types": "3.0.0-alpha.1",
"@kepler.gl/utils": "3.0.0-alpha.1",
"@loaders.gl/loader-utils": "^4.1.0-alpha.2",
"@loaders.gl/loader-utils": "^4.1.0-alpha.3",
"@types/lodash.clonedeep": "^4.5.7",
"@types/lodash.flattendeep": "^4.4.7",
"@types/lodash.get": "^4.4.6",
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@kepler.gl/table": "3.0.0-alpha.1",
"@kepler.gl/types": "3.0.0-alpha.1",
"@kepler.gl/utils": "3.0.0-alpha.1",
"@loaders.gl/loader-utils": "^4.1.0-alpha.2",
"@loaders.gl/loader-utils": "^4.1.0-alpha.3",
"@types/keymirror": "^0.1.1",
"@types/lodash.clonedeep": "^4.5.7",
"@types/lodash.pick": "^4.4.6",
Expand Down
26 changes: 20 additions & 6 deletions test/browser/file-handler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ test('#file-handler -> readFileInBatches.csv -> processFileData', async t => {
data: [],
bytesUsed: 0,
progress: {rowCount: 0, rowCountInBatch: 0, percent: 0},
fileName: 'text-data.csv'
fileName: 'text-data.csv',
shape: 'metadata'
},
done: false
};
Expand All @@ -59,6 +60,7 @@ test('#file-handler -> readFileInBatches.csv -> processFileData', async t => {
);

t.equal(batch1.value.batchType, expected1.value.batchType, 'batch1.batchType should be the same');
t.equal(batch1.value.shape, expected1.value.shape, 'batch1.shape should be the same');
t.equal(batch1.value.fileName, expected1.value.fileName, 'batch1.fileName should be the same');
t.deepEqual(batch1.value.data, expected1.value.data, 'batch1.data should be the same');
t.deepEqual(
Expand Down Expand Up @@ -120,7 +122,11 @@ test('#file-handler -> readFileInBatches.csv -> processFileData', async t => {

// go on to run processFileData
const processed = await processFileData({content: batch2.value, fileCache: []});
const expectedInfo = {id: generateHashIdFromString('text-data.csv'), label: 'text-data.csv', format: 'row'};
const expectedInfo = {
id: generateHashIdFromString('text-data.csv'),
label: 'text-data.csv',
format: 'row'
};

t.equal(processed.length, 1, 'processFileData should return 1 result');
t.ok(processed[0].info, 'processFileData should have info');
Expand Down Expand Up @@ -162,7 +168,8 @@ test('#file-handler -> readFileInBatches.GeoJSON FeatureCollection -> processFil
data: [],
bytesUsed: 0,
progress: {rowCount: 0, rowCountInBatch: 0, percent: 0},
fileName: 'text-data-1.geojson'
fileName: 'text-data-1.geojson',
shape: 'metadata'
},
done: false
};
Expand All @@ -174,6 +181,7 @@ test('#file-handler -> readFileInBatches.GeoJSON FeatureCollection -> processFil
);

t.equal(batch1.value.batchType, expected1.value.batchType, 'batch1.batchType should be the same');
t.equal(batch1.value.shape, expected1.value.shape, 'batch1.shape should be the same');
t.equal(batch1.value.fileName, expected1.value.fileName, 'batch1.fileName should be the same');
t.deepEqual(batch1.value.data, expected1.value.data, 'batch1.data should be the same');
t.deepEqual(
Expand Down Expand Up @@ -297,7 +305,8 @@ test('#file-handler -> readFileInBatches.GeoJSON Single Feature -> processFileDa
data: [],
bytesUsed: 0,
progress: {rowCount: 0, rowCountInBatch: 0, percent: 0},
fileName: 'text-data-1.geojson'
fileName: 'text-data-1.geojson',
shape: 'metadata'
},
done: false
};
Expand All @@ -309,6 +318,7 @@ test('#file-handler -> readFileInBatches.GeoJSON Single Feature -> processFileDa
);

t.equal(batch1.value.batchType, expected1.value.batchType, 'batch1.batchType should be the same');
t.equal(batch1.value.shape, expected1.value.shape, 'batch1.shape should be the same');
t.equal(batch1.value.fileName, expected1.value.fileName, 'batch1.fileName should be the same');
t.deepEqual(batch1.value.data, expected1.value.data, 'batch1.data should be the same');
t.deepEqual(
Expand Down Expand Up @@ -405,7 +415,8 @@ test('#file-handler -> readFileInBatches.row -> processFileData', async t => {
data: [],
bytesUsed: 0,
progress: {rowCount: 0, rowCountInBatch: 0, percent: 0},
fileName
fileName,
shape: 'metadata'
},
done: false
};
Expand All @@ -416,6 +427,7 @@ test('#file-handler -> readFileInBatches.row -> processFileData', async t => {
);

t.equal(batch1.value.batchType, expected1.value.batchType, 'batch1.batchType should be the same');
t.equal(batch1.value.shape, expected1.value.shape, 'batch1.shape should be the same');
t.equal(batch1.value.fileName, expected1.value.fileName, 'batch1.fileName should be the same');
t.deepEqual(batch1.value.data, expected1.value.data, 'batch1.data should be the same');
t.deepEqual(
Expand Down Expand Up @@ -537,7 +549,8 @@ test('#file-handler -> readFileInBatches.keplerMap -> processFileData', async t
data: [],
bytesUsed: 0,
progress: {rowCount: 0, rowCountInBatch: 0, percent: 0},
fileName
fileName,
shape: 'metadata'
},
done: false
};
Expand All @@ -548,6 +561,7 @@ test('#file-handler -> readFileInBatches.keplerMap -> processFileData', async t
);

t.equal(batch1.value.batchType, expected1.value.batchType, 'batch1.batchType should be the same');
t.equal(batch1.value.shape, expected1.value.shape, 'batch1.shape should be the same');
t.equal(batch1.value.fileName, expected1.value.fileName, 'batch1.fileName should be the same');
t.deepEqual(batch1.value.data, expected1.value.data, 'batch1.data should be the same');
t.deepEqual(
Expand Down

0 comments on commit ce52721

Please sign in to comment.