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

deps: Upgrade deck.gl to v9.0.30 #15

Merged
merged 2 commits into from
Sep 25, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@
"LICENSE.md"
],
"devDependencies": {
"@deck.gl/aggregation-layers": "^9.0.14",
"@deck.gl/carto": "^9.0.14",
"@deck.gl/core": "^9.0.14",
"@deck.gl/extensions": "^9.0.14",
"@deck.gl/geo-layers": "^9.0.14",
"@deck.gl/layers": "^9.0.12",
"@deck.gl/mesh-layers": "^9.0.12",
"@deck.gl/react": "^9.0.17",
"@deck.gl/aggregation-layers": "^9.0.30",
"@deck.gl/carto": "^9.0.30",
"@deck.gl/core": "^9.0.30",
"@deck.gl/extensions": "^9.0.30",
"@deck.gl/geo-layers": "^9.0.30",
"@deck.gl/layers": "^9.0.30",
"@deck.gl/mesh-layers": "^9.0.30",
"@deck.gl/react": "^9.0.30",
"@lit/react": "^1.0.5",
"@lit/task": "^1.0.1",
"@loaders.gl/core": "^4.2.1",
"@luma.gl/core": "^9.0.12",
"@luma.gl/engine": "^9.0.12",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@loaders.gl/core": "^4.2.3",
"@luma.gl/core": "^9.0.27",
"@luma.gl/engine": "^9.0.27",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@types/json-schema": "^7.0.15",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand All @@ -77,7 +77,7 @@
"echarts": "^5.5.0",
"lit": "^3.1.4",
"lit-analyzer": "^1.2.1",
"maplibre-gl": "^4.1.3",
"maplibre-gl": "^4.6.0",
"microbundle": "^0.15.1",
"prettier": "^2.6.2",
"react": "^18.3.1",
Expand Down
12 changes: 8 additions & 4 deletions src/sources/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function h3TableSource(
props: H3TableSourceOptions
): Promise<H3TableSourceResponse> {
assignDefaultProps(props);
const response = await _h3TableSource(props);
const response = await _h3TableSource(props as _H3TableSourceOptions);
return {...response, widgetSource: new WidgetTableSource(props)};
}

Expand All @@ -90,7 +90,7 @@ export async function h3QuerySource(
props: H3QuerySourceOptions
): Promise<H3QuerySourceResponse> {
assignDefaultProps(props);
const response = await _h3QuerySource(props);
const response = await _h3QuerySource(props as _H3QuerySourceOptions);
return {...response, widgetSource: new WidgetQuerySource(props)};
}

Expand All @@ -109,7 +109,9 @@ export async function quadbinTableSource(
props: QuadbinTableSourceOptions & WidgetBaseSourceProps
): Promise<QuadbinTableSourceResponse> {
assignDefaultProps(props);
const response = await _quadbinTableSource(props);
const response = await _quadbinTableSource(
props as _QuadbinTableSourceOptions
);
return {...response, widgetSource: new WidgetTableSource(props)};
}

Expand All @@ -118,7 +120,9 @@ export async function quadbinQuerySource(
props: QuadbinQuerySourceOptions & WidgetBaseSourceProps
): Promise<QuadbinQuerySourceResponse> {
assignDefaultProps(props);
const response = await _quadbinQuerySource(props);
const response = await _quadbinQuerySource(
props as _QuadbinQuerySourceOptions
);
return {...response, widgetSource: new WidgetQuerySource(props)};
}

Expand Down
10 changes: 8 additions & 2 deletions test/sources/wrappers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ const createMockFetchForTileJSON = () =>
vi
.fn()
.mockResolvedValueOnce(
createMockFetchResponse({label: 'mapInit', tilejson: {url: ''}})
createMockFetchResponse({
label: 'mapInit',
tilejson: {url: ['https://example.com']},
})
)
.mockResolvedValueOnce(
createMockFetchResponse({label: 'tilejson', tilejson: {url: ''}})
createMockFetchResponse({
label: 'tilejson',
tilejson: {url: ['https://example.com']},
})
);

const createMockFetchResponse = (data: unknown) => ({
Expand Down
Loading