Skip to content

Commit

Permalink
chore: typescript 5.3 (#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen authored Nov 29, 2023
1 parent 8a35c9a commit 20ca6f9
Show file tree
Hide file tree
Showing 29 changed files with 62 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/get-started/bundle-with-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"sass": "^1.58.0",
"typescript": "^5.0.4"
"typescript": "^5.3.0"
}
}
2 changes: 1 addition & 1 deletion examples/get-started/bundle-with-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"@rollup/plugin-typescript": "^11.0.0",
"rollup": "^3.17.0",
"serve": "^14.2.0",
"typescript": "^5.0.4"
"typescript": "^5.3.0"
}
}
2 changes: 1 addition & 1 deletion examples/get-started/bundle-with-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@loaders.gl/gltf": "^4.0.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/get-started/bundle-with-webpack-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"html-webpack-plugin": "^5.5.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/website/3d-tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/geospatial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/gltf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@math.gl/core": "^4.0.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/i3s-arcgis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/i3s/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/pointcloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/textures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
2 changes: 1 addition & 1 deletion examples/website/tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"styled-components": "^4.2.0"
},
"devDependencies": {
"typescript": "^5.0.4",
"typescript": "^5.3.0",
"vite": "^4.4.9"
}
}
3 changes: 3 additions & 0 deletions modules/flatgeobuf/test/flatgeobuf-loader.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import test from 'tape-promise/tape';
import {FlatGeobufLoader} from '@loaders.gl/flatgeobuf';
import {setLoaderOptions, load, loadInBatches} from '@loaders.gl/core';
Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

export {loadGeoTiff} from './lib/load-geotiff';
export {default as TiffPixelSource} from './lib/tiff-pixel-source';
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/load-geotiff.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {fromUrl, fromBlob, GeoTIFF} from 'geotiff';

import {
Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/ome/load-ome-tiff.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {GeoTIFF, GeoTIFFImage} from 'geotiff';

import TiffPixelSource from '../tiff-pixel-source';
Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/ome/ome-indexers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {GeoTIFFImage, GeoTIFF, ImageFileDirectory} from 'geotiff';
import type {OMEXML} from '../ome/omexml';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/ome/ome-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {getDims, getLabels} from './utils';
import type {OMEXML, UnitsLength} from './omexml';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/ome/omexml.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {XMLParser} from 'fast-xml-parser';
import {ensureArray, intToRgba} from '../utils/tiff-utils';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/ome/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {OMEXML} from '../ome/omexml';
import type {Labels} from '../../types';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/tiff-pixel-source.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {GeoTIFFImage, RasterOptions} from 'geotiff';
import {getImageSize, isInterleaved, SIGNAL_ABORTED} from './utils/tiff-utils';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/utils/Pool.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

/** eslint-disable */
import type {FileDirectory} from 'geotiff';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/utils/proxies.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {GeoTIFF} from 'geotiff';
import type Pool from './Pool';

Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/lib/utils/tiff-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {PixelSource} from '../../types';

export function ensureArray<T>(x: T | T[]) {
Expand Down
3 changes: 3 additions & 0 deletions modules/geotiff/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import {DTYPE_LOOKUP} from './lib/ome/ome-utils';

export type Dtype = (typeof DTYPE_LOOKUP)[keyof typeof DTYPE_LOOKUP];
Expand Down
6 changes: 5 additions & 1 deletion modules/geotiff/src/typings/geotiff.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
declare type TypedArray = import('../types').TypedArray;
// loaders.gl, MIT license
// Copyright (c) vis.gl contributors

import type {TypedArray} from '../types';

// @ts-ignore typescript 5.3 error
declare module 'geotiff' {
function fromUrl(url: string, headers?: Record<string, unknown>): Promise<GeoTIFF>;
function fromBlob(blob: Blob): Promise<GeoTIFF>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser" : "^6.0.0",
"prettier": "3.0.3",
"typescript": "^5.2.2"
"typescript": "^5.3.0"
},
"volta": {
"node": "18.18.2",
Expand Down
2 changes: 1 addition & 1 deletion test/apps/typescript-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"rimraf": "^3.0.0",
"run-script-os": "^1.1.1",
"ts-node": "^8.3.0",
"typescript": "^5.0.4"
"typescript": "^5.3.0"
},
"dependencies": {
"@loaders.gl/shapefile": "^4.0.0"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11384,10 +11384,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typescript@^5.2.2, typescript@~4.6.0:
version "5.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
typescript@^5.3.0, typescript@~4.6.0:
version "5.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==

typical@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 20ca6f9

Please sign in to comment.