Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] bump loaders.lg to 4.1.0-alpha.3 #2480

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -65,7 +65,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 @@ -76,6 +77,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 @@ -137,7 +139,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 @@ -179,7 +185,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 @@ -191,6 +198,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 @@ -314,7 +322,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 @@ -326,6 +335,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 @@ -422,7 +432,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 @@ -433,6 +444,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 @@ -554,7 +566,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 @@ -565,6 +578,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